warnings: fix compilation with old autoconf
[gnulib/ericb.git] / ChangeLog
blobe241c9dc1383153088c91774db2af50e393b3b38
1 2017-08-24  Eric Blake  <eblake@redhat.com>
3         warnings: fix compilation with old autoconf
4         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
6         AC_DEFUN.
7         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
8         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
10 2017-08-24  Bruno Haible  <bruno@clisp.org>
12         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
13         * modules/glob (Depends-on): Add c99.
15 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17         glob: fix typo that broke platforms lacking d_ino
18         This typo also hurt performance on GNU/Linux and similar hosts.
19         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
20         in previous change.
22 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24         glob: merge from glibc with Zanella glob changes
25         Merge glob from glibc, with changes for glob proposed
26         by Adhemerval Zanella in the thread starting here:
27         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
28         plus some fixes for this merge.
29         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
30         New files, ported from glibc.
31         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
32         with __restrict.
33         (__size_t): Remove.  All uses replaced by size_t.
34         (size_t): Define by defining __need_size_t and including <stddef.h>.
35         This should work even in non-glibc platforms, where any name
36         pollution is OK.
37         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
38         (struct stat64): Don’t worry about __GLOB_GNULIB.
39         (glob, globfree, glob_pattern_p): Remove macros for
40         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
41         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
42         but set errno.
43         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
44         removed since the glibc behavior works on null pointers.
45         Do not include stdio.h; old SunOS is irrelevant now.
46         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
47         Include glob_internal.h.
48         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
49         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
50         worked only coincidentally.
51         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
52         Remove macros; now done in glob.in.h.
53         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
54         (glob): Properly initialize glob structure with
55         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
56         Remove old code using SHELL since Bash no longer
57         uses this.
58         (glob, prefix_array): Separate MS code better.
59         (glob, glob_in_dir): Use C99 decls before statements when glibc
60         does.
61         (glob_in_dir): Remove old Amiga and VMS code.
62         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
63         separate files.
64         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
65         (__glibc_unlikely):
66         Move here from glob.c.
67         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
68         (weak_alias): New macro.
69         (__size_t): Remove.  All uses replaced by size_t.
70         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
71         * modules/glob (Files): Add +lib/glob_internal.h,
72         lib/glob_pattern_p.c, lib/globfree.c.
73         (Depends-on): Remove snippet/arg-nonnull.
75 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77         glob: port to clang's Undefined Sanitizer
78         Problem reported by Tim Rühsen in:
79         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00144.html
80         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
81         (glob_in_dir): Do not rely on undefined behavior in accessing
82         struct members beyond their bounds.  Use a flexible array member
83         instead.
85 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
87         vc-list-files: port to Solaris 10
88         * build-aux/vc-list-files: Don't assume test -e works.
90 2017-08-21  Karl Berry  <karl@freefriends.org>
92         * doc/posix-functions/srandom.texi (srandom): typo }.
94 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96         git-version-gen: port to Solaris 10
97         Problem reported by Dagobert Michelsen in:
98         http://lists.gnu.org/archive/html/grep-devel/2017-08/msg00002.html
99         * build-aux/git-version-gen (v_from_git):
100         Use expr instead of shell substitution.
102 2017-08-19  Bruno Haible  <bruno@clisp.org>
104         host-cpu-c-abi: Improve detection of MIPS ABI.
105         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
106         _MIPS_SIM.
108 2017-08-17  Bruno Haible  <bruno@clisp.org>
110         hypot tests: Fix test failure on FreeBSD 11.0/x86.
111         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
113 2017-08-17  Bruno Haible  <bruno@clisp.org>
115         float: Fix LDBL_MIN value on FreeBSD/x86.
116         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
118 2017-08-17  Bruno Haible  <bruno@clisp.org>
120         random: Fix test compilation failure on Cygwin 1.5.25.
121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
122         HAVE_DECL_SETSTATE.
123         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
124         declared.
125         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
126         HAVE_DECL_SETSTATE.
127         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
128         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
129         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
130         * doc/posix-functions/random.texi: Likewise.
131         * doc/posix-functions/setstate.texi: Likewise.
132         * doc/posix-functions/srandom.texi: Likewise.
134 2017-08-16  Bruno Haible  <bruno@clisp.org>
136         stdnoreturn: Fix test compilation failure on Cygwin.
137         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
138         <stdnoreturn.h> replacement.
139         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
140         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
142 2017-08-16  Bruno Haible  <bruno@clisp.org>
144         thread: Fix conflict with pthread_sigmask module.
145         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
146         it's defined as a macro.
147         * modules/thread (Depends-on): Add pthread_sigmask.
149 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
151         rename: port better to NetBSD
152         * doc/posix-functions/rename.texi (rename): NetBSD 7
153         does not have the link-count bug.
154         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
155         broken merely because rename ("a", "b") removes "a" when the two
156         names are hard links to the same file.
158 2017-08-16  Bruno Haible  <bruno@clisp.org>
160         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
161         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
162         the target file names with '$(srcdir)/'.
163         * modules/unicase/locale-language (Makefile.am): Likewise.
164         * modules/unicase/special-casing (Makefile.am): Likewise.
165         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
166         * modules/unictype/category-byname (Makefile.am): Likewise.
167         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
168         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
169         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
170         * modules/unictype/property-byname (Makefile.am): Likewise.
171         * modules/unictype/scripts (Makefile.am): Likewise.
172         * modules/uninorm/composition (Makefile.am): Likewise.
174 2017-08-16  Bruno Haible  <bruno@clisp.org>
176         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
177         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
178         value for OpenBSD.
180 2017-08-16  Bruno Haible  <bruno@clisp.org>
182         rename, renameat: Update doc regarding NetBSD.
183         * doc/posix-functions/rename.texi: Clarify that when using
184         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
185         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
186         version.
188 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
190         renameat2: port better to macOS
191         * lib/renameat2.c (renameat2): Use renameatx_np if available.
193         futimens: don’t assume struct timespec layout
194         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
195         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
196         * tests/test-fdutimensat.c (main):
197         * tests/test-futimens.h (test_futimens):
198         * tests/test-lutimens.h (test_lutimens):
199         * tests/test-utimens.h (test_utimens):
200         * tests/test-utimensat.c (main):
201         Don’t assume that struct timespec is a two-member structure in
202         tv_sec, tv_nsec order.  Although this is true on all platforms we
203         know about, POSIX does not guarantee it.
205         rename: document+test NetBSD rename
206         Test failure reported by Bruno Haible in:
207         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00104.html
208         This is an area where NetBSD is better-behaved than POSIX,
209         so allow the NetBSD behavior in tests.
210         * doc/posix-functions/rename.texi:
211         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
212         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
214 2017-08-15  Bruno Haible  <bruno@clisp.org>
216         renameat: Ensure declaration in <stdio.h> on NetBSD.
217         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
218         * doc/posix-functions/renameat.texi: Mention this problem.
220 2017-08-15  Bruno Haible  <bruno@clisp.org>
222         duplocale: Work around NetBSD 7.0 bug.
223         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
224         * lib/duplocale.c: Add comment about NetBSD problem.
225         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
227 2017-08-15  Bruno Haible  <bruno@clisp.org>
229         duplocale tests: Verify use with *_l functions.
230         * modules/duplocale-tests (configure.ac): Test for uselocale and
231         some *_l functions.
232         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
233         from main.
234         (get_locale_dependent_values_from, test_with_locale_parameter): New
235         functions.
236         (main): Test both test_with_uselocale and test_with_locale_parameter.
238 2017-08-15  Bruno Haible  <bruno@clisp.org>
240         extensions: Enable NetBSD specific extensions.
241         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
243 2017-08-14  Bruno Haible  <bruno@clisp.org>
245         open, openat: Update doc about O_CLOEXEC.
246         * doc/posix-functions/open.texi: More concrete list of platforms.
247         * doc/posix-functions/openat.texi: Likewise.
249 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
251         open: support O_CLOEXEC
252         * NEWS, doc/posix-functions/open.texi:
253         * doc/posix-functions/openat.texi: Document this.
254         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
255         (GNULIB_defined_O_CLOEXEC): New symbol.
256         * lib/open.c: Include cloexec.h.
257         (open): Support O_CLOEXEC.
258         * lib/openat.c: Include cloexec.h.
259         (rpl_openat): Support O_CLOEXEC.
260         * lib/popen-safer.c: Do not include cloexec.h.
261         (open_noinherit): Remove.
262         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
263         * lib/save-cwd.c: Do not include cloexec.h.
264         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
265         * m4/open-cloexec.m4: New file.
266         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
267         Replace 'open' if O_CLOEXEC is not present.
268         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
269         Replace 'openat' if O_CLOEXEC is not present.
270         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
271         * modules/open (Files): Add m4/open-cloexec.m4.
272         (Depends-on): Depend on cloexec if replacing 'open'.
273         * modules/openat (Files): Add m4/open-cloexec.m4.
274         (Depends-on): Depend on cloexec if replacing openat.
275         * modules/popen-safer (Depends-on): Remove cloexec.
276         * modules/save-cwd (Depends-on): Remove cloexec, and add
277         fd-safer-flag and 'open'.
279 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
281         reallocarray: minor fixes
282         * doc/glibc-functions/reallocarray.texi: Update version numbers.
283         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
284         * modules/reallocarray (License): Change from GPL to LGPL.
285         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
286         Indent properly and don't use tabs.
288 2017-08-13  Darshit Shah  <darnir@gnu.org>
290         reallocarray: New module
291         reallocarray is a new function in glibc 2.26 to safely allocate an array
292         of memory locations with integer overflow protection.
293         * MODULES.html.sh: Add reallocarray.
294         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
295         * lib/reallocarray.c: New file to implement module reallocarray.
296         * lib/stdlib.in.h: Add function declarations for reallocarray.
297         * m4/reallocarray.m4: New file.
298         * m4/stdlib_h.m4: Declare reallocarray.
299         * modules/reallocarray: New file.
300         * modules/reallocarray-test: New file.
301         * modules/stdlib: Coerce stdlib.h to export reallocarray.
302         * tests/test-reallocarray.c: New test.
304 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
306         dirent-safer: fix cloexec race
307         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
308         (opendir_safer): Use F_DUPFD_CLOEXEC.
309         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
310         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
311         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
312         instead of dup_safer.
314         fts: fix cloexec races
315         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
316         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
317         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
318         (fd_ring_check): Set cloexec flag on new file descriptors.
319         (fts_build, fd_ring_check): While we’re at it, make sure the
320         resulting file descriptor is not 0, 1, or 2, since that is easy.
322 2017-08-11  Bruno Haible  <bruno@clisp.org>
324         fts tests: Fix link error.
325         Reported by Tom G. Christensen in
326         https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00078.html
327         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
329 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
331         fts: port recent changes to CentOS 6
332         Problem reported by Tom G. Christensen in:
333         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00064.html
334         * lib/fts.c (fsword): New type.
335         (struct dev_type, filesystem_type): Use it.
336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
337         Also, check for f_type only if fstatfs and sys/vfs.h work.
339 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
341         tempname: do not depend on secure_getenv
342         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
343         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
344         * modules/tempname (Depends-on): Remove secure_getenv.
346 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
348         extensions: add _OPENBSD_SOURCE
349         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
351 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
352             Bruno Haible  <bruno@clisp.org>
354         manywarnings: Add support for C++.
355         * build-aux/g++-warning.spec: New file.
356         * m4/manywarnings-c++.m4: New file.
357         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
358         redirects to manywarnings-c++.m4.
359         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
361 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
363         git-version-gen: another fix for tags with "-"
364         * build-aux/git-version-gen: Improve fix for tags containing "-".
365         Suggested by Markus Armbruster in:
366         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00034.html
368 2017-08-06  Bruno Haible  <bruno@clisp.org>
370         warnings, manywarnings: Add support for multiple languages, not just C.
371         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
372         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
373         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
374         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
375         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
376         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
377         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
378         of the current language. If C++ is the current language, modify
379         WARN_CXXFLAGS instead of WARN_CFLAGS.
380         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
381         gl_MANYWARN_ALL_GCC.
382         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
384 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
386         git-version-gen: Fix for tags containing '-'
388         Really old versions of git-describe (before v1.5.0, Feb 2007)
389         don't have the number of commits in their long format output,
390         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
391         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
392         recognizes both patterns, and normalizes the old format to the new one.
394         Unfortunately, this normalization code gets confused when the tag
395         contains '-'.  Reproducer:
397             $ git-tag -m test v0.2-rc1
398             $ build-aux/git-version-gen .tarball-version; echo
399             build-aux/git-version-gen: WARNING: git rev-list failed
400             UNKNOWN
402         We take exact tag "v0.2-rc1" for the old format, extract the presumed
403         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
404         commits since tha tag.  Fails, because tag "v0.2" does not exist.
406         * git-version-gen: We could perhaps drop support for versions from
407         more than a decade ago.  But tightening the pattern match is easy
408         enough, so do that.  Still breaks when you use version tags ending in
409         something matching -g????, but you arguably get what you deserve then.
411 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
413         valgrind-tests: use ls, and cache
414         * m4/valgrind-tests.m4: Test ls, not bash.
415         Problem reported by Reuben Thomas.
416         Also, cache the result so that it can be overridden.
418 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
420         manywarnings: port to 64-bit GCC builds of Emacs
421         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
422         object size rather than hardwiring 2147483647.  This is needed to
423         build GNU Emacs, which has one conditional (and used
424         only-in-theory) call to malloc with a literal greater than
425         2147483647.
427 2017-08-04  Bruno Haible  <bruno@clisp.org>
429         Relax the license of some modules with no runtime code.
430         * modules/std-gnu11 (License): Set to 'unlimited'.
431         * modules/c99 (License): Likewise.
432         Reported by Reuben Thomas <rrt@sc3d.org>.
433         * modules/d-ino (License): Set to 'LGPL'.
434         * modules/host-os (License): Likewise.
435         * modules/longlong (License): Likewise.
437 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
439         renameat2: port to RHEL 7 + NFS
440         * lib/renameat2.c (renameat2) [SYS_renameat2]:
441         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
442         http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00082.html
444 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
446         renameat2: port to non-renameat platforms
447         Problem reported for MSVC-2015 by Gisle Vanem in:
448         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00001.html
449         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
450         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
452 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
454         manywarnings: port to 32-bit GCC bug
455         Problem reported by Pino Toscano in:
456         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00150.html
457         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
458         not 2**63 - 1, to work around the following GCC bug:
459         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
461 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
463         backupfile: new function to validate backup suffix
464         * lib/backupfile.c (set_simple_backup_suffix): New function.
465         (backupfile_internal): Use it.
467         canonicalize: fix EOVERFLOW commentary
468         Problem reported by Bruno Haible in:
469         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00147.html
470         * lib/canonicalize.c (canonicalize_filename_mode):
471         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
473         Don't interpret EOVERFLOW to mean nonexistence
474         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
475         may be EOVERFLOW; this is likely more useful than reporting the
476         stat errno.
477         * lib/glob.c (link_stat): Rename from link_exists2_p and
478         return -1/0 instead of 0/1.  Caller changed.
479         * lib/glob.c (link_exists_p):
480         * lib/renameat2.c (rename_noreplace, renameat2):
481         * lib/tempname.c (try_nocreate):
482         If errno == EOVERFLOW then the directory entry exists, so do not
483         act as if it does not exist.
485         backup-rename: new module
486         It is like backupfile, except it avoids some race conditions,
487         and it does not output to stderr or exit.
488         * MODULES.html.sh: Add backup-rename.
489         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
490         * modules/backup-rename: New files.
491         * lib/backupfile.c: Turn this into an internals file, which
492         contains code common to backupfile and backup_rename.  Include
493         backupfile-internal.h instead of backupfile.h.  Do not include
494         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
495         renameat2.h and fcntl.h.
496         (BACKUP_NOMEM): New constant.
497         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
498         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
499         (backupfile_internal): Rename from find_backup_file_name.
500         Support new arg RENAME.
501         (backup_args, backup_types, get_version, xget_version):
502         Move to lib/backup-find.c.
503         * lib/backupfile.h (backup_file_rename): New decl.
504         * modules/backupfile (Files): Add lib/backup-internal.h,
505         lib/backup-find.c.
506         (Depends-on): Add dirfd, fcntl, renameat2.
507         (lib_SOURCES): Add backup-find.c.
509         renameat2: port better to older Solaris
510         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
511         Add goto to use a label, to silence picky compilers.
513         fts-tests: port to gcc -Wwrite-strings
514         * tests/test-fts.c (base, base_d): New static vars.
515         (argv, remove_tree, main): Use them.
517 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
519         relocatable-lib{,-lgpl}: improve documentation
520         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
521         Various other updates.
523 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
524             Bruno Haible  <bruno@clisp.org>
526         relocatable-lib{,-lgpl}: add Valgrind suppressions
527         * lib/relocatable.valgrind: New file.
528         * modules/relocatable-lib (Files): Add relocatable.valgrind.
529         * modules/relocatable-lib-lgpl: Likewise.
531 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
533         relocatable: Make the license on the sources the GPL.
534         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
535         LGPL, which was a special case so that the relocatable source files
536         could be used without gnulib-tool, to GPL. They can still be used under
537         the LGPL, using the --lgpl option to gnulib-tool.
539 2017-07-30  Bruno Haible  <bruno@clisp.org>
541         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
542         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
543         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
544         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
545         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
547 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
549         faccessat: document AT_SYMLINK_NOFOLLOW issue
550         * doc/posix-functions/faccessat.texi: Modernize platform list.
551         Document AT_SYMLINK_NOFOLLOW limitation.
553         renameat2: port to Solaris 10
554         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
555         with AT_SYMLINK_NOFOLLOW (which is not portable).
556         (renameat): Undef before using, to avoid endless recursion when
557         the replacement renameat calls renameat2 which calls the
558         replacement renameat.
559         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
560         * modules/renameat2 (Depends-on): Remove faccessat.
561         * modules/renameat-tests (test_renameat_LDADD):
562         * modules/renameat2-tests (test_renameat2_LDADD):
563         Remove $(LIB_EACCESS).
565         renameat2: new module
566         Although the Linux syscall renameat2 is not in glibc (yet?), it is
567         useful to have access to its RENAME_NOREPLACE flag.
568         * MODULES.html.sh (func_all_modules): Add renameat2.
569         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
570         * modules/renameat2-tests, tests/test-renameat2.c: New files.
571         * lib/renameat.c (renameat): Move most of the implementation
572         to renameat2, and just call renameat2.
573         * modules/renameat (Files): Remove lib/at-func2.c.
574         (Depends-on): Depend only on renameat2.
575         (Include): Remove <fcntl.h>.
576         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
577         since renameat (via renameat2) might use faccessat.
579 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
581         vc-list-files: Adjust the script to support git worktrees
582         * build-aux/vc-list-files: Require existence, not directory.
584 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
586         doc: bring MODULES.html.sh up to date
587         Somehow a few months ago we stopped updating MODULES.html.sh.
588         I don’t recall explicitly deciding this, so I updated it now.
589         Alternatively I suppose we could remove it.
590         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
591         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
592         truncate, utime, utime-h, windows-stat-inodes,
593         windows-stat-override, windows-stat-timespec, year2038.  Sort.
595 2017-07-26  Jim Meyering  <meyering@fb.com>
597         fprintftime: fix build-break caused by recent renaming
598         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
599         "strftime.c".
600         * modules/fprintftime: Depend directly on nstrftime.
602 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
604         regex: work with GCC7's -Werror=implicit-fallthrough=
605         * lib/regex_internal.h (FALLTHROUGH): New macro.
606         * lib/regcomp.c (peek_token_bracket, parse_expression):
607         * lib/regexec.c (check_node_accept): Use it.
609 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
611         fts: simplify fts_build
612         * lib/fts.c (fts_build): Simplify, and be lazier about
613         calling leaf_optimization.
615         fts: three levels of leaf optimization
616         * lib/fts.c (enum leaf_optimization): New type with three values.
617         (S_MAGIC_AFS): New macro.  Sort them.
618         (leaf_optimization): Rename from leaf_optimization_applies, and
619         return enum leaf_optimization instead of bool.  All uses changed.
620         Add cases for unknown type and for AFS.
621         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
623         fts: cache dirent_inode_sort_may_be_useful too
624         * lib/fts.c (struct dev_type): New struct.
625         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
626         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
627         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
628         Now takes FTSENT const *, not int.  All uses changed.  Use
629         filesystem_type to cache.
630         (link_count_optimize_ok): Remove.  Caller changed to use
631         leaf_optimization_applies, which now uses shared cache.
633         fts: introduce MIN_DIR_NLINK
634         * lib/fts.c (MIN_DIR_NLINK): New constant.
635         Use it instead of 2, whenever we are talking about link counts.
637         fts: nlink_t signedness fixups
638         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
639         so that root need not be a special case later.
640         (fts_read): Remove now-redundant test for fts_level.
641         Do not assume that nlink_t is signed.
642         (fts_build): Remove useless decrement of nlinks.
643         (fts_stat): Avoid unlikely signed integer overflow later, if
644         nlink_t is signed.
646         fts-tests: new module
647         * modules/fts-tests, tests/test-fts.c: New files.
649 2017-07-23  Bruno Haible  <bruno@clisp.org>
651         Rename module 'strftime' to 'nstrftime'.
652         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
653         * lib/nstrftime.c: Renamed from lib/strftime.c.
654         * modules/nstrftime: Renamed from modules/strftime.
655         (Files, Makefile.am): Update.
656         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
657         Fix comment.
658         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
659         (Files, Makefile.am): Update.
660         * modules/strftime: New file, an obsolete indirection.
661         * doc/posix-functions/strftime.texi: Update reference.
662         * config/srclist.txt: Update info.
663         * NEWS: Mention the change.
665 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
667         malloca: Silence a warning from clang's memory sanitizer.
668         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
669         (freea): Use it.
671 2017-07-18  Bruno Haible  <bruno@clisp.org>
673         host-cpu-c-abi: Fix detection of MIPS ABI.
674         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
675         ABI, not the CPU instruction set.
677 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
679         explicit_bzero: new module
680         The explicit_bzero function has been added to glibc.
681         This module is intended to supports its use in GNU programs.
682         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
683         * m4/explicit_bzero.m4, modules/explicit_bzero:
684         New files.
685         * doc/gnulib.texi (Glibc string.h): Link to new doc.
686         * lib/string.in.h (explicit_bzero): Declare.
687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
688         * modules/string (string.h): Substitute its vars.
690 2017-07-16  Bruno Haible  <bruno@clisp.org>
692         threadlib: Support static linking.
693         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
694         set gl_cv_have_weak to 'no'.
696 2017-07-16  Bruno Haible  <bruno@clisp.org>
698         unicase/locale-language: Fix link dependencies.
699         * modules/unicase/locale-language (Link): New section.
700         * modules/unicase/locale-language-tests (Makefile.am): Link
701         test-locale-language program with $(LIBTHREAD).
703 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
705         sys_socket: Add support for OpenVMS.
706         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
707         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
709 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
711         sys_resource: Add support for OpenVMS.
712         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
713         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
715 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
716             Bruno Haible  <bruno@clisp.org>
718         math: Add support for OpenVMS.
719         * lib/math.in.h [__VMS]: Include <fp.h>.
720         * doc/posix-headers/math.texi: Mention OpenVMS issues.
722 2017-07-15  Bruno Haible  <bruno@clisp.org>
724         getdtablesize: Add minimal support for OpenVMS.
725         Reported by John E. Malmberg <wb8tyw@qsl.net>.
726         * modules/getdtablesize (Description): Fix.
727         * lib/getdtablesize.c: Fix comment.
728         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
729         getdtablesize() function, even though the test fails.
730         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
731         limitation on OpenVMS.
733 2017-07-13  Bruno Haible  <bruno@clisp.org>
735         Revisit cross-compilation guesses.
736         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
738 2017-07-13  Bruno Haible  <bruno@clisp.org>
740         Improve cross-compilation guesses for native Windows.
741         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
742         Windows.
743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
744         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
745         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
746         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
747         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
748         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
749         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
750         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
751         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
752         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
753         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
754         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
755         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
756         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
757         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
758         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
759         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
761         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
762         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
763         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
764         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
765         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
766         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
767         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
768         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
769         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
770         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
771         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
772         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
773         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
774         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
775         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
776         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
777         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
778         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
779         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
780         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
781         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
782         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
783         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
785         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
786         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
787         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
788         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
789         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
790         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
791         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
792         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
793         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
794         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
795         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
796         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
797         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
798         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
799         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
800         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
801         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
802         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
804         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
805         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
806         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
807         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
809         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
810         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
811         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
812         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
813         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
814         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
815         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
816         * m4/regex.m4 (gl_REGEX): Likewise.
817         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
818         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
819         gl_FUNC_REMAINDERF_WORKS): Likewise.
820         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
821         gl_FUNC_REMAINDERL_WORKS): Likewise.
822         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
823         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
824         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
825         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
826         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
827         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
828         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
829         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
830         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
831         * m4/stdint.m4 (gl_STDINT_H): Likewise.
832         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
833         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
834         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
835         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
836         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
837         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
838         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
839         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
840         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
841         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
842         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
843         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
844         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
845         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
846         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
847         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
848         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
849         Likewise.
850         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
851         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
852         Windows. Enable also on Autoconf 2.70.
853         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
854         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
855         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
856         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
857         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
858         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
859         for native Windows.
860         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
861         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
863 2017-07-13  Bruno Haible  <bruno@clisp.org>
865         Improve cross-compilation guesses for native Windows.
866         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
867         Windows.
868         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
869         memchr.m4.
870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
872 2017-07-13  Bruno Haible  <bruno@clisp.org>
874         Improve cross-compilation guesses for native Windows.
875         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
876         native Windows.
877         (gl_FUNC_FFLUSH): Update accordingly.
878         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
879         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
881 2017-07-11  Bruno Haible  <bruno@clisp.org>
883         More systematic m4 quoting and indentation.
884         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
885         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
886         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
888         * m4/host-os.m4 (gl_HOST_OS): Likewise.
889         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
890         gl_WINSIZE_IN_PTEM): Likewise.
891         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
892         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
893         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
894         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
895         Correct indentation.
896         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
897         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
898         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
900         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
901         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
903 2017-07-10  Bruno Haible  <bruno@clisp.org>
905         round, roundf: Avoid compiler warning in configure test.
906         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
907         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
909 2017-07-10  Bruno Haible  <bruno@clisp.org>
911         getlogin tests: Avoid #ifdefs when sharing code between modules.
912         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
913         * modules/getlogin-tests (Files): Likewise. Remove
914         tests/test-getlogin_r.c.
915         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
916         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
917         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
918         getlogin().
920 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
922         getlogin: don’t assume one name per uid
923         Problem reported by Wolfgang F. Muthmann (Bug#27640).
924         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
925         (ttyname): Remove test.
926         * modules/getlogin_r-tests (ttyname): Remove test.
927         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
928         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
929         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
930         getlogin rather than getlogin_r.  This avoids code duplication.
931         (main): Use isatty and fstat rather than ttyname and stat.
932         Use getpwnam instead of getpwuid, to be portable to test platforms
933         that have multiple login names for the same uid.
935 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
936             Bruno Haible  <bruno@clisp.org>
938         glob: Fix more memory leaks.
939         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
940         returning.
941         Reported by Tim Rühsen.
943 2017-07-10  Bruno Haible  <bruno@clisp.org>
945         Make sure $host and $host_os are defined when used.
946         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
947         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
948         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
949         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
950         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
951         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
952         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
953         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
954         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
955         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
956         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
957         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
958         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
959         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
960         m4_ifdef block.
962 2017-07-09  Bruno Haible  <bruno@clisp.org>
964         *printf: Fix cross-compilation guess for Solaris.
965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
966         2010-12-21.
968 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
969             Bruno Haible  <bruno@clisp.org>
971         vasnprintf: port to macOS 10.13
972         Problem reported by comex in:
973         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html
974         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
976 2017-07-06  Bruno Haible  <bruno@clisp.org>
978         imaxdiv tests: Fix logic.
979         * tests/test-imaxdiv.c (main): Use == instead of =.
980         Reported by Coverity.
982 2017-07-06  Bruno Haible  <bruno@clisp.org>
984         uninorm/filter: Fix use-after-free bug.
985         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
986         sortbuf == filter->sortbuf invariant.
987         Reported by Coverity.
989 2017-07-06  Bruno Haible  <bruno@clisp.org>
991         glob: Fix more memory leaks.
992         * lib/glob.c (glob): Free dirname before returning.
993         Reported by Coverity and Tim Rühsen.
995 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
997         parse-datetime: fix uninit var bug
998         Reported by Bruno Haible in:
999         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00038.html
1000         * lib/parse-datetime.y (parse_datetime2): Do not use
1001         uninitialized.
1003 2017-07-05  Bruno Haible  <bruno@clisp.org>
1005         doc: Update for MSVC 14.
1006         * doc/posix-headers/*.texi: Add info about MSVC 14.
1007         * doc/posix-functions/*.texi: Likewise.
1008         * doc/pastposix-functions/*.texi: Likewise.
1009         * doc/glibc-headers/*.texi: Likewise.
1010         * doc/glibc-functions/*.texi: Likewise.
1012 2017-07-05  Bruno Haible  <bruno@clisp.org>
1014         sched: Fix build failure on native Windows (regression from 2017-06-19).
1015         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
1017 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
1019         stdioext: Port to OpenVMS.
1020         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
1021         * lib/fpending.c (fpending): Remove non-working VMS specific code.
1022         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
1023         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
1024         * lib/fpurge.c (fpurge): Likewise.
1025         * lib/freadable.c (freadable): Likewise.
1026         * lib/freadahead.c (freadahead): Likewise.
1027         * lib/freading.c (freading): Likewise.
1028         * lib/freadptr.c (freadptr): Likewise.
1029         * lib/freadseek.c (freadseek): Likewise.
1030         * lib/fseeko.c (fseeko): Likewise.
1031         * lib/fseterr.c (fseterr): Likewise.
1032         * lib/fwritable.c (fwriteable): Likewise.
1033         * lib/fwriting.c (fwriting): Likewise.
1035 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
1037         glob: Declare variables at the very start of their scope.
1038         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
1039         its separate scope, so the functions will compile on Haiku.
1041 2017-07-01  Bruno Haible  <bruno@clisp.org>
1043         logbl: Work around a glibc bug on PowerPC64LE.
1044         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
1045         numbers.
1046         * doc/posix-functions/logbl.texi: Update.
1048 2017-06-29  Bruno Haible  <bruno@clisp.org>
1050         stat, fstat: Compile stat-w32.c only on platforms that need it.
1051         Suggested by Paul Eggert.
1052         * modules/stat (configure.ac): Request stat-w32.o only on native
1053         Windows.
1054         * modules/fstat (configure.ac): Likewise.
1056 2017-06-25  Bruno Haible  <bruno@clisp.org>
1058         stat: Improve last change.
1059         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
1061 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1063         stat: port to xlc 12.01
1064         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
1065         12.01 complains "Compilation unit is empty."
1067 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
1069         xalloc-oversized: port to icc
1070         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
1071         __builtin_mul_overflow if ICC is defined, as this results in
1072         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
1073         20170213.
1075 2017-06-19  Bruno Haible  <bruno@clisp.org>
1077         classpath: Avoid including config.h twice, as it produces warnings.
1078         Reported by John E. Malmberg <wb8tyw@gmail.com>.
1079         * lib/classpath.h: Conditionalize the include of config.h.
1081 2017-06-19  Bruno Haible  <bruno@clisp.org>
1082             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
1084         sched: Fix compilation failure on OpenVMS.
1085         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
1086         test whether <pthread.h> exists and defines struct sched_param.
1087         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
1089 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1091         diffseq: port to GCC 7 with --enable-gcc-warnings
1092         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
1093         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
1094         not complain about big_snake being defined but not used.
1096 2017-06-15  Bruno Haible  <bruno@clisp.org>
1098         gettext-h: Update theoretical condition for use of variable size arrays.
1099         Reported by Paul Eggert.
1100         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
1101         to include the theoretical condition for availability of variable size
1102         arrays, if we could trust the value of __STDC_VERSION__.
1104 2017-06-12  Bruno Haible  <bruno@clisp.org>
1106         Relicense some modules under LGPLv2+.
1107         Daiki Ueno's approval is in
1108         https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00058.html.
1109         * modules/uniwidth/base (License): Change to LGPLv2+.
1110         * modules/uniwidth/width (License): Likewise.
1112 2017-06-11  Bruno Haible  <bruno@clisp.org>
1114         localename: Fix test failure on DragonFly BSD.
1115         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
1116         like FreeBSD.
1118 2017-06-11  Bruno Haible  <bruno@clisp.org>
1120         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
1121         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
1122         * lib/float.in.h: Likewise.
1123         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
1125 2017-06-11  Bruno Haible  <bruno@clisp.org>
1127         gnulib-tool: Clean up after autotools.
1128         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
1129         useless directory left over by the Autotools.
1131 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1133         getopt-posix: port to glibc 2.25.90
1134         Problem reported by Daniel P. Berrange in:
1135         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html
1136         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
1137         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
1138         #undef if __GETOPT_PREFIX is defined.
1140 2017-06-11  Bruno Haible  <bruno@clisp.org>
1142         strtod-obsolete: Fix license.
1143         * modules/strtod-obsolete (License): Change to LGPL.
1145 2017-06-10  Jim Meyering  <meyering@fb.com>
1147         maint: update to work with GCC7's -Werror=implicit-fallthrough=
1148         * lib/savewd.c (FALLTHROUGH): Define.
1149         (savewd_save, savewd_restore): Use this, rather than a comment,
1150         whenever one switch case falls through into the next.
1152 2017-06-08  Bruno Haible  <bruno@clisp.org>
1154         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
1155         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
1156         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
1157         case.
1159 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
1161         doc: remove robots, add prereqs
1162         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
1163         builds.  Simon's robot site does not seem to be up, so remove
1164         mentions of it for now.
1166 2017-06-08  Bruno Haible  <bruno@clisp.org>
1168         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
1169         * gnulib-tool (func_symlink_target): New function, extracted from
1170         func_symlink.
1171         (func_symlink, func_symlink_if_changed): Use it.
1173 2017-06-08  Bruno Haible  <bruno@clisp.org>
1175         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
1176         * gnulib-tool (func_ln_s): Determine cp_src correctly.
1178 2017-06-07  Bruno Haible  <bruno@clisp.org>
1180         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
1181         Reported by John E. Malmberg <wb8tyw@gmail.com> in
1182         <https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>.
1183         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
1184         override, pass 2 arguments to getcwd, not 3.
1186 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
1188         same-inode: port better to VMS 8.2 and later
1189         Problem reported by John E. Malmberg in:
1190         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html
1191         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
1192         Use the usual POSIX definition.
1193         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
1195 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1197         error: fix POSIX violation for va_end
1198         Problem reported by Bruno Haible in:
1199         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html
1200         * lib/error.c (error_tail): Do not call va_end here.
1201         (error, error_at_line): Call it here instead.
1203 2017-05-28  Bruno Haible  <bruno@clisp.org>
1205         c-strtod: Make it usable in C++ mode.
1206         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
1208 2017-05-25  Jim Meyering  <meyering@fb.com>
1210         quotearg: fix compilation failure due to FALLTHROUGH misuse
1211         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
1212         macro back to /* fall through */ comment.  The macro can apply only
1213         to a following case statement.  Reported by Assaf Gordon.
1215 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1217         intprops: port to recent icc
1218         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
1219         but does not support __builtin_add_overflow etc.
1220         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
1221         Define to 0.
1223 2017-05-23  Karl Berry  <karl@freefriends.org>
1225         * config/srclist.txt (iconv.m4): sync broken, comment out
1226         until (hopefully) the next gettext release.
1228 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1230         Remove repeated words in comments.
1232 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
1234         fallthrough: reinstate a FALLTHROUGH instance in quotearg
1235         quotearg.c: Reinstate this instance which is significant
1236         when the if branch is not taken.
1238 2017-05-21  Bruno Haible  <bruno@clisp.org>
1240         gnulib-tool: Add options to create hard links.
1241         * gnulib-tool (func_usage): Document options --hardlink,
1242         --local-hardlink, --more-hardlinks.
1243         (func_symlink): Renamed from func_ln.
1244         (func_symlink_if_changed): Renamed from func_ln_if_changed.
1245         (func_hardlink): New function.
1246         (copymode, lcopymode): New variables.
1247         (symbolic, lsymbolic): Remove variables.
1248         (Options): Implement options --hardlink, --local-hardlink,
1249         --more-hardlinks.
1250         (func_should_link): Renamed from func_should_symlink. Set copyaction.
1251         (func_add_file, func_update_file): Update invocation of
1252         func_should_link. Invoke func_hardlink when appropriate.
1253         (func_import): Update comments.
1254         (func_create_testdir): Update invocation of func_should_link. Invoke
1255         func_hardlink when appropriate.
1256         Finally, invoke 'git update-index --refresh' to mitigate the effects of
1257         the hard links on git.
1259 2017-05-20  Bruno Haible  <bruno@clisp.org>
1261         argp: Simplify bit manipulation.
1262         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
1263         on a signed integer type.
1265 2017-05-20  Bruno Haible  <bruno@clisp.org>
1267         Avoid wrong configure results with gcc -fsanitize=address.
1268         This completes the work done on 2016-02-06 on this topic.
1269         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
1270         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1272         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1273         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
1274         returning.
1275         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1276         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1277         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1278         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1279         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1280         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
1282         free allocated memory before returning.
1283         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1284         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
1285         objects before returning.
1286         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
1287         returning.
1289 2017-05-20  Bruno Haible  <bruno@clisp.org>
1291         gnulib-tool: Don't create hard links between gnulib and its testdirs.
1292         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
1294 2017-05-20  Bruno Haible  <bruno@clisp.org>
1296         argp, tsearch tests: Fix file list.
1297         * modules/argp-tests (Files): Add tests/macros.h.
1298         * modules/tsearch-tests (Files): Likewise.
1300 2017-05-20  Bruno Haible  <bruno@clisp.org>
1302         getopt-posix tests: Remove redundant include.
1303         * tests/test-getopt.h: Don't include "macros.h". It's already included
1304         by tests/test-getopt-main.h.
1306 2017-05-19  Jim Meyering  <meyering@fb.com>
1308         dfa: two small simplifications
1309         * lib/dfa.c (build_state): Avoid repeating longer expressions.
1311 2017-05-18  Jim Meyering  <meyering@fb.com>
1313         fallthrough: update for GCC 7/8
1314         * lib/quotearg.c (FALLTHROUGH): New macro.
1315         Use it whenever one switch case falls through into the next,
1316         replacing "/* Fall through */" comments.  This exposed one
1317         instance of an unwarranted "fall through" comment: unwarranted
1318         because it preceded a "goto" label not a case statement.
1319         * lib/freopen-safer.c (freopen_safer): Likewise.
1320         * lib/fts.c (leaf_optimization_applies): Likewise.
1321         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
1322         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
1323         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
1324         tests/macros.h for the definition.
1325         * tests/test-argp.c (group1_parser): Likewise.
1326         * tests/test-getopt.h (getopt_loop): Likewise.
1328 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1330         argp: fix shift bug
1331         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
1332         behavior on shift overflow, caught by gcc -fsanitize=undefined.
1334         argp: fix pointer-subtraction bug
1335         * lib/argp-help.c (hol_append): Don’t subtract pointers to
1336         different arrays, as this can run afoul of -fcheck-pointer-bounds.
1337         See the thread containing Bruno Haible’s report in:
1338         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00171.html
1340 2017-05-19  Bruno Haible  <bruno@clisp.org>
1342         printf-posix tests: Avoid test failure with "gcc --coverage".
1343         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1344         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
1345         than 5000000.
1346         * tests/test-fprintf-posix2.c (main): Likewise.
1348 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1350         closeout: don’t close stderr when sanitizing
1351         * NEWS: Document this.
1352         * lib/closeout.c (__has_feature): New macro, if not already defined.
1353         (SANITIZE_ADDRESS): New constant.
1354         (close_stdout): Don’t close stderr if sanitizing addresses.
1356 2017-05-19  Bruno Haible  <bruno@clisp.org>
1358         get-rusage-data tests: Avoid failure on Linux/glibc.
1359         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
1360         on glibc systems.
1362 2017-05-18  Bruno Haible  <bruno@clisp.org>
1364         localename: Include necessary header files on Cygwin.
1365         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
1366         where NL_LOCALE_NAME is defined.
1368 2017-05-18  Bruno Haible  <bruno@clisp.org>
1370         gettext: Update macros from gettext git.
1371         * m4/intldir.m4: Require Autoconf >= 2.60.
1372         * m4/progtest.m4: Fix typos in copyright notice.
1374 2017-05-18  Bruno Haible  <bruno@clisp.org>
1376         copy-file tests: Fix link error (regression from 2017-05-01).
1377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1378         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
1379         $(LIB_CLOCK_GETTIME).
1381 2017-05-18  Bruno Haible  <bruno@clisp.org>
1383         unicase/special-casing: Fix incompatibility with gperf-3.0.4
1384         (regression from 2017-02-13).
1385         * lib/unicase/special-casing.in.h: Renamed from
1386         lib/unicase/special-casing.h.
1387         * modules/unicase/special-casing (Files): Add
1388         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
1389         (Makefile.am): Add rule for generating unicase/special-casing.h.
1390         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
1391         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
1392         not "special-casing.h".
1393         * lib/unicase/u*.c: Likewise.
1395 2017-05-17  Bruno Haible  <bruno@clisp.org>
1397         README: Don't ask people to read a TeXinfo file.
1398         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1399         * README: Tell people how to read the HTML formatted manual.
1401 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
1403         parse-datetime: Fix memleak
1404         * lib/parse-datetime.y (parse_datetime2): Cleanup on
1405         localtime_rz() failure.
1407 2017-05-16  Bruno Haible  <bruno@clisp.org>
1409         javacomp: Fix handle leak.
1410         Found by Coverity.
1411         * lib/javacomp.c (get_classfile_version): Close fd before returning.
1413 2017-05-16  Bruno Haible  <bruno@clisp.org>
1415         relocate: Make it easier to reclaim allocated memory.
1416         * lib/relocatable.h (relocate2): New declaration/macro.
1417         * lib/relocatable.c (relocate2): New function.
1418         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
1419         relocate2 function.
1420         * lib/localcharset.c (relocate2): Define fallback.
1421         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
1422         allocated memory.
1423         * lib/javaversion.c (relocate2): Define fallback.
1424         (javaexec_version): Invoke relocate2 instead of relocate. Free the
1425         allocated memory.
1427 2017-05-16  Bruno Haible  <bruno@clisp.org>
1429         relocate: Simplify EMX specific code.
1430         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
1431         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
1433 2017-05-16  Bruno Haible  <bruno@clisp.org>
1435         sigpipe tests: Fix file list.
1436         * modules/sigpipe-tests (Files): Add tests/macros.h.
1438 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1440         manywarnings: update for GCC 7
1441         * build-aux/gcc-warning.spec:
1442         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1443         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
1444         requires a non-comment fallthrough attribute.  This is a bit
1445         cleaner than the comment versions.
1446         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
1447         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
1448         Use it whenever one switch case falls through into the next.
1449         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
1450         Use FALLTHROUGH macro.
1452 2017-05-15  Bruno Haible  <bruno@clisp.org>
1454         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
1455         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
1456         @ALLOCA@, not @LTALLOCA@.
1458 2017-05-15  Bruno Haible  <bruno@clisp.org>
1460         sys_select: Avoid "was expanded before it was required" warning.
1461         * modules/sys_select (configure.ac): Require, not invoke,
1462         gl_HEADER_SYS_SELECT.
1464 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1466         gnulib-tool: improve GNU Make debugging
1467         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
1468         Report autoconf diagnostics when it fails, in the output makefile.
1470 2017-05-14  Bruno Haible  <bruno@clisp.org>
1472         stat-time tests: Improve comment.
1473         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
1475 2017-05-14  Bruno Haible  <bruno@clisp.org>
1477         same-inode: Adapt for windows-stat-inodes.
1478         * lib/same-inode.h: Include <sys/types.h>.
1479         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
1480         * modules/same-inode (Depends-on): Add sys_types.
1482 2017-05-14  Bruno Haible  <bruno@clisp.org>
1484         windows-stat-inodes: New module.
1485         * m4/windows-stat-inodes.m4: New file.
1486         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
1487         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
1488         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
1489         (_GL_WINDOWS_STAT_INODES): New macro.
1490         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
1491         (GetFileInformationByHandleExFunc): New variable.
1492         (initialize): Initialize it.
1493         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
1494         st_ino appropriately.
1495         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
1496         a fallback, because it does not provide st_dev and st_ino values.
1497         * modules/fstat (Depends-on): Add 'verify'.
1498         * modules/windows-stat-inodes: New file.
1499         * doc/windows-stat-inodes.texi: New file.
1500         * doc/gnulib.texi: Include it.
1501         * doc/posix-headers/sys_stat.texi: Mention the new module.
1503 2017-05-14  Bruno Haible  <bruno@clisp.org>
1505         stat-time tests: Workaround for native Windows.
1506         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
1507         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
1508         New variables.
1509         (initialize_filenames): New function.
1510         (main): Invoke it.
1511         (cleanup, prepare_test): Update.
1513 2017-05-14  Bruno Haible  <bruno@clisp.org>
1515         stat-time: Adapt for windows-stat-timespec.
1516         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
1517         entire st_ctim field.
1519 2017-05-13  Jim Meyering  <meyering@fb.com>
1521         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
1522         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
1523         file that uses the assume macro, claiming that verify.h is unused.
1525 2017-05-13  Bruno Haible  <bruno@clisp.org>
1527         Use symbolic values for _WIN32_WINNT.
1528         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
1529         * lib/sethostname.c (_WIN32_WINNT): Likewise.
1531 2017-05-13  Bruno Haible  <bruno@clisp.org>
1533         year2038: New module.
1534         * m4/year2038.m4: New file.
1535         * modules/year2038: New file.
1536         * doc/year2038.texi: New file.
1537         * doc/gnulib.texi: Include it.
1539 2017-05-13  Bruno Haible  <bruno@clisp.org>
1541         largefile: Simplify.
1542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
1543         of _GL_WINDOWS_64_BIT_ST_SIZE.
1545 2017-05-13  Bruno Haible  <bruno@clisp.org>
1547         largefile: Improve and document.
1548         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
1549         the mingw headers already define 'stat' appropriately.
1550         * modules/largefile (Description): Clarify.
1551         * doc/largefile.texi: New file.
1552         * doc/gnulib.texi: Include it.
1553         * doc/posix-headers/sys_types.texi: Update.
1555 2017-05-13  Bruno Haible  <bruno@clisp.org>
1557         truncate: New module.
1558         * lib/unistd.in.h (truncate): New declaration.
1559         * lib/truncate.c: New file.
1560         * m4/truncate.m4: New file.
1561         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
1562         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
1563         REPLACE_TRUNCATE.
1564         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
1565         HAVE_TRUNCATE, REPLACE_TRUNCATE.
1566         * modules/truncate: New file.
1567         * tests/test-unistd-c++.cc (truncate): Test signature.
1568         * doc/posix-functions/truncate.texi: Mention the new module.
1570         * tests/test-truncate.c: New file.
1571         * modules/truncate-tests: New file.
1573 2017-05-13  Bruno Haible  <bruno@clisp.org>
1575         windows-stat-timespec: New module.
1576         * modules/windows-stat-timespec: New file.
1577         * m4/windows-stat-timespec.m4: New file.
1578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
1579         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
1580         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
1581         fields st_atim, st_mtim, st_ctim.
1582         (st_atime, st_mtime, st_ctime): Define as macros.
1583         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
1584         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
1585         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
1586         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
1587         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
1588         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
1589         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
1590         FILETIME to 'struct timespec', not 'time_t'.
1591         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
1592         FILETIME to 'struct timespec', not 'time_t'.
1593         * lib/stat-time.h (STAT_TIMESPEC): Define also if
1594         _GL_WINDOWS_STAT_TIMESPEC.
1595         * doc/windows-stat-timespec.texi: New file.
1596         * doc/gnulib.texi: Include it.
1598 2017-05-13  Bruno Haible  <bruno@clisp.org>
1600         windows-stat-override: New module.
1601         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
1602         definition. Define GNULIB_defined_struct_stat.
1603         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
1604         link error if this symbol is used and the corresponding module is not
1605         in use.
1606         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
1607         GNULIB_OVERRIDES_STRUCT_STAT.
1608         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1609         GNULIB_OVERRIDES_STRUCT_STAT.
1610         * modules/sys_stat (Makefile.am): Substitute
1611         GNULIB_OVERRIDES_STRUCT_STAT.
1612         * modules/windows-stat-override: New file.
1614 2017-05-13  Bruno Haible  <bruno@clisp.org>
1616         fstat: Fix module dependency conditions.
1617         * modules/fstat (Depends-on): Fix typo.
1619 2017-05-13  Bruno Haible  <bruno@clisp.org>
1621         stat, fstat: Complete removal of old native Windows code.
1622         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
1623         * lib/fstat.c: Likewise.
1624         * lib/stat-w32.c: Likewise.
1626 2017-05-13  Bruno Haible  <bruno@clisp.org>
1628         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
1629         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
1631 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1633         getopt-posix: port to mingw
1634         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
1635         Problem reported by Daniel P. Berrage in:
1636         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
1638 2017-05-11  Bruno Haible  <bruno@clisp.org>
1640         gettimeofday: Increase precision on mingw.
1641         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
1642         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
1643         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
1644         GetSystemTimePreciseAsFileTime based implementation always.
1645         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
1646         mingw.
1648 2017-05-11  Bruno Haible  <bruno@clisp.org>
1650         poll: Fix confusion between SOCKETs and FDs on native Windows.
1651         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
1652         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
1654 2017-05-11  Bruno Haible  <bruno@clisp.org>
1656         doc: Clarify doc about socket functions on native Windows.
1657         This reworks doc that was added on 2008-09-29.
1658         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
1659         clearer wording.
1660         * doc/posix-functions/accept.texi: Use clearer wording.
1661         * doc/posix-functions/bind.texi: Likewise.
1662         * doc/posix-functions/connect.texi: Likewise.
1663         * doc/posix-functions/getpeername.texi: Likewise.
1664         * doc/posix-functions/getsockname.texi: Likewise.
1665         * doc/posix-functions/getsockopt.texi: Likewise.
1666         * doc/posix-functions/ioctl.texi: Likewise.
1667         * doc/posix-functions/listen.texi: Likewise.
1668         * doc/posix-functions/recv.texi: Likewise.
1669         * doc/posix-functions/recvfrom.texi: Likewise.
1670         * doc/posix-functions/send.texi: Likewise.
1671         * doc/posix-functions/sendto.texi: Likewise.
1672         * doc/posix-functions/setsockopt.texi: Likewise.
1673         * doc/posix-functions/shutdown.texi: Likewise.
1674         * doc/posix-functions/socket.texi: Likewise.
1676 2017-05-10  Bruno Haible  <bruno@clisp.org>
1678         poll: Fix link error on native Windows.
1679         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
1681 2017-05-10  Bruno Haible  <bruno@clisp.org>
1683         time: Fix missing initialization of HAVE_TIMEZONE_T.
1684         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
1685         here...
1686         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
1687         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
1688         gl_HEADER_SYS_TIME_H_DEFAULTS.
1689         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
1690         (configure.ac): Remove useless quoting.
1692 2017-05-10  Bruno Haible  <bruno@clisp.org>
1694         Implement a way to opt out from MSVC support, part 2.
1695         * modules/msvc-inval (Include): Document recommended idiom.
1696         * modules/msvc-nothrow (Include): Likewise.
1698         Implement a way to opt out from MSVC support.
1699         This is useful for Emacs.
1700         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
1701         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
1702         * lib/error.c: Likewise.
1703         * lib/fcntl.c: Likewise.
1704         * lib/flock.c: Likewise.
1705         * lib/fstat.c: Likewise.
1706         * lib/fsync.c: Likewise.
1707         * lib/ioctl.c: Likewise.
1708         * lib/isapipe.c: Likewise.
1709         * lib/lseek.c: Likewise.
1710         * lib/nonblocking.c: Likewise.
1711         * lib/poll.c: Likewise.
1712         * lib/select.c: Likewise.
1713         * lib/sockets.h: Likewise.
1714         * lib/sockets.c: Likewise.
1715         * lib/stdio-read.c: Likewise.
1716         * lib/stdio-write.c: Likewise.
1717         * lib/utimens.c: Likewise.
1718         * lib/w32sock.h: Likewise.
1719         * lib/w32spawn.h: Likewise.
1720         * tests/test-cloexec.c: Likewise.
1721         * tests/test-dup-safer.c: Likewise.
1722         * tests/test-dup2.c: Likewise.
1723         * tests/test-dup3.c: Likewise.
1724         * tests/test-fcntl.c: Likewise.
1725         * tests/test-pipe.c: Likewise.
1726         * tests/test-pipe2.c: Likewise.
1727         * lib/ftruncate.c: Likewise.
1728         (chsize_nothrow): Renamed from chsize.
1729         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
1730         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1731         * lib/close.c: Likewise.
1732         * lib/dup.c: Likewise.
1733         * lib/fclose.c: Likewise.
1734         * lib/raise.c: Likewise.
1735         * tests/test-fgetc.c: Likewise.
1736         * tests/test-fputc.c: Likewise.
1737         * tests/test-fread.c: Likewise.
1738         * tests/test-fwrite.c: Likewise.
1739         * lib/getdtablesize.c: Likewise.
1740         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
1741         * lib/isatty.c: Don't include msvc-inval.h if
1742         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1743         Include <io.h> as an alternative to msvc-nothrow.h.
1744         * lib/read.c: Likewise.
1745         * lib/write.c: Likewise.
1746         * lib/dup2.c: Likewise.
1747         (dup2_nothrow): New function.
1748         (ms_windows_dup2): Use it.
1749         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
1750         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
1751         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1752         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1753         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
1754         * m4/read.m4 (gl_FUNC_READ): Likewise.
1755         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
1756         * doc/windows-without-msvc.texi: New file.
1757         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
1758         section.
1760 2017-05-10  Bruno Haible  <bruno@clisp.org>
1762         wait-process: Adjust native Windows support.
1763         * lib/wait-process.c: Use the usual condition for recognizing a native
1764         Windows platform.
1766 2017-05-10  Bruno Haible  <bruno@clisp.org>
1768         doc: New chapter "Native Windows Support".
1769         * doc/gnulib.texi (Native Windows Support): New chapter.
1770         * doc/windows-libtool.texi: Small wording changes.
1771         * doc/windows-sockets.texi: Small wording and formatting changes.
1773 2017-05-10  Bruno Haible  <bruno@clisp.org>
1775         doc: Move section "Library version handling".
1776         * doc/gnulib.texi: Move section "Library version handling"
1777         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
1779 2017-05-10  Bruno Haible  <bruno@clisp.org>
1781         doc: Move section "Running self-tests under valgrind".
1782         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
1783         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
1785 2017-05-10  Bruno Haible  <bruno@clisp.org>
1787         doc: New chapter "Build Infrastructure Modules".
1788         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
1790 2017-05-10  Bruno Haible  <bruno@clisp.org>
1792         Prepare for reordering sections in the manual.
1793         * doc/gnulib.texi: Move several sections to separate files. Include
1794         these files.
1795         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
1796         * doc/obsolete.texi: Likewise.
1797         * doc/extra-tests.texi: Likewise.
1798         * doc/transversal.texi: Likewise.
1799         * doc/namespace.texi: Likewise.
1800         * doc/check-version.texi: Likewise.
1801         * doc/windows-sockets.texi: Likewise.
1802         * doc/windows-libtool.texi: Likewise.
1803         * doc/licenses-texi.texi: Likewise.
1804         * doc/build-automation.texi: Likewise.
1805         * doc/c-locale.texi: Likewise.
1807 2017-05-10  Bruno Haible  <bruno@clisp.org>
1809         Fix instructions how to update manual on www.gnu.org.
1810         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
1812 2017-05-09  Bruno Haible  <bruno@clisp.org>
1814         tzset: Expand comment about TZ problem on native Windows.
1815         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
1816         Paul Eggert.
1817         * lib/ctime.c (rpl_ctime): Likewise.
1818         * lib/localtime.c (rpl_localtime): Likewise.
1819         * lib/mktime.c (mktime): Likewise.
1820         * lib/strftime-fixes.c (rpl_strftime): Likewise.
1821         * lib/wcsftime.c (rpl_wcsftime): Likewise.
1823 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1825         intprops: don’t depend on ‘verify’
1826         Problem reported by Ævar Arnfjörð Bjarmason in:
1827         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00054.html
1828         * lib/intprops.h: Do not include verify.h, and move compile-time
1829         checks from here ...
1830         * tests/test-intprops.c (main): ... to here, if they’re not here
1831         already.  Check widths of other standard integer types.
1832         * modules/intprops (Depends-on): Remove ‘verify’.
1834 2017-05-07  Bruno Haible  <bruno@clisp.org>
1836         utimens: On native Windows, support 100ns resolution also if fd < 0.
1837         * lib/utime.in.h: Include <time.h>.
1838         (_gl_utimens_windows): New declaration.
1839         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
1840         (utime): Invoke it.
1841         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
1842         instead of utime.
1843         * modules/utime (Depends-on): Add 'time'.
1845 2017-05-07  Bruno Haible  <bruno@clisp.org>
1847         utimens: Improve error code on native Windows.
1848         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
1849         error code EACCES, not EINVAL.
1851 2017-05-07  Bruno Haible  <bruno@clisp.org>
1853         utime: Handle more Windows error codes.
1854         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
1855         Based on explanations by Billy O'Neal.
1857 2017-05-05  Bruno Haible  <bruno@clisp.org>
1859         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
1860         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
1861         union.
1862         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
1863         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
1864         value of cipher->IV.
1866 2017-05-05  Bruno Haible  <bruno@clisp.org>
1868         wctype-h-c++-tests: Update.
1869         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
1871 2017-05-05  Bruno Haible  <bruno@clisp.org>
1873         wchar-c++-tests: Update.
1874         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
1876 2017-05-05  Bruno Haible  <bruno@clisp.org>
1878         utime-h-c++-tests: New module.
1879         * tests/test-utime-h-c++.cc: New file.
1880         (utime): Declare, missing since 2017-04-30.
1881         * modules/utime-h-c++-tests: New file.
1883 2017-05-05  Bruno Haible  <bruno@clisp.org>
1885         unistd-c++-tests: Update.
1886         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
1887         (read): Declare, missing since 2011-04-15.
1888         (sethostname): Declare, missing since 2011-12-03.
1890 2017-05-05  Bruno Haible  <bruno@clisp.org>
1892         time-c++-tests: Update.
1893         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
1894         (localtime, gmtime): Declare, missing since 2017-04-30.
1895         (ctime): Declare, missing since 2017-04-30.
1896         (strftime): Declare, missing since 2017-04-30.
1897         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
1898         2015-07-24.
1900 2017-05-05  Bruno Haible  <bruno@clisp.org>
1902         sys_resource-c++-tests: New module.
1903         * tests/test-sys_resource-c++.cc: New file.
1904         (getrusage): Declare, missing since 2012-04-13.
1905         * modules/sys_resource-c++-tests: New file.
1907 2017-05-05  Bruno Haible  <bruno@clisp.org>
1909         strings-c++-tests: New module.
1910         * tests/test-strings-c++.cc: New file.
1911         (ffs): Declare, missing since 2011-07-12.
1912         * modules/strings-c++-tests: New file.
1914 2017-05-05  Bruno Haible  <bruno@clisp.org>
1916         string-c++-tests: Update.
1917         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
1918         (ffsll): Declare, missing since 2011-07-15.
1920 2017-05-05  Bruno Haible  <bruno@clisp.org>
1922         stdlib-c++-tests: Update.
1923         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
1924         2011-10-18.
1925         (ptsname_r): Declare, missing since 2011-11-07.
1926         (qsort_r): Declare, missing since 2014-08-29.
1927         (random, srandom, initstate, setstate): Declare, missing since
1928         2012-01-14.
1929         (secure_getenv): Declare, missing since 2013-02-05.
1931 2017-05-05  Bruno Haible  <bruno@clisp.org>
1933         stdio-c++-tests: Update.
1934         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
1936 2017-05-05  Bruno Haible  <bruno@clisp.org>
1938         signal-h-c++-tests: Update.
1939         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
1941 2017-05-05  Bruno Haible  <bruno@clisp.org>
1943         math-c++-tests: Update.
1944         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
1945         (fma): Declare, missing since 2011-10-17.
1946         (fmal): Declare, missing since 2011-10-17.
1948 2017-05-05  Bruno Haible  <bruno@clisp.org>
1950         locale-c++-tests: Update.
1951         * tests/test-locale-c++.cc (localeconv): Declare, missing since
1952         2012-03-25.
1954 2017-05-05  Bruno Haible  <bruno@clisp.org>
1956         inttypes-c++-tests: New module.
1957         * tests/test-inttypes-c++.cc: New file.
1958         (strtoimax): Declare, missing since 2012-01-05.
1959         (strtoumax): Declare, missing since 2012-01-05.
1960         * modules/inttypes-c++-tests: New file.
1962 2017-05-05  Bruno Haible  <bruno@clisp.org>
1964         dirent-c++-tests: Update.
1965         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
1966         (rewinddir): Declare, missing since 2011-09-13.
1967         (dirfd): Declare, missing since 2010-03-08.
1969 2017-05-04  Bruno Haible  <bruno@clisp.org>
1971         argp: Fix mistake in 2017-04-23 commit.
1972         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
1973         assume that strerror_r returns 'int', not 'char *'.
1975 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
1977         argp: Fix typo.
1978         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
1980 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1982         utimens: port to Emacs + MS-Windows
1983         Skip the new MS-Windows-specific code if Emacs.
1984         * lib/utimens.c [EMACS_CONFIGUATION]:
1985         Avoid new MS-Windows-specific code.
1986         (USE_SETFILETIME): New macro.
1987         (fdutimens): Use it.
1989 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1991         tzset: update doc for TZ problems on MS-Windows
1992         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
1993         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
1994         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
1995         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
1996         * doc/posix-functions/wcsftime.texi:
1997         Mention some issues with TZ under MS-Windows.
1999 2017-05-01  Bruno Haible  <bruno@clisp.org>
2001         copy-file: Fix build error on mingw.
2002         * modules/copy-file (Depends-on): Add 'close'.
2004 2017-05-01  Bruno Haible  <bruno@clisp.org>
2006         tzset: Work around TZ problem on native Windows.
2007         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
2008         Windows, set REPLACE_TZSET to 1.
2009         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
2010         invoke '_tzset' instead of 'tzset'.
2011         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
2013         * modules/time_rz (Depends-on): Add tzset.
2014         * lib/time_rz.c (tzset): Remove fallback definition.
2015         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
2017 2017-05-01  Bruno Haible  <bruno@clisp.org>
2019         mktime: Fix dependencies.
2020         * modules/mktime (Depends-on): Add 'time'.
2022 2017-05-01  Bruno Haible  <bruno@clisp.org>
2024         New module 'localtime-buffer', split off from module 'gettimeofday'.
2025         * lib/localtime-buffer.h: New file.
2026         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
2027         * lib/time.in.h (tzset): New declaration.
2028         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
2029         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
2030         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
2031         moved to lib/localtime-buffer.c or lib/tzset.c.
2032         * m4/localtime-buffer.m4: New file.
2033         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
2034         HAVE_TZSET, REPLACE_TZSET.
2035         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
2036         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
2037         gl_LOCALTIME_BUFFER_NEEDED.
2038         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
2039         since 2007-01-18.
2040         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
2041         tzset.
2042         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
2043         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
2044         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
2045         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
2046         * modules/localtime-buffer: New file.
2047         * modules/time (Depends-on): Remove 'gettimeofday'.
2048         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
2049         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
2050         * modules/tzset (Description): Enable hyperlink to POSIX spec.
2051         (Files): Add lib/tzset.c.
2052         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
2053         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
2054         gl_TIME_MODULE_INDICATOR.
2055         * modules/gettimeofday (Depends-on): Add localtime-buffer.
2057 2017-05-01  Bruno Haible  <bruno@clisp.org>
2059         copy-file: Preserve sub-second time stamps.
2060         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
2061         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
2062         transport the time stamps from the original file to the destination
2063         file.
2064         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
2065         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
2066         utime-h.
2068 2017-05-01  Bruno Haible  <bruno@clisp.org>
2070         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
2071         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
2072         also on MSVC.
2073         Reported by Eli Zaretskii <eliz@gnu.org>.
2075 2017-05-01  Bruno Haible  <bruno@clisp.org>
2077         wchar: Fix compilation error with the original mingw.org mingw.
2078         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
2079         <stddef.h> instead.
2080         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
2081         gl_WCTYPE_H.
2082         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
2083         gl_TYPE_WINT_T_PREREQ instead.
2084         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
2085         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
2086         Reported by Eli Zaretskii <eliz@gnu.org>.
2088 2017-04-30  Bruno Haible  <bruno@clisp.org>
2090         utimecmp: Add support for native Windows.
2091         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
2093 2017-04-30  Bruno Haible  <bruno@clisp.org>
2095         utimens: Add support for native Windows.
2096         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
2097         (fdutimens): Provide a native Windows implementation, like utime.c with
2098         added tv_nsec support.
2099         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
2100         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
2102 2017-04-30  Bruno Haible  <bruno@clisp.org>
2104         wcsftime: New module.
2105         * lib/wchar.in.h (wcsftime): New declaration.
2106         * lib/wcsftime.c: New file.
2107         * m4/wcsftime.m4: New file.
2108         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
2109         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
2110         HAVE_WCSFTIME, REPLACE_WCSFTIME.
2111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
2112         HAVE_WCSFTIME, REPLACE_WCSFTIME.
2113         * modules/wcsftime: New file.
2114         * doc/posix-functions/wcsftime.texi: Mention the new module.
2116 2017-04-30  Bruno Haible  <bruno@clisp.org>
2118         strftime-fixes: New module.
2119         * lib/time.in.h (strftime): New declaration.
2120         * lib/strftime-fixes.c: New file.
2121         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
2122         (gl_FUNC_STRFTIME): Remove macro.
2123         * m4/strftime-fixes.m4: New file.
2124         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
2125         REPLACE_STRFTIME.
2126         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
2127         REPLACE_STRFTIME.
2128         * modules/strftime-fixes: New file.
2129         * doc/posix-functions/strftime.texi: Mention the new module.
2131 2017-04-30  Bruno Haible  <bruno@clisp.org>
2133         mktime: Work around TZ problem on native Windows.
2134         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
2135         from the native Windows workaround.
2136         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
2137         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
2138         'guessing no'.
2139         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
2140         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
2141         NEED_MKTIME_WINDOWS.
2142         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
2143         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
2144         NEED_MKTIME_INTERNAL.
2145         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
2146         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
2147         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
2148         not REPLACE_MKTIME.
2149         * doc/posix-functions/mktime.texi: Mention the native Windows
2150         workaround.
2152 2017-04-30  Bruno Haible  <bruno@clisp.org>
2154         localtime: New module.
2155         * lib/time.in.h (localtime): Declare also if requested by module
2156         'localtime'.
2157         * lib/localtime.c: New file.
2158         * m4/localtime.m4: New file.
2159         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
2160         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
2161         * modules/localtime: New file.
2162         * doc/posix-functions/localtime.texi: Mention the new module.
2164 2017-04-30  Bruno Haible  <bruno@clisp.org>
2166         ctime: New module.
2167         * lib/time.in.h (ctime): New declaration.
2168         * lib/ctime.c: New file.
2169         * m4/ctime.m4: New file.
2170         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
2171         REPLACE_CTIME.
2172         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
2173         * modules/ctime: New file.
2174         * doc/posix-functions/ctime.texi: Mention the new module.
2176 2017-04-30  Bruno Haible  <bruno@clisp.org>
2178         gettimeofday: Provide higher resolution on native Windows.
2179         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
2180         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
2181         (initialize): Initialize it.
2182         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
2183         'struct timeval'. Don't use _ftime().
2184         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
2185         <sys/timeb.h> and _ftime.
2187 2017-04-30  Bruno Haible  <bruno@clisp.org>
2189         Document the problem with the Cygwin environment variable TZ.
2190         * doc/posix-functions/tzset.texi: Add note about TZ.
2191         * doc/posix-functions/ctime.texi: Likewise.
2192         * doc/posix-functions/localtime.texi: Likewise.
2193         * doc/posix-functions/mktime.texi: Likewise.
2194         * doc/posix-functions/strftime.texi: Likewise.
2195         * doc/posix-functions/wcsftime.texi: Likewise.
2196         * doc/pastposix-functions/ftime.texi: Likewise.
2198 2017-04-30  Bruno Haible  <bruno@clisp.org>
2200         utime-tests: New module.
2201         * tests/test-utime.c: New file, based on tests/test-utimens.h.
2202         * tests/test-utimens-common.h: Include <sys/stat.h>.
2203         * modules/utime-tests: New file.
2205 2017-04-29  Bruno Haible  <bruno@clisp.org>
2207         utime: New module.
2208         * lib/utime.in.h: Add comment for snippets.
2209         (utime): New declaration.
2210         * lib/utime.c: New file.
2211         * m4/utime.m4: New file.
2212         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
2213         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
2214         REPLACE_UTIME.
2215         * modules/utime-h (Depends-on): Add snippets.
2216         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
2217         Insert snippets.
2218         * modules/utime: New file.
2219         * doc/posix-functions/utime.texi: Mention the new module.
2221 2017-04-29  Bruno Haible  <bruno@clisp.org>
2223         utime-h: Modernize handling of 'struct utimbuf'.
2224         * lib/utime.in.h: Include next <utime.h> if it exists.
2225         (utimbuf): Define to _utimbuf on native Windows.
2226         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
2227         Set UTIME_H on native Windows.
2228         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
2229         * modules/utime-h (Depends-on): Add include_next.
2230         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
2231         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
2233         * lib/utimens.c (utimbuf): Remove fallback definition.
2234         * m4/utimens.m4 (gl_UTIMENS): Don't require
2235         gl_CHECK_TYPE_STRUCT_UTIMBUF.
2236         * m4/utimbuf.m4: Remove file.
2237         * modules/utimens (Files): Remove m4/utimbuf.m4.
2239 2017-04-29  Bruno Haible  <bruno@clisp.org>
2241         Make use of module 'utime-h'.
2242         * modules/copy-file (Depends-on): Add utime-h.
2243         * lib/copy-file.c: Assume that <utime.h> exists.
2244         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
2246         * modules/utimens (Depends-on): Add utime-h.
2247         * lib/utimens.c: Assume that <utime.h> exists.
2249 2017-04-29  Bruno Haible  <bruno@clisp.org>
2251         utime-h: New module.
2252         * m4/utime_h.m4: New file.
2253         * lib/utime.in.h: New file.
2254         * modules/utime-h: New file.
2255         * doc/posix-headers/utime.texi: Mention the new module.
2257         * tests/test-utime-h.c: New file.
2258         * modules/utime-h-tests: New file.
2260 2017-04-30  Bruno Haible  <bruno@clisp.org>
2262         Fix a few typos.
2263         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
2264         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
2265         * doc/posix-functions/fstat.texi: Fix a plural typo.
2266         * doc/posix-functions/stat.texi: Likewise.
2267         * m4/include_next.m4: Update comments.
2269 2017-04-29  Bruno Haible  <bruno@clisp.org>
2271         error: Fix mistake in 2017-04-23 commit.
2272         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
2273         assume that strerror_r returns 'int', not 'char *'.
2275 2017-04-29  Bruno Haible  <bruno@clisp.org>
2277         stat: Fix time_t values and other problems on native Windows platforms.
2278         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
2279         implementations of stat().
2280         * lib/stat.c: Include filename.h instead of dosname.h. Include
2281         malloca.h, stat-w32.h.
2282         (is_unc_root): New function.
2283         (rpl_stat): New implementation for native Windows. Remove
2284         REPLACE_FUNC_STAT_DIR code.
2285         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
2286         Don't define REPLACE_FUNC_STAT_DIR.
2287         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
2288         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
2289         (Depends-on): Remove dosname. Add filename, malloca.
2290         (configure.ac): Also compile lib/stat-w32.c.
2292 2017-04-29  Bruno Haible  <bruno@clisp.org>
2294         fstat: Fix time_t values on native Windows platforms.
2295         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
2296         * lib/stat-w32.h: New file.
2297         * lib/stat-w32.c: New file.
2298         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
2299         stat-w32.h instead.
2300         (fstat_nothrow): Remove function.
2301         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
2302         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
2303         always.
2304         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
2305         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
2306         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
2307         (configure.ac): Also compile lib/stat-w32.c.
2309 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2311         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
2312         Problem reported by Assaf Gordon and Gavin Smith in:
2313         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html
2314         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
2315         #define this, too.
2317 2017-04-29  Bruno Haible  <bruno@clisp.org>
2319         strerror_r-posix: Fixes for MSVC 14.
2320         * lib/strerror_r.c: Include <stdarg.h>.
2321         (strerror_r): Provide error messages for errno values 100...140.
2322         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
2324 2017-04-28  Bruno Haible  <bruno@clisp.org>
2326         noreturn: New module.
2327         * lib/noreturn.h: New file.
2328         * modules/noreturn: New file.
2329         * tests/test-noreturn.c: New file.
2330         * modules/noreturn-tests: New file.
2331         * tests/test-noreturn-c++.cc: New file.
2332         * modules/noreturn-c++-tests: New file.
2334 2017-04-27  Bruno Haible  <bruno@clisp.org>
2336         wctype-h: Fix compilation error with the original mingw.org mingw.
2337         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
2338         HAVE_CRTDEFS_H.
2339         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
2340         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
2341         <stddef.h> instead.
2342         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
2344 2017-04-26  Pádraig Brady  <P@draigBrady.com>
2346         nap.h: Fix compilation on non windows platforms
2347         * tests/nap.h: Move misplaced endif.
2349 2017-04-26  Pádraig Brady  <P@draigBrady.com>
2350         and Paul Eggert  <eggert@cs.ucla.edu>
2352         time_rz: fix heap buffer overflow vulnerability
2353         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
2354         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
2355         whether there is enough buffer space available, thus avoiding
2356         the problematic promotion of signed to unsigned causing an invalid
2357         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
2358         the start of the buffer.
2359         * tests/test-parse-datetime.c (main): Add a test case written by
2360         Paul Eggert, which overwrites enough of the heap so that
2361         standard glibc will fail with "free(): invalid pointer"
2362         without the patch applied.
2364 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2366         xalloc: add missing integer overflow check
2367         * lib/xalloc.h (x2nrealloc): Also check for multiplication
2368         overflow when P is null.
2370 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2372         parse-datetime: make it standalone
2373         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
2374         (_GL_ATTRIBUTE_FORMAT): New macro.
2375         These are needed to get './gnulib-tool --test parse-datetime' to work.
2377 2017-04-23  Bruno Haible  <bruno@clisp.org>
2379         nap.h: Port to native Windows.
2380         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
2381         use nap_fd instead. On native Windows, close and reopen nap_fd.
2382         (nap_works): Don't compare the ctimes, because on native Windows, these
2383         are the creation times.
2384         (nap): Update.
2386 2017-04-23  Bruno Haible  <bruno@clisp.org>
2388         nap.h: Fix logic.
2389         * tests/nap.h (nap): Avoid signed integer overflow in loop.
2391 2017-04-23  Bruno Haible  <bruno@clisp.org>
2393         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
2394         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
2395         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
2396         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
2397         * lib/argp-help.c (__argp_failure): Likewise.
2399 2017-04-23  Bruno Haible  <bruno@clisp.org>
2401         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
2402         * m4/strerror_r.m4: Revert changes since 2016-10-16.
2403         * lib/strerror_r.c: Likewise.
2405 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
2407         Target a C99 subset, not a C89 subset
2408         For many years Gnulib has targeted C89 and has resisted using C99
2409         features, as some Gnulib-using programs still wanted to target
2410         C89.  As this no longer seems to be the case, relax the porting
2411         requirements to allow some C99 features.  This is merely a change
2412         to the documentation, to give other Gnulib developers a chance to
2413         weigh in on the topic.
2414         * doc/extern-inline.texi (extern inline):
2415         * doc/gnulib-readme.texi (Portability guidelines):
2416         * doc/gnulib-tool.texi (Initial import):
2417         * doc/gnulib.texi (Header files):
2418         Modernize to talk about C99 and C11 instead of C89 and C99.
2419         * doc/gnulib-readme.texi (Portability guidelines):
2420         Now a section, not merely a subsection, so that it
2421         can be split up.  Modernize a bit.
2422         (C language versions, C99 features assumed)
2423         (C99 features avoided):
2424         New sections.
2426 2017-04-23  Bruno Haible  <bruno@clisp.org>
2428         doc: New section "Modules that modify the way other modules work".
2429         * doc/gnulib.texi (Modules that modify the way other modules work): New
2430         section.
2432 2017-04-23  Bruno Haible  <bruno@clisp.org>
2434         stat-time: Update comments.
2435         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
2436         * tests/test-utimens-common.h: Add reference regarding st_ctime on
2437         Windows.
2439 2017-04-01  Bruno Haible  <bruno@clisp.org>
2441         glob: Fix more memory leaks.
2442         * lib/glob.c (glob): Free allocated memory before returning.
2443         Reported by Coverity via Tim Rühsen.
2445 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2447         poll: improve fast check for out-of-range NFD
2448         * lib/poll.c: Do not include intprops.h.
2449         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
2450         * modules/poll (Depends-on): Remove intprops.
2452         ftoastr: cite a newer paper
2453         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
2454         instead of Loitsch 2010.
2456 2017-04-22  Bruno Haible  <bruno@clisp.org>
2458         poll: Enable argument check also in the Windows implementation.
2459         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
2460         Reported by Paul Eggert.
2462 2017-04-22  Bruno Haible  <bruno@clisp.org>
2464         getlogin_r: Work around bug in Mac OS X 10.12.
2465         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
2466         bug.
2467         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
2468         given size minus 1, call getlogin_r a second time, on a larger buffer.
2469         * modules/getlogin_r (Depends-on): Add malloca.
2470         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
2472 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2474         parse-datetime: fix %z and prefer signed int
2475         %z problem reported by Pádraig Brady in:
2476         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00103.html
2477         While fixing it, I decided to prefer signed ints to size_t, as
2478         they are less error-prone (e.g., ubsan catches overflow).
2479         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
2480         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
2481         counts, since signed integers make for better debugging.
2482         (date): Don’t assume %z works in printf formats.
2483         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
2484         sizes of buffers known to be small, e.g., because we’re using snprintf.
2485         (parse_datetime2): Simplify call to debug_mktime_not_ok.
2487 2017-04-22  Bruno Haible  <bruno@clisp.org>
2489         *printf: Work around rounding bug on Mac OS X.
2490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
2491         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
2492         Mac OS X and FreeBSD.
2493         * doc/glibc-functions/*printf.texi: Likewise.
2495 2017-04-22  Bruno Haible  <bruno@clisp.org>
2497         vasnprintf tests: Avoid warnings.
2498         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
2499         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
2500         test.
2502 2017-04-22  Bruno Haible  <bruno@clisp.org>
2504         sys_file tests: Avoid warning.
2505         * tests/test-sys_file.c (main): Add a default clause to the switch
2506         statement.
2508 2017-04-22  Bruno Haible  <bruno@clisp.org>
2510         sethostname: Update doc.
2511         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
2512         Mac OS X.
2514 2017-04-22  Bruno Haible  <bruno@clisp.org>
2516         quotearg tests: Avoid warnings.
2517         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
2518         false.
2520 2017-04-22  Bruno Haible  <bruno@clisp.org>
2522         poll: Enable argument check.
2523         * lib/poll.c: Include intprops.h.
2524         (poll): Check value of nfd correctly.
2525         * modules/poll (Depends-on): Add intprops.
2527 2017-04-22  Bruno Haible  <bruno@clisp.org>
2529         get-rusage-data: Avoid warnings on Mac OS X.
2530         * lib/get-rusage-data.c: On Mac OS X, don't define
2531         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
2532         (get_rusage_data) [Mac OS X]: Just return 0.
2534 2017-04-22  Bruno Haible  <bruno@clisp.org>
2536         xbinary-io: Fix build error.
2537         * modules/xbinary-io (Depends-on): Add gettext-h.
2538         * lib/xbinary-io.c: Include gettext.h and define _().
2539         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2540         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
2542 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2544         parse-datetime: overflow and debug cleanups
2545         This long patch was triggered by this bug report from Ruediger Meier:
2546         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00028.html
2547         I fixed the bug he noted, then found some others nearby, and then
2548         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
2549         up some of the code to follow GNU standards while I was at it.
2550         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
2551         use c_isdigit.
2552         (EPOCH_YEAR): Remove; unused.
2553         (TM_YEAR_BASE): Now an enum rather than a macro.
2554         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
2555         time zone offset, since timezones now are in terms of seconds and
2556         not minutes.
2557         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
2558         appropriate.  Verify that intmax_t is wide enough.
2559         (time_overflow, time_zone_str): New functions, used to deal
2560         more reliably with overflow.
2561         (dbg_printf): Add printf attribute, to help catch integer width errors.
2562         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
2563         (%union, to_hour, yylex, parse_datetime2):
2564         Use intmax_t instead of long int and/or long_time_t.
2565         All uses changed.
2566         (DBGBUFSIZE): Move earlier.
2567         (relative_time, set_hhmmss, parser_control):
2568         Just use int for nanoseconds and for time zones; that’s wide enough.
2569         (parser_control): Use bool for members like year_seen that can
2570         be booleans instead of counters.  All uses changed.
2571         Remove debug_default_input_timezone; no longer needed.
2572         All uses removed.
2573         (apply_relative_time): Return a bool overflow flag.
2574         All uses changed to check for overflow.
2575         (apply_relative_time, zone, date, relunit, relunit_snumber)
2576         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
2577         Check for integer overflow portably.
2578         (str_days): Use just int for N, as it’s wide enough.
2579         Prefer 2D char arrays to arrays of char * when it looks like
2580         2D is a win on typical platforms.
2581         Prefer snprintf to strncpy/strncat, for simplicity;
2582         all buffers are smaller than INT_MAX so this is safe.
2583         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
2584         (debug_print_current_time): Don’t assume tv_nsec is of type long,
2585         as this is not true on x32.  Output "." before any nanoseconds.
2586         (debug_print_current_time, parse_datetime2):
2587         Output local zones using a more-consistent format.
2588         (debug_print_current_time, date, parse_datetime2):
2589         (main) [TEST]:
2590         Don’t assume time_t is the same width as long.
2591         (print_rel_part): New function, replacing ...
2592         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
2593         (debug_print_relative_time): Use bool for boolean.
2594         (local_zone): dsts_seen now counts only tDST instances.
2595         (date): Fix printf of size_t to use %z.  Do not assume numeric
2596         tokens have negative values merely because the context suggests
2597         a syntax with "-" separating tokens.
2598         (time_zone_hhmm): Return bool success indicator, which checks for
2599         overflow.  Store result into PC->time_zone instead.  All callers
2600         changed.
2601         (tm_year_str): New function.  Return a bool success indicator and
2602         store the result into a buffer.  All callers changed.  Output the
2603         numerically correct string even if adding 1900 to the year would
2604         overflow.
2605         (to_tm_year): New function, replacing the old to_year.  All
2606         callers changed.
2607         (tm_diff): Sync with glibc.
2608         (lookup_word): Use to_uchar instead of doing it by hand.
2609         (TZBUFSIZE): Now local to the only function that needs it.
2610         (debug_strfdatetime): Simplify now that time zones are int seconds.
2611         (debug_strfdate): Work even if tm_year + 1900 would overflow.
2612         (get_effective_timezone): Remove.  All uses removed.
2613         (parse_datetime2): Use fprintf in pieces instead of snprintfing
2614         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
2615         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
2616         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
2617         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
2618         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
2619         * modules/parse-datetime (Depends-on): Add inttypes.
2621 2017-04-21  Bruno Haible  <bruno@clisp.org>
2623         gettext-h: Avoid -Wundef warning.
2624         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
2625         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
2626         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
2628 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
2630         error: Avoid "function declaration isn't a prototype" warning.
2631         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
2633 2017-04-21  Bruno Haible  <bruno@clisp.org>
2635         vasnprintf: Fix for MSVC 14.
2636         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
2637         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
2638         of !HAVE_SNPRINTF_RETVAL_C99.
2640 2017-04-21  Bruno Haible  <bruno@clisp.org>
2642         mbrtowc tests: Fix test failures on MSVC 14.
2643         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
2644         behaviour for invalid input.
2646 2017-04-21  Bruno Haible  <bruno@clisp.org>
2648         mbsinit: Fix for MSVC 14.
2649         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
2650         implementation that is in sync with mbrtowc.c. On other platforms, use
2651         an adequate ad-hoc implementation.
2653 2017-04-21  Bruno Haible  <bruno@clisp.org>
2655         Fix test-mbrtowc5.sh failure on native Windows.
2656         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
2657         "C".
2659 2017-04-21  Bruno Haible  <bruno@clisp.org>
2661         Avoid accidental use of native Windows APIs on Cygwin.
2662         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
2663         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
2664         * lib/localename.c (WINDOWS_NATIVE): Likewise.
2666 2017-04-20  Bruno Haible  <bruno@clisp.org>
2668         Remove red warnings from the generated MODULES.html.
2669         * modules/fcntl (Description): Disambiguate function references.
2670         * modules/getcwd-lgpl (Description): Likewise.
2671         * modules/hostent (Description): Likewise.
2672         * modules/servent (Description): Likewise.
2673         * modules/tempname (Description): Likewise.
2675 2017-04-20  Bruno Haible  <bruno@clisp.org>
2677         verify tests: Fix spurious failure with parallel make.
2678         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
2679         EXTRA_PROGRAMS.
2680         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
2681         * tests/test-verify-try.c: New file.
2682         * modules/verify-tests (Files): Add it.
2683         (EXTRA_PROGRAMS): Add test-verify-try.
2684         (MOSTLYCLEANFILES): Update accordingly.
2685         Reported by Adam James Stewart <ajstewart@anl.gov>.
2687 2017-04-18  Bruno Haible  <bruno@clisp.org>
2689         vma-iter: Fix compilation error on Solaris 7.
2690         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
2691         like on IRIX, OSF/1.
2692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2694 2017-04-18  Bruno Haible  <bruno@clisp.org>
2696         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
2697         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
2698         included.
2699         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
2700         <sys/procfs.h>.
2701         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
2702         <sys/procfs.h> cannot be included.
2703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2705 2017-04-18  Bruno Haible  <bruno@clisp.org>
2707         getopt-gnu: Add comments.
2708         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
2709         * modules/getopt-gnu (configure.ac): Likewise.
2711 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
2713         regex: port better to Solaris 10
2714         Solaris 10 <locale.h> includes <libintl.h>, which #defines
2715         gettext, and this causes a double #define.
2716         Problem reported by Gavin Smith in:
2717         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
2718         * lib/regex_internal.h (gettext): #undef before #defining.
2720 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2722         intprops: improve comments
2723         * lib/intprops.h: Improve and shorten commentary.
2724         For the record, if we ever run into a pedantic compiler that
2725         behaves differently from GCC when converting an out-of-range value
2726         to a signed integer, we can work around the problem with something
2727         like the following code, where UCT is the signed counterpart of T
2728         (UCT is sometimes narrower than UT) and all callers are changed
2729         accordingly:
2730         #if __SUNPRO_C <= 0x5120
2731         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2732            ((t) ((ut) (a) op (ut) (b)))
2733         #else
2734         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2735            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
2736             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
2737                + TYPE_MINIMUM (t)) \
2738             : (t) (uct) ((ut) (a) op (ut) (b)))
2739         #endif
2741 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2743         intprops: try to avoid tickling similar bugs
2744         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
2745         needs to be the same width as T; it can be wider.
2746         Change callers so that UT is at least as wide as unsigned int,
2747         as I suspect that this is less likely to run into compiler bugs.
2749         intprops: port to Oracle Studio 12.3 x86
2750         Problem reported by Gavin Smith in:
2751         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html
2752         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
2753         Convert unsigned to signed via the usual rather than the standard way,
2754         to avoid a compiler bug in Oracle Studio 12.3 x86.
2756 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2758         getopt: prefer - to _ in new file names
2759         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
2760         * lib/getopt-core.h: Rename from lib/getopt_core.h.
2761         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
2762         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
2763         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
2764         All uses changed.
2766         getopt: port recent getopt changes to macOS
2767         Problem reported by Harald Maier (Bug#26398).
2768         The macOS C compiler uses __nonnull for its own purposes and that
2769         clashes with glibc's __nonnull.
2770         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
2771         * lib/getopt_cdefs.in.h (__nonnull): Remove.
2772         * lib/getopt_core.h (getopt):
2773         * lib/getopt_ext.h (getopt_long, getopt_long_only):
2774         Use _GL_ARG_NONNULL, not __nonnull.
2775         * lib/unistd.in.h: Move snippet hooks to before where the getopt
2776         .h files are included, so that _GL_ARG_NONNULL is defined in time.
2777         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
2778         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
2780 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2782         getopt-gnu: omit some duplicate code
2783         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
2784         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
2785         gnulib-tool already does this.
2786         * modules/getopt-gnu (configure.ac): Omit code duplicated from
2787         getopt-posix, which we depend on.
2789         getopt-posix: use angle-bracket include
2790         * lib/getopt1.c: Include <config.h>, not "config.h".
2792 2017-04-06  Zack Weinberg  <zackw@panix.com>
2794         getopt: annotate files with relationship to glibc
2796         As the final act in this patchset, adjust the message at the top of
2797         each file to indicate which files are synced with glibc.  (This has
2798         already been done for most of the headers.)
2800         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
2801         Mention in top-of-file boilerplate that these files are shared
2802         between glibc and gnulib.
2805         getopt: split up getopt.in.h and eliminate __need_getopt
2807         Over in glibc, all of the __need macros are being phased out in favor
2808         of small headers that declare only the necessary components, as this
2809         is much simpler and less prone to bugs.  As getopt is shared with
2810         glibc, gnulib needs to do the same for __need_getopt.
2812         __need_getopt is misnamed; what it really means is "we want only the
2813         getopt features specified in POSIX, not the GNU extensions".  glibc
2814         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
2815         these files can be shared verbatim with gnulib.  The portability
2816         wrapper, on the other hand, they have renounced altogether; glibc's
2817         getopt.h will no longer be shared with gnulib at all.  In exchange,
2818         certain glibc-specific quirks (having to do with __posix_getopt) no
2819         longer need appear in gnulib's headers at all.
2821         This patch merges getopt_core.h and getopt_ext.h from glibc, and
2822         splits up the current gnulib-side portability wrapper into three
2823         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
2824         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
2825         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
2826         unistd.in.h just use them.  All new files are clearly marked with
2827         whether they are shared with glibc.
2829         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
2830         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
2831         with glibc, and ...
2832         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
2833         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
2834         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
2835         instead of defining __need_getopt and including the full getopt.h.
2837         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
2838         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
2839         * modules/getopt-posix (Files): Add new headers and sort list.
2840         (Depends-on): No longer need snippet/arg-nonnull.
2841         (Makefile.am): Generate getopt_cdefs.h.
2844         getopt: better handling of ambiguous options
2846         glibc's getopt uses alloca to construct a linked list of possibilities
2847         for an "ambiguous" long option.  In gnulib, malloc should be used
2848         instead.  Providing for both cases complicates things a fair bit.
2850         This patch rewrites ambiguous-option handling to use a boolean vector
2851         instead of a linked list.  There is then only one allocation that
2852         might need freeing; in glibc it can honor __libc_use_alloca as usual,
2853         and in gnulib we define __libc_use_alloca to always be false, so we
2854         don't need ifdefs in the middle of the function.  This should also be
2855         slightly more efficient in the normal case of long options being fully
2856         spelled out -- I think most people aren't even aware they _can_
2857         sometimes abbreviate long options.
2859         One interesting consequence is that the list of possibilities is now
2860         printed in exactly the order they appear in the list of long options,
2861         instead of the first possibility being shuffled to the end.
2863         (The patch looks bigger than it really is because there's a fair bit
2864         of reindentation and code rearrangement.)
2866         * lib/getopt.c: When used standalone, define __libc_use_alloca
2867         as always false and alloca to abort if called.
2868         (process_long_option): Rewrite handling of ambiguous long options
2869         to use a single boolean vector, not a linked list; use
2870         __libc_use_alloca to decide whether to allocate this using alloca.
2873         getopt: refactor long-option handling
2875         There were two copies of the bulk of the code to handle long options.
2876         Now there is only one.
2878         This change temporarily removes the logic to avoid using alloca when
2879         standalone; the next patch in the series will restore it.
2881         * lib/getopt.c (process_long_option): New function split out
2882         from _getopt_internal_r.
2883         (_getopt_internal_r): Replace both copies of the long-option
2884         processing code with calls to process_long_option.
2887         getopt: tidy up _getopt_initialize a bit
2889         _getopt_data.__posixly_correct is completely redundant to
2890         _getopt_data.__ordering, and some work that logically belongs in
2891         _getopt_initialize was being done by _getopt_internal_r, making the
2892         code harder to understand.
2894         As a side effect, getenv will no longer be called if the first
2895         character of the options string is '+' or '-', which is probably a
2896         Good Thing.  (Perhaps we should have a flag character that
2897         specifically asks for the permutation behavior?)
2899         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
2900         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
2901         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
2904         getopt: merge from glibc: repetition reduction
2906         The definitions of the entry point functions 'getopt' and
2907         '__posix_getopt' can be made substantially less repetitive with a
2908         helper macro.
2910         While I was merging the const-correctness changes from gnulib into
2911         glibc I noticed there are still some unnecessary casts in
2912         _getopt_internal_r.
2914         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
2915         a macro.  Consistently cast 'argv' to 'char **' when calling
2916         _getopt_internal.
2917         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
2920         getopt: clean up error reporting
2922         getopt can print a whole bunch of error messages, and when used
2923         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
2924         cancellation point and getopt isn't, and also applying fprintf to a
2925         stream in wide-character mode is not allowed.  So every single error
2926         reporting case has an #ifdef _LIBC block in which it calls internal
2927         libc functions instead.  The counterpart patch series in glibc makes
2928         it possible to simplify all of that down to a set of #defines at the
2929         top of the file; core code is written as if it is safe to just call
2930         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
2931         call any *other* stdio functions.)
2933         * lib/getopt.c: When _LIBC is defined, define fprintf to
2934         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
2935         to _IO_funlockfile.  When neither _LIBC nor
2936         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
2937         funlockfile as no-ops.
2938         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
2939         standalone error-printing code can now be used for libc as well.
2940         Add an flockfile/funlockfile pair around one case where the error
2941         message is printed in several chunks.  Don't use fputc.
2944         getopt: fix fencepost error in ambiguous-W-option handling
2946         getopt_long contains an undocumented (AFAICT) feature in which, if you
2947         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
2948         treated as equivalent to '--foo'.  This is implemented with a partial
2949         second copy of the code for handling long options, and that code
2950         increments optind one too many times when recovering from an ambiguous
2951         abbreviated option, which can cause the main loop to walk past the end
2952         of argv and crash.
2954         I discovered this while writing a test case that tries to exercise all
2955         of getopt's error reporting paths; I wouldn't be surprised to learn
2956         that this feature is never used by real applications.
2958         * lib/getopt.c (_getopt_internal_r): Don't increment
2959         d->optind a second time when reporting ambiguous -W options.
2962         getopt: clean up getopt.c and getopt1.c file headers
2964         In getopt.c, there is no need to include wchar.h at all, and it is
2965         safe nowadays to assume that stdlib.h does declare getenv (several
2966         other gnulib modules make this assumption).
2968         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
2969         by using "" inclusions consistently, and there is no actual need to
2970         include stdlib.h (except in the #ifdef TEST block, where it should be
2971         unconditional), nor to provide a backup definition of NULL at all.
2973         * lib/getopt1.c: Simplify #ifdeffage at top of file.
2974         Move inclusion of stdlib.h to #ifdef TEST block and make
2975         unconditional.  Do not define NULL.
2976         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
2977         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
2978         * modules/getopt-gnu, modules/getopt-posix: Don't call
2979         gl_PREREQ_GETENV.
2982         getopt: harmonize comments with glibc
2984         The comments explaining how the behavior of 'getopt' varies depending
2985         on whether it's the standalone version and whether there are special
2986         characters at the beginning of the options string were inconsistent
2987         between gnulib and glibc, and also out of sync with the code.
2989         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
2992         getopt: remove USE_NONOPTION_FLAGS
2994         getopt includes code to parse an environment variable named
2995         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
2996         in decimal); but all of it has been #ifdefed out since 2001, with no
2997         official way to turn it back on.
2999         According to commentary in glibc's config.h.in, bash version 2.0
3000         set this environment variable to indicate argv elements that were
3001         the result of glob expansion and therefore should not be treated
3002         as options, but the feature was "disabled later" because "it
3003         caused problems".  According to bash's CHANGES file, "later" was
3004         release 2.01; it gives no more detail about what the problems
3005         were.
3007         Version 2.0 of bash was released on the last day of 1996, and version
3008         2.01 in June of 1997.  Twenty years later, I think it is safe to
3009         assume that this environment variable isn't coming back.
3011         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
3012         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
3013         __libc_argc and __libc_argv externs, which were only used by
3014         #ifdef USE_NONOPTION_FLAGS blocks.
3017         getopt: tabify, in preparation for merge with glibc
3019         glibc sticks to the GNU default of indenting with a mix of
3020         8-column tabs and spaces; make the gnulib copy match.
3022         getopt.h is not included because it is *not* going to be merged in its
3023         present form.
3025         * getopt.c, getopt1.c, getopt_int.h: Tabify.
3027 2017-04-02  Bruno Haible  <bruno@clisp.org>
3029         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
3030         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
3031         like it was done in modules/relocatable-lib on 2011-05-21 and in
3032         modules/relocatable-prog on 2011-08-15.
3033         Reported by Reuben Thomas <rrt@sc3d.org>.
3035 2017-03-31  Bruno Haible  <bruno@clisp.org>
3037         glob: Fix invalid free() call.
3038         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
3039         static storage to home_dir.
3040         Reported by Coverity via Tim Rühsen.
3042 2017-03-31  Bruno Haible  <bruno@clisp.org>
3044         glob: Fix memory leaks.
3045         * lib/glob.c (glob): Free allocated memory before returning.
3046         Reported by Coverity via Tim Rühsen.
3048 2017-03-31  Bruno Haible  <bruno@clisp.org>
3050         md5, sha1, sha256, sha512: Add comments regarding correctness.
3051         * lib/md5.h (buflen): Add comments regarding range.
3052         * lib/sha1.h (buflen): Likewise.
3053         * lib/sha256.h (buflen): Likewise.
3054         * lib/sha512.h (buflen): Likewise.
3055         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
3056         * lib/sha1.c (sha1_process_bytes): Likewise.
3057         * lib/sha256.c (sha256_process_bytes): Likewise.
3058         * lib/sha512.c (sha512_process_bytes): Likewise.
3059         Reported by Coverity via Tim Rühsen.
3061 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3063         getopt: merge from glibc
3064         This does not change anything substantial; it merely simplifies
3065         hypothetical merges back to glibc.
3066         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
3067         Change copyright notice to match what is in glibc.
3068         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
3069         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
3070         __open_memstream rather than open_memstream and __glibc_likely
3071         instead of __builtin_expect.
3072         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
3074 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3076         dfa: make [0-9] faster in non-C locales
3077         Problem reported by John P. Linderman (Bug#26193).
3078         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
3079         If both ends of the range are ASCII digits, do not worry about
3080         multi-character collating sequences and the like.  Be consistent
3081         about using isalpha as a precondition for setbit_case_fold_c.
3083 2017-03-19  Bruno Haible  <bruno@clisp.org>
3085         lock: Fix compilation error with HP-UX IA64 cc.
3086         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
3087         weak on non-glibc platforms.
3089 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3091         stdalign: tweak version# and test for HP-UX IA64
3092         Problems reported by Bruno Haible in:
3093         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
3094         * lib/stdalign.in.h (_Alignas):
3095         * m4/stdalign.m4 (gl_STDALIGN_H):
3096         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
3097         used octal (as that is how they document it), but it is decimal in
3098         practice now and the ancient implementations no longer matter.
3099         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
3101 2017-03-19  Bruno Haible  <bruno@clisp.org>
3103         vma-iter: Add support for Solaris.
3104         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
3105         approach.
3106         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
3107         * lib/get-rusage-as.c: Update comment about Solaris.
3108         * lib/get-rusage-data.c: Likewise.
3110 2017-03-19  Bruno Haible  <bruno@clisp.org>
3112         vma-iter: Prefer HP-UX specific API on HP-UX.
3113         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
3114         * lib/vma-iter.h: Update.
3115         Just in case HP-UX ever implements mquery().
3117 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
3119         stdalign: restore previous behavior for HP-UX IA64
3120         See Bruno Haible's email in:
3121         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
3122         which cites p 150 of a manual saying that 'aligned' works on Itanium.
3123         * lib/stdalign.in.h (_Alignas):
3124         Assume the '061200' applies to Itanium, not to PA-RISC.
3125         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
3127 2017-03-17  Bruno Haible  <bruno@clisp.org>
3129         stat-time, timespec: Support use of the header files in C++ mode.
3130         * lib/stat-time.h: Add "C" linkage declaration.
3131         * lib/timespec.h: Likewise.
3133 2017-03-17  Bruno Haible  <bruno@clisp.org>
3135         stdalign: Make it work with HP-UX cc.
3136         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
3137         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
3138         for HP-UX cc.
3140 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
3142         flexmember: try to detect HP-UX 11.31 cc bug
3143         Problem reported by Bruno Haible in:
3144         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
3145         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3146         Attempt to detect bug in HP-UX 11.31 cc.
3148 2017-03-16  Bruno Haible  <bruno@clisp.org>
3150         stdint: Fix test compilation failure with HP-UX 11 cc.
3151         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
3152         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
3153         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
3154         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
3156 2017-03-14  Bruno Haible  <bruno@clisp.org>
3158         gnulib-tool: Don't produce a tests directory with only snippet .h files.
3159         * gnulib-tool (func_modules_transitive_closure_separately): If
3160         testsrelated_modules ends up with no "real" modules, aside from
3161         modules with applicability 'all', set it to empty.
3163 2017-03-14  Bruno Haible  <bruno@clisp.org>
3165         vma-iter: Add support for HP-UX.
3166         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
3167         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
3168         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
3169         * lib/get-rusage-as.c: Update comment about HP-UX.
3170         * lib/get-rusage-data.c: Likewise.
3171         (get_rusage_data): Use get_rusage_data_via_setrlimit.
3173 2017-03-14  Bruno Haible  <bruno@clisp.org>
3175         limits-h: Make it work with HP-UX cc.
3176         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
3177         defined.
3179 2017-03-14  Bruno Haible  <bruno@clisp.org>
3181         Fix test failures on DragonFlyBSD.
3182         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
3183         * tests/test-select.h (test_bad_fd): Likewise.
3184         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
3186 2017-03-14  Bruno Haible  <bruno@clisp.org>
3188         freadahead: Silence warning on DragonFlyBSD.
3189         * lib/freadahead.c (__sreadahead): Declare ourselves.
3191 2017-03-14  Bruno Haible  <bruno@clisp.org>
3193         vma-iter: Add comment about AIX.
3194         * lib/vma-iter.c: Add comment about why this module is not implemented
3195         on AIX.
3197 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3199         snippets: move unadjusted snippet sources to lib
3200         Problem reported by Michal Privoznik in:
3201         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
3202         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
3203         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
3204         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
3205         * lib/unused-parameter.h: Rename from
3206         build-aux/snippet/unused-parameter.h.
3207         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
3208         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
3209         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
3210         * modules/snippet/c++defs (Files:, CXXDEFS_H):
3211         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
3212         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
3213         Adjust to file renamings.
3215 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
3217         gnulib-tool: don't automatically distribute files from top/
3218         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
3219         not distribute top/README-release by default, don't distribute files
3220         from top/ unconditionally.
3221         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
3222         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
3224 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3226         gnulib-tool: fix typo in comment output
3227         * gnulib-tool (func_import): Fix typo with previous change.
3229         snippets: work around GNU Make 3.82 VPATH
3230         When using 'gnulib-tool --gnu-make' on Emacs, and building
3231         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
3232         an out-of-source (VPATH) build failed because the sans-copyright
3233         snippet file was not built before the file that used it.
3234         Presumably this is some sort of VPATH thing.  Work around the
3235         problem by using the original snippet, i.e., don’t bother to
3236         remove its copyright notice.
3237         * modules/snippet/_Noreturn, modules/snippet/link-warning:
3238         Don’t assume Automake in comments.  Omit long-incorrect comment.
3239         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
3240         (MOSTLYCLEANFILES):
3241         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
3242         (MOSTLYCLEANFILES):
3243         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
3244         (MOSTLYCLEANFILES):
3245         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
3246         (MOSTLYCLEANFILES):
3247         Remove.
3248         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
3249         * modules/snippet/c++defs (CXXDEFS_H):
3250         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
3251         * modules/snippet/warn-on-use (WARN_ON_USE_H):
3252         Don’t bother to remove the copyright notice; just use the
3253         original snippet as-is.
3255 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
3257         gnulib-tool: minor --gnu-make fixups
3258         * gnulib-tool (func_emit_lib_Makefile_am):
3259         Remove useless code that was a blind alley during implementation.
3260         Problem reported by Thien-Thi Nguyen in:
3261         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
3262         (func_import): Note the "--gnu-make" option in the output comment.
3264 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
3266         gnulib-tool: new option --gnu-make
3267         This is for applications like GNU Emacs that use GNU Make
3268         features instead of Automake.
3269         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
3270         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
3271         Do not assume Automake.
3272         * gnulib-tool (func_determine_path_separator)
3273         (func_modules_transitive_closure, func_update_file)
3274         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
3275         (func_import): Add support for --gnu-make.
3277 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
3279         gnulib-common.m4: avoid aclocal.m4 bloat
3280         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
3281         Hide AM_PROG_AR from aclocal, so that aclocal does not
3282         install irrelevant macro definitions into aclocal.m4.
3284 2017-03-10  Bruno Haible  <bruno@clisp.org>
3286         vma-iter: Let callers know about error.
3287         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
3288         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
3290 2017-03-05  Bruno Haible  <bruno@clisp.org>
3292         Fix value of LD for 64-bit compilers on AIX.
3293         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
3294         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
3296 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
3298         dtotimespec: simplify
3299         * lib/dtotimespec.c (dtotimespec): Simplify.
3301 2017-03-04  Bruno Haible  <bruno@clisp.org>
3303         test-calloc-gnu: Reenable test also for GCC 7.
3304         * tests/test-calloc-gnu.c (eight): New function.
3305         (main): Don't skip test; use eight() instead.
3307 2017-03-04  Jim Meyering  <meyering@fb.com>
3309         test-calloc-gnu: port to GCC7
3310         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
3311         that attempts to calloc more than SIZE_MAX bytes, because GCC7
3312         and newer would detect that at compilation time.
3314 2017-03-04  Bruno Haible  <bruno@clisp.org>
3316         tests: Avoid compiler warning about uses of null_ptr.
3317         * tests/null-ptr.h: New file.
3318         * tests/test-canonicalize.c: Include null-ptr.h.
3319         (null_ptr): Remove function.
3320         * tests/test-canonicalize-lgpl.c: Likewise.
3321         * tests/test-memmem.c: Likewise.
3322         * tests/test-ptsname_r.c: Likewise.
3323         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
3324         * modules/canonicalize-lgpl-tests: Likewise.
3325         * modules/memmem-tests: Likewise.
3326         * modules/ptsname_r-tests: Likewise.
3327         Reported by Jim Meyering.
3329 2017-03-03  Bruno Haible  <bruno@clisp.org>
3331         doc: Mention Mac OS X deficiencies regarding semaphores.
3332         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
3333         * doc/posix-functions/sem_destroy.texi: Likewise.
3334         * doc/posix-functions/sem_getvalue.texi: Likewise.
3336 2017-03-03  Bruno Haible  <bruno@clisp.org>
3338         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
3339         Reported by Assaf Gordon <assafgordon@gmail.com> via
3340         Pádraig Brady <P@draigBrady.com>.
3341         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
3342         semaphores.
3343         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
3344         (atomic_int_semaphore): New macro.
3346 2017-02-28  Bruno Haible  <bruno@clisp.org>
3348         perror tests: Tweak for z/OS.
3349         Reported by Daniel Richard G. <skunk@iskunk.org>.
3350         * tests/test-perror.sh: Don't fail z/OS style perror output.
3352 2017-02-26  Bruno Haible  <bruno@clisp.org>
3354         nproc: Refactor large function.
3355         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
3356         from num_processors.
3357         (num_processors): In this function, only deal with OMP.
3359 2017-02-26  Pádraig Brady  <P@draigBrady.com>
3361         nproc: adjust handling of OpenMP environment variables
3362         to match the return value from omp_get_num_threads(), i.e.:
3363          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
3364          - Treat 0 as an invalid value and ignore
3365         Also remove the call to omp_get_num_threads() because
3366         it's ineffective without the omp pragmas in place.
3367         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
3368         so that it can be ignored.
3369         (num_processors): Honor OMP_THREAD_LIMIT even without
3370         OMP_NUM_THREADS being set.  Also fix a typo in the environment
3371         variable being checked, from the previous recent commit.
3373 2017-02-26  Pádraig Brady  <P@draigBrady.com>
3375         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
3376         * lib/nproc.c (parse_omp_threads): A new function refactored
3377         from num_processors() to support parsing both of the
3378         above environment variables.
3379         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
3380         to accurately reflect the current OpenMP nesting level.
3381         Also support the OMP_THREAD_LIMIT environment variable
3382         to limit the max value determined from OMP_NUM_THREADS.
3383         * modules/nproc: Depend on minmax header.
3384         Suggested by Oliver Heimlich.
3386 2017-02-25  Bruno Haible  <bruno@clisp.org>
3388         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
3389         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
3391 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3393         ftoastr: port to -Wdouble-promotion
3394         Work around -Wdouble-promotion false alarm in recent GCCs.
3395         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
3396         (ftoastr_snprintf, FTOASTR): Use it.
3398 2017-02-21  Bruno Haible  <bruno@clisp.org>
3400         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
3401         Reported by Rene Saavedra <rennes@openmailbox.org> in
3402         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
3403         * lib/glthread/lock.h: On glibc systems without
3404         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
3405         implementation of rwlocks.
3406         * lib/glthread/lock.c: Likewise.
3408 2017-02-20  Bruno Haible  <bruno@clisp.org>
3410         lock tests: Fix build failure on z/OS.
3411         Reported by Daniel Richard G. <skunk@iskunk.org>.
3412         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
3413         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
3414         exist.
3416 2017-02-19  Bruno Haible  <bruno@clisp.org>
3418         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
3419         This helps when CC=clang.
3420         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
3421         of /usr/bin/gcc.
3423         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
3424         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
3426 2017-02-19  Bruno Haible  <bruno@clisp.org>
3428         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
3429         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
3430         --with-tests --single-configure is specified.
3432 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
3434         users.txt: Update links, use HTTPS where possible
3435         * users.txt: Updated to HTTPS where possible,
3436         fixed some links to new locations.
3438 2017-02-16  Bruno Haible  <bruno@clisp.org>
3440         xbinary-io: Fix inlining.
3441         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
3443 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3445         xbinary-io: rename from xsetmode
3446         This patch is taken from suggestions by Bruno Haible in:
3447         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
3448         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
3449         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
3450         not ENOTTY, when it is an inappropriate device.
3451         * lib/binary-io.h (SET_BINARY): Resurrect.
3452         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
3453         (xset_binary_mode_error): Rename from xsetmode_error.
3454         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
3455         (xset_binary_mode): Rename from xsetmode.
3456         All uses changed.
3457         * modules/xbinary-io: Rename from modules/xsetmode.
3458         Update file names.
3459         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
3460         * NEWS: Update to match revised behavior.
3462 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3464         tests: Adjust to recent SET_BINARY change
3465         * tests/test-binary-io.c (main):
3466         * tests/test-binary-io.sh: Remove test for SET_BINARY.
3467         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
3468         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
3469         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
3471         xsetmode: new module
3472         This is to fix a problem noted by Eric Blake.
3473         Code was using xfreopen to change files to binary mode, but this
3474         fails for stdout when in append mode.  Such code should use
3475         xsetmode instead.
3476         * NEWS: Document incompatible changes to binary-io module.
3477         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
3478         New function.
3479         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
3480         (set_binary_mode): New function, which also checks for tty.
3481         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
3483 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
3485         headers: fix begin-end typos
3486         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
3487         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
3489         selinux-h: port to PGI 16.10
3490         * lib/se-selinux.in.h: Don't assume that include_next skips over
3491         duplicate -I DIR options.
3493         argp: port to PGI 16.10
3494         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
3496 2017-02-13  Darshit Shah  <darnir@gnu.org>
3498         unicase: Update function protoype to match definition.
3499         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
3500         uses 'size_t' as the datatype for the 'len' parameter in the functions
3501         it generates. Update the prototype specified here to match the newly
3502         generated function.
3504 2017-02-12  Bruno Haible  <bruno@clisp.org>
3506         times test: Avoid gcc warnings on Linux/x32.
3507         * tests/test-times.c (main): Really cast printf arguments from clock_t
3508         to 'long int'.
3510 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3512         glob: port better to emscripten
3513         Problem reported by Bruno Haible in:
3514         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
3515         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
3517 2017-02-11  Bruno Haible  <bruno@clisp.org>
3519         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
3520         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
3521         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
3522         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
3523         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
3524         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
3525         Distinguish hppa64 from hppa.
3527 2017-02-10  Bruno Haible  <bruno@clisp.org>
3529         search: Don't assume that tsearch() exists if 'VISIT' is defined.
3530         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
3531         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
3532         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
3534 2017-02-09  Bruno Haible  <bruno@clisp.org>
3536         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
3537         * doc/gnulib.texi (Libtool and Windows): Recommend
3538         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
3539         Reported by Reuben Thomas <rrt@sc3d.org>.
3541 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3543         stddef-tests: port to SIZE_MAX <= INT_MAX
3544         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
3545         Do not assume that INT_MAX < SIZE_MAX.
3547 2017-02-01  Bruno Haible  <bruno@clisp.org>
3549         lock tests: Fix link error.
3550         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
3551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3553 2017-01-31  Bruno Haible  <bruno@clisp.org>
3555         lock: Fix link error (regression from 2017-01-05).
3556         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
3557         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
3558         pthread_rwlockattr_destroy weak.
3559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3561 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3563         Port to PGI 16.10 x86-64
3564         This patch fixes one real bug in gl_anylinked_list2.h, along with
3565         some minor glitches that are not bugs.  It does not silence PGI’s
3566         thousands of bogus warnings when compiling test-intprops.c.
3567         Fortunately, the warnings do not cause a failure.
3568         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
3569         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
3570         My goodness, PGI goes back a long ways - this predates C89!
3571         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
3572         For example, ASYNCSAFE (const void *) should expand to
3573         ‘const void *volatile’, not to ‘volatile const void *’.
3574         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
3575         * lib/verify.h (verify) [!__GNUC__]:
3576         Use shorter albeit meaningless string to bypass silly compiler limits.
3577         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
3578         * tests/nan.h (NaNf, NaNd, NaNl):
3579         Use static functions to avoid misguided compiler diagnostics.
3580         Is there some reason we don’t use static functions on all platforms?
3582 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
3584         parse-datetime: handle timezones reentrantly
3585         This API change was prompted by a report by Pádraig Brady in:
3586         https://bug.debian.org/851934#10
3587         To help fix the bug, make parse_datetime2 more reentrant.
3588         * NEWS: Document this incompatible change.
3589         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
3590         Add two arguments, the timezone and the timezone name.
3591         All callers changed.  If TZ="..." is specified, use it for
3592         calculating defaults.
3593         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
3594         this code should be usable in a library.
3595         (mktime_ok, get_effective_timezone):
3596         Accept timezone arg too.  All callers changed.
3597         (get_tz): Remove.
3598         (get_effective_timezone): Check for failures.
3600 2017-01-20  Eric Blake  <eblake@redhat.com>
3602         localename: port to cygwin 2.6
3603         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
3604         Cygwin.
3605         * modules/localename (Depends-on): Add extensions, since
3606         NL_LOCALE_NAME() is not visible without it.
3608 2017-01-17  Pádraig Brady  <P@draigBrady.com>
3610         parse-datetime: fix dependence on AC_PROG_SED
3611         * modules/parse-datetime: Use `sed` directly like all other modules.
3612         Reported by J William Piggott
3614 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
3616         intprops: update doc URLs
3617         * doc/intprops.texi (Integer Range Overflow): Update URLs.
3619 2017-01-16  Bruno Haible  <bruno@clisp.org>
3621         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
3622         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
3623         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
3624         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
3625         distinguish s390 and s390x.
3626         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
3627         * NEWS: Mention the change regarding 'armel'.
3629 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3631         localeinfo: case_folded_counterparts and WEOF
3632         * NEWS: Document this.
3633         * lib/localeinfo.c (case_folded_counterparts):
3634         First arg is now wint_t, not wchar_t.  This generalizes the
3635         function to also work on WEOF, where it returns 0.
3637         dfa: port to gcc -fsanitize=undefined
3638         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
3639         as this runs afoul of gcc -fsanitize=undefined.
3641 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
3643         strftime: %z is -00 if unknown
3644         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
3645         the caller's responsibility to set 'negative_number'.  All uses changed.
3646         (__strftime_internal): Put '-' before a zero UTC offset if the time
3647         zone abbreviation starts with "-", which is the recently-introduced
3648         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
3649         * tests/test-strftime.c: Test for this.
3651 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
3653         dfa: port to older GCC
3654         Problem reported by Assaf Gordon in:
3655         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
3656         * modules/c99: New module.  This merely attempts to use the latest
3657         C version, which should be enough to solve this particular problem.
3658         The idea is to document which Gnulib modules assume C99 or later.
3659         * modules/dfa (Depends-on): Add it.
3661 2017-01-10  Bruno Haible  <bruno@clisp.org>
3663         Update DEPENDENCIES.
3664         * DEPENDENCIES: List only https URLs. Update recommended version for
3665         autoconf, automake, gperf.
3667 2017-01-10  Jim Meyering  <meyering@fb.com>
3669         maint.mk: enforce spelling of "timestamp" (i.e., no space)
3670         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3671         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
3673 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
3675         dfa: minor simplification with emptyset
3676         * lib/dfa.c (build_state): Simplify by using emptyset.
3678 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3680         dfa: shrink constraints from 4 bits to 3
3681         * lib/dfa.c (newline_constraint, letter_constraint)
3682         (other_constraint, prev_newline_dependent)
3683         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
3684         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
3685         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
3686         Constraints need only 3 bits, not 4.  Using smaller integers
3687         shrinks the code a bit and makes grep a tad faster on x86-64.
3689         dfa: omit unnecessary ptrdiff_t check
3690         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
3691         overflow, since xnmalloc does that now.
3693         dfa: omit unnecessary allocation
3694         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
3695         an all-zero follow set works just fine.
3697         dfa: omit unused local
3698         * lib/dfa.c (build_state): Fix up recent change.
3700         maint: remove stray .texi files
3701         Although these were superseded by other files like
3702         doc/posix-functions/ctime.texi, the old files were not removed.
3703         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
3705 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
3707         getprogname: fix port to IRIX
3708         * lib/getprogname.c (getprogname) [__sgi]:
3709         Don't dump core if malloc returns NULL.
3711         dfa: fix reallocation bug when matching newlines
3712         Problem reported for sed by S. Gilles (Bug#25390).
3713         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
3714         (dfastate): Reallocate before moving any newline transition ...
3715         (build_state): ... instead of reallocating here, where it is too late.
3717 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3719         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
3720         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
3722 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3724         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
3725         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
3727 2017-01-07  Bruno Haible  <bruno@clisp.org>
3729         stdioext: Port to Minix 3.2 and newer.
3730         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
3731         * lib/fseeko.c (fseeko): Likewise.
3732         Reported by Nelson Beebe via Paul Eggert.
3734 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3736         getprogname: port to IRIX
3737         * lib/getprogname.c (getprogname): Port to IRIX.
3738         Based on an idea by Bastien Roucariès at:
3739         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
3740         via code from Bruno Haible at:
3741         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
3743         localename-tests: port to NetBSD 7
3744         Problem reported by Nelson H. F. Beebe.
3745         * tests/test-localename.c:
3746         Test newlocale and uselocale only if both exist.
3748         glob, intprops, xalloc: work around Clang bug
3749         Work around LLVM bug 16404, which is still not fixed.
3750         https://llvm.org/bugs/show_bug.cgi?id=16404
3751         Problem reported by Nelson H. F. Beebe.
3752         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
3753         Remove.
3754         * lib/glob.c (size_add_wrapv):
3755         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
3756         * lib/xalloc-oversized.h (xalloc_oversized):
3757         Do not use overflow builtins if Clang.
3759         dfa: fix 'return' typo
3760         Problem reported by Nelson H. F. Beebe.
3761         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
3763 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3765         parse-datetime: fix generated paths for coverage files
3766         * modules/parse-datetime: Adjust the paths for parse-datetime.y
3767         within parse-datetime.c, so that gcc generates appropriate .gcno
3768         files, allowing lcov to proceed without error.  Previously it
3769         would error trying to find "lib/lib/parse-datetime.y".
3771 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3773         maint.mk: support parallel execution of coverage
3774         * top/maint.mk (coverage): Run dependencies serially,
3775         thus supporting parallel processing of each one,
3776         particularly build-coverage, which builds and runs tests.
3778 2017-01-05  Bruno Haible  <bruno@clisp.org>
3780         lock tests: Prefer semaphore over mutex.
3781         * tests/test-lock.c (USE_SEMAPHORE): New constant.
3782         (struct atomic_int, init_atomic_int, get_atomic_int_value,
3783         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
3784         Suggested by Torvald Riegel <triegel@redhat.com>.
3786 2017-01-05  Bruno Haible  <bruno@clisp.org>
3788         lock: Provide guarantee to avoid writer starvation for rwlocks.
3789         The rationale is: 1) Read-preferring read-write locks are prone to
3790         writer starvation if the number of reader threads multiplied by the
3791         percentage of time they have the lock held is too high. 2) Write-
3792         preferring read-write locks are the only reliable way to avoid this.
3793         3) There have been reports of 'test-lock' hanging on glibc systems
3794         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
3795         and glibc indeed implements read-preferring rwlocks by default, see
3796         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
3797         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
3798         * m4/pthread_rwlock_rdlock.m4: New file.
3799         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3800         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
3801         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3802         of rwlock initialization on glibc systems without
3803         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3804         of rwlocks altogether on non-glibc systems without
3805         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3806         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
3807         * lib/glthread/lock.c [USE_POSIX_THREADS]
3808         (glthread_rwlock_init_for_glibc): New function.
3809         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
3810         comment.
3811         [USE_PTH_THREADS]: New implementation of rwlocks.
3812         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
3813         readers.
3814         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
3815         (Depends-on): Add 'extensions'.
3816         * tests/test-rwlock1.c: New file.
3817         * lock-tests (Files): Add it.
3818         (Depends-on): Add usleep.
3819         (Makefile.am): Add test-rwlock1 to the tests.
3821 2017-01-05  Bruno Haible  <bruno@clisp.org>
3823         thread: Fix pth port.
3824         * lib/glthread/thread.h (pth_init): Declare weak.
3825         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
3826         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
3827         function.
3829 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
3831         parse-datetime: fix debug message on lone year number
3832         Input dates such as
3833           date -d "Apr 11 22:59:00 2011"
3834         are parsed as date (Apr 11, with default year 2016), then time, then a
3835         number (2011). Based on the combination of previously seen tokens,
3836         'digits_to_date_time' determines 2011 to be a year value.
3837         This fixes the debug messages to correctly show the updated year.
3838         Before:
3839             $ date --debug -d 'Apr 11 22:59:00 2011'
3840             date: parsed date part: (Y-M-D) 2016-04-11
3841             date: parsed time part: 22:59:00
3842             date: parsed number part: today/this/now
3843         After:
3844             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
3845             date: parsed date part: (Y-M-D) 2016-04-11
3846             date: parsed time part: 22:59:00
3847             date: parsed number part: year: 2011
3848         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
3849         'debug_year_seen' member fields.
3850         (digits_to_date_time): Update 'year_seen' as needed.
3851         (debug_print_current_time): Inform about year updates.
3852         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
3854         parse-datetime: fix local timezone debug messages
3855         "Local timezones" are strings that affect only DST relative to the
3856         default timezone. The debug messages in parse-datetime.y printed
3857         wrong information when encountering local timezones.
3858         Examples:
3859         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
3860              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
3861              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
3862         When the default timezone relates to the zone strings, EET/EEST are
3863         parsed as local timezones (tLOCAL_ZONE), and only change the DST
3864         value (0/1, respectively):
3865              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
3866              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
3867         * lib/parse-datetime.y (debug_print_current_time): If local timezone
3868         was seen, inform about DST change, don't print actual timezone.
3869         (debug_strfdatetime): If local timezone was seen, use default timezone
3870         (and adjust as needed) instead of using incorrect timezone.
3871         (parse_datetime2): Use correct time-zone source string, and adjust
3872         default timezone as needed.
3874         parse-datetime: add debug warning about DST changes
3875         Incorrect date arithmetic due to daylight saving time (DST) are a
3876         common (false) bug report in coreutils.
3877         Detect two such cases and print a warning:
3878         1. year/month/day adjustments (performed on 'struct tm'),
3879            where 'mktime' returns a different isdst value.
3880         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
3881            where the result of 'localtime(3)' on the value will return a
3882            different isdst value.
3883         Note: DST changes could be harmless or unnoticeable.
3884         Examples (with 'TZ=America/New_York'):
3885         Unnoticeable: result is 2016-Dec-14
3886            $ date -d '2016-06-15 EDT + 6 months' +%b
3887            Dec
3888         Unnoticeable: result is 2016-Dec-15 11:00:00
3889            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
3890            2016-12-15
3891         This is unexpected:
3892            $ date -d '2016-06-01 EDT + 6 months' +%F
3893            2016-11-30
3894         The new debug warnings will show:
3895            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
3896            ...
3897            date: warning: daylight saving time changed after date adjustment
3898            ...
3899         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
3900         print an appropriate warning message.
3902         parse-datetime: add debug warning about date arithmetic
3903         Date arithmetic are done directly on the fields of 'struct tm',
3904         which can result in invalid dates. Normalization with 'mktime(3)'
3905         will then produce a different date - which might cause unexpected
3906         results.
3907         Examples:
3908           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
3909           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
3910         Note that date normalization is not inherently wrong and not rejected,
3911         as it has legitimate uses:
3912           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
3913         If the user asked to adjust months but 'mday' changed,
3914         or user asked to adjust years but 'month' changed - warn about it.
3915             $ ./src/date --debug -d '2016-10-31 - 1 month'
3916             ...
3917             date: warning: when adding relative months/years, \
3918                            it is recommended to specify the 15th of the month
3919             ...
3920             date: warning: month/year adjustment resulted in shifted dates:
3921             date:      adjusted Y M D: 2016 09 31
3922             date:    normalized Y M D: 2010 10 01
3923             ...
3924         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
3925         a warning message. Improve recommendation of when to use 15 of the
3926         month or noon for date arithmetic.
3928         parse-datetime: fix debug message of relative part after timezone
3929         Relative part (e.g '+8 days') after a timezone string was not
3930         reported (was only reported after a timezone number). Due to the
3931         parser's structure, timezone strings with numbers were handled
3932         separately.
3933         before:
3934              # Timezone number + relative part: OK
3935              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
3936              ...
3937              date: parsed relative part: -8 day(s)
3938              # Timezone string + relative part: missing
3939              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
3940              [ missing message ]
3941         After: messages are printed in both cases.
3942         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
3944         parse-datetime: fix incorrect debug message on lone number
3945         A lone number is an absolute value, not a relative time part.
3946         before:
3947            $ date --debug -d '20130101'
3948            date: parsed number part: today/this/now
3949         After:
3950            $ ./src/date --debug -d '20130101'
3951            date: parsed number part: (Y-M-D) 2013-01-01
3952         * lib/parse-datetime.y ('item'/'number' tokens): Call
3953         'debug_print_current_time' instead of 'debug_print_relative_time'.
3955 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3957         doc: modernize for C11 etc.
3958         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
3959         for C11, MinGW, etc.  This responds to Paul Smith's question in:
3960         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
3962         dfa: prefer functions to FETCH_WC macro
3963         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
3964         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
3965         wint_t result into DFA->lex.wctok instead of to a separate arg.
3966         All callers changed.  Move more local decls closer to where
3967         they're used.
3969         dfa: narrow more local var scopes
3970         * lib/dfa.c: Move more local decls to be more local.
3972         dfa: remove duplicate assignment
3973         Problem reported by Bruno Haible in:
3974         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
3975         * lib/dfa.c (parse_bracket_exp): Simplify.
3977 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
3979         dfa: simplify constraint-dependency checking
3980         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
3981         (prev_other_constraint): Remove.
3982         (prev_newline_dependent, prev_letter_dependent):
3983         Simplify, to avoid an unnecessary bitwise AND operation.
3985         dfa: prefer functions and constants to macros
3986         * lib/dfa.c: Prefer constants to macros where either will do.
3987         (streq, isasciidigit, newline_constraint)
3988         (letter_constraint, other_constraint, succeeds_in_context)
3989         (prev_newline_constraint, prev_letter_constraint)
3990         (prev_other_constraint, prev_newline_dependent)
3991         (prev_letter_dependent, accepting, accepts_in_context):
3992         Now static functions instead of function-like macros.
3993         Use lower-case names accordingly.  All uses changed.
3995         dfa: narrow more local var scopes
3996         * lib/dfa.c: Move some more local decls down to nearer where
3997         they're needed.
3999 2016-12-31  Jim Meyering  <meyering@fb.com>
4001         dfa: narrow the scope of many local variables
4002         * lib/dfa.c: Now that we are no longer constrained to c89, move
4003         declarations of many variables (often indices) "down" into the
4004         scope(s) where used or to the point of definition.  This is a
4005         no-semantic-change diff.
4007 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4009         version-etc: new year
4010         * build-aux/gendocs.sh (version):
4011         * doc/gendocs_template:
4012         * doc/gendocs_template_min:
4013         * doc/gnulib.texi:
4014         * lib/version-etc.c (COPYRIGHT_YEAR):
4015         Update copyright dates by hand in templates and the like.
4016         * all files: Run 'make update-copyright'.
4018 2016-12-31  Eric Blake  <eblake@redhat.com>
4020         do-release-commit-and-tag: avoid shell syntax error
4021         * build-aux/do-release-commit-and-tag (curr_br): $branch can
4022         contain spaces when rebasing.
4024         maint.mk: hoist gnulib_dir definition earlier
4025         * top/maint.mk (gnulib_dir): Move near top of file.
4027 2016-12-31  Jim Meyering  <meyering@fb.com>
4029         maint.mk: do not always evaluate intprops-related shell
4030         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
4031         using gnulib_dir undefined (gnulib_dir is defined later in the
4032         file, which will be fixed separately), and besides, there is no
4033         need to incur the cost of this shell invocation for every single
4034         use of this .mk file.  Reported by Eric Blake in
4035         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
4037 2016-12-30  Jim Meyering  <meyering@fb.com>
4039         maint.mk: improve sc_prohibit_intprops_without_use
4040         * top/maint.mk (_intprops_names): Don't hard-code the list of
4041         symbol names.  Instead, derive it on the fly.
4043 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4045         dfa: shorten sbit, success
4046         * lib/dfa.c (struct regex_syntax.sbit):
4047         (struct dfa.success): Use char, not int, for array elements, since
4048         they are all in the range 0..7.
4050         dfa: simplify multibyte_prop etc.
4051         This follows up on a change made when dfa.c was in grep, namely grep
4052         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
4053         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
4054         That earlier simplification allows for some more simplification
4055         and trimming down here.
4056         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
4057         (struct lexer_state): New mamber brack.
4058         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
4059         since they must be in the range 0..3 now.
4060         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
4061         the brack member now supersedes them.
4062         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
4063         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
4064         (dfaparse): Remove unnecessary initializations of already-0 storage.
4065         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
4066         (dfassbuild): No need to clear sup->mbcsets.
4068         dfa: minor performance tweak
4069         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
4071         dfa: wrap charclass inside a struct
4072         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
4073         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
4074         about 5% faster, where list.txt is generated by 'aspell dump
4075         master | head -n 100000 >list.txt'.  See Bug#22239.
4076         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
4077         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
4078         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
4079         Adjust to this, e.g., by using charclass * rather than charclass.
4080         All callers changed as needed.
4081         (copyset): Remove.  All uses changed to simple assignment.
4082         (parse_bracket_exp): Use zeroset instead of memset.
4084 2016-12-30  Jim Meyering  <meyering@fb.com>
4086         maint.mk: update list of intprops.h symbol names
4087         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
4088         This avoids a false failure of the sc_prohibit_intprops_without_use
4089         rule in grep.
4091 2016-12-29  Eric Blake  <eblake@redhat.com>
4093         getopt: fix parallel test failure
4094         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
4095         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
4096         * tests/test-getopt-main.h (main): Use different file names
4097         in case test-getopt-gnu and test-getopt-posix run in parallel.
4099 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4101         xalloc: x2nrealloc check for ptrdiff_t overflow
4102         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
4103         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
4105 2016-12-24  Bruno Haible  <bruno@clisp.org>
4107         lock test: Fix performance problem on multi-core machines.
4108         * tests/test-lock.c (USE_VOLATILE): New macro.
4109         (struct atomic_int): New type.
4110         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
4111         functions.
4112         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
4113         as 'struct atomic_int'.
4114         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
4115         reclock_checker_thread, test_recursive_lock): Use the new functions.
4116         Reported by Eric Blake in
4117         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
4118         and by Pádraig Brady in
4119         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
4121 2016-12-19  Bruno Haible  <bruno@clisp.org>
4123         vma-iter: Fix endless loop on 64-bit Windows.
4124         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
4125         'unsigned long'.
4127 2016-12-19  Bruno Haible  <bruno@clisp.org>
4129         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
4130         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
4131         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
4132         Invoke gt_TYPE_WINT_T instead.
4133         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
4134         * modules/stdint (Files): Add m4/wint_t.m4.
4135         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
4136         * modules/wctype-h (Makefile.am): Likewise.
4137         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
4138         not only on MSVC.
4139         * lib/wctype.in.h (wint_t): Likewise.
4141 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4143         getopt-posix-tests: fix Makefile typo
4144         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
4145         Fix typo: the last ‘_’ was missing in the name.
4146         I suspect that the typo explains this build failure:
4147         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
4148         although I can’t reproduce the problem on Solaris 10 sparc.
4150 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4152         dfa: improve worst-case 'replace' performance
4153         See my note in Bug#22357#71.
4154         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
4155         (merge_constrained): New function, which is like
4156         the old 'merge' function, except with a new argument C2.
4157         Simplify the body by avoiding the need for different sections
4158         of code depending on whether one input is exhausted.
4159         (merge): Use the new function.
4160         (delete): Return the constraint of the deleted position,
4161         not the entire position.  Caller changed.
4162         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
4164 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4166         dfa: performance improvement for removal of epsilon closure
4167         See Bug#22357#32.
4168         * lib/dfa.c (delete): Use binary search to find deleted index.
4169         (replace): New function.  It replaces a position with the followed set.
4170         (epsclosure): Replace it with a new algorithm.  Update caller.
4172 2016-12-18  Bruno Haible  <bruno@clisp.org>
4174         Split tests for getopt-posix and getopt-gnu.
4175         * tests/test-getopt-posix.c: New file.
4176         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
4177         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
4178         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
4179         GNULIB_TEST_GETOPT_GNU.
4180         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
4181         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
4182         (Makefile.am): Test test-getopt-posix instead of test-getopt.
4183         * modules/getopt-gnu-tests: New file.
4184         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
4186 2016-12-18  Bruno Haible  <bruno@clisp.org>
4188         posix-modules: Add options for specific platforms.
4189         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
4190         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
4191         Invoke func_tmpdir. Filter out the excludes.
4193 2016-12-18  Bruno Haible  <bruno@clisp.org>
4195         getopt: Fix link error for users of getopt() in <unistd.h>.
4196         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
4197         __need_getopt is defined. Undefine all macros before defining them.
4198         * modules/getopt (Include): Clarify that including <unistd.h> is also
4199         OK.
4200         * tests/test-getopt.c: Add comment.
4202 2016-12-17  Bruno Haible  <bruno@clisp.org>
4204         getaddrinfo tests: Avoid compilation error on MSVC.
4205         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
4206         getaddrinfo on native Windows.
4208 2016-12-17  Bruno Haible  <bruno@clisp.org>
4210         getlogin, getlogin_r: Fix link errors on MSVC.
4211         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
4212         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
4213         (Link): New section.
4214         * modules/getlogin_r (Files): Add m4/getlogin.m4.
4215         (configure.ac): Require gl_LIB_GETLOGIN.
4216         (Link): New section.
4217         * NEWS: Mention the new link requirements.
4218         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
4219         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
4221 2016-12-17  Bruno Haible  <bruno@clisp.org>
4223         Un-deprecate the 'progname' module.
4224         * NEWS: Describe the appropriate use-cases of 'progname' versus
4225         'getprogname'. Based on discussion summary at
4226         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
4228 2016-12-17  Bruno Haible  <bruno@clisp.org>
4230         Reorganize NEWS a bit.
4231         * NEWS: Move some not so important changes away from section
4232         "Important Notes".
4234 2016-12-17  Bruno Haible  <bruno@clisp.org>
4236         tanhf: Avoid redefinition error on MSVC.
4237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
4238         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
4239         may be defined as an inline function.
4240         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
4241         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
4243 2016-12-17  Bruno Haible  <bruno@clisp.org>
4245         tanf: Avoid redefinition error on MSVC.
4246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
4247         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
4248         may be defined as an inline function.
4249         * modules/math (Makefile.am): Substitute REPLACE_TANF.
4250         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
4252 2016-12-17  Bruno Haible  <bruno@clisp.org>
4254         sqrtf: Avoid redefinition error on MSVC.
4255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
4256         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
4257         may be defined as an inline function.
4258         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
4259         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
4261 2016-12-17  Bruno Haible  <bruno@clisp.org>
4263         sinhf: Avoid redefinition error on MSVC.
4264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
4265         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
4266         may be defined as an inline function.
4267         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
4268         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
4270 2016-12-17  Bruno Haible  <bruno@clisp.org>
4272         sinf: Avoid redefinition error on MSVC.
4273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
4274         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
4275         may be defined as an inline function.
4276         * modules/math (Makefile.am): Substitute REPLACE_SINF.
4277         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
4279 2016-12-17  Bruno Haible  <bruno@clisp.org>
4281         logf: Avoid redefinition error on MSVC.
4282         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
4283         may be defined as an inline function.
4285 2016-12-17  Bruno Haible  <bruno@clisp.org>
4287         log10l: Avoid redefinition error on MSVC.
4288         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
4289         may be defined as an inline function.
4291 2016-12-17  Bruno Haible  <bruno@clisp.org>
4293         log10f: Avoid redefinition error on MSVC.
4294         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
4295         may be defined as an inline function.
4297 2016-12-17  Bruno Haible  <bruno@clisp.org>
4299         hypotl: Avoid redefinition error on MSVC.
4300         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
4301         may be defined as an inline function.
4303 2016-12-17  Bruno Haible  <bruno@clisp.org>
4305         hypotf: Avoid redefinition error on MSVC.
4306         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
4307         may be defined as an inline function.
4309 2016-12-17  Bruno Haible  <bruno@clisp.org>
4311         fmodl: Avoid redefinition error on MSVC.
4312         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
4313         may be defined as an inline function.
4315 2016-12-17  Bruno Haible  <bruno@clisp.org>
4317         fmodf: Avoid redefinition error on MSVC.
4318         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
4319         may be defined as an inline function.
4321 2016-12-17  Bruno Haible  <bruno@clisp.org>
4323         expf: Avoid redefinition error on MSVC.
4324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
4325         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
4326         may be defined as an inline function.
4327         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
4328         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
4330 2016-12-17  Bruno Haible  <bruno@clisp.org>
4332         coshf: Avoid redefinition error on MSVC.
4333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
4334         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
4335         may be defined as an inline function.
4336         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
4337         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
4339 2016-12-17  Bruno Haible  <bruno@clisp.org>
4341         cosf: Avoid redefinition error on MSVC.
4342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
4343         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
4344         may be defined as an inline function.
4345         * modules/math (Makefile.am): Substitute REPLACE_COSF.
4346         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
4348 2016-12-17  Bruno Haible  <bruno@clisp.org>
4350         atan2f: Avoid redefinition error on MSVC.
4351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
4352         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
4353         may be defined as an inline function.
4354         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
4355         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
4357 2016-12-17  Bruno Haible  <bruno@clisp.org>
4359         atanf: Avoid redefinition error on MSVC.
4360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
4361         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
4362         may be defined as an inline function.
4363         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
4364         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
4366 2016-12-17  Bruno Haible  <bruno@clisp.org>
4368         asinf: Avoid redefinition error on MSVC.
4369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
4370         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
4371         may be defined as an inline function.
4372         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
4373         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
4375 2016-12-17  Bruno Haible  <bruno@clisp.org>
4377         acosf: Avoid redefinition error on MSVC.
4378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
4379         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
4380         may be defined as an inline function.
4381         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
4382         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
4384 2016-12-17  Bruno Haible  <bruno@clisp.org>
4386         Avoid redefinition errors on MSVC.
4387         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
4388         the function may be defined as an inline function.
4389         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
4390         the function may be defined as an inline function.
4392 2016-12-17  Bruno Haible  <bruno@clisp.org>
4394         Avoid redefinition errors on MSVC.
4395         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
4396         * lib/unistd.in.h: Include <stdio.h> when necessary.
4398 2016-12-17  Bruno Haible  <bruno@clisp.org>
4400         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
4401         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
4402         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
4403         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
4404         WINT_MAX.
4406 2016-12-17  Bruno Haible  <bruno@clisp.org>
4408         Avoid autoconf warning.
4409         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
4410         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
4412 2016-12-17  Bruno Haible  <bruno@clisp.org>
4414         fpending: Revert workaround against Emacs bug.
4415         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
4416         The Emacs bug is fixed by Eli Zaretskii in
4417         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
4419 2016-12-17  Bruno Haible  <bruno@clisp.org>
4421         getlogin_r tests: Port to mingw.
4422         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
4423         regression introduced on 2014-05-19.
4425 2016-12-17  Bruno Haible  <bruno@clisp.org>
4427         getlogin: Port to newer mingw.
4428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
4429         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
4430         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
4431         HAVE_GETLOGIN.
4432         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
4433         HAVE_GETLOGIN.
4434         * doc/posix-functions/getlogin.texi: Mention the issue.
4435         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
4436         regression introduced on 2014-05-14.
4438 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4440         builtin-expect: improve port to IBM XL C
4441         Problem reported for z/OS by Daniel Richard G. in:
4442         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
4443         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
4444         Test for <builtins.h> directly.
4446         builtin-expect: port to IBM XL C
4447         Problem reported for z/OS by Daniel Richard G. in:
4448         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
4449         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
4450         Also allow __builtin_expect defined via a standard include file.
4452         regex: fix dependency
4453         Problem reported by Bruno Haible in:
4454         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
4455         * modules/regex: Depend on builtin-expect.
4457         builtin-expect: new module
4458         Fix fnmatch to use it.
4459         Problem reported for z/OS by Daniel Richard G.
4460         * lib/fnmatch.c (__builtin_expect):
4461         * lib/glob.c (__builtin_expect):
4462         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
4463         * lib/memmem.c (__builtin_expect) [!_LIBC]:
4464         * lib/scandir.c (__builtin_expect):
4465         * lib/strstr.c (__builtin_expect) [!_LIBC]:
4466         Remove macro; config.h now does this.
4467         * lib/gl_anytreehash_list1.h (add_to_bucket):
4468         * lib/regex_internal.h (BE):
4469         Assume __builtin_expect.
4470         * m4/builtin-expect.m4, modules/builtin-expect: New files.
4471         * modules/avltreehash-list, modules/fnmatch, modules/glob:
4472         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
4473         * modules/scandir, modules/strstr-simple:
4474         Depend on builtin-expect.
4476 2016-12-15  Bruno Haible  <bruno@clisp.org>
4478         init.sh: Add possibility to not delete temporary files.
4479         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
4480         to yes, don't erase the temporary directory.
4482 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4484         regex: fix integer-overflow bug in never-used code
4485         Problem reported by Clément Pit–Claudel in:
4486         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
4487         * lib/regex_internal.h: Include intprops.h.
4488         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
4489         behavior on integer overflow.
4490         * modules/regex (Depends-on): Add intprops.
4492         fpending: fix port to MinGW on Emacs
4493         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
4494         Problem reported by Eli Zaretskii in:
4495         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
4496         Is Plan 9 still a valid porting target, anyway?
4498 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4500         safe-alloc: use xalloc-oversized
4501         * lib/safe-alloc.c: Include xalloc-oversized.h.
4502         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
4503         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
4505         xalloc: do not exceed PTRDIFF_MAX
4506         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
4507         xalloc_oversized check, since objects larger than PTRDIFF_MAX
4508         bytes have pointer-subtraction problems.
4510         malloca: do not exceed PTRDIFF_MAX
4511         * lib/malloca.h: Include xalloc-oversized.
4512         (nmalloca): Use xalloc_oversized instead of rolling our own.
4513         * modules/malloca (Depends-on):
4514         * modules/relocatable-prog-wrapper (Depends-on):
4515         Add xalloc-oversized.
4517         quotearg: pacify GCC better
4518         * modules/quotearg (Depends-on): Add minmax, stdint.
4519         * lib/quotearg.c: Include minmax.h, stdint.h.
4520         (nslots): Now int, as there seems little point to going to extra
4521         work merely to support the INT_MAX slot, which nobody ever uses.
4522         (quotearg_n_options): Redo size-overflow checks to pacify GCC
4523         and to catch (mostly-theoretical) ptrdiff_t problems too.
4524         This can be done via one comparison.
4526 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
4528         xalloc-oversized: check for PTRDIFF_MAX too
4529         This avoids undefined behavior when subtracting pointers to
4530         objects containing more than PTRDIFF_MAX bytes.
4531         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
4532         Also return 1 if the result would exceed PTRDIFF_MAX>
4533         * modules/xalloc-oversized (Depends-on):
4534         Add stdint.
4536         dfa: fix glitches in previous commit
4537         Sorry, I don't know how I managed to commit the wrong version.
4538         * lib/dfa.c (MIN): Move up.
4539         (xpalloc): Now static.
4541         dfa: fix some unlikely integer overflows
4542         I found these while reviewing the recent Coverity-related fix.
4543         This patch changes part of dfa.c to prefer ptrdiff_t instead of
4544         size_t for object counts.  Using ptrdiff_t is the style typically
4545         used in Emacs; although it wastes a sign bit as sizes can never be
4546         negative, it makes -fsanitize=undefined more likely to catch
4547         integer overflows in index calculation, and nowadays the upside is
4548         typically more important than the downside.  Although perhaps the
4549         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
4550         of dfa.c already does, since it uses state_num which is signed),
4551         that is a bigger change and is not needed to fix the bugs I found.
4552         * lib/dfa.c: Include stdint.h and intprops.h.
4553         (TOKEN_MAX): New macro.
4554         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
4555         (charclass_index, parse_bracket_exp, addtok, insert, merge)
4556         (realloc_trans_if_necessary, free_mbdata):
4557         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
4558         This is safe because xpalloc checks that the sizes do not exceed
4559         either SIZE_MAX or PTRDIFF_MAX.
4560         (xpalloc): New function, mostly taken from Emacs.
4561         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
4562         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
4563         (charclass_index): Check for integer overflow in computing
4564         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
4565         added to it later.
4566         (alloc_position_set): Check for integer overflow.  On typical
4567         platforms this check has zero overhead, since the constant
4568         expression is false.
4569         (realloc_trans_if_necessary):
4570         Remove assertion, which I hope Coverity no longer needs.
4572         * modules/dfa (Depends-on): Add intprops, stdint.
4574 2016-12-12  Jim Meyering  <meyering@fb.com>
4576         dfa: add an assertion to avoid coverity false positive
4577         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
4578         warned that "newalloc1 - 2" could overflow.
4580 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
4582         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
4583         * dfa.h (DFA_CASE_FOLD): Remove.
4584         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
4586 2016-12-13  John W. Eaton  <gnu@jweaton.org>
4588         link: fix test to declare use of rename()
4589         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
4590         -Werror=implicit-function-declaration
4592 2016-12-12  Bruno Haible  <bruno@clisp.org>
4594         fpending: Port to native Windows with MSVC.
4595         * lib/fpending.c: Include stdio-impl.h.
4596         (__fpending): Include all known implementations. Err out if it's not
4597         ported.
4598         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
4599         * modules/fpending (Files): Add lib/stdio-impl.h.
4600         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
4602 2016-12-12  Bruno Haible  <bruno@clisp.org>
4604         stdioext: Port to native Windows with MSVC.
4605         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
4606         (struct _gl_real_FILE): New type.
4607         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
4608         Windows.
4609         * lib/fbufmode.c (fbufmode): Add code for native Windows.
4610         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
4611         other SystemV derived implementations.
4612         * lib/fpurge.c (fpurge): Likewise.
4613         * lib/freadable.c (freadable): Likewise.
4614         * lib/freadahead.c (freadahead): Likewise.
4615         * lib/freading.c (freading): Likewise.
4616         * lib/freadptr.c (freadptr): Likewise.
4617         * lib/freadseek.c (freadptrinc): Likewise.
4618         * lib/fseeko.c (fseeko): Likewise.
4619         * lib/fseterr.c (fseterr): Likewise.
4620         * lib/fwritable.c (fwritable): Likewise.
4621         * lib/fwriting.c (fwriting): Likewise.
4622         Reported by Gisle Vanem <gvanem@yahoo.no>.
4624 2016-12-11  Jim Meyering  <meyering@fb.com>
4626         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
4627         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
4628         to work with most shells, but not with the one provided by many
4629         Solaris 10 systems, so running configure with such a /bin/sh evokes
4630         e.g., "./configure: syntax error at line 33602: `(' unexpected".
4631         Reported by Assaf Gordon in
4632         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
4634 2016-12-10  Bruno Haible  <bruno@clisp.org>
4636         threadlib: Optimize out runtime test on Solaris >= 10.
4637         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
4638         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
4639         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
4641 2016-12-10  Bruno Haible  <bruno@clisp.org>
4643         stdint: Update doc about Solaris 9.
4644         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
4646 2016-12-09  Bruno Haible  <bruno@clisp.org>
4648         c-ctype tests: Fix link error on Solaris 9.
4649         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
4650         Reported at <https://savannah.gnu.org/bugs/?46827>.
4652 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4654         dfa: fix performance bug that recomputes trans
4655         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
4656         25 on-demand changes.  The bug caused build_state to reset all
4657         d->trans elements to -2 even when d->trans was already non-null.
4658         Use C99 style decls after statements in this function.
4660         same-inode: port to MinGW
4661         Here st_ino is always 0, so change the definition of SAME_INODE so
4662         that 1 means the two files are the same, 0 with st_ino != 0 means
4663         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
4664         reported by Bruno Haible (Bug#25146).
4665         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
4666         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
4668 2016-12-04  Bruno Haible  <bruno@clisp.org>
4670         javacomp: Support Java 7 and 8.
4671         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
4672         target-version 1.7, 1.8.
4674 2016-12-02  Daiki Ueno  <ueno@gnu.org>
4676         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
4677         GPLv2" rewriting.
4679 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
4681         * gnulib-tool (func_import): Adhere to the license guideline when
4682         rewriting the license text to "LGPLv3+ or GPLv2":
4683         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
4685 2016-12-02  Bruno Haible  <bruno@clisp.org>
4687         localcharset: Avoid theoretical buffer overrun.
4688         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
4689         return value from setlocale if it would lead to a buffer overrun.
4691 2016-12-01  Bruno Haible  <bruno@clisp.org>
4693         Relicense some modules under LGPLv2+.
4694         Kevin Cernekee's approval is in
4695         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
4696         * modules/fseterr (License): Change to LGPLv2+.
4697         * modules/mbchar (License): Likewise.
4698         * modules/mbiter (License): Likewise.
4699         * modules/mbsnlen (License): Likewise.
4700         * modules/wcwidth (License): Likewise.
4702 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4704         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
4705         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
4706         OS/2 kLIBC.
4708 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4710         alphasort, scandir: Port to OS/2 kLIBC
4711         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
4712         declaration.
4713         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
4715 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4717         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
4718         * lib/relocatable.c (relocate): Do not touch pathname if it is started
4719         with '/@unixroot'.
4721 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4723         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
4724         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
4725         OS/2 kLIBC unless TCPV40HDRS is defined.
4727 2016-11-29  Jim Meyering  <meyering@fb.com>
4729         dfa: avoid new infinite loop
4730         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
4731         * lib/dfa.c (dfastate): When constructing a new state table, we could
4732         initially declare that we had found a match, and later find that
4733         constraints eliminate that possibility, yet continue to use the
4734         now stale "matched" indicator.  That would lead to an infinite loop.
4735         The solution is to update "matched" when necessary.
4736         Introduced by commit v0.1-983-g403adf1.
4738 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4740         dfa: avoid match middle in multibyte character
4741         * lib/dfa.c (transit_state): If fails in matching single byte characters
4742         on a state including period expression in non-UTF8 multibyte locales,
4743         skip trailing bytes.
4744         (dfa_supported): Revert previous change.
4746 2016-11-27  Jim Meyering  <meyering@fb.com>
4748         dfa: avoid false match in non-UTF8 multibyte locales
4749         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
4750         as "not supported" so that callers will resort to using regex-based
4751         matcher.  This will surely hurt performance, but correctness trumps
4752         performance here, and the affected locales are less and less relevant,
4753         these days.  See grep's bug report https://bugs.gnu.org/24975.
4755 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
4757         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
4758         * lib/ptsname_r.c: Include the appropriate headers.
4759         [__sun]: Delete sys/sysmacros.h include.
4760         [_AIX || __osf__]: Likewise.
4761         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
4763 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4765         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
4766         * lib/md4.c (md4_process_bytes): The existing define is made internal
4767         in recent versions of glibc, so also use this new public define.
4768         * lib/md5.c (md5_process_bytes): Likewise.
4769         * lib/sha1.c (sha1_process_bytes): Likewise.
4770         * lib/sha256.c (sha256_process_bytes): Likewise.
4771         * lib/sha512.c (sha512_process_bytes): Likewise.
4773 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4775         maint: use a more standard return from mbrtowc test
4776         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
4777         from the test program as this often indicates an
4778         unhandled case in the test program.
4779         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
4780         (gl_MBRTOWC_SANITYCHECK): Likewise.
4781         (gl_MBRTOWC_NULL_ARG2): Likewise.
4782         (gl_MBRTOWC_NUL_RETVAL): Likewise.
4784 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
4786         freopen: work around glibc bug with closed fd
4787         Work around glibc bug#15589, where freopen mishandles the case
4788         where stdin etc. are already closed.
4789         * doc/posix-functions/freopen.texi (freopen): Document the bug.
4790         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
4791         instead of __need_FILE, as the latter does not work with glibc.
4792         Include <fcntl.h>, for open flags.
4793         (rpl_freopen): Work around glibc bug.
4794         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
4795         * modules/freopen (Depends-on): Add fcntl-h.
4796         * tests/test-freopen.c (main): Test for bug.
4798 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4800         fnmatch: fix typo introduced on 2016-08-17
4801         This fixes the port to non-GCC compilers that lack __builtin_expect.
4802         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
4804         dfa: simplify with new function fillset
4805         * lib/dfa.c (fillset): New function.
4806         Use it for clarity when applicable.
4808         dfa: fix glitches with on-demand states
4809         Also, adjust commentary to better match new code.
4810         Some of these glitches predate the recent change.
4811         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
4812         only non-initial states.
4813         (dfastate): Rename locals to better match new roles.
4814         Move them into nested scopes if this is easy.
4815         Omit unnecessary calls to zeroset.
4816         Simplify test for whether to throw in the positions of state 0.
4817         Omit C99-ism (decl after statement) since Gawk still wants C89.
4818         (build_state): Omit unnecessary test and assignment.
4819         Fix some confusion that counted transition tables inaccurately
4820         and could cause a memory leak.
4821         (dfaexec_main): Redo to make it clearer to the compiler that
4822         -1 and -2 are the only negative state numbers here.
4824 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4826         dfa: addition of new state on demand
4827         * src/dfa.c (dfastate): Add argument UC, the current input character.
4828         Fill only a group including the character in transition table.
4829         (realloc_trans_if_necessary): Add the dummy state which means that a
4830         transition table is assigned but the next state is not assigned.
4831         (build_state): Return the next state.  All callers updated.
4832         (transit_state_singlebyte): If we get the dummy state,
4833         fill the transition table.
4834         (dfaexec_main): Handle the dummy state.
4835         (free_mbdata, dfafree): Consider the dummy state.
4837 2016-11-24  Daiki Ueno  <ueno@gnu.org>
4839         srclist: sync with released gettext
4840         * config/srclist.txt: Set "release" option to the files under
4841         $GETTEXT.
4843 2016-11-24  Daiki Ueno  <ueno@gnu.org>
4845         srclist: add "release" option
4846         * config/srclist.txt: Change the format so that the first column
4847         of each line points to the top-level directory of the source
4848         archive.
4849         * config/srclist-update: Accept "release" option that checks files
4850         from the most recently tagged revision in the source archive.
4852 2016-11-21  Bruno Haible  <bruno@clisp.org>
4854         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
4855         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
4856         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
4857         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
4858         Inline and remove member function 'rpl ()' of the wrapper struct.
4860 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4862         dfa: fix logic typo
4863         Problem reported by Stephane Chazelas (Bug#24973).
4864         * lib/dfa.c (using_simple_locale): Fix typo that caused some
4865         non-simple locales like fr_FR to be treated as simple.
4867 2016-11-20  Jim Meyering  <meyering@fb.com>
4869         fix test driver leaks: exclude, malloc, realloc
4870         * tests/test-exclude.c (main): Fix trivial leak.
4871         * tests/test-malloc-gnu.c (main): Likewise.
4872         * tests/test-realloc-gnu.c (main): Likewise.
4873         With these changes, grep's tests are now leak free.
4874         I.e., running them with ASAN elicits no failure:
4875           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
4876             AM_LDFLAGS='-fsanitize=address -static-libasan' check
4878 2016-11-11  Bruno Haible  <bruno@clisp.org>
4880         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
4881         * modules/libunistring: (License): Change from LGPL to
4882         "LGPLv3+ or GPLv2".
4883         * modules/libunistring-optional: Likewise.
4884         * modules/unicase/*: Likewise.
4885         * modules/uniconv/*: Likewise.
4886         * modules/unictype/*: Likewise.
4887         * modules/unigbrk/*: Likewise.
4888         * modules/unilbrk/*: Likewise.
4889         * modules/uniname/*: Likewise.
4890         * modules/uninorm/*: Likewise.
4891         * modules/unistdio/*: Likewise.
4892         * modules/unistr/*: Likewise.
4893         * modules/uniwbrk/*: Likewise.
4894         * modules/uniwidth/*: Likewise.
4896 2016-11-12  Bruno Haible  <bruno@clisp.org>
4898         Relicense some modules under LGPLv2+.
4899         Paul Eggert's approval is in
4900         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
4901         Eric Blake's approval is in
4902         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
4903         Ludovic Courtès's approval is in
4904         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
4905         * modules/isnand-nolibm (License): Change to LGPLv2+.
4906         * modules/isnanf-nolibm (License): Likewise.
4907         * modules/isnanl-nolibm (License): Likewise.
4909 2016-11-19  Bruno Haible  <bruno@clisp.org>
4911         Relicense some modules under LGPLv2+.
4912         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
4913         modules/vasnprintf.
4914         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
4915         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
4916         All other significant changes to the files in lib/ of these modules
4917         are from me.
4918         * modules/memcmp2 (License): Change to LGPLv2+.
4919         * modules/amemxfrm (License): Likewise.
4920         * modules/fpieee (License): Likewise.
4921         * modules/fpucw (License): Likewise.
4922         * modules/frexp-nolibm (License): Likewise.
4923         * modules/frexpl-nolibm (License): Likewise.
4924         * modules/printf-frexp (License): Likewise.
4925         * modules/printf-frexpl (License): Likewise.
4926         * modules/printf-safe (License): Likewise.
4927         * modules/signbit (License): Likewise.
4929 2016-11-17  Bruno Haible  <bruno@clisp.org>
4931         Enable Unicode decoder safety unconditionally.
4932         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
4933         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
4934         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4935         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4936         * lib/unistr/u8-prev.c (u8_prev): Likewise.
4937         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
4938         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
4939         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
4940         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
4941         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
4942         * lib/unistr/u16-prev.c (u16_prev): Likewise.
4943         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
4944         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
4945         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
4946         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
4947         * lib/unistr/u32-prev.c (u32_prev): Likewise.
4948         * lib/unistr/u32-next.c (u32_next): Likewise.
4949         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
4950         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
4951         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4952         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4953         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
4954         CONFIG_UNICODE_SAFETY tests unconditionally.
4955         * tests/unistr/test-u32-mblen.c (main): Likewise.
4956         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
4957         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
4958         * tests/unistr/test-u32-next.c (main): Likewise.
4959         * tests/unistr/test-u32-strmblen.c (main): Likewise.
4960         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
4961         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
4962         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
4963         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
4964         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4965         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
4966         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
4967         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4968         * lib/unistr/u16-check.c (u16_check): Update comment.
4969         * NEWS: Mention the changes that callers should be aware of.
4971 2016-11-19  Bruno Haible  <bruno@clisp.org>
4973         relocatable-prog-wrapper: Fix breakage on Cygwin.
4974         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
4975         (Depends-on): Remove intprops.
4976         * lib/relocwrapper.c: Update dependency tree.
4977         (strerror): Undefine.
4978         * build-aux/install-reloc (func_create_wrapper): Do not compile
4979         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
4981 2016-11-19  Bruno Haible  <bruno@clisp.org>
4983         strerror: Make it compile in C++ mode.
4984         * lib/strerror.c (strerror): Ignore the return value of memcpy().
4986 2016-11-15  Pedro Alves  <palves@redhat.com>
4988         sys_time: add gnulib::timeval for C++
4989         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
4990         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
4991         timeval macro.
4993 2016-11-14  Pedro Alves  <palves@redhat.com>
4995         snippet/c++defs: fix real-floating arg functions in C++ mode
4996         Also, define isfinite, isinf, isnan, signbit in the gnulib
4997         namespace instead of in the global namespace.
4998         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
4999         (_GL_END_NAMESPACE): New.
5000         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
5001         (isfinite, isinf, isnan, signbit) [__cplusplus &&
5002         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
5003         instead of in the global namespace.
5004         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
5005         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
5006         of in the global namespace.
5008 2016-11-13  Jim Meyering  <meyering@fb.com>
5010         strftime: don't use __THROW
5011         Each use of __THROW would provoke this from gcc-7-to-be:
5013           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
5014             on unit local functions [-Wattributes]
5015           static int iso_week_days (int, int) __THROW;
5016           ^~~~~~
5017         * lib/strftime.c (__THROW): Don't define.
5018         Remove each use of __THROW.
5019         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
5020         (tm_diff, iso_week_days, __strftime_internal): Likewise.
5022 2016-11-14  Paul Eggert  <eggert@union>
5024         obstack: port to gcc -fcheck-pointer-bounds
5025         Problem found by 'make check' failure on bleeding-edge coreutils
5026         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
5027         6.2.0-5ubuntu12), configured via "./configure
5028         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
5029         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
5030         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
5031         New macro, copied from fts_.h.
5032         (struct _obstack_chunk.contents): Use it.
5034 2016-11-14  Eric Blake  <eblake@redhat.com>
5036         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
5037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
5038         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
5040 2016-11-14  Pádraig Brady  <P@draigBrady.com>
5042         strptime: fix compile error in recent change
5043         * lib/strptime.c (__strptime_internal): Fix ported code.
5045 2016-11-11  Bruno Haible  <bruno@clisp.org>
5047         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
5048         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
5049         (func_import): Extend determination of license_incompatibilities.
5050         (func_create_testdir): Extend table of license compatibility. Handle
5051         also the licenses GPLv3+, GPL, LGPLv3+.
5053 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
5055         strftime: tune %q
5056         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
5058         Merge strftime.c changes from glibc
5059         This incorporates:
5060         2007-10-16 [BZ #5184] Add tzset_called argument
5061         2008-06-13 [BZ #6612] pass reference to tzset_called around
5062         2009-10-30 Implement Burmese language locale for Myanmar
5063         2010-01-09 Add support for XPG7 testing
5064         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
5065         2015-10-20 Convert miscellaneous function definitions to prototype style
5066         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
5067         it anyway and this lessens the difference between gnulib and glibc.
5068         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
5069         (__THROW): Define if standard headers do not.
5070         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
5071         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
5072         Declare with __THROW.
5073         (__strftime_internal): Rename from strftime_case_. Add arg for
5074         whether tzset is called.  All uses changed.  Call tzset at most
5075         once.  Allow %OC, for Burmese.
5076         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
5077         Don't assume values are in range.
5079 2016-11-12  Eric Blake  <eblake@redhat.com>
5081         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
5082         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
5083         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
5084         different value.
5086 2006-11-12  Pedro Alves  <palves@redhat.com>
5088         Fix gnulib C++ namespace support and std::frexp
5089         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
5090         _GL_CXXALIASWARN.
5092 2006-11-12  Pedro Alves  <palves@redhat.com>
5094         GNULIB_NAMESPACE::func need not pull in rpl_func
5095         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
5096         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
5097         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
5098         struct instead of a function pointer.
5100 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
5102         manywarnings: fix -Wno-missing-field-initializers detection
5103         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
5104         to be independent of -Wunused-variable.  I.E. ensure the latter
5105         warning doesn't occur so that detection of the former is accurate.
5107 2016-11-05  Pádraig Brady  <pbrady@fb.com>
5109         strftime,strptime: support %q to represent the quarter
5110         * lib/strftime.c (strftime_case_): Add %q case.
5111         * lib/strptime.c (__strptime_internal): Likewise.
5112         * tests/test-strftime.c (quarter_test): A new test case.
5114 2016-11-03  Eric Blake  <eblake@redhat.com>
5116         bootstrap: Fix get_version() for AIX 5.3
5117         * build-aux/bootstrap (get_version): Factor out sed script, since
5118         indented comments choke AIX 5.3 sed.
5119         Reported-by: Michael Felt <aixtools@gmail.com>
5121 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
5123         intprops: port to older XL C
5124         Problem reported by Alexander Samoilov in:
5125         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
5126         http://savannah.nongnu.org/bugs/?49448
5127         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
5128         Define to 1 only for XL C 12.1 or later, since this bug
5129         occurs in XL C for AIX 6.0 but not in 12.1.
5131 2016-11-02  Pádraig Brady  <P@draigBrady.com>
5133         backupfile: initialize default suffix within the implementation
5134         * lib/backupfile.c (find_backup_file_name): Initialize the
5135         global variable here, to simplify usage, and to only call
5136         getenv() when needed.
5138 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5140         futimens: remove FIXME for old Linux kernels
5141         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
5142         this in 2012" FIXME, like that for utimensat.
5144         utimensat: remove FIXME for old Linux kernels
5145         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
5146         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
5147         this in 2012" FIXME, by assuming the file system bug is absent
5148         unless demonstrated to be present.  We no longer need to worry
5149         about Linux kernel 2.6.32 when building with newer kernels.
5151 2016-10-16  Bruno Haible  <bruno@clisp.org>
5153         qsort_r: Fix macrology for platforms that lack the function.
5154         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
5155         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
5156         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
5157         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
5158         not exist.
5159         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
5160         the function exists.
5161         * modules/qsort_r: Add comments.
5163 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
5165         sys_types: fix Texinfo typos
5166         * doc/glibc-functions/gnu_dev_major.texi:
5167         * doc/glibc-functions/gnu_dev_makedev.texi:
5168         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
5170 2016-10-26  John David Anglin  <dave.anglin@bell.net>
5172         getprogname: port to HP-UX
5173         See Bug#24805.
5174         * lib/getprogname.c (getprogname) [__hpux]: Port.
5175         * tests/test-getprogname.c (STREQ) [__hpux]:
5176         Special-case for HP-UX limitations on program name length.
5178 2016-10-20  Bruno Haible  <bruno@clisp.org>
5180         Update doc about target platforms.
5181         * doc/gnulib-intro.texi (Target Platforms): Update list.
5183 2016-10-15  Bruno Haible  <bruno@clisp.org>
5185         opendir, readdir, closedir: Relicense under LGPLv2+.
5186         * modules/opendir (License): Change to LGPLv2+.
5187         * modules/readdir (License): Likewise.
5188         * modules/closedir (License): Likewise.
5190 2016-10-16  Bruno Haible  <bruno@clisp.org>
5192         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
5193         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
5194         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
5195         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
5196         HAVE_DECL_STRERROR_R.
5198 2016-10-16  Bruno Haible  <bruno@clisp.org>
5200         Make the 'argp' module work without the 'error' module.
5201         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
5203 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5205         diffseq: restore TOO_EXPENSIVE heuristic
5206         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
5207         (Bug#24715).  The simplest solution is to restore the
5208         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
5209         using a higher threshold to avoid Bug#16848 on smaller files.
5210         * lib/diffseq.h (struct context): Restore member too_expensive.
5211         (struct partition): Restore members lo_minimal, hi_minimal.
5212         (diag, compareseq): Restore arg find_minimal.  All uses changed.
5213         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
5214         1993 to make 'diff' run faster (but not as well) on large inputs,
5215         but use a threshold of 4096 instead of the old 256.
5216         * lib/fstrcmp.c (strcmp_bounded):
5217         * lib/git-merge-changelog.c (compute_differences):
5218         Adjust to diffseq.h changes.
5220 2016-10-22  Bruno Haible  <bruno@clisp.org>
5222         iconv: Avoid compilation error when bootstrapping GNU libiconv.
5223         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
5224         declaration yet, define ICONV_CONST to empty.
5226 2016-10-15  Bruno Haible  <bruno@clisp.org>
5228         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
5229         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
5230         module.
5232 2016-10-16  Bruno Haible  <bruno@clisp.org>
5234         system-quote tests: Avoid compiler warning on AIX.
5235         * tests/test-system-quote-child.c (fopen): Redefine like the system's
5236         <stdio.h> does.
5238 2016-10-16  Bruno Haible  <bruno@clisp.org>
5240         Fix some "gcc -Wall" warnings.
5241         * tests/test-ffsl.c (main): Use variable x, not i.
5242         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
5243         freopen.
5244         * tests/test-sethostname1.c (main): Explicitly ignore the return value
5245         of sethostname.
5247 2016-10-16  Bruno Haible  <bruno@clisp.org>
5249         gnulib-tool: Make --create-testdir on all modules work again.
5250         * gnulib-tool (func_create_testdir): Don't include the
5251         non-recursive-gnulib-prefix-hack module.
5253 2016-10-21  Daiki Ueno  <ueno@gnu.org>
5255         libunistring: change the maintainer to 'all'
5256         * modules/gen-uni-tables, modules/libunistring:
5257         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
5258         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
5259         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
5260         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
5261         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
5262         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
5263         * modules/uniwidth/*: Change the maintainer to 'all'.
5265 2016-10-16  Bruno Haible  <bruno@clisp.org>
5267         Simplify "configure: checking ..." messages.
5268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
5269         AC_MSG_NOTICE.
5270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
5272 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
5274         quotearg-tests: pacify gcc -Wall
5275         Problem reported by Bruno Haible in:
5276         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
5277         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
5278         * tests/test-quotearg.h: ... from here.
5280 2016-10-20  Pádraig Brady  <P@draigBrady.com>
5282         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
5283         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
5284         Needed on Centos <= 4.
5286 2016-10-20  Jim Meyering  <meyering@fb.com>
5288         printf.m4: fix a bug in detecting printf %j support
5289         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
5290         uintmax_t is defined in neither stdint.h nor inttypes.h.
5291         Before, this macro might have mistakenly set
5292         gl_cv_func_printf_sizes_c99=yes on such a system.
5293         Spotted by Zev Weiss.
5295 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5297         sched: substitute HAVE_SYS_CDEFS_H too
5298         Problem reported by Tom G. Christensen in:
5299         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
5300         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
5301         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
5303 2016-10-19  Pádraig Brady  <P@draigBrady.com>
5305         quotearg: never write beyond the returned length
5306         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
5307         scan of the string when we initially encounter a single quote when
5308         shell quoting, so that if we then switch to a more concise quoting method
5309         we will not have written beyond that returned length.
5310         This is significant for sh-quote, which has separate routines
5311         to determine the length and do the actual quoting.
5312         * tests/test-quotearg.h: Reinstate the buffer bounds checking
5313         now that we never write more than the returned length.
5315 2016-10-18  Bruno Haible  <bruno@clisp.org>
5317         getprogname tests: Avoid failure in packages that use libtool.
5318         * tests/test-getprogname.c (main): Strip "lt-" prefix.
5319         Based on a patch by Jim Meyering.
5321 2016-10-16  Bruno Haible  <bruno@clisp.org>
5323         getprogname: Fix test failure on Cygwin. Comments.
5324         * lib/getprogname.h: Add comments.
5325         * lib/getprogname.c: Add comments. Fix #elif indentation.
5326         * tests/test-getprogname.c (main): On Cygwin, expect a result without
5327         ".exe" suffix.
5329 2016-10-16  Bruno Haible  <bruno@clisp.org>
5331         Make sure the libunistring detection rejects older versions with a
5332         known bug.
5333         * modules/unistr/u8-strtok (configure.ac): Bump required version.
5334         * modules/unistr/u16-strtok (configure.ac): Likewise.
5335         * modules/unistr/u32-strtok (configure.ac): Likewise.
5337 2016-10-18  Bruno Haible  <bruno@clisp.org>
5339         sh-quote, system-quote: revert regression of unit test.
5340         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
5341         * tests/test-system-quote-main.c (check_one): Likewise.
5343 2016-10-16  Pádraig Brady  <P@draigBrady.com>
5345         quotearg: fix stale tests
5346         * tests/test-quotearg.c [locale_results]: Add the missing str7
5347         entries to the expected results.
5348         * tests/test-system-quote-main.c (check_one): Don't enforce that we
5349         don't write beyond the returned length, since that's no longer the
5350         case if we switch to a more concise quoting style.
5351         * tests/test-sh-quote.c (check_one): Likewise.
5352         (main): Adjust for the new more concise quoting style.
5353         Reported by Bruno Haible.
5355 2016-10-16  Jim Meyering  <meyering@fb.com>
5357         non-recursive-gnulib-prefix-hack: fix inconsequential typo
5358         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
5359         to "$1".  This macro is always invoked with $1 == lib.
5360         Spotted by Bruno Haible
5362 2016-10-16  Bruno Haible  <bruno@clisp.org>
5364         Fix a test crash.
5365         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
5366         fails.
5368 2016-10-16  Pádraig Brady  <P@draigBrady.com>
5370         test-limits-h: suppress -Woverlength-strings
5371         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
5373 2016-10-15  Bruno Haible  <bruno@clisp.org>
5375         gettime, timespec, utimens: Relicense under LGPL.
5376         * modules/gettime (License): Change to LGPL.
5377         * modules/timespec (License): Likewise.
5378         * modules/utimens (License): Likewise.
5380 2016-10-14  Bruno Haible  <bruno@clisp.org>
5381             Pádraig Brady  <P@draigBrady.com>
5383         canonicalize-lgpl: Support the case path_max > INT_MAX.
5384         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
5385         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
5387 2016-10-13  Jim Meyering  <meyering@fb.com>
5389         getprogname: IBM z/OS: avoid NULL-dereference
5390         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
5391         upon strdup failure.
5393 2016-10-12  Jim Meyering  <meyering@fb.com>
5395         test-stdint: use _GL_VERIFY rather than "verify" for some tests
5396         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
5397         and an abbreviated diagnostic rather than verify with the full one,
5398         because the full-length strings would evoke warnings from gcc with
5399         -Woverlength-strings.
5401 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5403         stdint: port SIZE_MAX to glibc s390
5404         Problem reported by Eric Blake in:
5405         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
5406         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
5407         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
5408         correct type, if possible.
5410 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
5412         getprogname: port to IBM z/OS
5413         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
5415 2016-10-11  Jim Meyering  <meyering@fb.com>
5417         maint: remove stray space after "." in AC_DEFINE comment.
5418         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
5419         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5421 2016-10-05  Jim Meyering  <meyering@fb.com>
5423         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
5424         * lib/long-options.c (parse_long_options): Add a break statement
5425         to avoid this new warning/failure:
5426         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
5427           --create-testdir --dir=/t/x --with-tests --test long-options
5428         ../../gllib/long-options.c: In function 'parse_long_options':
5429         ../../gllib/long-options.c:66:12: error: this statement may \
5430           fall through [-Werror=implicit-fallthrough]
5431                    (*usage_func) (EXIT_SUCCESS);
5432                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
5434 2016-10-05  Jim Meyering  <meyering@fb.com>
5436         utimecmp: avoid new GCC 7 warning from -Wbool-operation
5437         Testing this module would fail when using GCC 7 like this:
5438         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
5439           --dir=/tmp/x --with-tests --test utimecmp
5440         ../../gllib/utimecmp.c: In function ‘utimecmp’:
5441         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
5442           [-Werror=bool-operation]
5443                          time_t s = src_s & ~ (res == 2 * BILLION);
5444                                             ^
5445         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
5446           [-Werror=bool-operation]
5447                src_s &= ~ (res == 2 * BILLION);
5448                         ^
5449         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
5450         Instead, make it explicit that we intend to apply it to 0 or 1.
5452 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5454         dfa: save memory for states
5455         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
5456         states if dfa has a lot of caches.
5458 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
5460         wchar, wctype-h: fix for MinGW 3.22.2
5461         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
5462         special invocation, to fix issues with MinGW 3.22.2 wchar.h
5463         when included from <string.h>.
5464         * lib/wctype.in.h [__MINGW32__]: Add special invocation
5465         convention for MinGW 3.22.2, to solve issues with their
5466         wctype.h when included from <ctype.h>.
5468 2016-10-05  Jim Meyering  <meyering@fb.com>
5470         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
5471         * lib/long-options.c (parse_long_options): Add a break statement
5472         to avoid this new warning/failure:
5473         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
5474           --create-testdir --dir=/t/x --with-tests --test long-options
5475         ../../gllib/long-options.c: In function ‘parse_long_options’:
5476         ../../gllib/long-options.c:66:12: error: this statement may \
5477           fall through [-Werror=implicit-fallthrough]
5478                    (*usage_func) (EXIT_SUCCESS);
5479                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
5481         utimecmp: avoid new GCC 7 warning from -Wbool-operation
5482         Testing this module would fail when using GCC 7 like this:
5483         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
5484           --dir=/tmp/x --with-tests --test utimecmp
5485         ../../gllib/utimecmp.c: In function ‘utimecmp’:
5486         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
5487           [-Werror=bool-operation]
5488                          time_t s = src_s & ~ (res == 2 * BILLION);
5489                                             ^
5490         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
5491           [-Werror=bool-operation]
5492                src_s &= ~ (res == 2 * BILLION);
5493                         ^
5494         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
5495         Instead, make it explicit that we intend to apply it to 0 or 1.
5497 2016-10-03  Pádraig Brady  <P@draigBrady.com>
5499         quotearg: minimize shell quoting using double quotes
5500         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
5501         quote in encountered then use double quotes (c style quoting)
5502         when possible, as it simplifies the quoting.
5503         * tests/test-quotearg-simple.c: Add test cases.
5504         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
5505         for the fact we now may write beyond the returned length.
5507 2016-10-02  Jim Meyering  <meyering@fb.com>
5509         vasnprintf.c: avoid spurious warning from GCC 7
5510         The presence of cpp directives renders this "FALLTHROUGH" comment
5511         ineffective, so does not suppress the -Wimplicit-fallthrough warning
5512         from GCC 7 built from git on 2016-10-02.
5513         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
5514         directives, so that it takes effect once again.  This is clearly
5515         not a proper change, and I will revert it once this bug is fixed:
5516         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
5518 2016-10-01  Jim Meyering  <meyering@fb.com>
5520         getprogname: correct the test for a __progname variable
5521         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
5522         and AC_LINK_IFELSE to check for a global __progname.  If found,
5523         define HAVE_VAR___PROGNAME.
5524         * lib/getprogname.c (getprogname): Reflect the new name of the
5525         feature- checked preprocessor symbol:
5526         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
5528 2016-09-28  Jim Meyering  <meyering@fb.com>
5530         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
5531         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
5532         fall-through case with a /* fallthrough */ comment.
5534         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
5535         * lib/dfa.c (dfassbuild): Mark the end of this case with a
5536         /* fallthrough */ comment.
5538         getprogname: avoid __progname vs program_invocation_short_name pitfall
5539         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
5540         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
5541         not with Fedora 24's glibc-2.23.1-10.
5542         * lib/getprogname.c (__progname): Move this declaration down...
5543         (getprogname): ... into the #elif block where used, and make it
5544         explicitly "extern".
5546         getprogname: port to OpenBSD 5.1
5547         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
5548         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
5549         * modules/getprogname (configure.ac): Move most of this code...
5550         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
5551         increment serial number, and add a test for __progname.
5552         https://bugs.gnu.org/24562
5553         Reported by Nelson H. F. Beebe.
5555 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5557         sched: port to GCC 6.2.1 on macOS Sierra
5558         Problem reported by Denis Davydov in:
5559         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
5560         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
5561         Include <sys/cdefs.h> before <sched.h>.
5562         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
5563         so that we needn’t worry about the sched.h include bug here.
5564         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
5565         and include it before <sched.h> if it exists, when
5566         checking for <sched.h>.
5568         tests/init.sh: port Alpine fix to AIX 7.1
5569         * tests/init.sh (compare_): When attempting to use diff -U3,
5570         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
5571         diff -u not outputting a space after leading '+', as the users
5572         of 'compare' should not be that picky about its output format.
5573         In the AIX 7.1 case, return with diff exit status (or with 2 if
5574         trouble), instead of some random nonzero exit status.
5575         * tests/test-init.sh (test_compare): Remove space after leading
5576         '+', so that AIX 7.1 'diff' passes the test.
5578 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5580         nl_langinfo: pacify GCC
5581         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
5582         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
5584         stdint: also set GL_GENERATE_LIMITS_H
5585         Problem reported by Jim Meyering in:
5586         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
5587         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
5589         limits-h, stdint: Don't assume extensions, fix typo
5590         * m4/limits-h.m4 (gl_LIMITS_H):
5591         * m4/stdint.m4 (gl_STDINT_H):
5592         Don't assume AC_USE_SYSTEM_EXTENSIONS.
5593         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
5594         reported by Jim Meyering in:
5595         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
5597 2016-09-21  Jim Meyering  <meyering@fb.com>
5599         getprogname: port to AIX
5600         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
5601         and strdup to obtain a short program name string.  Using code from
5602         Bruno Haible and an idea from Bastien ROUCARIÈS, in
5603         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
5604         Assaf Gordon reported that this new file would fail to compile on
5605         AIX-7.1 32bit.
5607 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5609         extensions: fix typo in comment
5610         * m4/extensions.m4: Sync from Autoconf master.
5612         stdint: support new _WIDTH macros
5613         * doc/posix-headers/stdint.texi: Document this.
5614         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
5615         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
5616         support for INTMAX_WIDTH, etc. as well as for support for just C99.
5617         * modules/stdint (Depends-on): Add limits-h.
5618         (Makefile.am): Substitute HAVE_C99_STDINT_H.
5619         * modules/stdint-tests (Depends-on): Add extensions, so that
5620         INTMAX_MAX etc. are defined.
5621         * tests/test-stdint.c: Verify the new macros.
5623         limits-h: new module
5624         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
5625         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
5626         * doc/posix-headers/limits.texi: Document new module.
5627         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
5628         * modules/limit-h-tests, tests/test-limits-h.c: New files.
5630         stdio: don't redefine __USE_MINGW_ANSI_STDIO
5631         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
5632         if it is already defined.  Apparently GNU Emacs relies on this.  See:
5633         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
5635 2016-09-15  Eric Blake  <eblake@redhat.com>
5637         sys_types: avoid glibc 2.25 warnings about major()
5638         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
5639         older autoconf.
5640         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
5641         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
5642         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
5643         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
5645         mountlist: include sysmacros.h for glibc
5646         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
5647         AC_HEADER_MAJOR.
5648         * lib/mountlist.c (includes): Use correct headers.
5650 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
5652         extensions: port to more ISO C TSes
5653         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
5654         master, to add support for more recent ISO C TRs and TSes.
5656 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5658         intprops: new macro TYPE_WIDTH
5659         * lib/intprops.h (TYPE_WIDTH): New macro.
5660         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
5661         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
5662         * lib/parse-datetime.y (parse_datetime2):
5663         Use it.
5665         extensions: port to recent ISO C TRs
5666         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5667         Sync from Autoconf master, to add support for recent ISO C TRs.
5668         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
5669         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
5670         the MinGW option is not an extension.
5672 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
5674         dfa: port to Solaris 9
5675         Problems reported by Tom G. Christensen in:
5676         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
5677         * modules/dfa (Depends-on): Add isblank.
5678         * modules/dfa-tests (dfa_match_aux_LDADD):
5679         Rename from test_stat_LDADD, to fix typo.
5680         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
5682 2016-09-10  Jim Meyering  <meyering@fb.com>
5684         strverscmp: avoid link failure on OS X
5685         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
5686         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
5688 2016-08-16  Jim Meyering  <meyering@fb.com>
5690         dfa: new module, importing grep's DFA matcher
5691         Since grep's DFA matcher is now being used by two gnulib-enabled
5692         projects, grep and sed, it makes sense to version-control its
5693         sources and unit tests in one place: here.
5694         * modules/dfa: New module.
5695         * modules/dfa-tests: New file.
5696         * lib/dfa.c: New file, from grep.
5697         * lib/dfa.h: Likewise.
5698         * lib/localeinfo.c: Likewise.
5699         * lib/localeinfo.h: Likewise.
5700         * tests/dfa-match-aux.c: Likewise.
5701         * tests/dfa-invalid-char-class.sh: Likewise.
5702         * tests/dfa-match.sh: Likewise, with minor changes.
5703         * MODULES.html.sh (Misc): Add "dfa" to this list.
5705 2016-09-09  Jim Meyering  <meyering@fb.com>
5707         getprogname-tests: don't depend on assert-h
5708         * modules/getprogname-tests (Depends-on): Remove assert-h.
5709         It was not needed, and in fact would cause build failure for
5710         coreutils on some systems.  Reported by Assaf Gordon in https:
5711         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
5713 2016-09-07  Jim Meyering  <meyering@fb.com>
5715         getprogname-tests: work also when EXEEXT is nonempty
5716         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
5717         * tests/test-getprogname.c (main): Use it.
5718         Suggested by Gisle Vanem.
5720 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
5722         getprogname: fix errors in previous change
5723         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
5724         s/program_invocation_name/base/
5725         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
5727 2016-09-08  Pádraig Brady  <P@draigBrady.com>
5729         parse-datetime: restrict debug output to input string
5730         * lib/parse-datetime.y (parse_datetime2): If we parse
5731         all of the input but determine it's invalid, ensure
5732         we don't output the now invalid input pointer.
5733         This issue was seen with `date -d 'now +1'`.
5735 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5737         flexmember: new macro FLEXALIGNOF
5738         * lib/flexmember.h: Include <stddef.h>, for offsetof.
5739         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
5740         this macro.  Update comments.
5742 2016-09-07  Jim Meyering  <meyering@fb.com>
5744         getprogname: port to systems with __argv (mingw, msvc)
5745         * lib/getprogname.c (getprogname): Include "dirname.h" and use
5746         last_component: more general than open coding it with hard-coded "/".
5747         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
5748         * modules/getprogname (Depends-on): Add dirname-lgpl.
5749         (configure.ac): Check for __argv in <stdlib.h>.
5750         * modules/getprogname-tests: New file.
5751         * tests/test-getprogname.c: New file.
5752         Suggested by Gisle Vanem in
5753         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
5755 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5757         flexmember: port better to GCC + valgrind
5758         With a char[] flexible array member in a struct with nontrivial
5759         alignment, GCC-generated code can access past the end of the
5760         array, because GCC assumes there are padding bytes to get the
5761         struct aligned.  So the common idiom of malloc (offsetof (struct
5762         s, m), n) does not properly allocate an n-byte trailing member, as
5763         malloc’s argument should be the next multiple of alignof (struct s).
5764         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
5765         Although C11 apparently permits this GCC optimization (i.e., there
5766         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
5767         See the thread containing:
5768         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
5769         * lib/flexmember.h: New file.
5770         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
5771         * lib/localename.c, lib/time_rz.c:
5772         Include flexmember.h.
5773         * lib/fnmatch_loop.c (struct patternlist):
5774         * lib/localename.c (struct hash_node):
5775         Use FLEXIBLE_ARRAY_MEMBER.
5776         * lib/fnmatch_loop.c (EXT):
5777         * lib/fts.c (fts_alloc):
5778         * lib/glob.c (glob_in_dir):
5779         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
5780         * lib/localename.c (gl_lock_define_initialized):
5781         * lib/time_rz.c (tzalloc):
5782         Use FLEXSIZEOF instead of offsetof.
5783         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5784         Check that the size of the struct can be taken.
5785         * modules/flexmember (Files): Add lib/flexmember.h.
5786         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
5787         Add flexmember.
5789 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5791         getprogname: port to Solaris 10
5792         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
5793         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
5794         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
5796         stdalign: correct mistake in alignof doc
5797         Problem reported by Joseph Myers in:
5798         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
5799         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
5800         alignof(S) where S is a structure containing a flexible array
5801         member.  The Gnulib substitute does not support this, but C11 does.
5803 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5805         main.mk: remove sc_program_name, since there is no more need to
5806         use set_program_name in tools (getprogname is enough for most
5807         of the cases).
5808         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
5809         * top/maint.mk (sc_program_name): Remove.
5811 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5813         Port tests away from progname, since modules that need the
5814         program name already depend on getprogname.
5815         * modules/acl-tests (Depends-on): Remove progname.
5816         * modules/argmatch (Depends-on): Likewise.
5817         * modules/argmatch-tests (Depends-on): Likewise.
5818         * modules/argp-tests (Depends-on): Likewise.
5819         * modules/argp-version-etc-tests (Depends-on): Likewise.
5820         * modules/array-list-tests (Depends-on): Likewise.
5821         * modules/array-oset-tests (Depends-on): Likewise.
5822         * modules/avltree-list-tests (Depends-on): Likewise.
5823         * modules/avltree-oset-tests (Depends-on): Likewise.
5824         * modules/avltreehash-list-tests (Depends-on): Likewise.
5825         * modules/carray-list-tests (Depends-on): Likewise.
5826         * modules/copy-file-tests (Depends-on): Likewise.
5827         * modules/exclude-tests (Depends-on): Likewise.
5828         * modules/fchownat-tests (Depends-on): Likewise.
5829         * modules/fdopendir-tests (Depends-on): Likewise.
5830         * modules/filenamecat-tests (Depends-on): Likewise.
5831         * modules/fstatat-tests (Depends-on): Likewise.
5832         * modules/fstrcmp-tests (Depends-on): Likewise.
5833         * modules/linked-list-tests (Depends-on): Likewise.
5834         * modules/linkedhash-list-tests (Depends-on): Likewise.
5835         * modules/mkdirat-tests (Depends-on): Likewise.
5836         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
5837         * modules/nonblocking-socket-tests (Depends-on): Likewise.
5838         * modules/obstack-printf-tests (Depends-on): Likewise.
5839         * modules/openat-tests (Depends-on): Likewise.
5840         * modules/parse-datetime-tests (Depends-on): Likewise.
5841         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
5842         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
5843         * modules/quotearg-simple-tests (Depends-on): Likewise.
5844         * modules/quotearg-tests (Depends-on): Likewise.
5845         * modules/rbtree-list-tests (Depends-on): Likewise.
5846         * modules/rbtree-oset-tests (Depends-on): Likewise.
5847         * modules/rbtreehash-list-tests (Depends-on): Likewise.
5848         * modules/spawn-pipe-tests (Depends-on): Likewise.
5849         * modules/system-quote-tests (Depends-on): Likewise.
5850         * modules/uniname/uniname-tests (Depends-on): Likewise.
5851         * modules/uninorm/nfc-tests (Depends-on): Likewise.
5852         * modules/uninorm/nfd-tests (Depends-on): Likewise.
5853         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
5854         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
5855         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
5856         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
5857         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
5858         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
5859         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
5860         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
5861         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
5862         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
5863         * modules/unlinkat-tests (Depends-on): Likewise.
5864         * modules/version-etc-tests (Depends-on): Likewise.
5865         * modules/xalloc-die-tests (Depends-on): Likewise.
5866         * modules/xmemdup0-tests (Depends-on): Likewise.
5867         * modules/xprintf-posix-tests (Depends-on): Likewise.
5868         * modules/xvasprintf-tests (Depends-on): Likewise.
5869         * tests/test-argmatch.c: Do not include progname.h.
5870         (main) Stop calling set_program_name.
5871         * tests/test-argp-version-etc.c: Likewise.
5872         * tests/test-argp.c: Likewise.
5873         * tests/test-argv-iter.c: Likewise.
5874         * tests/test-array_list.c: Likewise.
5875         * tests/test-array_oset.c: Likewise.
5876         * tests/test-avltree_list.c: Likewise.
5877         * tests/test-avltree_oset.c: Likewise.
5878         * tests/test-avltreehash_list.c: Likewise.
5879         * tests/test-carray_list.c: Likewise.
5880         * tests/test-copy-acl.c: Likewise.
5881         * tests/test-copy-file.c: Likewise.
5882         * tests/test-exclude.c: Likewise.
5883         * tests/test-fchownat.c: Likewise.
5884         * tests/test-fdopendir.c: Likewise.
5885         * tests/test-filenamecat.c: Likewise.
5886         * tests/test-fstatat.c: Likewise.
5887         * tests/test-fstrcmp.c: Likewise.
5888         * tests/test-linked_list.c: Likewise.
5889         * tests/test-linkedhash_list.c: Likewise.
5890         * tests/test-mkdirat.c: Likewise.
5891         * tests/test-nonblocking-pipe-main.c: Likewise.
5892         * tests/test-nonblocking-socket-main.c: Likewise.
5893         * tests/test-obstack-printf.c: Likewise.
5894         * tests/test-openat.c: Likewise.
5895         * tests/test-parse-datetime.c: Likewise.
5896         * tests/test-pipe-filter-gi1.c: Likewise.
5897         * tests/test-pipe-filter-gi2-main.c: Likewise.
5898         * tests/test-pipe-filter-ii1.c: Likewise.
5899         * tests/test-pipe-filter-ii2-main.c: Likewise.
5900         * tests/test-quotearg-simple.c: Likewise.
5901         * tests/test-quotearg.c: Likewise.
5902         * tests/test-rbtree_list.c: Likewise.
5903         * tests/test-rbtree_oset.c: Likewise.
5904         * tests/test-rbtreehash_list.c: Likewise.
5905         * tests/test-sameacls.c: Likewise.
5906         * tests/test-set-mode-acl.c: Likewise.
5907         * tests/test-spawn-pipe-main.c: Likewise.
5908         * tests/test-system-quote-main.c: Likewise.
5909         * tests/test-unlinkat.c: Likewise.
5910         * tests/test-version-etc.c: Likewise.
5911         * tests/test-xalloc-die.c: Likewise.
5912         * tests/test-xfprintf-posix.c: Likewise.
5913         * tests/test-xmemdup0.c: Likewise.
5914         * tests/test-xprintf-posix.c: Likewise.
5915         * tests/test-xvasprintf.c: Likewise.
5916         * tests/uniname/test-uninames.c: Likewise.
5917         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5918         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5919         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5920         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5921         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5922         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5923         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5924         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5925         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5926         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5927         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5928         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5929         * tests/test-c-stack.c: (program_name): Do not define.
5930         (main): Do not set program_name.
5931         * tests/test-closein.c: Likewise.
5932         * tests/test-xstrtol.c: Likewise.
5933         * tests/test-yesno.c: Likewise.
5935 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5937         Port modules to use getprogname explicitly, instead of requiring
5938         progname to be used (or program_name to be provided).
5939         * lib/argmatch.c: Do not include progname.h.
5940         [TEST] (program_name): Do not define.
5941         [TEST] (main): Call getprogname instead of using program_name.
5942         * lib/c-stack.c: Do not include progname.h.
5943         (program_name): Do not define.
5944         (die): Call getprogname instead of using program_name.
5945         * lib/chdir-long.c: Do not include progname.h.
5946         [TEST_CHDIR] (main): Do not set program_name.
5947         * lib/error.c [!_LIBC]: Include progname.h.
5948         [!_LIBC] (program_name): Define using getprogname.
5949         * lib/euidaccess.c: Do not include progname.h.
5950         [TEST] (main): Do not set program_name.
5951         * lib/git-merge-changelog.c: Include getprogname.h instead of
5952         progname.h.
5953         (usage): Call getprogname instead of using program_name.
5954         (main): Likewise.  Stop calling set_program_name.
5955         * lib/group-member.c: Do not include progname.h.
5956         [TEST] (main): Do not set program_name.
5957         * modules/argmatch (Depends-on): Add getprogname.
5958         * modules/c-stack (Depends-on): Likewise.
5959         * modules/error (Depends-on): Likewise.
5960         * modules/git-merge-changelog (Depends-on): Likewise.
5961         Also remove progname.
5963 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
5965         * NEWS: Document the deprecation of the 'progname' module.
5967 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5969         getprogname: new module
5970         This provides a LGPL module for getting the name of the current
5971         program, using the same API found on *BSD systems.
5972         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
5973         * modules/getprogname: New files.
5974         * MODULES.html.sh (Misc): Add getprogname.
5976 2016-09-02  Jim Meyering  <meyering@fb.com>
5978         manywarnings: add -fno-common
5979         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
5980         to the list.  Quoting the manual, "Compiling with -fno-common is
5981         useful on targets for which it provides better performance, or if
5982         you wish to verify that the program will work on other systems that
5983         always treat uninitialized variable declarations this way [putting
5984         it in the data section]."  If diffutils had been using this sooner,
5985         it would have prevented this duplicate declaration issue:
5986         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
5988 2016-08-31  Simon Josefsson  <simon@josefsson.org>
5990         parse-datetime: Fix typo.
5991         * lib/parse-datetime.y (parse_datetime2): Fix typo.
5993 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5995         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
5996         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
5997         GCC 5 and 6 that have __builtin_sub_overflow but not
5998         __builtin_sub_overflow_p.  With the recent changes, these
5999         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
6000         implementation than with INT_SUBTRACT_OVERFLOW implementation,
6001         since the former needs just one runtime comparison whereas the
6002         latter needs two.
6004         strverscmp: sync with glibc
6005         Although this doesn't exactly synchronize with glibc
6006         byte-for-byte, it makes the code behave the same as glibc.
6007         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
6008         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
6009         difference shouldn't matter in practical use.  All uses changed
6010         back to isdigit.
6011         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
6012         (next_state): Now unsigned char array; redo elements.
6013         (result_type): Now signed char array; redo elements.
6014         (__strverscmp): Fix glibc bug 9913 by using new states.
6015         * tests/test-strverscmp.c (main): Test glibc bug 9913.
6017 2016-08-29  Jim Meyering  <meyering@fb.com>
6019         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
6020         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
6021         similarly to how it was done to intprops.h.
6023 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6025         intprops.h: port recent changes to GCC 6.2.0
6026         * lib/intprops.h (__has_builtin): Move earlier.
6027         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
6028         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
6029         the last argument can be null.  All uses changed.
6030         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
6031         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6032         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
6033         and it's not clear which GCC versions it works for.
6034         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
6035         its definiens.
6037         intprops.h: use __typeof__ with GCC 7
6038         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
6039         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
6040         This avoids computing the expression's value (which might overflow!).
6042 2016-08-29  Jim Meyering  <meyering@fb.com>
6044         intprops.h, xalloc-oversized.h: work with gcc 7
6045         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
6046         __builtin_mul_overflow each accept a NULL pointer as the third
6047         argument.  However in gcc 7, that is no longer accepted.
6048         Instead, one must use the "_p"-suffixed names, with which, the
6049         third parameter is no longer a pointer.
6050         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
6051         the definition: not true for gcc 7 and subsequent.
6052         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
6053         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6054         Provide new definitions for gcc 7 and subsequent.
6055         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
6056         that works with gcc-7.
6058         intprops.h: fix missing-backslash problems
6059         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
6060         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
6062 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6064         intprops: fix paren typo on old platforms
6065         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
6066         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
6067         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
6068         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
6069         && !defined LLONG_MAX]:
6070         Remove stray paren.
6072         intprops: port to OpenVMS
6073         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
6074         * doc/posix-headers/limits.texi: Document the problem.
6075         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
6076         Define if not already defined.
6078 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
6080         parse-datetime: improve debug implementation
6081         Follow-up to commit 12ad79069 ("add optional debug printing").
6082         Improve parse-datetime's debug implementation: remove macros,
6083         replace global debug flag variable with a function parameter,
6084         use nstrftime for formatting.
6085         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
6086         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
6087         (parse_datetime2): New function, accepts 'flags' parameter, supporting
6088         debug flag. Existing interface 'parse_datetime' left unmodified.
6089         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
6090         (struct parser_control): add 'parse_datetime_debug' member variable.
6091         (parse_datetime): Call new function 'parse_datetime2' without debug.
6092         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
6093         pc.parse_datetime_debug variable as needed.
6094         (to_year): Accept new flags parameter, instead of using global variable.
6095         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
6096         use struct 'debug' variable instead of global variable.
6097         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
6098         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
6099         correspnding functions directly instead of using macros.
6100         * modules/parse-datetime: Add gnulib's strftime module.
6102 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
6104         c-strcase-tests: port to EBCDIC
6105         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
6106         which assume ASCII encoding semantics to run only in ASCII
6107         mode, as they fail in EBCDIC.
6109         sigpipe-tests: fix typo
6110         * tests/test-sigpipe.sh: C, not B.
6112 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6114         canonicalize-lgpl: fix errno after malloca fails
6115         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
6116         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
6117         * lib/canonicalize-lgpl.c (__realpath):
6118         Don't assume malloca sets errno on failure.
6120 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6122         strtod: port errno handling to z/OS
6123         * lib/strtod.c (strtod): Save and restore errno more reliably.
6125 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
6127         strtod: port to z/OS
6128         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
6129         implementation.
6131 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6133         strtod: port to z/OS
6134         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
6135         implementation.
6137         regex, string: rename to avoid '__string'
6138         * lib/regex.h, lib/string.in.h: Do not use the identifier
6139         '__string', as it is effectively reserved by string.h on z/OS.
6141         c-strcase-tests, wcwidth-tests: depend on c-ctype
6142         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
6143         Add c-ctype.
6145 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
6147         thread: port to z/OS
6148         * lib/glthread/thread.c, lib/glthread/thread.h:
6149         Rudimentary gl_thread support for z/OS.
6151         maint: port tests to z/OS errno behavior
6152         * tests/test-nonblocking-reader.h:
6153         * tests/test-nonblocking-writer.h:
6154         Accommodate z/OS errno code preferences. (I believe this should
6155         still be within spec; IBM is good at following the letter if not
6156         the spirit of such things.)
6158         maint: preprocessor changes to support z/OS
6159         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
6160         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
6161         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
6162         * tests/test-nonblocking-pipe.h:
6164         fclose, strstr-simple, wchar: port to z/OS
6165         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
6166         Changes to the Autoconf M4 code to support z/OS.  Note that
6167         fclose() is broken in a different way on z/OS than it is on other
6168         systems, thus the special-case in fclose.m4.
6170         iconv_open-utf-tests, iconv-tests: port to EBCDIC
6171         * tests/test-iconv-utf.c, tests/test-iconv.c:
6172         Added appropriately conditional #pragmas so that the test strings
6173         in test-iconv-utf.c are correctly interpreted in ASCII instead of
6174         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
6175         addressed in a more portable way by simply rewriting all the ASCII
6176         literal characters as octal escapes, but then you would lose the
6177         partial readability that the strings have now. Also, iconv_open()
6178         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
6180         c-strcase-tests, wcwidth-tests: port to EBCDIC
6181         * tests/test-c-strcasecmp.c: Include c-ctype.h.
6182         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
6183         * tests/test-wcwidth.c: Likewise.
6185 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6187         stdbool: don't require _Bool for C++
6188         Problem reported by David Seifert in:
6189         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
6190         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
6191         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
6192         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
6193         stricter about checking that bool and _Bool are compatible in C.
6195 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6197         getdelim: remove dependency on realloc-posix
6198         * lib/canonicalize-lgpl.c (alloc_failed)
6199         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
6200         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
6201         Use __set_errno where needed, for consistency.
6202         * lib/getdelim.c (alloc_failed): New function.
6203         (getdelim): Use it.
6205 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
6207         parse-datetime: add optional debug printing
6208         Print parsing information, warnings, and errors to stderr.
6209         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
6210         * lib/parse-datetime.y:
6211         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
6212         (PROGRESS*): Same as DEBUG, for progress reporting.
6213         (dbg_printf): Print message to stderr, with 'date' prefix.
6214         (struct parser_control): Add 'debug_*_seen' variables.
6215         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
6216         (debug_print_current_time, debug_print_relateive_time): Prints the
6217         current/relative date/time value of parser_control.
6218         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
6219         (to_year): Warn about 2-digit year parsing.
6220         (yylex):   Warn about unrecognized words.
6221         (get_effective_timezone): Returns current timezone in minutes.
6222         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
6223         clearly and unambigiously as possible.
6224         (debug_mktime_not_ok): Print detailed information about failed
6225         date/time values.
6226         (parse_datetime): Add DEBUG messages for failures, warnings. Add
6227         PROGRESS messages for status messages.
6228         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
6230 2016-08-06  Jim Meyering  <meyering@fb.com>
6232         tests/init.sh: exclude dash with bad "local" semantics
6233         * tests/init.sh (gl_shell_test_script_): Add a function to
6234         eliminate a shell like "dash" (unlike bash, zsh) that has
6235         surprising/risky "local var='...'" semantics.  Inspired by
6236         the problem and discussion in https://bugs.gnu.org/24116#11.
6238 2016-08-02  Ján Tomko  <jtomko@redhat.com>
6240         maint.mk: expand the prohibit_doubled_word regex
6241         This check has a static list of words that are checked for
6242         repetitions.  Expand it before running the perl script to
6243         avoid using expensive captures.  This decreases the cost
6244         for libvirt from 1.66s to 0.66s.
6245         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
6246         (sc_prohibit_doubled_word): Use it.
6248 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6250         useless-if-before-free: skip non-matching lines early
6251         * build-aux/useless-if-before-free: First match each line with the
6252         simple/quick /\bif\b/ and reject if there is no match. This often
6253         saves the cost of the much more involved regular expression.
6254         For libvirt, this decreases the cost from 1.44s to 1.02s.
6256 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6258         maint.mk: speed up sc_po_check
6259         sc_po_check would skip files based on their names, or on the
6260         existence of files with derived names. Rewrite it to use perl
6261         instead of shell to make the check faster.
6262         * top/maint.mk (perl_translatable_files_list_): Define.
6263         (sc_po_check): Use it.
6265 2016-07-30  Ján Tomko  <jtomko@redhat.com>
6267         maint.mk: speed up require_config_h_first
6268         Instead of spawning three processes per file,
6269         rewrite the check in perl and run it once for all the files.
6270         * top/maint.mk (perl_config_h_first_): Define.
6271         (sc_require_config_h_first): Use it in place of shell code.
6273 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6275         maint.mk: speed up sc_po_check
6276         sc_po_check would skip files based on their names, or on the
6277         existence of files with derived names. Rewrite it to use perl
6278         instead of shell to make the check faster.
6279         * top/maint.mk (perl_translatable_files_list_): Define.
6280         (sc_po_check): Use it.
6282 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6284         obstack: pacify GCC 6 with -Wnull-dereference
6285         Problem reported by Assaf Gordon in:
6286         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
6287         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
6288         Declare with __attribute_noreturn__.
6289         * lib/obstack.h (__attribute_noreturn__): New macro.
6291 2016-07-13  Eric Blake  <eblake@redhat.com>
6293         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
6294         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
6295         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
6297 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
6299         doc: mention glibc SSIZE_MAX buglet
6300         * doc/posix-headers/limits.texi (limits.h): Document the bug.
6302 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
6304         printf-posix: Fix mingw build
6305         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
6306         expression for detecting C symbol prefixes but forgot to qoute square
6307         brackets in the command line arguments for grep.  That way when
6308         building with mingw the condition was false although it ought to be
6309         true instead.  In particular scenarios this led to the following
6310         compile error:
6312             Cannot export rpl_printf: symbol not found
6313             Cannot export rpl_scanf: symbol not found
6314             collect2: error: ld returned 1 exit status
6316         Fix this by properly quoting square brackets.
6318 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
6320         mktime: call tzset as per POSIX
6321         Problem reported by Ludovic Courtès in:
6322         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
6323         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
6324         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
6326 2016-06-26  Pádraig Brady  <P@draigBrady.com>
6328         fts: handle readdir() errors
6329         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
6330         but also upon error when it will also set errno.  Therefore
6331         flag the error case from readdir().  We treat the case where
6332         no items are read the same as if the dir can't be accessed,
6333         i.e. by setting fts_errno to FTS_DNR.
6335 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6337         intprops: port better to GCC 7
6338         GCC 7 __builtin_add_overflow supports a new usage form, where the
6339         last argument is a null pointer, and which merely returns 1 if an
6340         overflow would occur.  This is a constant expression if all
6341         arguments are constants, and should generate faster code when code
6342         needs to be generated.
6343         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
6344         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6345         Use builtin operations if available.
6346         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
6347         operations are available, as it's almost surely faster.
6349 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6351         intprops-test: port to GCC 6
6352         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
6353         since the bug is not fixed in GCC 6.1.
6355 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6357         xalloc-oversized: port to GCC 7; fewer warnings
6358         GCC 7 will have a better way to deal with integer overflow.
6359         Plus, fix a warnings problem reported by Tim Ruehsen in:
6360         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
6361         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
6362         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
6363         For GCC 5, use __xalloc_oversized if both args are constants,
6364         or if pedantic.
6366 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6368         regex: port to Sun C
6369         Reported by Daiki Ueno.
6370         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
6371         __restrict, in prototype.  This fixes a problem I introduced in
6372         the 2016-02-19 merge from glibc.
6374 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6376         stdbool: Restore __bool_true_false_are_defined check
6377         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
6378         __bool_true_false_are_defined is still defined, even with C++11.
6380 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
6382         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
6383         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
6385 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
6387         Use GCC_LINT, not lint
6388         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
6389         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
6390         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
6391         Document problem with lint and _Noreturn.
6392         * lib/diffseq.h (IF_LINT, IF_LINT2):
6393         * lib/fts.c (sccsid):
6394         * lib/getndelim2.c (IF_LINT):
6395         * lib/gl_anylinked_list2.h (gl_linked_iterator)
6396         (gl_linked_iterator_from_to):
6397         * lib/gl_anytree_list2.h (gl_tree_iterator)
6398         (gl_tree_iterator_from_to):
6399         * lib/gl_anytree_oset.h (gl_tree_iterator):
6400         * lib/gl_array_list.c (gl_array_iterator)
6401         (gl_array_iterator_from_to):
6402         * lib/gl_array_oset.c (gl_array_iterator):
6403         * lib/gl_carray_list.c (gl_carray_iterator)
6404         (gl_carray_iterator_from_to):
6405         * lib/idcache.c:
6406         * lib/inet_ntop.c (IF_LINT):
6407         * lib/regcomp.c (build_charclass_op, create_tree):
6408         * lib/regex_internal.c (re_acquire_state)
6409         (re_acquire_state_context):
6410         * lib/trigl.c (rcsid):
6411         * lib/trim.c (IF_LINT):
6412         * lib/vasnprintf.c (IF_LINT):
6413         * lib/verify.h (assume):
6414         Treat GCC_LINT like lint.
6416 2016-05-29  Bruno Haible  <bruno@clisp.org>
6418         secure_getenv: Port to many more platforms.
6419         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
6420         functions.
6421         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
6422         for non-BSD Unix platforms and for native Windows.
6423         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
6424         Prompted by a request from Nikos Mavrogiannopoulos.
6426 2016-05-27  Eric Blake  <eblake@redhat.com>
6428         canonicalize: Fix broken probe for realpath.
6429         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
6430         in logic introduced in 54615b95.
6432 2016-05-26  Eric Blake  <eblake@redhat.com>
6434         unsetenv: relax to LGPLv2+
6435         * modules/unsetenv (License): Match setenv license.
6437 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
6439         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
6440         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
6441         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
6442         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
6443         (commonarg, dirargs, dirs, infoarg, generate_ascii)
6444         (generate_html, generate_info, generate_tex, outdir)
6445         (source_extra, split, srcfile, texarg): Move above 'version'.
6446         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
6448 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6450         manywarnings: update for GCC 6.1
6451         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
6452         Add GCC 6.1 options that apply to C.
6453         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
6454         do not apply to C, are obsolescent, etc.
6456 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6458         glob: size_t overflow checks
6459         * lib/glob.c (__has_builtin): New macro.
6460         (size_add_wrapv, glob_use_alloca): New static functions.
6461         (glob, glob_in_dir): Check for size_t overflow in several places,
6462         and fix some size_t checks that were not quite right.
6464         glob: don't assume INT_MAX < SIZE_MAX
6465         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
6466         latter is not portable to (probably theoretical) hosts where
6467         SIZE_MAX <= INT_MAX.
6469 2016-05-09  Bruno Haible  <bruno@clisp.org>
6471         Fix undefined behaviour in gettext.h.
6472         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
6473         pointer's value after the storage it points to has been freed.
6474         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
6475         Spotted by Coverity.
6477 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6479         git-version-gen: avoid undefined shift
6480         Problem reported by Mosè Giordano in:
6481         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
6482         * build-aux/git-version-gen: Avoid undefined behavior if invoked
6483         with --prefix or --fallback but without a later argument.  While
6484         we're at it, omit unnecessary quotes.
6486 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
6488         glob: merge glibc changes into lib/glob.c
6489         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
6490         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
6491         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
6492           struct dirent [BZ #19779]
6493         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
6494           callback gl_readdir
6495         2015-10-20 Convert miscellaneous function definitions to prototype style
6496         2015-10-20 Convert 113 more function definitions to prototype style
6497           (files with assertions)
6498         2015-06-12 Fix getlogin_r namespace (bug 18527).
6499         2014-02-10 Use glibc_likely instead __builtin_expect.
6500         2013-10-20 When glob pattern contains a trailing slash match only
6501           directories. Fixes bug 10278.
6502         2013-09-04 glob: silence -Wattribute warnings
6503         2013-06-07 Avoid use of "register" as optimization hint.
6504         2012-09-25 Use size_t instead of int for internal variables in glob
6505           (bug 14621)
6506         2011-07-20 Check for overflows in expressions
6507         2011-05-28 Remove unused variable
6508         2011-05-22 Add a few more alloca size checks
6509         2010-03-27 Whitespace fixes
6510         2010-03-27 Fix one more issue with the glob patch
6511         2010-03-24 Fix glob with empty pattern
6512         2008-05-27 Remove useless more "if" tests before "free"
6513         * modules/glob (Depends-on): Add stdint.
6515 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6517         mktime: port to stricter signed overflow checking
6518         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
6519         (long_int): Require width for INT_MAX * 3 * (seconds per year),
6520         instead of merely for INT_MAX * 2.  In practice platforms that
6521         do the latter also do the former.
6522         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
6523         (shr): New static function, replacing SHR.  All uses changed.
6524         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
6525         and TIME_T_MAX.  All uses changed.
6526         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6527         Use long_int, not time_t.
6528         (long_int_avg): New static function, replacing time_t_avg.
6529         All uses changed.  Round toward positive infinity, as that
6530         generates slightly better code.
6531         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
6532         by INT_ADD_WRAPV.
6533         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
6534         (convert_time): New static function.
6535         (ranged_convert): Use it
6536         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
6537         Use simpler test for loop exit.
6538         (__mktime_internal): Store negative of guessed offset, to simplify
6539         overflow checking.  Remove no-longer-needed test for small time_t
6540         overflows.
6542         mktime: speed up DEBUG_MKTIME benchmarks
6543         Call tzset just once, at the start, rather than for every test
6544         case.  This lets us measure the CPU cost of mktime as opposed to
6545         that of tzset.  This is relevant when TZ is not set and glibc is
6546         being used.  This speeds up tests by a factor of 40 on my Fedora
6547         23 x86-64 platform.
6548         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
6549         to call tzset and as a sanity check.  Later on, use localtime_r
6550         instead of localtime.
6552         mktime: resurrect DEBUG_MKTIME testing
6553         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
6554         Include <string.h>, for strcmp.
6556         mktime: simplify DEBUG_MKTIME
6557         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
6558         Simplify later usage accordingly.
6560         Port mktime_internal offset to unsigned time_t
6561         This avoids some assumptions about wraparound arithmetic on
6562         signed integer overflow.
6563         * lib/mktime-internal.h (mktime_offset_t): New type.
6564         (mktime_internal): Use it in decl.
6565         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
6567         * lib/mktime.c (__mktime_internal, localtime_offset):
6568         * lib/timegm.c (timegm): Use it.
6569         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
6570         (gl_FUNC_MKTIME): Require it.
6572 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
6574         xstrtol: prohibit monstrosities like "1bB"
6575         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
6576         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
6577         "B" only if the first suffix needs a base.
6578         * tests/test-xstrtol.sh: Test this.
6580 2016-04-21  Pádraig Brady  <P@draigBrady.com>
6582         xstrtod: reinstate setting of *result upon ERANGE
6583         * lib/xstrtod.c (XSTRTOD): The user may decide to use
6584         the returned limits upon ERANGE, so allow and document that.
6586 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
6588         xstrtod: modify *result only if no errors
6589         * lib/xstrtod.c (XSTRTOD).
6591 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
6593         btowc: document problems in C locale
6594         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
6595         with mbrtowc.  See: http://bugs.gnu.org/23269#32
6597 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6599         mktime: improve integer overflow checking
6600         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
6601         (WRAPV): Remove; no longer needed.
6602         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
6603         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
6604         Remove.  Use intprops.h defns instead.
6605         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
6606         Use bool for Boolean, for clarity.
6607         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
6608         detect integer overflow.
6609         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
6611         intprops: check two's complement assumption
6612         Suggested by Eric Blake in:
6613         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
6614         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
6615         short, int, long, and (if available) long long are two's complement.
6616         * modules/intprops (Depends-on): Add 'verify'.
6618         intprops, mktime, strtol: assume two's complement
6619         These macros were not portable to every conforming C11 ones'
6620         complement platform.  It's not worth the hassle of porting to some
6621         platforms that use ones' complement or signed magnitude, as such
6622         platforms are almost purely theoretical nowadays and porting even
6623         to some of them makes the code harder to review for little
6624         practical benefit.  Problem reported by Florian Weimer in:
6625         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
6626         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
6627         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
6628         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
6629         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
6630         (TYPE_SIGNED_MAGNITUDE):
6631         Remove.  All uses rewritten to assume two's complement, which is
6632         all we can reasonably test nowadays anyway.
6633         * top/maint.mk (_intprops_names): Remove the removed macros.
6635 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
6637         stdint: port to strict C11 left shift
6638         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
6639         Pacify clang -Wshift-negative-value, which should be an issue only
6640         on clang setups where stdint.h does not conform to C11 or to C++11.
6641         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
6643 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
6645         mbrtowc: work around glibc bug#19932
6646         Fix mbrtowc so that it never returns -1 in the C locale,
6647         as this conflicts with a future version of POSIX
6648         http://austingroupbugs.net/view.php?id=663#c2738
6649         and causes problems with GNU grep: http://bugs.gnu.org/23234
6650         See glibc bug 19932:
6651         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
6652         * doc/posix-functions/mbrlen.texi (mbrlen):
6653         * doc/posix-functions/mbrtowc.texi (mbrtowc):
6654         Document the glibc bug.
6655         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
6656         Include hard-locale.h, locale.h.
6657         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
6658         if the bug is possible.
6659         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
6660         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
6661         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
6662         * modules/mbrtowc (Depends-on): Add hard-locale.
6663         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
6664         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
6665         * tests/test-mbrtowc5.sh: New file.
6667 2016-04-03  Pedro Alves  <palves@redhat.com>
6669         stdint: detect good enough pre-C++11 stdint.h in C++ mode
6670         When gnulib is configured in C++ mode for a system with a working C99
6671         implementation of stdint.h that predates C++11, gnulib ends up
6672         substituting stdint.h anyway.  This works on most targets, but on e.g.,
6673         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
6674         MinGW is LLP64.  Instead of trying to detect the right types, detect
6675         good-enough-pre-C++11 stdint.h and in such case define
6676         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
6677         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
6678         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
6679         conforms to C99.  If it does, check whether it hides symbols
6680         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
6681         does, define those macros in config.h.
6683 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
6685         argp: merge changes from glibc
6686         Among other things, this should fix problems found by a Coverity
6687         scan and reported by Andrei Borzenkov:
6688         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
6689         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
6690         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
6691         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
6692         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
6693         * lib/argp.h:
6694         Merge changes from glibc.
6695         * tests/test-argp-2.sh: Adjust to match new behavior.
6697 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
6699         stddef: support configuring with g++
6700         Problem reported by Ángel González in:
6701         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
6702         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
6703         Do not define if _GCC_MAX_ALIGN_T is defined.
6705 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6707         test-framework-sh: minor cleanups
6708         * tests/init.sh (testdir_prefix_): Output a trailing newline,
6709         since strictly speaking POSIX requires this.
6710         (setup_): Do not use the variable 'fail', as that makes the
6711         trace output harder to read ('fail' is typically used by
6712         tests to mean the test failed).  Treat // portably.
6713         Check that new directory is not merely a sibling of the tmp dir.
6714         Avoid unnecessary invocation of tr.
6716         test-framework-sh: revert port to NetBSD 7.0
6717         It was a false alarm; I misinterpreted Assaf Gordon's report.
6718         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6719         Restore.
6720         (test_dir_): Adjust to mktempd_ change.
6721         (mktempd_): Restore 2nd arg.  Use -t again.
6722         (base_template_, template_, nx_): Resurrect old code.
6724         Port better to Alpine Linux
6725         Its diff implementation does not support -c, but does support -U3.
6726         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6727         * tests/init.sh (diff_opt_): New var.
6728         (compare_): Prefer diff -U3 to diff -c to plain diff.
6730 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6732         test-framework-sh: port to NetBSD 7.0
6733         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6734         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6735         Remove.  All uses removed.
6736         (test_dir_): Adjust to mktempd_ change.
6737         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
6738         (base_template_, template_, nx_): Simplify by hardcoding.
6740 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6742         gitlog-to-changelog: suppress ignored chatter
6743         * build-aux/gitlog-to-changelog: Do not warn about skipping
6744         an SHA if it would have been ignored anyway.
6746 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
6748         setlocale: add "sv" to Windows language table
6749         * lib/setlocale.c (language_table) [W32]: Add "sv".
6750         Reported in <https://savannah.gnu.org/bugs/?44588>.
6752 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6754         sys_select: port to new Cygwin
6755         Problem reported by Ken Brown in:
6756         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
6757         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
6758         diagnostics.
6760 2016-03-17  Jim Meyering  <meyering@fb.com>
6762         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
6763         * tests/test-userspec.c (main): Remove unnecessary braces and fix
6764         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
6765           test-userspec.c:176:9: error: statement is indented as if it were \
6766             guarded by... [-Werror=misleading-indentation]
6767                    {
6768                    ^
6769           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
6770                  if (!diag && !T[i].result)
6771                  ^~
6773 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
6775         time_rz: port to clang -Wunused-const-variable
6776         * lib/time_rz.c (TZ): Remove.  All uses removed.
6778         std-gnu11: improve clang support
6779         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
6780         2016-03-15 Also try clang
6781         2016-03-15 Port C11 and C++11 testing to clang
6783         select: port more to Intel 2016.1.150 compiler
6784         Problem reported by Balázs Hajgató in:
6785         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
6786         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
6788 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6790         select: try to port to 2016.1.150 compiler
6791         Problem reported by Balázs Hajgató in:
6792         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
6793         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
6794         POSIX specifies 'restrict'.
6796 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6798         localename-tests: memory allocation fixes
6799         * tests/test-localename.c (test_locale_name)
6800         (test_locale_name_thread): Don't call freelocale on a locale
6801         that was the base of a successful newlocale, as that
6802         results in a double free.  Problem reported by Assaf Gordon.
6803         (test_locale_name_thread): Free saved names after use, to pacify
6804         gcc -fsanitize=address.
6806 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6808         intprops: make .h file license match module
6809         * lib/intprops.h: Change the license wording to match glibc format.
6810         This is what is in modules/intprops anyway.  See:
6811         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
6813 2016-03-08  Eric Blake  <eblake@redhat.com>
6815         acl: fix missing return on Cygwin
6816         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
6817         fall off end of function. Fixes http://bugs.gnu.org/22949
6819 2016-03-05  Bruno Haible  <bruno@clisp.org>
6821         extern-inline: port to PGI CC
6822         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
6823         keyword 'inline'.
6824         Reported by Adam James Stewart in:
6825         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
6827 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6829         signbit: port back to pre-C++11 GCC
6830         * lib/math.in.h (signbit): Do previous change only if
6831         __cplusplus < 201103.  See Jonathan Wakely in:
6832         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
6834 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
6836         mountlist: recognize autofs-mounted remote file systems, too
6837         Originally reported at: https://bugzilla.redhat.com/1309247
6838         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
6839         "-hosts" because it is used by autofs to mount remote file systems.
6841 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6843         signbit: port to C++ with GCC 6
6844         * lib/math.in.h (signbit) [__cplusplus]:
6845         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
6846         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
6848         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
6850         regex: make it closer to libc
6851         Make Idx a signed type, rather than possibly unsigned.
6852         The unsignedness was not really buying us anything, since the code
6853         overflows for other reasons before getting to PTRDIFF_MAX.  Making
6854         it signed allows us to use -1 and -2 with abandon, like libc does,
6855         thus lessening the number of differences between gnulib and libc.
6856         Also, it should help avoid gratuitous warnings like the one
6857         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
6858         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
6861         regex: merge patches from libc
6863         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
6864         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
6865         Convert miscellaneous function definitions to prototype style.
6866         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
6867         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
6868         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
6869         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
6870         (re_search_internal):
6871         Convert to prototype-style function definition.
6872         Use internal_function for internal functions.
6874 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
6876         stdalign: port to older HP and IBM cc
6877         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
6878         C compilers, by checking their version numbers.  These version
6879         numbers appear in MariaDB and in Qt code that dates way back and
6880         that conditiionally uses the 'aligned' attribute.
6882 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6884         stdalign: port to clang 3.7.0
6885         Problem reported by Herbert J. Skuhra in:
6886         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
6887         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
6888         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
6889         https://llvm.org/bugs/show_bug.cgi?id=26547
6891 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6893         readdir_r: now obsolescent
6894         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
6895         * lib/mountlist.c (read_file_system_list): Add a FIXME.
6897 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6899         misc: port better to gcc -fsanitize=address
6900         Without these patches, ./configure CFLAGS='-fsanitize=address'
6901         would compute incorrect values.  This patch fixes some (but not all)
6902         test failures with recent glibc, with this configuration.
6903         * m4/acl.m4 (gl_ACL_GET_FILE):
6904         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
6905         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
6906         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
6907         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
6908         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
6909         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
6910         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
6911         * m4/getline.m4 (gl_FUNC_GETLINE):
6912         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
6913         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
6914         * m4/regex.m4 (gl_REGEX):
6915         * m4/strndup.m4 (gl_FUNC_STRNDUP):
6916         * tests/test-calloc-gnu.c (main):
6917         * tests/test-duplocale.c (main):
6918         * tests/test-getgroups.c (main):
6919         * tests/test-getline.c (main):
6920         * tests/test-inttostr.c (main):
6921         * tests/test-localename.c (test_locale_name)
6922         (test_locale_name_thread, test_locale_name_environ)
6923         (test_locale_name_default):
6924         * tests/test-regex.c (main):
6925         * tests/test-setlocale1.c (main):
6926         * tests/test-stat.h (test_stat_func):
6927         Free heap-allocated storage before exiting.
6928         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
6929         Don't match *_foo symbols inserted by AddressSanitizer.
6930         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
6932 2016-02-02  Jim Meyering  <meyering@fb.com>
6934         verify-tests: also remove stray test-verify.Tpo
6935         * modules/verify-tests (Makefile.am): Arrange for "make clean"
6936         to remove the test-verify.Tpo file that is left behind by
6937         the automake-generated rule upon compilation failure.
6938         Otherwise, that .Tpo file would cause a failed "make distcheck"
6939         at least for grep.
6941 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
6943         std-gnu11: new module
6944         This makes it easier for applications to prefer C11 and C++11
6945         to older variants, when compiling C and C++ code.
6946         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
6947         a nontrivial chunk of GPLed Autoconf source code.
6948         * COPYING: Mention the m4/*.m4 copyright situation.
6949         * MODULES.html.sh (std-gnu11): New module.
6950         * m4/std-gnu11.m4, modules/std-gnu11: New files.
6952 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6954         get-permissions, strftime: fix grammar in comments
6955         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
6956         some grammar fixes Alan Mackenzie made to GNU Emacs.
6958 2016-01-25  Daiki Ueno  <ueno@gnu.org>
6960         gettext: mark as obsolete
6961         Suggested by Paul Eggert in:
6962         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
6963         * modules/gettext (Status): Mark as obsolete.
6964         (Notice): Suggest to use 'gettext-h' instead.
6965         * modules/gettext-h (Description): Suggest GNU gettext, instead of
6966         the 'gettext' module.
6968 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6970         gnulib-tool: don't give up on ln -s so easily
6971         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
6972         because an earlier one failed.  The targets could be on different
6973         file systems.  Problem reported by KO Myung-Hun in:
6974         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
6976         closedir: fix OS/2-related typos
6977         Problem reported by KO Myung-Hun in:
6978         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
6979         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
6980         in the last couple of changes.
6982 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
6984         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
6985         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
6986         copying a directory.
6988 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6990         regex: treat [x] as x if x is a unibyte encoding error
6991         Problem reported by Aharon Robbins in:
6992         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
6993         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
6994         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
6996         closedir, dirfd, opendir: port to OpenSolaris 5.10
6997         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
6998         * m4/dirfd.m4 (gl_FUNC_DIRFD):
6999         * m4/opendir.m4 (gl_FUNC_OPENDIR):
7000         Don't use ${word##pat} substitution, as it doesn't work in
7001         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
7002         http://bugs.gnu.org/22443#11
7004 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7006         bootstrap: use American spelling
7007         * build-aux/bootstrap: Honor American spelling.
7009 2016-01-22  Karl Berry  <karl@freefriends.org>
7011         * doc/posix-functions/localtime.texi,
7012         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
7014 2016-01-21  Bruno Haible  <bruno@clisp.org>
7016         hash-pjw-bare: fix comment
7017         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
7019         wcwidth: Replace also on OpenBSD 5.8
7020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
7021         * doc/posix-functions/wcwidth.texi: Update.
7023 2016-01-20  Pádraig Brady  <P@draigBrady.com>
7025         gnu-web-doc-update: fix addition of new files
7026         If there were already added (emnpty) dirs,
7027         then cvs aborts the add with the message:
7028           cvs [add aborted]: there is a version in <./dirname> already
7029         * build-aux/gnu-web-doc-update: Add directories separately
7030         to the addition of files, to avoid the above issue
7031         impacting the addition of files.
7033 2016-01-19  Daiki Ueno  <ueno@gnu.org>
7035         utimens-tests: avoid pulling gettext .m4 files
7036         Although this is not the right fix to the original problem:
7037         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
7038         it makes it possible again for consumer projects to use arbitrary
7039         version of gettext, through the steps described at:
7040         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
7041         See here for details:
7042         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
7043         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
7044         'gettext'.
7045         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
7046         'gettext'.
7048 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7050         regex: pacify static checkers
7051         Problem and draft fix reported by Aharon Robbins in:
7052         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7053         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
7054         Clear memory to pacify static checkers.
7056         regex: fix [ diagnostic
7057         Problem and fix reported by Aharon Robbins in:
7058         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7059         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
7061         regex: fix memory leaks
7062         Problem and draft fix reported by Aharon Robbins in:
7063         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7064         * lib/regcomp.c (build_range_exp, build_charclass_op)
7065         * lib/regex_internal.c (re_dfa_add_node):
7066         Fix memory leak on failure.
7068 2016-01-18  Pádraig Brady  <P@draigBrady.com>
7070         fts: don't unconditionally use leaf optimization for NFS
7071         NFS st_nlink are not accurate on all implementations,
7072         leading to aborts() if that assumption is made.
7073         See <https://bugzilla.redhat.com/1299169>
7074         * lib/fts.c (leaf_optimization_applies): Remove NFS from
7075         the white list, and document the issue.
7077 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7078             KO Myung-Hun  <komh@chollian.net>
7080         gnulib-tool: don't assume ln -s works
7081         * gnulib-tool (func_ln_s): New function.
7082         (func_ln): Use it.
7084 2016-01-15  KO Myung-Hun  <komh@chollian.net>
7086         utimes: detect utimes() correctly on OS/2 kLIBC
7087         utimes() of OS/2 kLIBC has some limitations.
7088         1. OS/2 itself supports a file date since 1980 year in local time.
7089         2. OS/2 itself supports only even seconds for a file time.
7090         3. utimes() of OS/2 kLIBC does not work on an opened file.
7091         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
7092         * doc/posix-functions/utimes.texi: Document the above limitations of
7093         utimes() on OS/2 kLIBC.
7095 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7096             KO Myung-Hun  <komh@chollian.net>
7098         openat_proc_name: port to OS/2 kLIBC
7099         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
7100         instead of /proc/self/fd.
7101         * lib/openat-proc.c (openat_proc_name):
7102         Don't assume file name length is less than INT_MAX.
7103         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
7105 2016-01-14  KO Myung-Hun  <komh@chollian.net>
7107         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
7108         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
7109         definitions of intptr_t and uintptr_t (which use int and unsigned)
7110         to avoid clashes with declarations of system functions like sbrk.
7111         * lib/stdint.in.h (intptr_t, uintptr_t): Check
7112         _INTPTR_T_DECLARED before defining them.
7114         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
7115         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
7116         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
7117         Declare on kLIBC.
7118         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
7119         fd associated with dirp.
7120         (_gl_register_dirp_fd): New. Register fd associated with dirp to
7121         dirp_fd_list.
7122         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
7123         (dirfd): Implemented for kLIBC.
7124         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
7125         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
7126         succeeds.
7127         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
7128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7129         (REPLACE_DIRFD): Define to 1 if replaced.
7130         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
7131         * modules/closedir (Depends-on): Add dirfd.
7132         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
7133         condition.
7134         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
7135         * modules/opendir (Depends-on): Add dirfd.
7137         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
7138         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
7139         * lib/dup.c (dup_nothrow): New.
7140         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
7141         (klibc_dup2): New.
7142         * lib/fcntl.c (klibc_fcntl): New.
7143         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
7144         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
7145         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
7146         fd.
7148         pipe_filter_ii_execute: port to OS/2 kLIBC
7149         Pipes on kLIBC do not support O_NONBLOCK like Win32.
7150         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
7151         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
7152         Reuse Win32 code on OS/2 kLIBC.
7153         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
7154         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
7156         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
7157         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
7158         static inline function.  The implementation of wcwidth in wcwidth.c
7159         causes a "conflicting types" error.
7160         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
7162         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
7163         spawn() on OS/2 kLIBC is not silly like one on Windows
7164         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
7165         empty string on OS/2 kLIBC.
7167         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
7168         On OS/2 kLIBC, select() works only on sockets.
7169         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
7171         binary-io: don't put fd in binary mode if it is a console on EMX
7172         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
7173         a console on EMX.
7175 2016-01-15  Pádraig Brady  <P@draigBrady.com>
7177         doc: mention unfixed issues with unsupported localtime() values
7178         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
7179         returns nonsense for localtime(2^56).
7180         * doc/posix-functions/localtime_r.texi: Likewise.
7182 2016-01-14  Pádraig Brady  <P@draigBrady.com>
7184         doc: mention setlocale() issues on OpenBSD
7185         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
7186         never fails, and the need to check categories individually.
7188 2016-01-14  Pádraig Brady  <P@draigBrady.com>
7190         sig2str: list all signals on FreeBSD >= 7
7191         FreeBSD >= 7 is contravening POSIX by not defining NSIG
7192         to the maximal statically defined signal value.
7193         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
7194         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
7195         where available, even when NSIG is defined.
7197 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
7199         acl-permissions: port to USE_ACL==0 platforms
7200         I ran into this problem when building bleeding-edge GNU Emacs
7201         with gcc -fsanitize=address on Fedora 23.  On this platform
7202         the ACL library does not pass the 'configure' test and Emacs
7203         then does not build due in part to what appear to be typos in the
7204         ACL part of Gnulib.
7205         * lib/acl-internal.c (free_permission_context):
7206         * lib/acl-internal.h (struct permission_context):
7207         Test whether USE_ACL is nonzero, not whether it is defined.
7209 2016-01-12  Martin Sebor  <msebor@redhat.com>
7211         mktime: rename macro to avoid glibc clash
7212         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
7213         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
7215 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
7217         Port "$@" to OpenIndiana ksh93
7218         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
7219         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
7220         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
7221         bug long-dead shells, so remove the workaround.
7222         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
7223         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
7224         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
7225         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
7226         Use "$@" instead of ${1+"$@"}.
7228         Port Universal Time settings to strict POSIX
7229         * build-aux/announce-gen, build-aux/bootstrap:
7230         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
7231         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
7232         * build-aux/gnupload, build-aux/mkinstalldirs:
7233         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
7234         * build-aux/update-copyright, build-aux/useless-if-before-free:
7235         * build-aux/vc-list-files, tests/test-strftime.c:
7236         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
7237         but POSIX says the behavior of TZ="UTC" is undefined.
7239 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7241         msvc-inval: fix problem with unset shell var
7242         Problem reported by Karl Berry in:
7243         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
7244         * modules/msvc-inval (Depends-on):
7245         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
7246         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
7248 2016-01-01  Pádraig Brady  <P@draigBrady.com>
7250         tests: for compare_(), use cmp -s where available
7251         * tests/init.sh (compare_): Only fall back to cmp without
7252         the POSIX defined -s option, where this is not available.
7254 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7256         version-etc: new year
7257         * build-aux/gendocs.sh (version):
7258         * doc/gendocs_template:
7259         * doc/gendocs_template_min:
7260         * doc/gnulib.texi:
7261         * lib/version-etc.c (COPYRIGHT_YEAR):
7262         Update copyright dates by hand in templates and the like.
7263         * all files: Run 'make update-copyright'.
7265 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7267         human: fix output buffer overrun by 1
7268         * lib/human.c (human_readable): Fix off-by-one typo in buffer
7269         calculation that could lead to a one-byte buffer overrun.
7271 2015-12-28  Daiki Ueno  <ueno@gnu.org>
7273         maint: fix operator precedence in mbrtowc test
7274         This is a fix for test breakage introduced by commit 45228d96; the
7275         equality expression must be parenthesized when negated with '!',
7276         otherwise we always get:
7278           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
7280         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
7281         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
7283 2015-12-23  James Youngman  <jay@gnu.org>
7285         regexprops-generic: update from regex.h
7286         * doc/regexprops-generic.texi: update by running the regexprops binary
7287         from findutils (the command line is 'regexprops "Regular Expressions"
7288         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
7289         gnulib with GNU grep had made this document out-of-date.
7291 2015-12-23  Pádraig Brady  <P@draigBrady.com>
7293         strftime-tests: avoid false failure on OS X
7294         * tests/test-strftime.c (struct localtime_rz_test): Add an
7295         ahistorical member which is used to warn rather than fail
7296         when tm_isdst isn't set for such entries.  This is the case for
7297         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
7299 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
7301         fts: ensure leaf optimization is used for NFS
7302         NFS provides usable dirent.d_type but not necessarily for all entries
7303         of large directories.  See <https://bugzilla.redhat.com/1252549>
7304         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
7306 2015-12-20  Pádraig Brady  <P@draigBrady.com>
7308         fts: enable leaf optimization for XFS
7309         XFS provides usable dirent.d_type only for DT_DIR,
7310         but the noleaf optimization still applies.
7311         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
7313 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7315         intprops: comment fix
7316         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
7317         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
7319         intprops-test: work around GCC bug 68971
7320         Problem reported by Pádraig Brady in:
7321         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
7322         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
7323         (main): Add a case that better tests 64-bit long in this area.
7325 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
7327         gnulib-tool: allow multiple --local-dir usage
7328         * gnulib-tool: Use --local-dir to construct compound
7329         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
7330         PATH_SEPARATOR early.
7331         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
7332         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
7333         func_determine_path_separator because that needs to be detected
7334         earlier now.
7335         (func_determine_path_separator): New function.
7336         (func_path_foreach, func_path_foreach_inner): New functions.
7337         (func_path_prepend, func_path_append): Likewise.
7338         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
7339         (func_lookup_file, func_all_modules): Use new functions to work
7340         with local_gnulib_path.
7341         (func_modules_in_dir, func_exists_module): New callbacks for
7342         func_path_foreach.
7343         (func_exists_module, func_get_tests_module): Likewise.
7344         (func_is_local_file, func_should_symlink): New helper methods.
7345         (func_add_file, func_update_file): Use new func_should_symlink
7346         instead, DRY.
7347         (func_reconstruct_cached_local_gnulib_path): New helper.
7348         (func_reconstruct_cached_dir): New callback.
7349         (func_import): The cached_local_gnulib_dir renamed to
7350         cached_local_gnulib_path similarly to local_gnulib_dir.
7351         Use new func_reconstruct_cached_local_gnulib_path.
7352         (func_count_relative_local_gnulib_path): New sub-method.
7353         (func_create_testdir): Use func_should_symlink, DRY.
7354         (func_create_megatestdir): Use new functions to work with
7355         local_gnulib_path correctly.
7356         (func_append_local_dir): New helper.
7358 2015-12-08  Pádraig Brady  <P@draigBrady.com>
7360         fix freadptr to work with ungetc on all uClibc configs
7361         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
7362         where GNU coreutils cut(1) generates invalid output on uClibc
7363         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
7364         * lib/freadptr.c (freadptr): Return NULL if there are
7365         ungotten chars.  In this case freadseek() will iterate
7366         again to process the ungotten character.
7368 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
7370         xalloc-oversized: improve performance with GCC 5
7371         * lib/xalloc-oversized.h (xalloc_oversized):
7372         Improve performance with GCC 5 by using __builtin_mul_overflow.
7374 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7376         intprops: new public macro EXPR_SIGNED
7377         Emacs can use this macro, so make it public.
7378         * doc/intprops.texi (Arithmetic Type Properties): Rename from
7379         'Integer Type Determination', since some of these macros apply
7380         to non-integer types.  Clarify what kinds of constant expressions
7381         these macros return.  Say when the arguments can be non-integers.
7382         Mention newly published macro EXPR_SIGNED.
7383         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
7384         make it public.  All uses changed.
7386         intprops: fix typo in clang port
7387         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
7388         '__builtin_add_overflow' that is not caught by compiler.
7390 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
7392         test-timespec: fix typo in previous change
7393         * tests/test-timespec.c (main): Fix typo that reduced test quality.
7395         timespec-sub: fix overflow bug; add tests
7396         * lib/timespec-add.c (timespec_add):
7397         * lib/timespec-sub.c (timespec_sub):
7398         Work even if time_t is narrower than int (a theoretical
7399         possibility).  Redo code for a bit more clarity.
7400         * lib/timespec-sub.c (timespec_sub):
7401         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
7402         * modules/timespec-tests, tests/test-timespec.c: New files.
7404         intprops-test: suppress -Woverlength-strings
7405         Problem reported by Pádraig Brady in:
7406         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
7407         It is not worth the hassle to port this test to compilers that
7408         cannot handle long strings in diagnostics.
7409         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
7411 2015-11-03  Pádraig Brady  <P@draigBrady.com>
7413         quotearg: add quotearg_n_style_colon()
7414         This quotes with default options of the specified style,
7415         but with quoting enabled for instances of ':'.
7416         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
7417         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
7419 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7421         intprops: revise _WRAPV macros, revert _OVERFLOW
7422         The incompatible changes to the _OVERFLOW macros were too much of
7423         a hassle in practice, so revert them.  Instead, change the new
7424         _WRAPV macros to make them closer in behavior to GCC 5's new
7425         builtin_add_overflow etc. functions.  No other software was using
7426         these newly-added macros yet, so this should be OK.
7427         * NEWS: Revert previous change, since the incompatible change
7428         has been reverted, and nobody used the incompatible version.
7429         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
7430         Document revised behavior.
7431         (Integer Range Overflow): Adjust example to match above revisions.
7432         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
7433         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
7434         these can be used in integer constant expressions again.
7435         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
7436         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
7437         needed.
7438         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
7439         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
7440         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
7441         Remove, as they did not seem that useful.
7442         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
7443         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
7444         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
7445         Support new semantics.
7446         (__has_builtin): New macro, if not alreay defined.
7447         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
7448         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
7449         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
7450         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
7451         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
7452         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
7453         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
7454         New macros.
7455         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
7457 2015-11-03  Jim Meyering  <meyering@fb.com>
7459         intprops: add parentheses for when OP has precedence lower than "-"
7460         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
7461         "a OP b" must be parenthesized for when OP is like "<<", which has
7462         lower precedence than the following "-". Reported by Pádraig Brady.
7464 2015-11-03  Pádraig Brady  <P@draigBrady.com>
7466         quotearg: constify get_quoting_style parameters
7467         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
7468         * lib/quotearg.c (get_quoting_style): Likewise.
7470 2015-11-02  Pádraig Brady  <P@draigBrady.com>
7472         quotearg: add support for $'' shell escaping
7473         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
7474         items and descriptions.
7475         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
7476         above types by quoting like "shell", but using $'...' syntax
7477         for non printable characters, which should provide unambiguous
7478         printable output for any input.
7479         * tests/test-quotearg-simple.c: Update accordingly.
7481 2015-11-02  Pádraig Brady  <P@draigBrady.com>
7483         maint: use a more standard return from mbrtowc test
7484         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
7485         from the test program as this is non standard and often
7486         indicates an unhandled case in the test program.
7487         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
7489 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7491         intprops: add WRAPV and const flavors for GCC 5
7492         If available, use GCC 5's builtin functions for efficient integer
7493         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
7494         and safely compute the low-order bits of the correct answer.
7495         A downside of these efficient functions is that they cannot be
7496         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
7497         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
7498         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
7499         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
7500         Document the changes.
7501         (Wraparound Arithmetic): New section.
7502         (Integer Range Overflow):
7503         Put this subsection last, since it's least useful.
7504         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
7505         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
7506         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
7507         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
7508         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
7509         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
7510         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
7511         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
7512         New macros.
7513         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7514         Generate calls to GCC builtins if available, for speed.
7515         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
7516         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
7517         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
7518         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
7519         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
7520         (CHECK_QUOTIENT, CHECK_REMAINDER):
7521         Test WRAPV and CONST flavors (when available) too.
7523 2015-10-30  Pádraig Brady  <P@draigBrady.com>
7525         doc: use extended timezone format in iso-8601 example
7526         * doc/parse-datetime.texi: The standard states that extended format
7527         is to be used consistently throughout.
7528         Note that lib/parse-datetime.y can handle either tz format.
7530 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
7532         stdalign: port to Sun C 5.9
7533         * doc/posix-headers/stdalign.texi: Document this.
7534         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
7535         __attribute__ ((__aligned__ (...))).
7537 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
7539         time_rz: fix comment about tzalloc
7540         * lib/time_rz.c (tzalloc): Fix comment.
7542 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7544         stdalign: work around pre-4.9 GCC x86 bug
7545         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
7546         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
7547         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
7549 2015-10-18  Pádraig Brady  <P@draigBrady.com>
7551         maint.mk: sc_tight_scope: remove extraneous expressions
7552         * top/maint.mk (tight_scope): This is not really required since
7553         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
7554         that matches all nm entries.  But it does remove extraneous entries
7555         that may be confusing or cause issue in future maintenance.
7557 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7559         time_rz: return NULL if localtime_r fails
7560         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
7561         while still attempting to pacify bleeding-edge GCC.
7563         fts: port to C11 alignof
7564         * doc/posix-headers/stdalign.texi (stdalign.h):
7565         Document the C11 restriction.
7566         * lib/fts.c: Include stddef.h, for max_align_t.
7567         (fts_alloc): Align using max_align_t, not FTSENT.
7568         * modules/fts (Depends-on): Add stddef.
7570 2015-10-18  Jim Meyering  <meyering@fb.com>
7572         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
7573         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
7574         would see this:
7576         lib/time_rz.c: In function 'localtime_rz':
7577         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
7578           [-Werror=nonnull]
7579                    if (tm && !save_abbr (tz, tm))
7580                        ^
7582         That was complaining about "tm" because it is a parameter that was
7583         declared with the __nonnull__ attribute.
7584         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
7585         result of localtime_r.
7587 2015-10-17  Jim Meyering  <meyering@fb.com>
7589         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
7590         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
7591         name-extraction regexp mistakenly used \S+, and would mistakenly
7592         extract "*F" from "extern int *F()" rather than the desired "F".
7593         Use \w+ instead.
7595 2015-10-17  Jim Meyering  <meyering@fb.com>
7597         maint.mk: sc_tight_scope: factor and support OS X
7598         * top/maint.mk (_gl_tight_scope): Address three issues:
7599         - factor out four instances of code that wraps a string in "^...$"
7600         - allow nm-reported symbol names to have an optional leading "_"
7601         - add "main" to the list of ignored variable names, because on os x,
7602         "main" has nm-reported type "S" in the variable-checking section.
7604 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
7606         safe-alloc-tests: fix typo in license header
7607         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
7609 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
7611         copy-file: fix mem leak in error case
7612         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
7613         upon error opening or performing I/O to the src and dest files.
7615 2015-10-15  Mike Frysinger  <vapier@chromium.org>
7617         localename: control langinfo.h inclusion
7618         This header is only used to work around buggy behavior in old
7619         versions of glibc, so do not include it all the time.  Otherwise
7620         we get build failures on systems that do not provide langinfo.h.
7621         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
7622         in the source later on.
7623         The patch was originally submitted to gettext as:
7624         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
7626 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7628         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
7629         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
7630         * lib/u64.c, lib/unistd.c:
7631         Append 'typedef int dummy;', to pacify compilers that are picky
7632         about empty translation units.
7634 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
7636         accept4-tests: fix to avoid non portable flags
7637         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
7638         as they are the only documented ones, and passing others may trigger
7639         EINVAL (seen on FreeBSD 10.1-RELEASE).
7640         * doc/glibc-functions/accept4.texi: Mention that we don't provide
7641         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
7643 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
7645         gnulib-tool: fix tests of 'extensions' module
7646         This complements f8fe25fab60e3c687a124 commit.
7647         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
7648         emitting of initial gl_EARLY macros.
7649         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
7650         replaced with func_emit_pre_early_macros call.
7652 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7654         unicase/locale-language: fix typo in utf-8 cookie
7655         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
7656         Problem reported by Zbigniew Jędrzejewski-Szmek.
7658 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7660         xalloc: do not worry about GCC 5 warning on 32 bit
7661         * lib/xalloc.h: Revert previous change.
7662         I found a better way to fix this in coreutils.
7664 2015-10-02  Pádraig Brady  <P@draigBrady.com>
7666         xalloc: avoid GCC 5.1 warning on 32 bit
7667         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
7668         xalloc_oversized(), which was seen to give this warning
7669         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
7670         when simplifying conditional".
7672 2015-10-02  Daiki Ueno  <ueno@gnu.org>
7674         uniname/uniname-tests: avoid compiler warnings
7675         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
7676         unused local variables.
7677         (test_alias_lookup): Fix alias name display in failure cases.
7679 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7681         c-ctype: do not worry about EBCDIC + char signed
7682         Drop support for EBCDIC with char being signed, as this breaks too
7683         many programs.  Problem reported by Ben Pfaff in:
7684         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
7685         * lib/c-ctype.h: Verify that we are not using EBCDIC with
7686         char being signed.
7687         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
7688         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
7689         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
7690         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
7691         * tests/test-c-ctype.c (test_all):
7692         Simplify by assuming standard char values cannot be negative.
7693         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
7695 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7697         c-ctype: port better to z/OS EBCDIC
7698         Problems reported by Daniel Richard G. in:
7699         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
7700         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
7701         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
7702         (_C_CTYPE_OTHER_CNTRL): New macro.
7703         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
7704         from SCHAR_MIN, as the functions are defined only from values
7705         promoted from char or from unsigned char, not necessarily from
7706         signed char.
7708 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
7710         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
7712         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
7713         and ARFLAGS variables.  Doing this unconditionally could break
7714         later Automake's AM_PROG_AR invocation (at least it's
7715         AC_CHECK_TOOLS call to detect correct 'ar' binary).
7717         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
7718         Amsterdam Compiler Kit, so make the previous code to have effects
7719         only on ACK, and rather automatically call the Automake's
7720         AM_PROG_AR as soon as possible to decide other cases.
7722         References:
7723         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
7725         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
7726         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
7727         is possible, keep setting AR/ARFLAGS to reasonable defaults.
7728         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
7729         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
7730         'extensions' module is used.
7731         * modules/extensions (configure.ac-early): Remove as this snippet
7732         is added to gnulib-comp.m4 earlier anyway.
7734 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7736         sockets: MS Windows initalization fixes
7737         Problem reported by Test User in:
7738         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
7739         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
7740         Correct the endianness.
7741         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
7742         number mismatch, not just on <.  Cleanup before any such failure.
7744 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
7746         gc: fix detection of installed libgcrypt version
7747         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
7748         at least as recent as 1.4.4.  The previously used macro is not
7749         available now, since modules were removed in version 1.6.0.
7751 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7753         c-ctype: rewrite to use inline functions
7754         This simplifies maintenance, since it makes for just one
7755         implementation of each function, letting the compiler have the fun
7756         of optimization.  In practice this works well nowadays with GCC.
7757         E.g., c_isascii might need only three instructions even though the
7758         source code lists every ASCII character individually in a large
7759         switch statement.
7760         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
7761         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
7762         * NEWS: Document the API change.
7763         * lib/c-ctype.c: Drastically simplify, since this now just expands
7764         inline functions.
7765         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
7766         (C_CTYPE_INLINE): New macro.
7767         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
7768         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
7769         Verify that either ASCII or EBCDIC is being used.
7770         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
7771         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
7772         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
7773         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
7774         New private macros.
7775         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
7776         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
7777         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
7778         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
7779         (c_tolower, c_toupper): When converting, return the unsigned char,
7780         as that is what z/OS does.
7781         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
7782         of some c-ctype.h macros.
7783         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
7784         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
7785         c_tolower promotion to be compatible with z/OS.
7787 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
7789         gitlog-to-changelog: trim only trailing whitespaces
7790         This is fix for --format regression introduced by commit
7791         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
7792         doubled %n string) had no effect anymore.  This format
7793         specification has been used e.g. by GNU paxuitils (commit
7794         edfd8bcc3).
7796         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
7797         newlines in commmit messages.
7799 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7801         Test that c_iscntrl agrees with iscntrl, etc.
7802         Suggested by Daniel Richard G. in:
7803         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
7804         * modules/c-ctype-tests (Depends-on): Add ctype.
7805         * tests/test-c-ctype.c: Include <ctype.h>.
7806         (NCHARS): New constant.
7807         (test_agree_with_C_locale): New function.
7808         (main): Use it.
7809         (test_all): Use named constants.
7811         c-ctype: improve c_isascii testing
7812         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
7813         Add a test to count the number of ASCII characters.
7815 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7817         savewd: remove SAVEWD_CHDIR_READABLE
7818         It was problematic in the light of file systems that ignore umask.
7819         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
7820         * NEWS: Document this.
7821         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
7822         successful, -1 (setting errno) on failure, rather than something
7823         more complicated than that.
7824         * lib/mkdir-p.c (make_dir_parents):
7825         Do not use SAVEWD_CHDIR_READABLE.
7826         * lib/savewd.c (savewd_chdir):
7827         Remove support for SAVEWD_CHDIR_READABLE.
7828         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
7830         c-ctype: port better to EBCDIC
7831         Problems reported by Daniel Richard G. in
7832         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
7833         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
7834         Include "verify.h".
7835         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
7836         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
7837         Define as enum constants with value false, if not defined, so that
7838         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
7839         code more portable, as both branches of the 'if' are compiled on
7840         all platforms.
7841         (C_CTYPE_EBCDIC): New constant.
7842         Verify that the character set is either ASCII or EBCDIC.
7843         (to_char): New static function.
7844         (c_isascii, c_iscntrl):
7845         Assume standard control-character assignments for EBCDIC.
7846         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
7847         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
7848         Rewrite to use 'if' instead of 'ifdef'.
7849         Use to_char if non-ASCII.  Prefer <= to >=.
7850         Prefer true and false to 1 and 0, for booleans.
7851         (c_iscntrl): Use 'if', not 'ifdef'.
7852         * modules/c-ctype (Depends-on): Add verify.
7853         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
7854         (to_char): New function.
7855         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
7857 2015-09-21  Pádraig Brady  <P@draigBrady.com>
7859         nanosleep: fix return code for interrupted replacement
7860         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
7861         that we return -1 in the case the call is interrupted by a signal,
7862         rather than the current value of 1.
7863         Diagnosed and tested by Daniel Richard G.
7865 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
7867         Diagnose ERE '()|\1'
7868         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
7869         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
7870         track of the set of previously-completed subexpressions available
7871         before the first alternative, and restore this set just before
7872         parsing each subsequent alternative.  This lets us diagnose the
7873         invalid back-reference in the ERE '()|\1'.
7875         regex: merge patches from libc
7877         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
7878         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
7879         * lib/regex_internal.h:
7880         Include <libc-lock.h> instead of <bits/libc-lock.h>.
7882         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
7883         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
7884         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
7885         wcscoll.
7886         * lib/regexec.c (check_node_accept_bytes): Likewise.
7888         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
7889         Fix regex wcrtomb namespace (bug 18496).
7890         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
7891         instead of wcrtomb.
7893         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
7894         Fix regex wctype namespace (bug 18495).
7895         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
7896         instead of towlower.
7897         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
7898         instead of iswlower.  Call __towupper instead of towupper.
7899         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
7900         instead of iswalnum.
7902         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
7903         * lib/regcomp.c (parse_bracket_exp): Initialize type to
7904         COLL_SYM in a couple of places to avoid uninitialized variable
7905         wanings on tilegx gcc 4.8.2.
7907         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7908         * lib/regex_internal.h: Remove NOT_IN_libc.
7910         2014-11-17  Andreas Schwab  <schwab@suse.de>
7911         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
7913         2014-09-11  Roland McGrath  <roland@hack.frob.com>
7914         Move findidx nested functions to top-level.
7915         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
7916         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
7917         Pass new arguments to findidx.
7918         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
7919         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
7920         Don't #include it inside the function.  Pass new arguments to findidx.
7921         * lib/regex_internal.h:
7922         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
7923         (re_string_elem_size_at): Don't #include it inside the function.
7924         Pass new arguments to findidx.
7926         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7927         Check if DEBUG is defined in regex_internal.c
7928         * lib/regex_internal.c: Check if DEBUG is defined and is set.
7930 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
7932         ceill: detect buggy OpenBSD implementation
7933         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
7934         which returns zero for small values.  Discussed here:
7935         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
7937 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
7939         mountlist: add me_mntroot field on Linux machines
7940         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
7941         mount_entry so Linux machines based on /proc/self/mountinfo can
7942         distinguish between bind mounts and original mounts.  In reality bind
7943         mounts aren't treated differently than mountroot=/ mounts by the
7944         kernel, but the user often wants these bind mounts distinguished.
7945         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
7946         More details at https://pad.lv/1432871
7948 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
7950         doc: Describe to use multiple instances of gnulib
7951         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
7952         instances of gnulib with different modules can be used, for example one
7953         for a lib and another one for associated tools.
7955 2015-09-01  Pádraig Brady  <P@draigBrady.com>
7957         base32: mark function as __attribute__ const
7958         * lib/base32.h (isbase32): Mark __attribute__ const as
7959         suggested by GCC, and consistent with the base64 module.
7961 2015-08-20  Daiki Ueno  <ueno@gnu.org>
7963         gnulib-tool: don't transform binary files with sed
7964         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
7965         .mo and .class files.
7966         Reported by Denis Denisov.
7968 2015-08-10  Daiki Ueno  <ueno@gnu.org>
7970         gperf: respect silent rules
7971         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
7972         V_GPERF_0 for silent rules.
7973         * modules/iconv_open (Makefile.am): Use V_GPERF.
7974         * modules/unicase/locale-language (Makefile.am): Likewise.
7975         * modules/unicase/special-casing (Makefile.am): Likewise.
7976         * modules/unictype/category-byname (Makefile.am): Likewise.
7977         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
7978         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
7979         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
7980         * modules/unictype/property-byname (Makefile.am): Likewise.
7981         * modules/unictype/scripts (Makefile.am): Likewise.
7982         * modules/uninorm/composition (Makefile.am): Likewise.
7984 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
7986         Improve port of stdalign to C++11
7987         Problem reported by Sundaram in:
7988         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
7989         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
7990         (__alignas_is_defined): Define if C++11 or newer.
7992 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
7994         pmccabe2html: fix gawk regex escaping
7995         * build-aux/pmccabe2html: Add one more backslash to properly
7996         escape the gsub replacement value.  Fixes this error:
7997         gawk: ./build-aux/pmccabe2html:425: \
7998         warning: escape sequence `\&' treated as plain `&'
8000 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
8002         time_rz: port to pedantic memcpy
8003         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
8004         that reject memcpy (..., NULL, 0).
8006 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
8008         time_rz: port better to MinGW
8009         Don't change tzname, as this makes MinGW dump core (Bug#21020).
8010         Instead, store the tzname copy in the struct tm_zone object.
8011         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
8012         * lib/strftime.c [!_LIBC]:
8013         * lib/time_rz.c: Include time-internal.h.
8014         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
8015         name from *TZ rather than from TZNAME, doable because *TZ now has
8016         a tzname_copy member.
8017         * lib/time-internal.h: New file, with contents taken from
8018         lib/time_rz.c.  It's separate because strftime.c now accesses
8019         struct tm_zone members.
8020         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
8021         New member tzname_copy.
8022         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
8023         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
8024         Initialize tzname_copy member.
8025         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
8026         in tzname_copy member.
8027         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
8028         (restore_tzname): Remove; no longer needed.  All calls removed.
8029         * modules/time_rz (Files): Add lib/time-internal.h.
8031         time: port __need_time_t to MinGW
8032         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
8033         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
8035 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8037         strftime: fix newly-introduced bug on Solaris
8038         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
8039         consistently at the start, rather than doing some of the setup at
8040         the start and some in the %Z format spec.  This is cleaner, and
8041         works better with time_rz on platforms like Solaris where struct
8042         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
8043         mktime_z and localtime_rz can mess up the tzname cache.
8045         test-strftime: test for Solaris bug
8046         * modules/strftime-tests (Depends-on): Add strerror.
8047         * tests/test-strftime.c: Include <errno.h>.
8048         (posixtm_test): New function, containing the old 'main'.
8049         (struct tzalloc_test, struct localtime_rz_test): New types.
8050         (TZ, LT): New static vars.
8051         (tzalloc_test): New function.
8052         (main): Rewrite in terms of posixtm_test and tzalloc_test.
8054         time_rz: port to Solaris etc.
8055         Works around a tzname problem on platforms like Solaris that have
8056         tzname but not tm_zone, by setting tzname at the appropriate time
8057         and restoring it later.
8058         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
8059         New static vars.
8060         (save_abbr) [HAVE_TZNAME]: Set them.
8061         (revert_tz) [HAVE_TZNAME]: Clear or use them.
8062         (restore_tzname): New function.
8063         (localtime_rz, mktime_z): Use it.
8065         time_rz: now LGPL
8066         * modules/time_rz (License): Now LGPL, because strftime depends on it.
8068         time_rz: make a constant 'const'
8069         * lib/time_rz.c (local_tz): Now const.
8071         time_rz: fix off-by-one typo
8072         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
8074 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8076         fprintftime, strftime: use timezone_t args
8077         * NEWS: Document the change.
8078         * lib/fprintftime.h (fprintftime):
8079         * lib/strftime.c (extra_args) [my_strftime]:
8080         * lib/strftime.h (nstrftime):
8081         Time zone arg is now of type timezone_t, not int.
8082         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
8083         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
8084         (my_strftime) [emacs && !my_strftime]:
8085         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
8086         Remove; Emacs doesn't need this any more.
8087         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
8088         fprintftime and nstrftime to call tzset.
8089         (ut) [!my_strftime]: Remove, replacing with ...
8090         (tz) [!my_stftime]: ... this new macro.  All uses changed.
8091         (strftime_case_): Use localtime_rz and mktime_z instead
8092         of localtime_r and mktime.
8093         * modules/fprintftime (Depends-on): Add time_rz.
8094         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
8095         * tests/test-strftime.c (main): Adjust to new nstrftime API.
8097         time_rz: new module
8098         * MODULES.html.sh: Add time_rz.
8099         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
8100         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
8101         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
8102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
8103         New var HAVE_TIMEZONE_T (default 0).
8104         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
8105         New var GNULIB_TIME_RZ (default 0).
8106         * modules/time (time.h): Substitute the new vars.
8108         flexmember: license is now unlimited
8109         * modules/flexmember (License): Change to unlimited,
8110         since its only source file gives an unlimited license.
8112 2015-07-15  Eric Blake  <eblake@redhat.com>
8114         maint: update copyright paper procedures
8115         * config/srclist.txt: Drop outdated files.
8116         * doc/Copyright/conditions.txt: Update to latest.
8117         * doc/Copyright/assign.changes.manual: Delete.
8118         * doc/Copyright/assign.future.manual: Likewise.
8119         * doc/Copyright/assign.manual: Likewise.
8120         * doc/Copyright/assign.translation.manual: Likewise.
8121         * doc/Copyright/disclaim.changes.manual: Likewise.
8122         * doc/Copyright/disclaim.manual: Likewise.
8123         * doc/Copyright/disclaim.program: Likewise.
8125 2015-07-07  Daiki Ueno  <ueno@gnu.org>
8127         localename: fix link error on Illumos
8128         Illumos defines __sun, but does not have getlocalename_l nor the
8129         equivalent.  This partially reverts commit 387c214.
8130         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
8131         available, as well as uselocale.
8132         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
8133         use getlocalename_l if it is not available.
8135 2015-07-07  Daiki Ueno  <ueno@gnu.org>
8137         unistr/uN-strtok-tests: avoid a trivial leak
8138         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
8139         input and delim after the multibyte delimiter tests.
8141 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8143         file-has-acl, acl-permissions: fix HP-UX typos
8144         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
8145         * lib/file-has-acl.c (file_has_acl):
8146         * lib/set-permissions.c (context_acl_from_mode)
8147         (context_aclv_from_mode, set_acls):
8148         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
8149         They were introduced by the recent ACL changes.
8151         regex: match current GNU grep behavior
8152         These symbols have not matched GNU grep behavior for quite some time.
8153         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
8154         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
8155         Change to match current GNU behavior.
8156         Simplify by expressing it as differences from POSIX BREs and EREs.
8157         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
8159 2015-07-03  Jim Meyering  <meyering@fb.com>
8161         set-permissions.c: adjust acl_from_mode's cpp guard
8162         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
8163         directives identical to those guarding the sole use.
8164         Otherwise, on some systems, we'd get a warning about
8165         the function being defined but not used.
8166         Also, filter through cppi to correct misleading indentation
8167         of cpp directives.
8169 2015-07-03  Pádraig Brady  <P@draigBrady.com>
8171         tests: restrict shells to those that support 'local'
8172         The local keyword is very widely supported and used
8173         in tests in coreutils and grep at least.  Therefore
8174         restrict to testing with shells that support it.
8175         This mainly excludes /bin/sh on Solaris.
8176         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
8178 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
8179         and Daiki Ueno  <ueno@gnu.org>
8181         unistr/uN-strtok: handle multibyte delimiters
8182         Previously, uN_strtok moved PTR to the next unit to the token end.
8183         When DELIM contained a multibyte character, the new position could
8184         be a middle of a multibyte character.
8185         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
8186         after the token.
8187         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
8188         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
8189         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
8190         * modules/unistr/u8-strtok (Depends-on): Depend on
8191         unistr/u8-strmblen.
8192         * modules/unistr/u16-strtok (Depends-on): Depend on
8193         unistr/u16-strmblen.
8194         * modules/unistr/u32-strtok (Depends-on): Depend on
8195         unistr/u32-strmblen.
8196         * tests/unistr/test-u-strtok.h: New file.
8197         * tests/unistr/test-u8-strtok.c: New file.
8198         * tests/unistr/test-u16-strtok.c: New file.
8199         * tests/unistr/test-u32-strtok.c: New file.
8200         * modules/unistr/u8-strtok-tests: New file.
8201         * modules/unistr/u32-strtok-tests: New file.
8202         * modules/unistr/u16-strtok-tests: New file.
8204 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
8206         update-copyright: fix test failure with perl >= 5.22 (trivial)
8207         * build-aux/update-copyright: Escape a literal left curly bracket,
8208         required with perl >= 5.22
8210 2015-07-02  Daiki Ueno  <ueno@gnu.org>
8212         u{16,32}-strstr-tests: relax timeout condition
8213         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
8214         tests can take longer than 5 seconds to complete.
8215         Reported by Dagobert Michelsen in:
8216         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
8217         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
8218         seconds to 10 seconds.
8219         * tests/unistr/test-u32-strstr.c (main): Likewise.
8221 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
8223         gnulib-common.m4: change the ARFLAGS default to 'cr'
8224         In some GNU/Linux distributions people started to compile 'ar'
8225         binary with --enable-deterministic-archives (binutils project).
8226         That, however, in combination with previous autotools long time
8227         working default AR{_,}FLAGS=cru causes warnings on such
8228         installations:
8229         ar: `u' modifier ignored since `D' is the default (see `U')
8230         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
8231         set already.
8233 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
8235         selinux-h: avoid double free after *getfilecon()
8236         Originally reported by Ben Shelton on bug-tar:
8237         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
8238         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
8239         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
8240         param should be freed by freecon(3) (regardless the return value).
8242 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
8244         fix pty related tests issues on Windows (trivial)
8245         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
8246         however it's still present in tests/ subdirectory of the final project.
8247         Therefore avoid it to pass `make check`.
8248         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
8249         will just return -ENOSYS, so avoid this non applicable test allowing
8250         the build to proceed.
8252 2015-07-01  Pádraig Brady  <P@draigBrady.com>
8254         acl: fix definition of acl_from_mode on FreeBSD
8255         This was causing basic coreutils copy operations to fail
8256         with ENOTSUP or ENOENT error messages.
8257         * lib/acl-internal.h (acl_from_mode): Only define when
8258         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
8259         of acl_from_mode() defined in lib/set-permissions.c to
8260         be used on FreeBSD at least.
8261         * lib/set-permissions.c: Fix up comment spelling,
8262         and a redundant variable assignment; noticed in passing.
8264 2015-06-30  Pádraig Brady  <P@draigBrady.com>
8266         readutmp: port to FreeBSD >= 9
8267         * lib/readutmp.h: Map utmpxname() to setutxdb().
8268         With that coreutils who(1) and pinky(1) tests pass.
8270 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8272         mgetgroups: port to strict OS X
8273         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
8274         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
8275         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
8276         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
8278 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
8280         mgetgroups: port to strict OS X
8281         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
8282         Document the getgrouplist problem.
8283         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
8284         New macro.
8285         (mgetgroups): Use it.
8286         * m4/mgetgroups.m4 (gl_MGETGROUPS):
8287         Check for OS X signature for getgrouplist.
8289 2015-06-29  Jim Meyering  <meyering@fb.com>
8291         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
8292         It started like this when building coreutils' latest on OS X,
8293         invoking ./configure with a nonempty --cache=.cache:
8295           lib/linkat.c:46:42: error: operator '||' has no right operand
8296           lib/linkat.c: In function 'rpl_linkat':
8297           lib/linkat.c:330:27: error: #if with no expression
8299         Here's linkat.c's line 46:
8301           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
8303         Here's some context:
8305           $ grep linkat_nofoll .cache
8306           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
8307           $ grep LINKAT_SYM lib/config.h
8308           #define LINKAT_SYMLINK_NOTSUP
8310         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
8311         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
8312         but that violates a tenet of AC_CACHE_CHECK: it must
8313         have no side effect other than setting its cache variable.
8315         What happens is that when the cache is set, we'd skip the
8316         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
8317         defined to whatever value it happened to have in configure's
8318         environment.  In my case, it was not defined, so this later code:
8320           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
8321             [Define to 1 if linkat can create hardlinks to symlinks])
8323         would emit code with an empty RHS.
8325         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
8326         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
8328 2015-06-28  Jim Meyering  <meyering@fb.com>
8330         mountlist: avoid an unused-label warning on OS X
8331         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
8332         Building on OS X, I saw a warning about the "free_then_fail" label
8333         being unused.  Give it the _GL_UNUSED_LABEL attribute.
8335         error.c: correct printf-style format: %d -> %u
8336         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
8337         rather than %d, to match the type of "line_number", unsigned int.
8339 2015-06-25  Pádraig Brady  <P@draigBrady.com>
8341         fts: avoid reading beyond the heap allocation
8342         GCC 5.1.1 with -O2 and -fsanitize=address reports
8343         a read of size 4 from a heap object of size 3 is indeed invalid,
8344         though this may be due to incorrect padding assumptions by GCC, see:
8345         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8346         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
8347         * modules/fts: Depend on stdalign.
8349 2015-06-24  Pádraig Brady  <P@draigBrady.com>
8351         savedir: avoid undefined behavior in qsort call
8352         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
8353         "runtime error: null pointer passed as argument 1,
8354          which is declared to never be null"
8355         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
8357 2015-06-24  Pádraig Brady  <P@draigBrady.com>
8359         userspec: avoid undefined behavior in gettext call
8360         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
8361         "runtime error: null pointer passed as argument 2,
8362          which is declared to never be null"
8363         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
8365 2015-06-20  Glenn Morris  <rgm@gnu.org>
8367         gitlog-to-changelog: improve gitmerge.el commits
8368         Let the Emacs ChangeLog generation process exclude "skipped"
8369         messages from merge commits (Bug#20717).
8370         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
8372 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8374         wchar: fix MinGW compilation warnings
8375         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
8376         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
8377         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
8379 2015-06-20  Daiki Ueno  <ueno@gnu.org>
8381         uniname/uniname-tests: use pristine data files
8382         For copyright and maintenance reasons, use the data files from UCD
8383         without modification.
8384         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
8385         (getfield): Remove.
8386         (aliases_count): New global variable.
8387         (fill_names): Skip comments and empty lines in the input.  Don't
8388         use getfield.
8389         (fill_aliases): Likewise.
8390         (main): Change the expected command line arguments to:
8391         NAMES... ["--" ALIASES...].
8392         * tests/uniname/test-uninames.sh: Adjust to the change in
8393         test-uninames.c.
8394         * tests/uniname/UnicodeDataNames.txt: Remove.
8395         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
8396         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
8397         file from Unicode 8.0.0.
8399 2015-06-19  Pádraig Brady  <P@draigBrady.com>
8401         linked-list, linkedhash-list: avoid compiler warnings
8402         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
8403         -Werror=suggest-attribute=pure (from GCC 5.1.1).
8405 2015-06-19  Daiki Ueno  <ueno@gnu.org>
8407         libunistring: bump minimum version to 0.9.6
8408         * all modules depending on updated Unicode data: Regenerate.
8409         The modules are listed by a script that does:
8410         - for each file listed by: git show --oneline --name-only 705f4efc
8411           - deduce the containing modules, based on "Files:"
8412         - deduce the modules which depend on the containing modules, based
8413           on "Depends-on:"
8415 2015-06-18  Daiki Ueno  <ueno@gnu.org>
8417         uniname/uniname: update to Unicode 8.0.0
8418         * lib/uniname/uninames.h: Regenerate.
8419         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
8420         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
8422 2015-06-18  Daiki Ueno  <ueno@gnu.org>
8424         libunistring: update to Unicode 8.0.0
8425         * lib/gen-uni-tables.c (SIZEOF): New macro.
8426         (output_numeric): Increase the maximum number of fractions from
8427         128 to 160.  Increase the level3 value width from 7 bits to 8
8428         bits.  Use SIZEOF instead of a hard-coded integer.
8429         (output_blocks): Decrease the cut-off threshold from 0x30000 to
8430         0x28000.
8431         (fill_blocks): Increase the maximum number of blocks from 256 to
8432         384.  Use SIZEOF instead of a hard-coded integer.
8433         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
8434         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
8435         value width.
8436         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
8437         a new case added to LBP22.
8438         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
8439         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
8440         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
8441         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
8442         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
8443         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8444         lib/uniwidth/width.c.
8445         * all generated files under lib/uni* and tests/uni*: Regenerate.
8447 2015-06-16  Pádraig Brady  <P@draigBrady.com>
8449         gnu-web-doc-update: add --mirror to remove stale files
8450         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
8451         out of date files from the CVS server.  Since this is usually
8452         appropriate, a prompt is given when the option is not specified,
8453         along with the `cvs remove` command that would be run.
8455 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8457         acl-permissions: pacify -Wsuggest-attribute=const
8458         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
8459         * lib/acl-internal.h (free_permission_context):
8460         Declare with attribute const if ! (defined USE_ACL &&
8461         (HAVE_ACL_GET_FILE || defined GETACL)).
8463         fsync: document AIX misbehavior
8464         * doc/posix-functions/fsync.texi (fsync):
8465         Document failure on AIX with read-only file descriptor.
8467 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
8469         stdio: Don't redefine gets when using C++
8470         * lib/stdio.in.h (gets): Disable warning on C++.
8472 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
8474         acl-permissions: port to AIX, C89 HP-UX
8475         Problems reported by Michael Felt.
8476         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
8477         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
8478         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
8479         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
8480         Add cast for AIX, whose system calls are declared to accept
8481         char * even though the arguments are really char const *.
8482         * lib/get-permissions.c (get_permissions):
8483         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
8484         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
8485         that broke a build.
8486         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
8487         Rework types to pacify xlc.
8489 2015-06-03  Pádraig Brady  <P@draigBrady.com>
8491         vasprintf-posix: avoid compiling vasnprintf where possible
8492         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
8493         module where not required.  For example on a GNU/Linux system
8494         when gnulib-tool is run with the --conditional-dependencies option.
8496 2015-06-02  Pádraig Brady  <P@draigBrady.com>
8498         file-has-acl: fix build on Mac OS X 10
8499         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
8500         which has an incompatible 6 parameter getxattr() call.
8501         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
8502         call on Mac OS X >= 10.4.
8503         * doc/glibc-functions/fgetxattr.texi: Likewise.
8504         * lib/file-has-acl.c: Revert to more complete combined check.
8505         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
8506         Reported by Jack Howarth.
8508 2015-06-02  Pádraig Brady  <P@draigBrady.com>
8510         prefix-gnulib-mk: remove no longer needed special case
8511         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
8512         continued lib_SOURCES lines are no longer present,
8513         so special case handling of such entries is not required.
8515 2015-06-01  Pádraig Brady  <P@draigBrady.com>
8517         acl: don't depend on the deprecated qacl module
8518         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
8520 2015-06-01  Pádraig Brady  <P@draigBrady.com>
8522         gnulib-tool: concatenate lib_SOURCES to a single line
8523         * gnulib-tool: Refactor the line merging sed logic,
8524         and use that to output a single lib_SOURCES line for each module.
8525         gnulib using projects often postprocess this output to prepend
8526         subdir paths to each item, and having a single line simplifies this
8527         processing allowing better decoupling from the gnulib-tool output.
8529 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
8531         pthread_sigmask: discount system version if a simple macro (trivial)
8532         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
8533         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
8534         function to ensure it's available.
8536 2015-05-31  Pádraig Brady  <P@draigBrady.com>
8538         readlinkat: avoid OS X 10.10 trailing slash bug
8539         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
8540         has this bug.
8541         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
8542         that OS X 10.10 has this function.
8543         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
8544         as done for readlink().
8545         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
8546         trailing slash bug, and assume readlinkat() has the same issue.
8547         Also fix a typo where $gl_cv_decl_readlink_works was tested,
8548         rather than the correct $gl_cv_decl_readlinkat_works.
8550 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
8552         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
8553         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
8554         module rewrite.
8556         acl-permissions: Fix build on Solaris and Cygwin
8557         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
8558         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
8559         ace_entries variables have moved into struct permission_context but
8560         they were still accessed as local variables here.
8562 2015-05-29  Pádraig Brady  <P@draigBrady.com>
8564         linkat: avoid OS X 10.10 trailing slash with symlink bug
8565         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
8566         causes the symlink to be dereferenced, and if it points
8567         to a non existent file, that file will be created as
8568         a hard link to "path1".
8569         This fixes a test failure in test-linkat.c.
8570         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
8571         this case.  The existing workaround in linkat.c for
8572         trailing slash issues, suffices for this case.
8573         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
8574         the list of platforms with trailing slash issues.
8576 2015-05-28  Pádraig Brady  <P@draigBrady.com>
8578         unlinkat: handle ignoring of ".." on Darwin 14
8579         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
8580         on Mac OS X 10.10, where it ignores paths with a trailing "..",
8581         so handle in the same manner.
8582         * m4/unlinkat.m4: Comment on this Darwin issue.
8583         * doc/posix-functions/unlink.texi: Update the latest version
8584         where the issue was seen.
8585         * doc/posix-functions/unlinkat.texi: Mention this issue.
8586         Fixes a test failure in test-unlinkat.c.
8588 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
8590         qacl: split into qcopy-acl and qset-acl
8591         Emacs needs the former, but not the latter.
8592         * modules/acl-permissions: New file, containing most of the old qacl.
8593         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
8594         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
8595         * modules/qcopy-acl, modules/qset-acl: New files.
8596         * MODULES.html.sh (File system functions):
8597         Mention the new modules, and mention qacl while we're at it.
8599 2015-05-27  Glenn Morris  <rgm@gnu.org>
8601         gitlog-to-changelog: new option --ignore-line
8602         (This patch is imported from the GNU Emacs master.)
8603         This option ignores individual commit lines matching a pattern.
8604         * build-aux/gitlog-to-changelog: Add --ignore-line option.
8606 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
8608         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
8609         Implement get_permissions and set_permissions primitives for getting all
8610         the permissions of a file, storing them, and later setting them. (In the
8611         minimal case, the permissions consist only of a file mode.) Reimplement
8612         qset_acl and qcopy_acl based on these new primitives: this avoids code
8613         duplication and makes error handling more consistent.
8614         The Solaris and Cygwin code still uses duplicate code paths for setting
8615         a file mode while making sure that no acls exist and setting an explicit
8616         acl; this is no worse than before, but could be cleaned up.  The AIX
8617         code still doesn't read ACLs, it only makes sure that acls don't get in
8618         the way when setting a file mode.
8619         * lib/acl-internal.h (struct permission_context): New data structure.
8620         (get_permissions, set_permissions, free_permission_context): Declare.
8621         * lib/acl-internal.c (free_permission_context): New helper function.
8622         * lib/get-permissions.c (get_permissions): New helper function split off
8623         from qcopy_acl.
8624         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
8625         AIX, set a file's permissions based only on a file mode.
8626         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
8627         other platforms construct a temporary acl from the file mode and set
8628         that acl in the same way as setting an acl read from the source file.
8629         This should help avoid code duplication and inconsistent / buggy
8630         behavior.
8631         (set_acls): New helper function Split off from qcopy_acl.
8632         (chmod_or_fchmod): Moved here from qset-acl.c.
8633         (set_permissions): New helper function.
8634         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
8635         set_permissions.
8636         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
8637         * modules/qacl: Add get-permissions.c and set-permissions.c.
8639         file-has-acl: Split feature tests again (Bug#20667)
8640         * lib/file-has-acl.c: Instead of testing for
8641         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
8642         define them when needed.
8643         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
8644         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
8646 2015-05-27  Pádraig Brady  <P@draigBrady.com>
8648         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
8649         This avoids a conflict with "FORTIFY_SOURCE" variants
8650         of the string functions when they're replaced on NetBSD-6.0.1
8651         and Darwin-14.3.0 at least.
8652         * lib/string.in.h: Avoid including our "lib/string.h" while
8653         including the system <string.h>.
8655 2015-05-26  Eric Blake  <eblake@redhat.com>
8657         stdio: limit __gnu_printf__ witness to gcc 4.4+
8658         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
8659         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
8661         error: use correct printf attributes on mingw
8662         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
8664         inttypes: force correct mingw PRIdMAX even without <stdio.h>
8665         * modules/inttypes (Depends-on): Require extensions, so that mingw
8666         always uses GNU style inttypes.
8667         * lib/inttypes.in.h: On mingw, include <stdio.h>.
8669         stdio: fix probe on mingw under gcc 5.1
8670         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
8671         around new gcc preprocessor rules.
8673 2015-05-07  Glenn Morris  <rgm@gnu.org>
8675         gitlog-to-changelog: parse "Tiny-change"
8676         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
8677         "Copyright-paperwork-exempt".  (Bug#20324)
8679 2015-05-06  Pádraig Brady  <P@draigBrady.com>
8681         doc: document glibc posix_fallocate() issues
8682         * doc/posix-functions/posix_fallocate.texi: Mention the
8683         glibc efficiency problems and issues with NFS.
8685 2015-05-05  Karl Berry  <karl@freefriends.org>
8687         * build-aux/gendocs.sh (usage): document new css default
8688         for HTML (--htmlarg).
8690 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8692         extern-inline: no need for workaround in GCC 5.1
8693         * doc/extern-inline.texi (extern inline):
8694         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
8695         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
8696         around these bugs in GCC 5.1 and later.  Maybe in a decade or
8697         two we can remove these workarounds.
8699 2015-04-28  Pádraig Brady  <P@draigBrady.com>
8701         eealloc, pagealign_alloc, xalloc: avoid clang warnings
8702         Avoid [-Wunknown-attributes] warnings like:
8703         warning: unknown attribute '__alloc_size__' ignored
8704         * lib/xalloc.h: Don't use the __alloc_size__  attribute
8705         with clang, as support has been fully removed as of clang 3.5:
8706         https://github.com/llvm-mirror/clang/commit/c047507a
8707         * lib/eealloc.h: Likewise.
8708         * lib/pagealign_alloc.h: Likewise.
8710 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8712         tests: pacify GCC 5.1's stricter printf checking
8713         * tests/test-dirname.c (main):
8714         * tests/test-getaddrinfo.c (simple):
8715         * tests/test-getlogin.c (main):
8716         * tests/test-getndelim2.c (main):
8717         * tests/test-inttostr.c (CK):
8718         * tests/test-md5.c (main):
8719         * tests/test-read-file.c (main):
8720         * tests/test-sha1.c (main):
8721         Fix mismatches between printf format and value signedness.
8722         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
8723         Remove, as CAST_VAL always returned a value of type uintmax_t.
8725         fts: port to GCC 5.1 with --enable-gcc-warnings
8726         Without this fix, GCC 5.1 (correctly) warns about a subscript
8727         error on the fts_name component of FTSENT.  It's actually a
8728         flexible member, so define it that way on C99 or later hosts.
8729         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
8730         structure that now has a flexible array member.
8731         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
8732         (FTSENT): fts_name is now flexible on C99-or-later platforms.
8733         * modules/fts (Depends-on): Add flexmember.
8735 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8737         file-has-acl: port to CentOS 6
8738         Problem reported by Tom G. Christensen in:
8739         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
8740         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
8741         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
8742         HAVE_GETXATTR.
8743         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
8744         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
8745         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
8746         file-has-acl.c actually needs.
8748 2015-04-26  Pádraig Brady  <P@draigBrady.com>
8750         file-has-acl: always return false when ACLs aren't supported
8751         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
8752         change the GNU/Linux getxattr path, to transform "not supported"
8753         errors to a false return rather than an error.  This is handled
8754         within file_has_acl() due to the platform specific tests to
8755         determine if ACLs are not supported.
8757 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8759         gettext: propagate po/Makefile.in.in too
8760         * build-aux/po/Makefile.in.in: Copy from latest gettext.
8761         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
8762         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
8763         between Makefile.in.in and the gettext-runtime m4 files.
8765 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8767         file-has-acl: new module, split from acl
8768         And add a new module file-has-acl-tests to match.
8769         I ran into a problem with the recent changes to the acl module,
8770         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
8771         When using the fixed version with Emacs, I discovered that
8772         file-has-acl wasn't separated out well enough for Emacs (e.g., it
8773         had multiple libraries, but needed only one), so I fixed that too.
8774         * NEWS: Document this incompatible change.
8775         * modules/file-has-acl, modules/file-has-acl-tests: New files.
8776         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
8777         Initialize gl_need_lib_has_acl.
8778         (gl_FUNC_ACL): Require it.
8779         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
8780         Move the file-has-acl.c-relevant stuff to ...
8781         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
8782         use_xattrs = 0' typo, and omit some needless work.  Set
8783         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
8784         when gl_FUNC_ACL is called.
8785         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
8786         (Link): Remove $(LIB_HAS_ACL).
8787         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
8788         (check_PROGRAMS): Move stuff relevant to file-has-acl to
8789         modules/file-has-acl-tests.
8790         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
8792         manywarnings: add GCC 5.1 warnings
8793         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
8794         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
8795         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
8796         -Wsuggest-override, -Wuse-without-only.  Change
8797         -Wnormalized=... operands to match 5.1.
8798         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
8799         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
8800         -Wdiscarded-qualifiers, -Wformat-signedness,
8801         -Wincompatible-pointer-types, -Wint-conversion,
8802         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
8803         -Wshift-count-negative, -Wshift-count-overflow,
8804         -Wsizeof-array-argument, -Wsuggest-final-methods,
8805         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
8806         and add -Warray-bounds=2 as a special case.
8808 2015-04-21  Simon Josefsson  <simon@josefsson.org>
8810         doc: update FDL template to match FDL examples.
8811         * doc/alloca-opt.texi:
8812         * doc/alloca.texi:
8813         * doc/c-ctype.texi:
8814         * doc/c-strcase.texi:
8815         * doc/c-strcaseeq.texi:
8816         * doc/c-strcasestr.texi:
8817         * doc/c-strstr.texi:
8818         * doc/c-strtod.texi:
8819         * doc/c-strtold.texi:
8820         * doc/ctime.texi:
8821         * doc/error.texi:
8822         * doc/gcd.texi:
8823         * doc/gnulib-tool.texi:
8824         * doc/inet_ntoa.texi:
8825         * doc/intprops.texi:
8826         * doc/lib-symbol-visibility.texi:
8827         * doc/maintain.texi:
8828         * doc/parse-datetime.texi:
8829         * doc/quote.texi:
8830         * doc/regexprops-generic.texi:
8831         * doc/standards.texi: Remove spurious 'with' in FDL license
8832         template.
8834 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
8836         lstat: fix cross-compilation 'ln -s' problem
8837         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8838         Have the test program call 'symlink' rather than a separate
8839         script run 'ln -s'; this is more likely to work in
8840         cross-compilation environments.  Reported by Pavel Fedin in:
8841         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
8843 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
8845         gendocs.sh: default to a common CSS style sheet for HTML output
8846         * build-aux/gendocs.sh (htmlarg): Change default value.
8848 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
8850         gnulib-tool: output bold attribute more portably
8851         * gnulib-tool (func_show_module_list): Change hexadecimal
8852         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
8853         encoded numbers as arguments to `printf' is not portable,
8854         and is not claimed by POSIX.  This is the case with FreeBSD.
8856 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
8858         qacl: Simplify HP-UX acl_nontrivial check
8859         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
8860         acl_nontrivial. Check if the acl has at most three entries instead (it must
8861         have exactly three entries according to the HP-UX documentation). Ignore
8862         uids and gids as long as an entry is either for a user (i.e., the owner),
8863         a group (i.e., the owning group), or others.
8864         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
8865         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
8867 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
8869         acl: On Linux, check for acls without libacl
8870         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
8871         library function to check for the presence of acls, avoiding a library.
8872         * lib/file-has-acl.c: Include xattr headers if we have them.
8873         (file_has_acl): On Linux, use getxattr().
8874         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
8875         file_has_acl(). Check for xattr headers and getxattr().
8877 2015-04-14  Ángel González  <keisial@gmail.com>
8879         tempname: avoid unused parameter warnings (trivial)
8880         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
8881         (try_nocreate): Likewise.
8883 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
8885         fseeko: fix build failure on NetBSD >= 6 (trivial)
8886         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
8887         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
8889 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8891         gitlog-to-changelog: port to MS-Windows
8892         * build-aux/gitlog-to-changelog (git_dir_option):
8893         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
8894         MS-Windows Perl.  Reported by Eli Zaretskii in:
8895         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
8897 2015-04-07  Karl Berry  <karl@gnu.org>
8899         gendocs: new option --tex for passing args to texi2dvi.
8900         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
8901         (TEXI2DVI): cut to just command name.
8902         (usage): mention new option, and update copyright.
8903         <generate_tex>: use it.
8905 2015-04-07  Karl Berry  <karl@gnu.org>
8907         * config/srclistvars.sh (GETTEXT): new definition.
8908         * config/srclist.txt: use it for gettext .m4 files.
8909         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
8910         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
8911         and continuing into April.
8913 2015-04-07  Daiki Ueno  <ueno@gnu.org>
8915         uniname/uniname-tests: fix failure due to alias
8916         Reported by Jack Howarth in:
8917         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
8918         * tests/uniname/test-uninames.c (name_has_alias): New function.
8919         (test_inverse_lookup): Exclude character name with valid alias,
8920         from randomly generated character names.
8921         (main): Fill unicode_aliases before calling test functions.
8923 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
8925         hash: remove deprecated hash_insert0 function
8926         * lib/hash.h (hash_insert0): Remove deprecated function.
8927         * lib/hash.c (hash_insert0): Likewise.
8929 2015-04-02  Pádraig Brady  <P@draigBrady.com>
8931         mountlist: remove dependency on libmount
8932         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
8933         directly, rather than depending on libmount, which has many
8934         dependencies due to its dependence on libselinux, as detailed at:
8935         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
8936         Note we restrict this to __linux__ as that's probably where this
8937         interface will remain.  If ever porting, it would be best
8938         to first pull the makedev() wrapper from coreutils to a gnulib module.
8939         Note also we don't add a getline dependency to the mountlist module,
8940         as all Linux versions are sufficient.
8942 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
8944         stddef: port to pre-C11 GCC on x86
8945         On this platform, max_align_t should have an alignment of 8 even
8946         though the storage alignments of double, long, etc. max out at 4.
8947         Inspired by a comment of Andreas Schwab's here:
8948         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
8949         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
8950         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
8951         * tests/test-stddef.c: Test __alignof__ too, if available.
8953 2015-03-24  Pádraig Brady  <P@draigBrady.com>
8955         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
8956         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
8958 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
8960         yesno: make EOL optional in ENABLE_NLS case also (trival)
8961         * lib/yesno.c (yesno): Check for EOL before replacing.
8962         * tests/test-yesno.sh: Add a test case (test along with gettext).
8964 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8966         fdopendir-tests: test it does not close its arg
8967         * tests/test-fdopendir.c (main): Test that fdopendir does not
8968         close its argument.  From a suggestion by David Grayson in:
8969         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
8971 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8973         gitlog-to-changelog: trim trailing white space
8974         * build-aux/gitlog-to-changelog (main):
8975         Trim trailing white space from commit message lines.
8976         This is helpful for processing the GNU Emacs repository,
8977         which dates back to 1985 and contains a lot of such lines.
8979         gitlog-to-changelog: new option --ignore-matching
8980         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
8981         Support new option --ignore-matching=PAT, which ignores all
8982         commit messages whose first line matches PAT.
8984 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8986         fdopendir: port better to MinGW
8987         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
8988         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
8989         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
8990         * modules/fdopendir (Depends-on): Add dirfd.
8992 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8994         fdopendir: fix typo in comment
8995         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
8997 2015-03-09  Eric Blake  <eblake@redhat.com>
8999         error: document all entry points provided
9000         * doc/glibc-functions/error_print_progname.texi
9001         (error_print_progname): Mention the error module.
9002         * doc/glibc-functions/error_at_line.texi (error_at_line):
9003         Likewise.
9004         * doc/glibc-functions/error_message_count.texi
9005         (error_message_count): Likewise.
9006         * doc/glibc-functions/error_one_per_line.texi
9007         (error_one_per_line): Likewise.
9009 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
9011         vasnprintf: pacify clang 3.5.0
9012         Problem reported by Werner Lemberg in:
9013         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
9014         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
9015         The casts aren't needed, since the characters in question are ASCII.
9017 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9019         glob, etc.: port to MSVC v18 on MS-Windows 8.1
9020         * lib/dirent--.h (GNULIB_defined_opendir):
9021         * lib/dirent.in.h (GNULIB_defined_opendir)
9022         (GNULIB_defined_closedir):
9023         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
9024         #undef only if Gnulib defined it.
9026         poll: port to MSVC v18 on MS-Windows 8.1
9027         Problem reported by Gisle Vanem in:
9028         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
9029         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
9030         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
9031         Add sys_socket.
9033 2015-02-24  Pádraig Brady  <P@draigBrady.com>
9035         tests: support stderr verification with returns_()
9036         * tests/init.sh (returns_): Disable tracing for this wrapper
9037         function, so that stderr of the wrapped command is unchanged,
9038         allowing for verification of the contents.
9040 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
9042         passfd: avoid valgrind uninitalised data warning
9043         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
9044         to include just the fd we've initialized, rather than including
9045         the extra space used for alignment.
9047 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9049         uniwbrk/u32-wordbreaks-tests: fix copyright
9050         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
9052         dup2: doc and test for Android bug
9053         Reported by Kevin Cernekee in:
9054         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
9055         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9056         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
9058 2015-02-23  Kevin Cernekee  <cernekee@google.com>
9060         Replace dup2() on Android
9061         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
9062         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
9063         fails.  Using rpl_dup2() fixes this because it has an explicit test
9064         for this condition.
9066 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9068         Android doesn't define RLIM_SAVED_*
9069         Portability problem reported by Kevin Cernekee in:
9070         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
9071         * doc/posix-headers/sys_resource.texi (sys/resource.h):
9072         Mention the portability problem.
9073         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
9074         Define if not defined.
9075         * m4/dup2.m4 (gl_FUNC_DUP2):
9076         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9077         Likewise.
9079 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9081         vasnprintf-posix-tests: use consistent test
9082         * tests/test-vasnprintf-posix.c (test_function):
9083         Use "<" in assert instead of "<=", for consistency with other tests.
9085 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9087         printf, isinf, etc.: noncanonical != NaN
9088         Do not require that isinf, printf, etc. treat noncanonical
9089         values as NaNs.  Instead, require only that they do not crash.
9090         Problem reported by Joseph Myers in:
9091         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
9092         * doc/posix-functions/dprintf.texi (dprintf):
9093         * doc/posix-functions/fprintf.texi (fprintf):
9094         * doc/posix-functions/isfinite.texi (isfinite):
9095         * doc/posix-functions/isinf.texi (isinf):
9096         * doc/posix-functions/isnan.texi (isnan):
9097         * doc/posix-functions/printf.texi (printf):
9098         * doc/posix-functions/snprintf.texi (snprintf):
9099         * doc/posix-functions/sprintf.texi (sprintf):
9100         * doc/posix-functions/vdprintf.texi (vdprintf):
9101         * doc/posix-functions/vfprintf.texi (vfprintf):
9102         * doc/posix-functions/vprintf.texi (vprintf):
9103         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9104         * doc/posix-functions/vsprintf.texi (vsprintf):
9105         Document this.
9106         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
9107         * m4/isinf.m4 (gl_ISINFL_WORKS):
9108         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
9109         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
9110         * tests/test-isfinite.c (test_isfinitel):
9111         * tests/test-isinf.c (test_isinfl):
9112         * tests/test-isnan.c (test_long_double):
9113         * tests/test-isnanl.h (main):
9114         * tests/test-snprintf-posix.h (test_function):
9115         * tests/test-sprintf-posix.h (test_function):
9116         * tests/test-vasnprintf-posix.c (test_function):
9117         * tests/test-vasprintf-posix.c (test_function):
9118 o       Test only that noncanonical values do not cause crashes, not that
9119         they are treated as NaNs.  In some cases this means a larger
9120         output buffer is needed.
9122 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
9124         fts: remove redundant close() (trivial)
9125         * lib/fts.c (fts_read): Remove redundant call to close().
9126         Spotted by coverity.
9128 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9130         getdtablesize: port better for Android
9131         Problem reported by Kevin Cernekee in:
9132         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
9133         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
9134         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
9135         Instead, just use getrlimit, taking care to avoid Cygwin bug.
9137         poll: fixes for large fds
9138         * lib/poll.c (poll): Don't check directly for NFD too large.
9139         Don't rely on undefined behavior in FD_SET when an arg exceeds
9140         FD_SETSIZE.  Always set revents afterwards, even if to zero.
9141         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
9142         as that makes the test a bit stricter.
9144 2015-02-19  Kevin Cernekee  <cernekee@google.com>
9146         fcntl: Fix cross compiling
9147         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
9148         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
9150 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9152         dup2, fcntl: cross-compile better for Android
9153         Problem reported by Kevin Cernekee in:
9154         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
9155         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
9156         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
9157         there's little need to cross-compile for older kernels nowadays.
9158         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
9159         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
9161 2015-02-18  Pádraig Brady  <P@draigBrady.com>
9163         getopt: don't crash on memory exhaustion
9164         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
9165         memory exhaustion.  In the _LIBC case we use alloca() as is
9166         already done in glibc, so we don't need to consider the separate
9167         error path in that awkward case.  Also fix a memory leak when
9168         ambiguous options are present.
9169         Reported by Tobias Stoeckmann
9171 2015-02-17  Mike Miller  <mtmiller@ieee.org>
9173         tempname: allow compilation with C++ (trivial)
9174         * lib/tempname.h [C++]: Specify extern "C" linkage.
9175         * lib/tempname.h (try_tempname):
9176         * lib/tempname.c (__try_tempname, __gen_tempname):
9177         Rename 'try' to 'tryfunc'.
9179 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9181         dup2, fcntl: port to AIX
9182         * m4/dup2.m4 (gl_FUNC_DUP2):
9183         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9184         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
9185         The former works on AIX 7.1 but the latter does not.
9186         Also, this may work better with Android; see:
9187         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
9189 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9191         getdtablesize, dup2, fcntl: port to Android
9192         Problem reported by Kevin Cernekee in:
9193         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
9194         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
9195         Mention that getdtablesize doesn't work on Android.
9196         * lib/getdtablesize.c: Use getrlimit substitute only if
9197         getdtablesize is declared.  This should suffice for Cygwin
9198         while not breaking Android.
9199         * m4/dup2.m4 (gl_FUNC_DUP2):
9200         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9201         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
9202         standardized but the latter is not, and sysconf works on Android.
9203         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
9204         Also check that getdtablesize is declared.
9205         This removes the need for a special case for Android.
9207 2015-02-16  Kevin Cernekee  <cernekee@google.com>
9209         localename: Implement gl_locale_name_thread_unsafe for Android
9210         * lib/localename.c: Android API level >= 21 supports two hardcoded
9211         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
9212         the internal __locale_t struct.
9214 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
9216         fts: avoid crash when a cycle is added while traversing
9217         This could be triggered by auto-mounting a recursive bind mount.
9218         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
9219         * lib/fts.c (fts_read): Avoid removing the original hash table item
9220         when leaving a directory that caused a cycle, and preserve the FTS_DC
9221         flag.
9223 2015-02-16  Daiki Ueno  <ueno@gnu.org>
9225         uniname/uniname: support character alias
9226         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
9227         Generate one-way mapping from aliases to codepoints in the
9228         generated tables.  Special case variation selectors to reduce
9229         table size.
9230         * lib/uniname/uniname.c (unicode_character_name): Special case
9231         variation selectors.
9232         (unicode_name_character): Special case variation selectors and
9233         their aliases.
9234         * lib/uniname/uninames.h: Regenerate.
9235         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
9236         * modules/uniname/uniname-tests (Files): Add
9237         tests/uniname/NameAliases.txt.
9238         * tests/uniname/test-uninames.c: Mark as static.
9239         (ALIASLEN): Define.
9240         (struct unicode_alias): New struct.
9241         (unicode_aliases): New variable.
9242         (fill_aliases): New function.
9243         (test_alias_lookup): New test function.
9244         (main): Run the 'test_alias_lookup' test if the second argument is
9245         given.
9246         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
9247         second argument.
9249 2015-02-11  Kevin Cernekee  <cernekee@google.com>
9251         Fix FILE struct compatibility with Android API level >= 21
9252         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
9253         __sferror.  Recent versions of Bionic's stdio.h no longer define
9254         __sferror.
9255         * lib/fbufmode.c: Likewise.
9256         * lib/fflush.c: Likewise.
9257         * lib/fpurge.c: Likewise.
9258         * lib/freadable.c: Likewise.
9259         * lib/freadahead.c: Likewise.
9260         * lib/freading.c: Likewise.
9261         * lib/freadptr.c: Likewise.
9262         * lib/freadseek.c: Likewise.
9263         * lib/fseeko.c: Likewise.
9264         * lib/fseterr.c: Likewise.
9265         * lib/fwritable.c: Likewise.
9267         Assume unbroken ungetc() on Android
9268         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
9269         test case passed when running on an Android host, and the code
9270         hasn't really changed since 2009.
9272         getdtablesize: Fix Android build
9273         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
9274         versions have this symbol in the .so library (at least 32-bit
9275         platforms) but are missing the declaration in the header file,
9276         causing the m4 logic to guess incorrectly.
9278         localename: Fix Android build
9279         * modules/localename (Depends-on): Add langinfo.
9281         getugroups: Fix Android build
9282         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
9283         functions.
9285         euidaccess: Fix Android build
9286         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
9287         AT_EACCESS gets declared.
9289         linkat_nofollow: Add fallback case for cross compiling
9290         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
9292         net_if: Handle content-free <net/if.h> system headers
9293         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
9294         struct if_nameindex.  If not, enable the replacement header.
9296         signal_h: Fix Android build
9297         * lib/signal.in.h: Add Android to the list of platforms that declare
9298         pthread_sigmask() in <pthread.h> instead of <signal.h>.
9300         duplocale: Fix Android build of duplocale-tests
9301         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
9302         is included by test-duplocale.c (but not by duplocale.c).
9303         * modules/duplocale-tests (configure.ac): Check for monetary.h.
9304         * tests/test-duplocale.c: Skip test if monetary.h is absent.
9305         * doc/posix-headers/monetary.texi: Add Android to the list of
9306         platforms missing monetary.h.
9308 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9310         tests: avoid recent -Werror=unused-variable regression in test-locale
9311         * tests/test-locale.c (main): Reference the variable to avoid the
9312         "unused variable" warning.
9314 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9316         maint: various whitespace cleanups in tempname
9317         * lib/tempname.c: Normalize spacing and line length.
9318         * lib/tempname.h: Likewise.
9319         * modules/tempname: Likewise.
9321 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9323         tests: provide returns_() to simplify exit status checking
9324         * tests/init.sh (returns_): A new function for use in tests,
9325         to allow for easier checking of return values, where you expect
9326         a command to exit with failure status.  By checking for a particular
9327         exit code, you don't hide any crashes for example.
9329 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9331         mountlist: only use libmount when specified
9332         There are currently many shared libs dependencies introduced by
9333         libmount with associated runtime and virt mem overhead.
9334         Therefore don't enable by default.
9335         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
9337 2015-02-08  Daiki Ueno  <ueno@gnu.org>
9339         uniname/unimame-tests: don't link with -lunistring
9340         * modules/uniname/uniname-tests (Makefile.am): Don't link against
9341         $(LIBUNISTRING).  Document the rationale why we need to
9342         conditionalize the test.
9344 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9346         fstrcmp: don't assume strlen < INT_MAX
9347         * lib/fstrcmp.c: Include stddef.h and stdint.h.
9348         (uintptr_t): Remove, as we're now assuming stdint.
9349         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
9350         Prefer ptrdiff_t to int when the value could exceed INT_MAX
9351         if the input string is long.
9352         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
9353         uintptr_t to size_t when the underlying value is a pointer casted
9354         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
9355         * modules/fstrcmp (Depends-on): Add stdint.
9357         diffseq: prefer ptrdiff_t to ssize_t
9358         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
9359         ptrdiff_t is the natural type for signed indexes.
9360         On a few older platforms, ssize_t is narrower than size_t.
9362         xalloc: fix typo that suppressed warnings
9363         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
9364         This typo, introduced a couple of years ago, mistakenly suppressed
9365         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
9366         -Wmissing-declarations warnings.
9368         full-read: fix license notice typo
9369         * lib/full-read.h: Remove a stray line in the license notice.
9370         Reported by Sam Ellis in: http://bugs.gnu.org/19808
9372         crypto/gc: fix a -Wswitch warning
9373         Reported by Bruce Korb in:
9374         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
9375         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
9377 2015-02-03  Pádraig Brady  <P@draigBrady.com>
9379         gnulib-tool: fix handling of patch(1) diagnostics
9380         * gnulib-tool: Send diagnostics from patch(1) to stderr,
9381         as otherwise gnulib-tool will reparse that output and attempt
9382         to lookup modules.
9384 2015-02-03  Pádraig Brady  <P@draigBrady.com>
9386         bootstrap: exit immediately upon gnulib-tool failure
9387         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
9388         This was noticed when gnulib-tool exited early due to failure
9389         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
9390         but various confusing errors were then given as the build proceeded.
9392 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
9394         symlinkat: include all required header files
9395         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
9396         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
9397         Reported at https://savannah.gnu.org/bugs/index.php?44151
9398         and by Jack Howarth.
9400 2015-01-29  Pádraig Brady  <P@draigBrady.com>
9402         localename: support Solaris 12 and illumos
9403         * lib/localename.c (gl_locale_name_thread_unsafe): call
9404         getlocalename_l() on newer __sun platforms.
9405         Reported by Alexander Pyhalov.
9406         Fix suggested by Rich Burridge.
9408 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
9410         locale: fix tests on illumos (trivial)
9411         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
9412         so move from global scope to main().
9414 2015-01-24  Daiki Ueno  <ueno@gnu.org>
9416         unictype: avoid undefined left-shift behavior
9417         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
9418         gcc's -fsanitize=shift and running its tests triggered:
9419           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
9420             places cannot be represented in type 'int'
9421         Cast LHS to 'unsigned int' after integer promotion.
9422         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
9423         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
9425 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9427         libunistring: bump version of unitypes dependants
9428         Due to the header file search order, all the headers which depend
9429         on unitypes.h need to be generated, when the preinstalled
9430         libunistring is older.
9431         * modules/unicase/base (configure.ac): Bump minimum version to
9432         0.9.4.
9433         * modules/uniconv/base (configure.ac): Likewise.
9434         * modules/unilbrk/base (configure.ac): Likewise.
9435         * modules/uninorm/base (configure.ac): Likewise.
9436         * modules/unistdio/base (configure.ac): Likewise.
9437         * modules/unistr/base (configure.ac): Likewise.
9438         * modules/uniwbrk/base (configure.ac): Likewise.
9439         * modules/uniwidth/base (configure.ac): Likewise.
9441 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9443         unictype/category-none: fix link with libunistring
9444         Since _UC_CATEGORY_NONE is not a public symbol, it will be
9445         prefixed with "libstring_" when compiled as part of libunistring.
9446         To avoid undefined symbol at link time, increase the minimum
9447         version when the dependant modules are updated.
9448         * modules/unictype/category-none (configure.ac): Bump minimum
9449         version to 0.9.5.
9451 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9453         unitypes: fix build with installed libunistring
9454         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
9455         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
9456         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
9458 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9460         time: port to MinGW32 3.21
9461         Problem reported by Eli Zaretskii in:
9462         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
9463         * lib/time.in.h:
9464         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
9465         * modules/time (Depends-on):
9466         Fall back on unistd.h if the other include files don't define
9467         struct timespec.
9469         update-copyright: apply to self
9470         * build-aux/update-copyright: Fix copyright date.  How ironic!
9472 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9474         libunistring: update to Unicode 7.0.0
9475         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
9476         Manichaean names.
9477         * lib/unictype/joininggroup_name.h: Likewise.
9478         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
9479         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
9480         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
9481         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
9482         (fill_arabicshaping, joining_group_as_c_identifier): Support those
9483         enum values.
9484         (is_property_alphabetic): Accept newly added characters to
9485         cuneiform numeric signs.
9486         (is_property_default_ignorable_code_point): Reject U+0605.
9487         (FIELDLEN): Increase from 120 to 160.
9488         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
9489         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
9490         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
9491         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
9492         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
9493         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
9494         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
9495         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
9496         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
9497         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
9498         U+1E8D0..U+1E8D6.
9499         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
9500         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9501         lib/uniwidth/width.c.
9502         * all generated files under lib/uni* and tests/uni*: Regenerate.
9504 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9506         libunistring: update to Unicode 6.3.0
9507         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
9508         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
9509         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
9510         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
9511         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
9512         Update WB5, WB9, WB10, WB13a, and WB13b.
9513         * tests/uniwbrk/test-uc-wordbreaks.c
9514         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
9515         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
9516         (UC_BIDI_PDI): New enumeration values.
9517         (bidi_category_byname): Support those enum values.
9518         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
9519         dedicated property assigned.
9520         (is_property_case_ignorable): Check 0x0027.
9521         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
9522         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
9523         (output_wbp): Support those enum values.
9524         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
9525         (UC_BIDI_PDI): New enumeration values.
9526         * lib/unictype/bidi_byname.gperf: Add those property names.
9527         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
9528         U+180E, U+1A1B, and U+2066..U+2069.
9529         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9530         lib/uniwidth/width.c.
9531         * all generated files under lib/uni* and tests/uni*: Regenerate.
9533 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9535         libunistring: update to Unicode 6.2.0
9536         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
9537         (unilbrk_table): Adjust table size.
9538         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
9539         for LBP_RI.
9540         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
9541         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
9542         Normalize table index skipping ignored properties.
9543         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
9544         WBP_EXTEND and WBP_FORMAT, which are now computed without using
9545         the table.
9546         * lib/uniwbrk/wbrktable.h: Adjust table size.
9547         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
9548         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
9549         Support rule GB8a.
9550         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
9551         * tests/unigbrk/test-uc-is-grapheme-break.c
9552         (graphemebreakproperty_to_string): Support GBP_RI.
9553         * tests/uniwbrk/test-uc-wordbreaks.c
9554         (wordbreakproperty_to_string): Support WBP_RI.
9555         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
9556         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
9557         (output_lbp): Support LBP_RI.  Adjust some characters changed from
9558         LBP_AL to LBP_ID.
9559         (output_lbp): Support LBP_RI.
9560         (WBP_RI): New enumeration value.
9561         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
9562         (output_wbp): Support WBP_RI.
9563         (GBP_RI): New enumeration value.
9564         (output_gbp_test, fill_org_gbp): Support GBP_RI.
9565         * all generated files under lib/uni* and tests/uni*: Regenerate.
9567 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9569         libunistring: update to Unicode 6.1.0
9570         * lib/gen-uni-tables.c (output_joining_group): Switch to
9571         3-level table to accommodate joining groups defined with higher
9572         codepoint value.  Since there are only 88 groups defined in
9573         Unicode 7.0.0, use 7-bit packed format for level3 entries.
9574         (get_lbp): Update for Unicode 6.1.0.
9575         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
9576         3-level table.
9577         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
9578         joining group name.
9579         * lib/unictype/joininggroup_name.h: Likewise.
9580         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
9581         (unilbrk_table): Adjust table size.
9582         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
9583         for LBP_HL.
9584         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
9585         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
9586         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
9587         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
9588         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
9589         U+302E..U+302F.
9590         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9591         lib/uniwidth/width.c.
9592         * all generated files under lib/uni* and tests/uni*: Regenerate.
9593         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
9595 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9597         uniwbrk/u32-wordbreaks-tests: add conformance test
9598         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
9599         tests/uniwbrk/test-uc-wordbreaks.c,
9600         tests/uniwbrk/test-uc-wordbreaks.sh, and
9601         tests/uniwbrk/WordBreakTest.txt.
9602         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
9603         test-uc-wordbreaks to $(check_PROGRAMS), and define
9604         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
9605         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
9606         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
9608 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9610         uniwbrk: ignore Extended/Format characters at BOL not BOS
9611         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
9612         characters if the previous character property is one of
9613         WBP_NEWLINE, WBP_CR, and WBP_LF.
9615 2015-01-11  Jim Meyering  <meyering@fb.com>
9617         test-strstr.c: avoid a trivial leak
9618         * tests/test-strstr.c (main): Free haystack.
9620         update-copyright: recognize groff's \(co marker
9621         * build-aux/update-copyright (circle_c_re): Also accept
9622         uses of \(co, as found in gzip.1.
9624 2015-01-08  Pádraig Brady  <P@draigBrady.com>
9626         maint.mk: fix compatibility with OS X nm
9627         * top/maint.mk (_gl_tight_scope): Use the -g option to
9628         show exported items rather than the -e option which is
9629         ignored on all platforms except OS X where it gives an error.
9630         Reported by Assaf Gordon.
9632 2015-01-07  KO Myung-Hun  <komh@chollian.net>
9634         localcharset: improve charset detection on OS/2
9635         Use system codepage when appropriate.  Map OS/2 codepages to
9636         GNU canonical charset names if possible.
9637         * lib/config.charset: Don't output aliases if "$os" is os2*.
9638         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
9639         result for OS/2.
9640         (locale_charset) [OS2]: Use system codepage if codeset is omitted
9641         from the locale name which is neither "C" nor "POSIX".
9643 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9645         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
9646         This reverts the last patch but one, as it shouldn't be needed now
9647         that the typo is fixed.
9648         * lib/count-leading-zeros.h (count_leading_zeros_ll):
9649         * lib/count-trailing-zeros.h:
9650         * lib/count-one-bits.h:
9651         Go back to using 64-bit intrinsics.
9653         count-leading-zeros: fix pragma typos
9654         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
9655         Fix typos in declaration of intrinsics when _MSC_VER.
9657 2015-01-06  Pádraig Brady  <P@draigBrady.com>
9659         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
9660         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
9661         intrinsics in this case.
9662         * lib/count-trailing-zeros.h: Likewise.
9663         * lib/count-one-bits.h: Likewise.
9665 2015-01-06  Daiki Ueno  <ueno@gnu.org>
9667         uniname/uniname: update to Unicode 7.0.0
9668         To accommodate new characters added since Unicode 5.1.0, this
9669         changes the internal representation of codepoint ranges.
9670         Previously, we grouped codepoint ranges by manually assigned 4-bit
9671         tag, which only allowed 16 groups.  This removes the limitation by
9672         switching to binary search on a table.  For the detail rationale
9673         and the benchmark results, see:
9674         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
9675         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
9676         to INDEX, as it no longer represents a codepoint.
9677         (range): New struct.
9678         (main): Switch to intervals list from a bit-pattern based
9679         classification.
9680         * lib/uniname/uninames.h: Regenerate.
9681         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
9682         * modules/uniname/base (configure.ac): Bump minimum version to
9683         0.9.5.
9684         * modules/uniname/uniname (configure.ac): Bump minimum version to
9685         0.9.5.
9687 2015-01-05  Eric Blake  <eblake@redhat.com>
9689         doc: update INSTALL from autoconf
9690         * doc/install.texi: Resync from autoconf.
9691         * doc/INSTALL: Reflect recent autoconf update.
9692         * doc/INSTALL.ISO: Likewise.
9693         * doc/INSTALL.UTF-8: Likewise.
9695         stdio: fix use of PRIdMAX on modern mingw
9696         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
9697         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
9698         to work with modern mingw.
9700 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
9702         pthread: detect git mingw builds with only partial pollution
9703         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
9704         pollution, as seen temporarily in Fedora 21.
9706 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9708         lib-symbol-versions: cache script check
9709         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
9710         Cache the check for linker version scripts.
9711         From a suggestion by Christophe Curis in:
9712         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
9714 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
9716         maint: fix grammar nits in propername (trivial change)
9717         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
9718         and use an adequate verb and tense.
9720 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
9722         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
9723         * module/gendocs: Add 'doc/gendocs_template_min'.
9725         * build-aux/gendocs.sh: Change email addresses and upstream URLs
9726         from to Gnulib's.
9727         (scripturl, templateurl): Adjust accordingly.
9729 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9731         gendocs: copyright date and version fix
9732         Reported by Karl Berry in:
9733         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
9734         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
9735         Fix copyright date.
9736         * build-aux/gendocs.sh (scriptversion): Update.
9738 2015-01-01  Karl Berry  <karl@gnu.org>
9740         * doc/install.texi,
9741         * build-aux/mdate-sh,
9742         * build-aux/depcomp,
9743         * build-aux/config.guess,
9744         * build-aux/config.sub,
9745         * build-aux/ar-lib,
9746         * build-aux/compile: revert copyright updates (some from last
9747         year) in slaved files.
9749 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9751         version-etc: new year
9752         * doc/gnulib.texi:
9753         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
9754         * all files: Run 'make update-copyright'.
9756 2014-12-30  Pádraig Brady  <P@draigBrady.com>
9758         xstrtol: ensure errno is reset
9759         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
9760         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
9762         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
9764 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9766         utimens: fix dependency typo
9767         * modules/utimens (Depends-on): Remove 'assure'.
9768         This bug was introduced in the recent 'assure' patch.
9770 2014-12-22  Eric Blake  <eblake@redhat.com>
9772         docs: mention why libgen.h is bad
9773         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
9775 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9777         assure: new module
9778         This works better than 'assert' when compiling with -DNDEBUG,
9779         as it avoids some compiler diagnostics in that case.
9780         Reported by Norihiro Tanaka in:
9781         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
9782         * MODULES.html.sh (func_all_modules): Add 'assure'.
9783         * lib/assure.h, modules/assure: New files.
9784         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
9785         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
9786         Prefer 'assure' to 'assert'.
9787         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
9788         * modules/chdir-long, modules/cycle-check, modules/fchdir:
9789         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
9790         Depend on 'assure'.
9792 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9794         stdalign: port better to HP compilers
9795         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
9796         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
9798         stdalign: work around Apple GCC 4.0 bug
9799         Reported by David Fang in:
9800         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
9801         * lib/stdalign.in.h (_Alignas):
9802         * m4/stdalign.m4 (gl_STDALIGN_H):
9803         Do not use aligned attribute with GCC 4.0 on Apple.
9805 2014-12-16  Pádraig Brady  <P@draigBrady.com>
9807         getcwd: fix test failure on OS X 10.9
9808         * m4/getcwd-path-max.m4: Avoid the replacement if it
9809         won't be effective due to the PATH_MAX limitation of lstat().
9810         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
9811         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
9812         for this case for use in tests, and also exclude this
9813         case when setting REPLACE_GETCWD.
9814         * tests/test-getcwd.c (test_long_name): Restrict the
9815         tested path length so that lstat() will not be passed
9816         a path greater than PATH_MAX.
9817         Also key a test condition on HAVE_OPENAT_SUPPORT rather
9818         than AT_FDCWD, since the latter is set unconditionally
9819         since Sep 2009 in commit 52c658e9.
9821 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
9823         parse-datetime: avoid a compiler warning with byacc (trivial)
9824         * lib/parse-datetime.y (yylex): Use the same prototype in the
9825         function definition as the declaration, to avoid a -Wstrict-prototypes
9826         warning seen when using byacc.
9828 2014-12-12  Daiki Ueno  <ueno@gnu.org>
9830         unicase/locale-language-tests: fix LOCALE_FR test
9831         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
9832         a French locale with traditional encoding.
9833         Reported by umerqayam in:
9834         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
9836 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9838         stddef: support C11's max_align_t
9839         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
9840         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
9841         Do not undef, as that might cause max_align_t to be defined twice.
9842         Instead, change use to check for _GL_STDDEF_WINT_T too.
9843         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
9844         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
9845         Check for max_align_t.
9846         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
9847         * modules/stddef-tests (Depends-on): Add stdalign.
9848         * tests/test-stddef.c: Test max_align_t.
9850 2014-12-11  Daiki Ueno  <ueno@gnu.org>
9852         unistd: fix iOS check conditional
9853         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
9854         as 0 or 1 in <TargetConditionals.h>, and the previous check always
9855         yielded true on non-iOS environment.
9856         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
9857         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
9858         they are defined.
9860 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9862         posixtm: avoid compiler warning in a better way
9863         * lib/posixtm.c (IF_LINT): Remove.
9864         (year, posix_time_parse):
9865         Return true (not 0) if successful.  All callers changed.
9866         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
9868 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
9870         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
9871         started with '/' on EMX.
9873 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
9875         freopen: workaround freopen() on OS/2 kLIBC
9876         * lib/freopen.c (rpl_freopen): Workaround.
9877         * m4/freopen.m4: Add os2* case.
9879         get_shared_library_fullname: port to EMX
9880         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
9881         on EMX, respectively.
9882         (_DLL_InitTerm): New on EMX.
9883         (get_shared_library_fullname): Implement on EMX.
9885         find_executable: port to EMX
9886         * lib/progreloc.c (find_executable): Implement on EMX.
9888         sched: check struct sched_param in spawn.h as well
9889         * lib/sched.in.h: Include spawn.h on kLIBC.
9890         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
9892 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
9894         bootstrap: Allow perl modules in $buildreq
9895         * build-aux/bootstrap: Add case for perl modules.
9897 2014-12-08  Pádraig Brady  <P@draigBrady.com>
9899         apply _GL_ATTRIBUTE_PURE to some inline functions
9900         clang 3.4.2 flagged these inline functions as pure
9901         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
9902         * lib/sig-handler.h (get_handler): Likewise.
9903         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
9904         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
9906 2014-12-06  Pádraig Brady  <P@draigBrady.com>
9908         vasnprintf: fix potential use after free
9909         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
9910         flagged by clang-analyzer 3.4.2.
9912 2014-12-05  Pádraig Brady  <P@draigBrady.com>
9914         filevercmp, posixtm: avoid compiler warnings with -O3
9915         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
9916         * lib/posixtm.c: (IF_LINT): Define.
9917         (posix_time_parse): Use it to void a "may be used uninitialized"
9918         warning, seen only with -O3.
9920 2014-12-05  Bruno Haible  <bruno@clisp.org>
9922         Fix LDBL80_WORDS macro on big endian platforms.
9923         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
9924         LDBL80_WORDS macro.
9925         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
9926         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9927         * tests/test-isfinite.c (test_isfinitel): Likewise.
9928         * tests/test-isinf.c (test_isinfl): Likewise.
9929         * tests/test-isnan.c (test_long_double): Likewise.
9930         * tests/test-isnanl.h (main): Likewise.
9931         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
9932         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
9933         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
9934         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
9935         Reported by Pádraig Brady.
9937 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
9939         git-version-gen: do not print new line characters
9940         * build-aux/git-version-gen: Use printf instead of echo and tr.
9942         gnulib-tool: recognize x:* as an absolute path
9943         * gnulib-tool (func_gnulib_dir): Add ?:* case.
9944         (func_relconcat): Likewise.
9946 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
9948         argp: avoid extraneous translation and mem leak with empty pre doc
9949         * lib/argp-help.c (argp_doc): Never translate the empty string,
9950         when "\v" is the first or last character of the string, as that
9951         has a reserved meaning to return the header info from a po file.
9952         This also fixes a small memory leak in the !post case.
9953         The issue can be seen with this command for example:
9954         LC_MESSAGES=en_US grub2-mknetdir --help
9956 2014-11-27  Daiki Ueno  <ueno@gnu.org>
9958         uniname/uniname-tests: skip if system's libunistring is used
9959         * modules/uniname/uniname-tests (Makefile.am): Skip test if
9960         uniname/uniname module is not compiled.
9962 2014-11-27  Pádraig Brady  <P@draigBrady.com>
9964         printf: fix configure check on big endian systems
9965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
9967 2014-11-22  Daiki Ueno  <ueno@gnu.org>
9969         pipe-filter-gi, pipe-filter-ii: port to AIX
9970         On AIX 7.1, 'select' is defined as static and cannot be referred
9971         to from inline function.
9972         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
9973         the definition...
9974         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
9975         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
9977 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9979         gitlog-to-changelog: add --until
9980         * build-aux/gitlog-to-changelog: Support new --until option.
9981         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
9983 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
9985         extern-inline: update commentary about GCC bugs
9986         * m4/extern-inline.m4: Add another GCC bug number to comments.
9988 2014-11-13  Daiki Ueno  <ueno@gnu.org>
9990         gen-uni-tables: untabify
9991         * lib/gen-uni-tables.c: Untabify.
9993 2014-11-13  Daiki Ueno  <ueno@gnu.org>
9995         gen-uni-tables: check out-of-range values added to 3-level tables
9996         * lib/gen-uni-tables.c (output_category, output_bidi_category)
9997         (output_joining_type, output_ident_category): Check out-of-range
9998         values added to 3-level tables.
10000 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10002         gen-uni-tables: utilize 'assert'
10003         * lib/gen-uni-tables.c: Include <assert.h>.
10004         (output_category, output_combclass, output_decimal_digit_test)
10005         (output_decimal_digit, output_digit_test, output_digit)
10006         (output_numeric, get_mirror_value, fill_properties)
10007         (fill_property30, is_property_alphabetic)
10008         (is_property_default_ignorable_code_point)
10009         (is_property_uppercase, is_property_lowercase)
10010         (is_property_cased, is_property_case_ignorable)
10011         (is_property_changes_when_lowercased, is_property_iso_control)
10012         (is_property_math, fill_arabicshaping, output_joining_group)
10013         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
10014         (output_wbp, fill_org_gbp, get_decomposition)
10015         (output_decomposition, fill_composition_exclusions)
10016         (debug_output_composition_tables, output_composition_tables)
10017         (redistribute_casefolding_rules, output_casing_rules): Use
10018         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
10019         reporting.
10021 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10023         gen-uni-tables: cosmetic improvements
10024         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
10025         variables specification.
10026         (is_outdigit): Remove unused function.
10028 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
10030         fcntl-h-tests: port to PA-RISC GNU/Linux
10031         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
10033 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10035         fts: port to C89
10036         Problem reported for MSVC 16 by Gisle Vanem in:
10037         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
10038         * lib/fts.c (fts_build): Avoid declaration before statement.
10040 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10042         unistd: port to iOS
10043         Problem reported by André Klitzing in:
10044         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
10045         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
10047 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10049         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
10050         Problem reported by Alan Modra in:
10051         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
10052         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
10053         Always cast the function arg, reverting this part of the previous
10054         change.
10056 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10058         obstack: avoid potentially-nonportable function casts
10059         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
10060         Remove, replacing with ...
10061         (call_chunkfun, call_freefun): New static functions.
10062         All uses changed.  Avoid potentially-nonportable casts.
10063         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
10064         (_obstack_begin_worker): Omit last two args, since they
10065         rely on potentially-nonportable casts.  All callers changed.
10066         * lib/obstack.h (_OBSTACK_CAST): New macro.
10067         Use it everywhere the old API used a potentially-nonportable cast.
10068         The new API doesn't cast.
10069         (struct obstack): Use unions rather than requiring
10070         potentially-nonportable casts.
10071         (obstack_chunkfun, obstack_freefun): Return void.
10073 2014-11-03  Alan Modra  <amodra@gmail.com>
10075         obstack: fix macro return values
10076         * lib/obstack.h (obstack_next_free): Return void *.
10077         (obstack_1grow_fast, obstack_blank_fast): Return void.
10078         For __GNUC__ macros:
10079         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
10080         For !__GNUC__ macros:
10081         (obstack_make_room, obstack_grow, obstack_grow0)
10082         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
10084 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10086         obstack: do not assume system-supplied obstack is size_t safe
10087         * m4/obstack.m4: New file.
10088         * modules/obstack (Files): Add it.
10090         obstack: port to platforms that #define __alignof__
10091         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
10092         not if !_LIBC.  We don't know of any platforms that #define
10093         __alignof__, but it might be useful in tests.  Conversely,
10094         glibc assumes GCC.
10096 2014-11-03  Pádraig Brady  <P@draigBrady.com>
10098         linkat: don't unconditionally replace on GNU/Linux
10099         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
10100         was redundant for a few reasons.  It was present to support compiling
10101         on new systems but running on the old narrow window of Linux 2.6.1[67].
10102         It setup and cleaned up test files which weren't actually used.
10103         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
10104         implicit in the following check.
10106 2014-11-03  Pádraig Brady  <P@draigBrady.com>
10108         linkat: wrap to handle symlinks on OS X 10.10
10109         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
10110         but not usable because it doesn't support creating hardlinks
10111         to symlinks.  Therefore add a generic test for this capability
10112         and fallback to our emulation if linkat() fails with ENOTSUP.
10114 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
10116         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
10117         * doc/posix-functions/open.texi (open):
10118         * doc/posix-functions/openat.texi (openat):
10119         Document that these functions do not set errno to ELOOP when
10120         a symlink is opened with O_NOFOLLOW.
10122 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10124         obstack: add NEWS entry for recent incompatible changes
10125         * NEWS: Describe recent changes.
10127 2014-10-30  Pádraig Brady  <P@draigBrady.com>
10129         mountlist: don't use libmount to decide on dummy/remote
10130         * lib/mountlist.c (read_file_system_list): Don't use the libmount
10131         routines to determine whether a file system is dummy or remote,
10132         as they're not currently compatible.  For example the remoteness
10133         is determined on file system type (for which the list seems incomplete),
10134         rather than simply checking for a ':' in the device name.
10135         Also libmount currently determines that 'tmpfs' is a dummy file system
10136         even though it has associated storage.
10138 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10140         obstack: prefer __alignof__ to alignof
10141         This is for portability to pre-4.7 GCC when compiling glibc.
10142         See Joseph S. Myers in:
10143         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
10144         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
10145         New macro, defined by including and using <alignof.h>.
10146         (MAX): New macro.
10147         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
10148         Do not use enums as they are not portable to some broken compilers.
10149         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
10151         obstack: prefer alignof to calculating alignments by hand
10152         * lib/obstack.c: Include <stdalign.h>.
10153         (struct fooalign): Remove.
10154         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
10155         * modules/obstack (Depends-on): Add stdalign.
10157 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
10159         obstack: use size_t alignments and check for overflow
10160         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
10161         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
10162         * lib/obstack.h (struct obstack.alignment_mask):
10163         Use _OBSTACK_SIZE_T, not int, for alignments.
10164         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
10165         overflows, e.g., when adding the alignment.
10167 2014-10-29  Alan Modra  <amodra@gmail.com>
10169         obstack: 64-bit obstack support, part 3
10170         This finally enables full 64-bit obstack support.  The glibc
10171         shared library specific code is removed from obstack.c too, and
10172         the error handling code conditionally compiled under control of
10173         another macro, _OBSTACK_NO_ERROR_HANDLER.
10174         * lib/obstack.h: Include string.h earlier.
10175         (_OBSTACK_INTERFACE_VERSION): Define.
10176         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
10177         * lib/obstack.c: Don't include shlib-compat.h.
10178         (OBSTACK_INTERFACE_VERSION): Delete.
10179         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
10180         glibc code is compatible with version 2.  Don't include stdio.h for
10181         __GNU_LIBRARY.
10182         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
10183         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
10184         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
10185         glibc shared library specific source.
10187         obstack: 64-bit obstack support, part 2
10188         This gets us 4G obstack support, without changing ABI
10189         compatibility, apart from possibly introducing some
10190         signed/unsigned comparison warnings in code that uses obstack.h.
10191         a) Replace "int" size parameters, return values, and macro local vars
10192            with _OBSTACK_SIZE_T, an "unsigned int" for now.
10193         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
10194         c) Make all obstack macros checking available room use obstack_room.
10195            "next_free + desired > chunk_limit" may wrap the lhs for chunks
10196            allocated near the top of memory.
10197         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
10198         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
10199         in place of "int" size parameters, return values and local vars.
10200         (_CHUNK_SIZE_T): Define.
10201         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
10202         union use an _OBSTACK_SIZE_T integer type.
10203         For __GNUC__ versions of the following macros...
10204         (obstack_room): Rename local var.
10205         (obstack_make_room): Use obstack_room.
10206         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
10207         obstack_int_grow, obstack_blank): Likewise.
10208         (obstack_finish): Use unsigned comparison when comparing aligned
10209         next_free against chunk_limit.
10210         (obstack_free): Cast OBJ to remove possible const qualifier.
10211         For !__GNUC__ versions of the following macros...
10212         (obstack_make_room): Use obstack_room.
10213         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
10214         obstack_int_grow, obstack_blank): Likewise.
10215         (obstack_finish): Use unsigned comparision when comparing aligned
10216         next_free against chunk_limit.
10217         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
10218         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
10219         _OBSTACK_SIZE_T.
10220         (_obstack_begin, _obstack_begin_1): Likewise.
10221         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
10222         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
10224         obstack: 64-bit obstack support, part 1
10225         a) Correct calls to alloc function, to use a size_t arg.  "long" is
10226            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
10227            and "size_t" 64 bits.
10228         b) Consolidate _obstack_begin and _obstack_begin1 code.
10229         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
10230         use "size_t" rather than "long".
10231         (_obstack_begin, _obstack_begin1): Likewise.
10232         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
10233         obstack_chunkfun): Update alloc function casts.
10234         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
10235         (chunkfun_type, freefun_type): New typdefs.
10236         (_obstack_begin_worker): Split out from ..
10237         (_obstack_begin, _obstack_begin_1): ..here.
10239         obstack: tidy part 2
10240         a) Don't be concerned about "not polluting the namespace with stddef.h
10241            symbols" in obstack.h, since gnulib string.h includes stddef.h
10242            anyway, and it seems unlikely that anyone would care.
10243         b) Don't roll our own slow memcpy in _obstack_newchunk.
10244         c) Rename obstack_free to _obstack_free.  This makes the naming
10245            consistent with other obstack functions and obviates the need for
10246            __obstack_free.  Ancient obstack.c defined both obstack_free and
10247            _obstack_free.  We continue to do that for _LIBC via an alias.
10248         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
10249            is clever, but nowadays gcc warns on undefined macros.  You'll get
10250            an undefined macro warning if simulating an old gcc with -U__GNUC__
10251            -U__GNUC_MINOR__ -D__GNUC__=1.
10252         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
10253         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
10254         (__obstack_free): Delete, update refs.
10255         (_obstack_free): Rename from obstack_free.
10256         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
10257         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
10258         * lib/obstack.c: Don't include stddef.h.
10259         (COPYING_UNIT): Delete.
10260         (_obstack_begin): Formatting fix.
10261         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
10262         (_obstack_free): Rename from __obstack_free, update alias.  Move
10263         undef of obstack_free to where it is needed.
10265         obstack: tidy part 1
10266         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
10267            to me, and result in overlong lines after later patches.
10268         b) Move error handling code, to avoid a forward declaration and to
10269            simplify later patches in this series.
10270         * lib/obstack.h (struct obstack <temp>): Rename fields of union
10271         and update all uses.
10272         * lib/obstack.c: Include stdlib.h earlier.
10273         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
10274         in file.
10275         (print_and_abort): Remove now redundant forward declaration.
10277 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10279         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
10280         Without this change, in bleeding-edge fileutils Autoconf complains
10281         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
10282         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
10283         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
10284         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
10286 2014-10-24  Daiki Ueno  <ueno@gnu.org>
10288         iconv: avoid false detection of non-working iconv
10289         The INBUF arguments of iconv can be either 'const char **'
10290         or 'char **'.  If CC is g++, the difference causes a compile error
10291         and thus leads to a false detection of non-working iconv.
10292         Reported by Eli Zaretskii and Werner LEMBERG in:
10293         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
10294         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
10295         iconv.  Bump serial number.
10297 2014-10-23  Pádraig Brady  <P@draigBrady.com>
10299         bootstrap: print more diagnostics for missing programs
10300         * build-aux/bootstrap: only suppress stderr when checking for
10301         alternative program names.  This supports programs issuing non
10302         standard error messages.
10304 2014-10-23  Pádraig Brady  <P@draigBrady.com>
10306         bootstrap: only update the gnulib submodule
10307         * build-aux/bootstrap: Restrict the "submodule update" command
10308         to the gnulib path.
10310 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10312         symlinkat: port to AIX 7.1
10313         * doc/posix-functions/symlinkat.texi (symlinkat):
10314         Mention AIX porting problem.
10315         * lib/symlinkat.c: Always include errno.h.
10316         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
10317         * lib/unistd.in.h (symlinkat): Add replacement machinery.
10318         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
10319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
10320         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
10321         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
10322         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
10324         readlinkat: port to AIX 7.1
10325         * doc/posix-functions/readlink.texi (readlink):
10326         * doc/posix-functions/readlinkat.texi (readlinkat):
10327         Mention AIX porting problem.
10328         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
10329         New function.
10330         * lib/unistd.in.h (readlinkat): Add replacement machinery.
10331         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
10332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
10333         * modules/readlinkat (configure.ac): Also compile replacement
10334         if REPLACE_READLINKAT.
10335         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
10337 2014-10-12  Karl Berry  <karl@gnu.org>
10339         * doc/posix-functions/dirname.texi: remove spurious {.
10341 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
10343         basename, dirname: Improve documentation.
10344         * doc/posix-functions/basename.texi: Mention dirname module and
10345         base_name() function.
10346         * doc/posix-functions/dirname.texi: Mention dir_name() and
10347         mdir_name() functions.
10348         Suggested by Werner LEMBERG <wl@gnu.org>.
10350 2014-09-24  Jim Meyering  <meyering@fb.com>
10352         exclude: declare exclude_patopts static
10353         * lib/exclude.c (exclude_patopts): Declare static,
10354         to avoid triggering a -Wmissing-prototypes warning.
10355         The alternative (declaring it in the .h file) would
10356         require publicizing the private "struct patopts".
10358 2014-09-21  Werner Lemberg  <wl@gnu.org>
10360         dirname: support compilation with C++
10361         * lib/dirname.h: Add necessary C linkage declarations.
10363 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10365         qsort_r: include <config.h>
10366         Problem reported by Tom G. Christensen in:
10367         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
10368         * lib/qsort.c [!_LIBC]: Include <config.h> first.
10370 2014-09-16  Dylan Cali  <calid1984@gmail.com>
10372         avltree-list: avoid compiler warnings (trivial)
10373         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
10374         -Werror=suggest-attribute=pure.
10375         * lib/gl_array_list.c: Likewise.
10376         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
10377         declaration to avoid -Werror=missing-prototypes.  This is not added
10378         to a header as only exported for tests.  Add (void) to the
10379         check_invariants() call to indicate we're discarding the result
10380         in this context which avoids -Werror=unused-value.  Note we don't
10381         use ignore_value here to avoid a dependency as we know we'll not
10382         be adding __attribute__((warn_unused_result)) to check_invariants().
10383         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
10385 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10387         qsort_r: new module, for GNU-style qsort_r
10388         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
10390 2014-09-15  Werner LEMBERG  <wl@gnu.org>
10392         strerror_r-posix: support compilation with C++
10393         * lib/strerror_r.c: Add necessary C linkage declarations.
10395 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
10397         fcntl-h: fix compilation with Intel C++ compiler (trivial)
10398         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
10400 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
10402         mountlist: use /proc/self/mountinfo when available
10403         Use libmount to propagate device IDs provided by Linux in
10404         /proc/self/mountinfo.  This will give more accurate output when
10405         using df in chroot'ed environments as the device IDs are not
10406         determined by stat() which may be inaccurate within the chroot.
10407         * lib/mountlist.c (read_file_system_list): Use the libmount routines
10408         from util-linux to parse "/proc/self/mountinfo" or fall back to
10409         standard getmntent() processing.
10410         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
10411         getmntent() is used, as is the case on GNU/Linux.
10413 2014-09-07  Eric Wong  <normalperson@yhbt.net>
10415         users.txt: add cmogstored
10416         cmogstored has used gnulib since the beginning in 2012 to support
10417         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
10419 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
10421         Trivial change.
10422         * gnulib-tool: Use same options as build-aux/bootstrap to download
10423         PO files.
10425 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
10427         Trivial change.
10428         * gnulib-tool: Fallback to wget when rsync of PO files fails.
10430 2014-09-04  Eric Blake  <eblake@redhat.com>
10432         maintainer-makefile: add syntax check for useless ';;'
10433         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
10435 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
10437         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
10438         Problem reported by Assaf Gordon in:
10439         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
10440         Apparently Ubuntu is doing some fancy link-time optimization
10441         that doesn't work with -lpthread but does work with -pthread.
10442         Work around the bug by preferring -pthread to -lpthread.
10443         * m4/pthread.m4 (gl_PTHREAD_CHECK):
10444         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
10445         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10446         Treat -pthread like -lpthread.
10448 2014-09-04  Eric Blake  <eblake@redhat.com>
10450         error: drop spurious semicolon
10451         * lib/error.c (__error_at_line): Fix ';;'.
10453 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10455         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
10456         * m4/gnulib-common.m4 (AC_C_RESTRICT):
10457         Override AC_C_RESTRICT unconditionally.
10458         Update from autoconf, incorporating:
10459         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
10460         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
10462 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10464         manywarnings: add GCC 4.9 warnings
10465         Also, make it easier to maintain this in the future.
10466         * build-aux/gcc-warning.spec: Add -Wabi-tag,
10467         -Wconditionally-supported, -Wdelete-incomplete,
10468         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
10469         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
10470         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
10471         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
10472         only for older GCC versions that need them.  Handle
10473         -Wnormalized=nfc specially, so that the 'comm' command used
10474         for maintenance doesn't get confused.
10476 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10478         vasnprintf: fix bugs in width computation
10479         * lib/vasnprintf.c (VASNPRINTF):
10480         Rework previous change, which introduced a bug,
10481         to avoid the warning in a different way.
10482         Avoid undefined behavior if the width arg is less than -INT_MAX.
10483         Avoid unnecessary use of HAS_WIDTH local.
10485 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
10487         vasnprintf: Avoid signed/unsigned comparison warning.
10488         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
10489         compare end addr of generated string w/ maximum end addr.
10491 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
10493         parse-datetime: Avoid pointer difference.
10494         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
10495         instead of calculating difference of pointers.  This removes an
10496         annoying warning, devoid of any use.
10498 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10500         qsort_r: new module, for GNU-style qsort_r
10501         This works even on FreeBSD, which has an incompatible qsort_r API.
10502         * MODULES.html.sh: Add it.
10503         * doc/glibc-functions/qsort_r.texi: It's now supported.
10504         * lib/qsort.c: New file, taken from glibc with minor changes
10505         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
10506         removed.
10507         * lib/qsort_r.c: New file, compiled only on FreeBSD.
10508         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
10509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
10510         * modules/qsort_r, modules/qsort_r-tests: New files.
10511         * modules/stdlib (Makefile): Set up its defaults.
10512         * tests/test-qsort_r.c: New file.
10514 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
10516         vla: new module
10517         GNU RCS can use this, mostly for documentation I expect.  See:
10518         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
10519         * MODULES.html.sh: Add vla.
10520         * lib/vla.h, modules/vla: New files.
10522 2014-08-07  Daiki Ueno  <ueno@gnu.org>
10524         localename: make gl_locale_name_thread really thread-safe on Windows
10525         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
10526         "glthread/lock.h".
10527         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
10528         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
10530 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
10532         getpass: don't assume struct termios
10533         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
10534         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
10535         * lib/getpass.c (getpass): Port to systems lacking struct termios.
10537         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
10538         Problem reported by Jonas 'Sortie' Termansen in:
10539         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
10540         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
10541         Implement via sysconf for platforms that lack getdtablesize.
10543         vararrays: modernize AC_C_VARARRAYS for C11
10544         This backports a change I recently made to Autoconf.
10545         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
10546         VLAs are not supported, as this is what C11 does.  The old macro
10547         HAVE_C_VARARRAYS is still defined if they are supported, but is
10548         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
10550 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
10552         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
10553         * build-aux/install-reloc (func_create_wrapper): Also wrap
10554         strerror-override, stat, stat.
10556 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
10558         sys_select: fix FD_ZERO problem on Solaris 10
10559         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
10560         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
10561         to expand to an expression that invoked memset without necessarily
10562         including <string.h>.  The problem was that the first include
10563         defined _SYS_TIME_H, causing the second include to short-circuit.
10564         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
10565         Also, fix what appears to be a cut-and-paste typo, by replacing
10566         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
10567         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
10569         accept: document Solaris 10 type glitch
10570         * doc/posix-functions/accept.texi (accept): Mention that
10571         Solaris 10 'accept' takes void * last arg, not socklen_t *.
10573 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
10575         extern-inline: port to FreeBSD, DragonFly
10576         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
10577         is present if either __DragonFly__ or __FreeBSD__ is defined.
10578         FreeBSD problem reported by Andrey Borzenkov in:
10579         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
10580         Also, worry about __APPLE__ only if __MACH__ is also defined,
10581         as this is more consistent with the rest of gnulib.
10582         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
10583         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
10585 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10587         regex: Make #if/#ifdef usage consistent for DEBUG
10588         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
10589         of the inconsistent usage of #if and #ifdef as that works with
10590         both Glibc and Gnulib's style.
10592 2014-07-31  Eric Blake  <eblake@redhat.com>
10594         openat-die: use _Noreturn markup
10595         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
10596         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
10597         _Noreturn.
10599 2014-07-30  Eric Blake  <eblake@redhat.com>
10601         test-open: port to cygwin, which lacks Fortify
10602         * tests/test-open.h (ALWAYS_INLINE): New macro.
10603         (__always_inline): Don't abuse internal symbol on non-glibc.
10605 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
10607         localename: Enforce declarations before statements.
10608         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
10609         first statement.
10611 2014-07-18  Jim Meyering  <meyering@fb.com>
10613         test-userspec: don't look up numeric user names
10614         * tests/test-userspec.c: I found a system for which getpwnam("0")
10615         returned a pointer to a non-root user's entry, and that made the
10616         test fail.
10617         (T): Prefix each numeric input with "+", to inhibit lookup.
10619 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
10621         localcharset, localename: MS-Windows support for non-default locales
10622         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
10623         falling back on the default system codepage, try extracting
10624         the codepage from what 'setlocale' returns.  This allows to
10625         take into account changes of the codeset due to non-default
10626         locale set by a previous call to 'setlocale'.
10627         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
10628         Define if not already defined.
10629         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
10630         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
10631         current locale by calling 'setlocale', then converting the
10632         locale name into LCID by calling 'get_lcid'.  This allows to
10633         take into account changes in the current locale from the
10634         default one, in contrast to GetThreadLocale.
10636 2014-07-14  Daiki Ueno  <ueno@gnu.org>
10638         announce-gen: avoid failure when Digest::SHA is installed
10639         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
10640         Digest::SHA1->new in print_checksums fails.
10641         * build-aux/announce-gen (digest_classes): New associative array
10642         for available message digest implementations.
10643         (print_locations): Use it.
10645 2014-07-13  Pádraig Brady  <P@draigBrady.com>
10647         gettext: revert "update macros to version 0.19"
10648         This reverts commit 9b9370ca, as it currently requires that
10649         developers of any project that explicitly uses the gettext module
10650         or implicitly uses it through the utimens-tests or
10651         futimens-tests modules, use gettext >= 0.19.
10652         However there are some stability and availablity issues with
10653         that version at present.  We can reinstate this soon, when stability
10654         is addressed and packages are more readily available.
10656 2014-07-12  Jim Meyering  <meyering@fb.com>
10658         regex: don't deref NULL upon heap allocation failure
10659         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
10660         failure in one more place.
10661         To trigger the segfault, configure grep -with-included-regex,
10662         build it, and run these commands:
10663         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
10664         I discovered this while replying to a private report from
10665         Jens Schleusener about excessive memory consumption by grep
10666         when using a regular expression like the one above.
10668 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
10670         regex: fix memory leak in compiler
10671         Fix by Andreas Schwab in:
10672         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
10673         * lib/regcomp.c (parse_reg_exp): Deallocate partially
10674         constructed tree before returning error.
10676 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10678         announce-gen: avoid perl warnings
10679         * build-aux/announce-gen: add two minor checks to avoid
10680         "use of uninitialized value" warnings when command-line parameters are
10681         missing.
10683 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10685         localename: avoid -Wsuggest-attribute={const,pure} warnings
10686         * lib/localename.c (string_has): Tag internal function as pure.
10687         * lib/localename.h (gl_locale_name_default): Tag extern declaration
10688         as const when appropriate.
10690 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
10692         nl_langinfo: Fix last change.
10693         * lib/nl_langinfo.c (includes): Drop redundant include.
10695 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10697         error: Fix -Wundef warnings in glibc
10698         * lib/error.c [_LIBC]: Define default macros for
10699         glibc.
10700         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
10701         Check _LIBC before STRERROR_R_CHAR_P.
10703         error: Sync from glibc master
10704         * lib/error.c [_LIBC]: Remove INTUSE usage.
10705         (error_tail): Remove unused macro ALLOCA_LIMIT.
10706         Fix potential buffer overflow.  Fix potential NULL dereference
10707         in strcmp.
10709 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
10711         nl_langinfo: fix build under mingw
10712         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
10714 2014-07-09  Andrew D Warshall  <warshall@99main.com>
10716         mountlist: do not classify a bind-mounted dir entry as "dummy"
10717         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
10718         1-argument getmntent() (instead of assuming absence).
10720 2014-07-08  Eric Blake  <eblake@redhat.com>
10722         maint.mk: less syntax-check noise when SIGPIPE is ignored
10723         * top/maint.mk (_sc_header_without_use)
10724         (sc_require_config_h_first): Parse full list.
10726 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
10727             Paul Eggert  <eggert@cs.ucla.edu>
10729         nl_langinfo: CODESET on MS-Windows and more items from localeconv
10730         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
10731         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
10732         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
10733         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
10734         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
10735         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
10736         Include <stdio.h> if Microsoft Windows.
10737         Include <time.h> if !REPLACE_NL_LANGINFO.
10738         (ctype_codeset): New function, taken from rpl_nl_langinfo,
10739         and with improvements for Microsoft Windows.
10740         (rpl_nl_langinfo): Use it.
10741         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
10742         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
10743         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
10744         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
10745         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
10746         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
10747         corresponding values returned by 'localeconv'.  Compute the values
10748         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
10749         'strftime' with a suitable struct tm value.
10751 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10753         Bruno Haible has stepped down as maintainer.
10754         See Karl Berry in:
10755         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
10756         Daiki Ueno has volunteered to maintain libunistring; see:
10757         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
10758         * modules/gen-uni-tables, modules/libunistring:
10759         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
10760         * modules/unicase/base, modules/unicase/cased:
10761         * modules/unicase/empty-prefix-context:
10762         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
10763         * modules/unicase/locale-language, modules/unicase/special-casing:
10764         * modules/unicase/tocasefold, modules/unicase/tolower:
10765         * modules/unicase/totitle, modules/unicase/toupper:
10766         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
10767         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
10768         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
10769         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
10770         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
10771         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
10772         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
10773         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
10774         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
10775         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
10776         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
10777         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
10778         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
10779         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
10780         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
10781         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
10782         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
10783         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
10784         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
10785         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
10786         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
10787         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
10788         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
10789         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
10790         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
10791         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
10792         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
10793         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
10794         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
10795         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
10796         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
10797         * modules/unicase/ulc-casexfrm, modules/unicodeio:
10798         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
10799         * modules/uniconv/u16-conv-to-enc:
10800         * modules/uniconv/u16-strconv-from-enc:
10801         * modules/uniconv/u16-strconv-from-locale:
10802         * modules/uniconv/u16-strconv-to-enc:
10803         * modules/uniconv/u16-strconv-to-locale:
10804         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
10805         * modules/uniconv/u32-strconv-from-enc:
10806         * modules/uniconv/u32-strconv-from-locale:
10807         * modules/uniconv/u32-strconv-to-enc:
10808         * modules/uniconv/u32-strconv-to-locale:
10809         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
10810         * modules/uniconv/u8-strconv-from-enc:
10811         * modules/uniconv/u8-strconv-from-locale:
10812         * modules/uniconv/u8-strconv-to-enc:
10813         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
10814         * modules/unictype/bidicategory-all:
10815         * modules/unictype/bidicategory-byname:
10816         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
10817         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
10818         * modules/unictype/bidiclass-byname:
10819         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
10820         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
10821         * modules/unictype/block-all, modules/unictype/block-list:
10822         * modules/unictype/block-of, modules/unictype/block-test:
10823         * modules/unictype/category-C, modules/unictype/category-Cc:
10824         * modules/unictype/category-Cf, modules/unictype/category-Cn:
10825         * modules/unictype/category-Co, modules/unictype/category-Cs:
10826         * modules/unictype/category-L, modules/unictype/category-LC:
10827         * modules/unictype/category-Ll, modules/unictype/category-Lm:
10828         * modules/unictype/category-Lo, modules/unictype/category-Lt:
10829         * modules/unictype/category-Lu, modules/unictype/category-M:
10830         * modules/unictype/category-Mc, modules/unictype/category-Me:
10831         * modules/unictype/category-Mn, modules/unictype/category-N:
10832         * modules/unictype/category-Nd, modules/unictype/category-Nl:
10833         * modules/unictype/category-No, modules/unictype/category-P:
10834         * modules/unictype/category-Pc, modules/unictype/category-Pd:
10835         * modules/unictype/category-Pe, modules/unictype/category-Pf:
10836         * modules/unictype/category-Pi, modules/unictype/category-Po:
10837         * modules/unictype/category-Ps, modules/unictype/category-S:
10838         * modules/unictype/category-Sc, modules/unictype/category-Sk:
10839         * modules/unictype/category-Sm, modules/unictype/category-So:
10840         * modules/unictype/category-Z, modules/unictype/category-Zl:
10841         * modules/unictype/category-Zp, modules/unictype/category-Zs:
10842         * modules/unictype/category-all, modules/unictype/category-and:
10843         * modules/unictype/category-and-not, modules/unictype/category-byname:
10844         * modules/unictype/category-longname, modules/unictype/category-name:
10845         * modules/unictype/category-none, modules/unictype/category-of:
10846         * modules/unictype/category-or, modules/unictype/category-test:
10847         * modules/unictype/category-test-withtable:
10848         * modules/unictype/combining-class:
10849         * modules/unictype/combining-class-all:
10850         * modules/unictype/combining-class-byname:
10851         * modules/unictype/combining-class-longname:
10852         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
10853         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
10854         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
10855         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
10856         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
10857         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
10858         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
10859         * modules/unictype/digit, modules/unictype/joininggroup-all:
10860         * modules/unictype/joininggroup-byname:
10861         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
10862         * modules/unictype/joiningtype-all:
10863         * modules/unictype/joiningtype-byname:
10864         * modules/unictype/joiningtype-longname:
10865         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
10866         * modules/unictype/mirror, modules/unictype/numeric:
10867         * modules/unictype/property-all, modules/unictype/property-alphabetic:
10868         * modules/unictype/property-ascii-hex-digit:
10869         * modules/unictype/property-bidi-arabic-digit:
10870         * modules/unictype/property-bidi-arabic-right-to-left:
10871         * modules/unictype/property-bidi-block-separator:
10872         * modules/unictype/property-bidi-boundary-neutral:
10873         * modules/unictype/property-bidi-common-separator:
10874         * modules/unictype/property-bidi-control:
10875         * modules/unictype/property-bidi-embedding-or-override:
10876         * modules/unictype/property-bidi-eur-num-separator:
10877         * modules/unictype/property-bidi-eur-num-terminator:
10878         * modules/unictype/property-bidi-european-digit:
10879         * modules/unictype/property-bidi-hebrew-right-to-left:
10880         * modules/unictype/property-bidi-left-to-right:
10881         * modules/unictype/property-bidi-non-spacing-mark:
10882         * modules/unictype/property-bidi-other-neutral:
10883         * modules/unictype/property-bidi-pdf:
10884         * modules/unictype/property-bidi-segment-separator:
10885         * modules/unictype/property-bidi-whitespace:
10886         * modules/unictype/property-byname:
10887         * modules/unictype/property-case-ignorable:
10888         * modules/unictype/property-cased:
10889         * modules/unictype/property-changes-when-casefolded:
10890         * modules/unictype/property-changes-when-casemapped:
10891         * modules/unictype/property-changes-when-lowercased:
10892         * modules/unictype/property-changes-when-titlecased:
10893         * modules/unictype/property-changes-when-uppercased:
10894         * modules/unictype/property-combining:
10895         * modules/unictype/property-composite:
10896         * modules/unictype/property-currency-symbol:
10897         * modules/unictype/property-dash:
10898         * modules/unictype/property-decimal-digit:
10899         * modules/unictype/property-default-ignorable-code-point:
10900         * modules/unictype/property-deprecated:
10901         * modules/unictype/property-diacritic:
10902         * modules/unictype/property-extender:
10903         * modules/unictype/property-format-control:
10904         * modules/unictype/property-grapheme-base:
10905         * modules/unictype/property-grapheme-extend:
10906         * modules/unictype/property-grapheme-link:
10907         * modules/unictype/property-hex-digit:
10908         * modules/unictype/property-hyphen:
10909         * modules/unictype/property-id-continue:
10910         * modules/unictype/property-id-start:
10911         * modules/unictype/property-ideographic:
10912         * modules/unictype/property-ids-binary-operator:
10913         * modules/unictype/property-ids-trinary-operator:
10914         * modules/unictype/property-ignorable-control:
10915         * modules/unictype/property-iso-control:
10916         * modules/unictype/property-join-control:
10917         * modules/unictype/property-left-of-pair:
10918         * modules/unictype/property-line-separator:
10919         * modules/unictype/property-logical-order-exception:
10920         * modules/unictype/property-lowercase, modules/unictype/property-math:
10921         * modules/unictype/property-non-break:
10922         * modules/unictype/property-not-a-character:
10923         * modules/unictype/property-numeric:
10924         * modules/unictype/property-other-alphabetic:
10925         * modules/unictype/property-other-default-ignorable-code-point:
10926         * modules/unictype/property-other-grapheme-extend:
10927         * modules/unictype/property-other-id-continue:
10928         * modules/unictype/property-other-id-start:
10929         * modules/unictype/property-other-lowercase:
10930         * modules/unictype/property-other-math:
10931         * modules/unictype/property-other-uppercase:
10932         * modules/unictype/property-paired-punctuation:
10933         * modules/unictype/property-paragraph-separator:
10934         * modules/unictype/property-pattern-syntax:
10935         * modules/unictype/property-pattern-white-space:
10936         * modules/unictype/property-private-use:
10937         * modules/unictype/property-punctuation:
10938         * modules/unictype/property-quotation-mark:
10939         * modules/unictype/property-radical:
10940         * modules/unictype/property-sentence-terminal:
10941         * modules/unictype/property-soft-dotted:
10942         * modules/unictype/property-space:
10943         * modules/unictype/property-terminal-punctuation:
10944         * modules/unictype/property-test, modules/unictype/property-titlecase:
10945         * modules/unictype/property-unassigned-code-value:
10946         * modules/unictype/property-unified-ideograph:
10947         * modules/unictype/property-uppercase:
10948         * modules/unictype/property-variation-selector:
10949         * modules/unictype/property-white-space:
10950         * modules/unictype/property-xid-continue:
10951         * modules/unictype/property-xid-start:
10952         * modules/unictype/property-zero-width, modules/unictype/scripts:
10953         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
10954         * modules/unictype/syntax-c-whitespace:
10955         * modules/unictype/syntax-java-ident:
10956         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
10957         * modules/unigbrk/u16-grapheme-breaks:
10958         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
10959         * modules/unigbrk/u32-grapheme-breaks:
10960         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
10961         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
10962         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
10963         * modules/unigbrk/uc-is-grapheme-break:
10964         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
10965         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
10966         * modules/unilbrk/u16-width-linebreaks:
10967         * modules/unilbrk/u32-possible-linebreaks:
10968         * modules/unilbrk/u32-width-linebreaks:
10969         * modules/unilbrk/u8-possible-linebreaks:
10970         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
10971         * modules/unilbrk/ulc-possible-linebreaks:
10972         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
10973         * modules/uniname/uniname, modules/uninorm/base:
10974         * modules/uninorm/canonical-decomposition:
10975         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
10976         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
10977         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
10978         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
10979         * modules/uninorm/nfkc, modules/uninorm/nfkd:
10980         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
10981         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
10982         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
10983         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
10984         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
10985         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
10986         * modules/unistdio/base, modules/unistdio/u-printf-args:
10987         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
10988         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
10989         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
10990         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
10991         * modules/unistdio/u16-u16-sprintf:
10992         * modules/unistdio/u16-u16-vasnprintf:
10993         * modules/unistdio/u16-u16-vasprintf:
10994         * modules/unistdio/u16-u16-vsnprintf:
10995         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
10996         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
10997         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
10998         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
10999         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
11000         * modules/unistdio/u32-u32-asnprintf:
11001         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
11002         * modules/unistdio/u32-u32-sprintf:
11003         * modules/unistdio/u32-u32-vasnprintf:
11004         * modules/unistdio/u32-u32-vasprintf:
11005         * modules/unistdio/u32-u32-vsnprintf:
11006         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
11007         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
11008         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
11009         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
11010         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
11011         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
11012         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
11013         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
11014         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
11015         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
11016         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
11017         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
11018         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
11019         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
11020         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
11021         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
11022         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
11023         * modules/unistr/u16-check, modules/unistr/u16-chr:
11024         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
11025         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
11026         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
11027         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
11028         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
11029         * modules/unistr/u16-move, modules/unistr/u16-next:
11030         * modules/unistr/u16-prev, modules/unistr/u16-set:
11031         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
11032         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
11033         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
11034         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
11035         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
11036         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
11037         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
11038         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
11039         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
11040         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
11041         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
11042         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
11043         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
11044         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
11045         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
11046         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
11047         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
11048         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
11049         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
11050         * modules/unistr/u32-next, modules/unistr/u32-prev:
11051         * modules/unistr/u32-set, modules/unistr/u32-startswith:
11052         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
11053         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
11054         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
11055         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
11056         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
11057         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
11058         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
11059         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
11060         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
11061         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
11062         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
11063         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
11064         * modules/unistr/u8-check, modules/unistr/u8-chr:
11065         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
11066         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
11067         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
11068         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
11069         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
11070         * modules/unistr/u8-next, modules/unistr/u8-prev:
11071         * modules/unistr/u8-set, modules/unistr/u8-startswith:
11072         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
11073         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
11074         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
11075         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
11076         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
11077         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
11078         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
11079         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
11080         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
11081         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
11082         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
11083         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
11084         * modules/uniwbrk/base, modules/uniwbrk/table:
11085         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
11086         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
11087         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
11088         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
11089         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
11090         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
11091         * modules/uniwidth/width, modules/utf16-ucs4:
11092         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
11093         * modules/utf8-ucs4-unsafe:
11094         Change maintainer from Bruno Haible to Daiki Ueno.
11095         This is my guess at the libunistring modules; please feel free
11096         to fix if I guessed incorrectly.
11097         * modules/accept4, modules/acl, modules/acos, modules/acosf:
11098         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
11099         * modules/areadlink, modules/array-list, modules/array-mergesort:
11100         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
11101         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
11102         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
11103         * modules/binary-io, modules/bison-i18n, modules/btowc:
11104         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
11105         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
11106         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
11107         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
11108         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
11109         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
11110         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
11111         * modules/closedir, modules/concat-filename, modules/copy-file:
11112         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
11113         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
11114         * modules/csharpcomp-script, modules/csharpexec:
11115         * modules/csharpexec-script, modules/ctype, modules/diffseq:
11116         * modules/dprintf, modules/dprintf-posix, modules/dup:
11117         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
11118         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
11119         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
11120         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
11121         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
11122         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
11123         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
11124         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
11125         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
11126         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
11127         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
11128         * modules/findprog, modules/findprog-lgpl, modules/floor:
11129         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
11130         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
11131         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
11132         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
11133         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
11134         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
11135         * modules/freadable, modules/freadahead, modules/freadptr:
11136         * modules/freadseek, modules/freopen, modules/frexp:
11137         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
11138         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
11139         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
11140         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
11141         * modules/ftello, modules/full-read, modules/full-write:
11142         * modules/fwritable, modules/fwriteerror, modules/gcd:
11143         * modules/get-rusage-as, modules/get-rusage-data:
11144         * modules/getdtablesize, modules/getrusage, modules/gettext:
11145         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
11146         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
11147         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
11148         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
11149         * modules/iconv, modules/iconv-h, modules/iconv_open:
11150         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
11151         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
11152         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
11153         * modules/integer_length_ll, modules/ioctl, modules/isatty:
11154         * modules/isblank, modules/isnand, modules/isnand-nolibm:
11155         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
11156         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
11157         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
11158         * modules/javaexec, modules/javaexec-script, modules/javaversion:
11159         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
11160         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
11161         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
11162         * modules/lib-symbol-visibility, modules/libsigsegv:
11163         * modules/linked-list, modules/linkedhash-list, modules/list:
11164         * modules/localcharset, modules/locale, modules/localeconv:
11165         * modules/localename, modules/lock, modules/log, modules/log-ieee:
11166         * modules/log10, modules/log10-ieee, modules/log10f:
11167         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
11168         * modules/log1p, modules/log1p-ieee, modules/log1pf:
11169         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
11170         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
11171         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
11172         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
11173         * modules/logf, modules/logf-ieee, modules/login_tty:
11174         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
11175         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
11176         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
11177         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
11178         * modules/mbscspn, modules/mbsinit, modules/mbslen:
11179         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
11180         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
11181         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
11182         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
11183         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
11184         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
11185         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
11186         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
11187         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
11188         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
11189         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
11190         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
11191         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
11192         * modules/posix_spawn, modules/posix_spawn-internal:
11193         * modules/posix_spawn_file_actions_addclose:
11194         * modules/posix_spawn_file_actions_adddup2:
11195         * modules/posix_spawn_file_actions_addopen:
11196         * modules/posix_spawn_file_actions_destroy:
11197         * modules/posix_spawn_file_actions_init:
11198         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
11199         * modules/posix_spawnattr_getpgroup:
11200         * modules/posix_spawnattr_getschedparam:
11201         * modules/posix_spawnattr_getschedpolicy:
11202         * modules/posix_spawnattr_getsigdefault:
11203         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
11204         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
11205         * modules/posix_spawnattr_setschedparam:
11206         * modules/posix_spawnattr_setschedpolicy:
11207         * modules/posix_spawnattr_setsigdefault:
11208         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
11209         * modules/pow, modules/powf, modules/printf-frexp:
11210         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
11211         * modules/progname, modules/propername, modules/pselect:
11212         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
11213         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
11214         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
11215         * modules/read, modules/readdir, modules/readlink:
11216         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
11217         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
11218         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
11219         * modules/relocatable-script, modules/remainder:
11220         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
11221         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
11222         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
11223         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
11224         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
11225         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
11226         * modules/setlocale, modules/sh-quote, modules/shutdown:
11227         * modules/signal, modules/signbit, modules/sigpipe:
11228         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
11229         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
11230         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
11231         * modules/snippet/link-warning, modules/snippet/unused-parameter:
11232         * modules/snprintf, modules/snprintf-posix, modules/spawn:
11233         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
11234         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
11235         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
11236         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
11237         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
11238         * modules/streq, modules/strerror_r-posix, modules/striconv:
11239         * modules/striconveh, modules/striconveha, modules/strncat:
11240         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
11241         * modules/sublist, modules/sys_resource, modules/sys_utsname:
11242         * modules/sys_wait, modules/system-posix, modules/system-quote:
11243         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
11244         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
11245         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
11246         * modules/truncf, modules/truncf-ieee, modules/truncl:
11247         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
11248         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
11249         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
11250         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
11251         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
11252         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
11253         * modules/wait-process, modules/waitpid, modules/wcpcpy:
11254         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
11255         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
11256         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
11257         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
11258         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
11259         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
11260         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
11261         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
11262         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
11263         * modules/write, modules/xconcat-filename, modules/xlist:
11264         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
11265         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
11266         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
11267         * modules/y0, modules/y1, modules/yn:
11268         Remove Bruno Haible as maintainer; if he's the sole maintainer,
11269         change the maintainer to 'all'.  Let's hope someone volunteers.
11271 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
11273         mktime: merge #if/#ifdef usage from glibc
11274         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
11275         as that works with both Glibc's and Gnulib's style.
11276         See thread starting at Siddhesh Poyarekar's bug report at:
11277         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
11279 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
11281         git-version-gen: improve option descriptions
11282         * build-aux/git-version-gen: Mention that --prefix and --fallback
11283         have a mandatory argument.
11285 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11287         regex: fix memory leak in compiler
11288         Fix by Andreas Schwab in:
11289         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
11290         * lib/regcomp.c (parse_expression): Deallocate partially
11291         constructed tree before returning error.
11293         regex: merge patch from libc
11294         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
11295         Combine __USE_BSD and __USE_SVID into __USE_MISC.
11296         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
11298 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
11300         acl: port to gcc -Wredundant-decls
11301         From a request by Dmitry Antipov in:
11302         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
11303         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
11304         "#ifndef _GL_ACL_H".
11306 2014-06-11  Bruce Korb  <bkorb@gnu.org>
11307         Jim Meyering  <meyering@fb.com>
11309         parse-duration: eliminate 68-year duration limit
11310         * lib/parse-duration.c: Include "intprops.h".
11311         (TIME_MAX): Rename to MAX_DURATION and define to
11312         TYPE_MAXIMUM(time_t).
11313         * modules/parse-duration (Depends-on): Add intprops.
11314         Reported by Jonas 'Sortie' Termansen.
11316 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11318         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
11319         * modules/pthread (Depends-on): Add 'extensions', as it defines
11320         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
11321         (configure.ac-early): New section.
11322         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
11323         it is no longer needed.
11325 2014-06-14  Pádraig Brady  <P@draigBrady.com>
11327         pthread: define thread-safe macros on some platforms
11328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
11329         for thread-safe operation on some platforms.
11331 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11333         regex: don't be multithreaded if USE_UNLOCKED_IO.
11334         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
11335         * lib/regex_internal.h: Do not use multithreaded version if
11336         USE_UNLOCKED_IO is defined.  This is a hack, but it works
11337         around a porting bug with coreutils 8.22 on AIX 7.1.
11339 2014-06-11  Daiki Ueno  <ueno@gnu.org>
11341         gettext: update macros to version 0.19
11342         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
11343         depend on gl_EXTERN_INLINE and drop support for older Bison
11344         versions.
11346 2014-06-10  Pádraig Brady  <P@draigBrady.com>
11348         select,poll: fix console handle check on windows 8
11349         lib/poll.c (IsConsoleHandle): Change from testing the lower
11350         2 bits of the handle to the more expensive but accurate syscall.
11351         lib/select.c: Likewise.
11353 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
11355         select: fix waiting on anonymous pipes on MS-Windows
11356         * lib/select.c (rpl_select): Fall back to polling when select()
11357         indicates there is nothing to check, while due to the timeout not
11358         expiring, activity is indicated on one of the handles.
11359         Also clear the TIMEOUT argument if the timer does expire.
11361 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
11363         times: fix to return non constant value on MS-Windows
11364         * lib/times.c (times): Don't use the process creation time,
11365         rather clock() which on windows returns the number of
11366         clock ticks since the process started.
11368 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
11370         isatty: fix to work on windows 8
11371         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
11372         2 bits of the handle to the more expensive but accurate syscall.
11374 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11376         maint: fix typo in fdl.texi
11377         * doc/fdl.texi: Fix typo (missing '@').
11378         Somehow this was in fdl.texi but not fdl-1.3.texi.
11380 2014-06-06  Ben Walton  <bdwalton@gmail.com>
11382         mountlist: avoid hasmntopt const type warning on solaris
11383         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
11384         with char * instead of const char *.  Passing the constant string
11385         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
11386         to avoid the warning.
11388 2014-06-04  Eric Blake  <eblake@redhat.com>
11390         maintainer-makefile: delete obsolete code
11391         * top/maint.mk (build_aux): Drop old code, as threatened.
11393         maintainer-makefile: avoid spurious error messages
11394         * top/maint.mk (syntax-check): Guard definition and use of
11395         $(shell) by whether Makefile is present.
11397 2014-06-03  Ben Walton  <bdwalton@gmail.com>
11399         rename: avoid unused-but-set-variable compiler warning
11400         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
11401         it is possible that dst_exists may be set but not used.  Mark it with
11402         the unused attribute to avoid compiler warnings.
11404 2014-06-02  Ben Walton  <bdwalton@gmail.com>
11406         rename: mark a label as potentially unused
11407         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
11408         by marking the out label as potentially unused.
11409         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
11411 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
11413         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
11414         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
11416 2014-06-02  Ben Walton  <bdwalton@gmail.com>
11418         acl: apply pure attribute to two functions
11419         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
11420         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
11422 2014-06-01  Pádraig Brady  <P@draigBrady.com>
11424         gnulib-common.m4: add _GL_UNUSED_LABEL
11425         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
11426         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
11428 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11430         dup2, fcntl, fcntl-h: port to AIX 7.1
11431         This fixes some porting problems discovered when testing the latest
11432         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
11433         in grep but it could be important for other applications.
11434         * doc/posix-functions/dup2.texi:
11435         * doc/posix-functions/fcntl.texi:
11436         * doc/posix-headers/fcntl.texi:
11437         Document AIX bugs.
11438         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
11439         Define to 0 if outside 'int' range.
11440         * m4/dup2.m4 (gl_FUNC_DUP2):
11441         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11442         Check for getdtablesize.  If it's available, test a value just
11443         outside its range instead of testing 1000000.  When cross-compiling,
11444         guess that AIX will fail this improved test.
11446 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11448         printf, config.rpath: Port to FreeBSD 10.
11449         Problem reported by Tijl Coosemans in:
11450         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
11451         * build-aux/config.rpath (hardcode_libdir_flag_spec)
11452         (hardcode_direct): Simplify FreeBSD configuration.
11453         (library_names_spec): Don't mishandle FreeBSD 10+.
11454         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
11455         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
11456         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
11457         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
11458         Don't mishandle FreeBSD 10+ when cross-compiling.
11460         ftoastr: work around compiler bug in IBM xlc 12.1
11461         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
11462         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
11463         around a compiler bug in IBM xlc 12.1.0.0: it complains
11464         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
11465         _GL_FLT_PREC_BOUND.'
11467 2014-05-30  Kieran Colford  <colfordk@gmail.com>
11469         valgrind-tests: fixed misleading help message
11470         * m4/valgrind-tests.m4: The help message generated by configure
11471         implied that valgrind was disabled by default, which it wasn't.
11472         Adjusted the help message using s/enable/disable/ to clarify.
11474 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
11476         isfinite, isinf, isnan tests: fix for little-endian PowerPC
11477         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
11478         first double of a PowerPC "double double" pair.
11479         * tests/test-isinf.c (test_isinfl): Likewise.
11480         * tests/test-isnan.c (test_long_double): Likewise.
11481         * tests/test-isnanl.h (main): Likewise.
11482         * tests/test-signbit.c (test_signbitl): Likewise.
11484 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11486         exclude-tests: port to AIX 7.1
11487         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
11488         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
11489         the regex code uses locks.
11491 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
11493         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
11494         Without this fix, Emacs would sometimes call sigprocmask instead
11495         of pthread_sigmask, which is a no-no in multithreaded applications.
11496         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
11497         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11498         Suppress check for pthread_sigmask working without -lpthread if
11499         the application always links with -lpthread.  Do not link with
11500         $LIBMULTITHREAD if gl_THREADLIB is not defined.
11501         * m4/timer_time.m4 (gl_TIMER_TIME):
11502         Require gl_THREADLIB only if it is defined.  Do not append
11503         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
11505 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
11507         gnulib-tool: wget translations using --no-verbose rather than --quiet
11508         This allows the user to see error messages if any (--quiet hides them)
11509         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
11511 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
11513         gnulib-tool: adjust translation wget to avoid a https redirection
11514         Context: http://translationproject.org/latest/gnulib redirects to
11515            https://translationproject.org/latest/gnulib/
11516         Rationale: if the user falls back to wget, she doesn't have rsync and
11517         is probably in a minimal build environment, where packages such as
11518         'ca-certificates' are missing as well, resulting in a failed (and
11519         difficult to detect since ignored) translation initial fetch.
11520         Consequently let's avoid https if possible, and add the missing
11521         trailing slash.  This also avoids an unnecessary 302 redirection.
11522         * gnulib-tool: Add trailing slash to gnulib URL.
11524 2014-05-22  Pádraig Brady  <P@draigBrady.com>
11526         getlogin_r-tests: check return value rather than errno
11527         * tests/test-getlogin_r.c (main): As per POSIX we should be
11528         verifying the return value from getlogin_r() rather than errno.
11530 2014-05-22  Pádraig Brady  <P@draigBrady.com>
11532         getlogin_r-tests: fix various issues in recent change
11533         * tests/test-getlogin_r.c: Include required headers that were
11534         missed in recent commit eec20b4e.
11535         Also consistently check the errno rather than the return value from
11536         getlogin_r as POSIX only specifies that non zero is returned on error.
11537         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
11539 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11541         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
11542         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
11543         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
11544         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
11545         * lib/spawn-pipe.c:
11546         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
11547         and then 'int open64(const char *, int, ...);', which means the
11548         declaration for 'open' gets lost if we later '#undef open'.
11549         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
11550         where the compilation reported the non-fatal error "In function
11551         'openat_proc_name' ... warning: implicit declaration of function
11552         'open'".  In this case the error is relatively harmless, but in
11553         other cases it might not be so minor.
11555 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11557         xalloc: don't potentially generate invalid code for xmemdup calls
11558         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
11559         this function can initialize the newly-allocated storage with new
11560         pointers, which means this function is not malloc-like.  See:
11561         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
11563 2014-05-19  Pádraig Brady  <P@draigBrady.com>
11565         getlogin_r-tests: avoid false failure under sudo/ssh etc.
11566         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
11567         changes from commit 97249cf29 to not depend on environment variables.
11569 2014-05-18  Pádraig Brady  <P@draigBrady.com>
11571         getlogin-tests: avoid false failure under cron
11572         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
11573         since that's not what's under test.  Centos 6 was seen to return
11574         EINVAL for ttyname() when run from cron.
11576 2014-05-16  Jim Meyering  <meyering@fb.com>
11578         mbrtowc.m4: fix a comment typo
11579         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
11580         emitted documentation string.
11582 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11584         mbrlen, mbrtowc: fix bug with empty input
11585         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
11586         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
11587         so this is mainly for documentation.
11588         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
11589         (gl_FUNC_MBRTOWC): Use it.
11590         * tests/test-mbrtowc.c (main): Test for the bug.
11592 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
11594         doc: document mbrtowc and mbrlen problem with empty input
11595         * doc/posix-functions/mbrlen.texi (mbrlen):
11596         * doc/posix-functions/mbrtowc.texi (mbrtowc):
11597         Document portability problem when the input string is empty.  See:
11598         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
11600         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
11601         Problem reported by Eli Zaretskii in:
11602         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
11603         * doc/posix-functions/execl.texi (execl):
11604         * doc/posix-functions/execle.texi (execle):
11605         * doc/posix-functions/execlp.texi (execlp):
11606         * doc/posix-functions/execv.texi (execv):
11607         * doc/posix-functions/execve.texi (execve):
11608         * doc/posix-functions/execvp.texi (execvp):
11609         Mention spawn+exit problem on non-Cygwin Windows platforms.
11611 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
11613         getlogin-tests: avoid false failure under sudo/ssh etc.
11614         * modules/getlogin-tests (configure.ac): Check for ttyname().
11615         * tests/test-getlogin.c (main): Don't depend on environment variables
11616         to correlate with getlogin(), since sudo and ssh etc. can tamper
11617         with the LOGNAME and USER env vars.  Instead lookup the name from
11618         the uid associated with the stdin tty.
11620 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11622         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
11623         These were found when building the latest grep snapshot on IRIX 6.5.
11624         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
11625         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
11626         never used later.
11627         * lib/quotearg.c (quoting_options_from_style):
11628         * lib/xstrtol.c (__xstrtol):
11629         Use enum instead of 0, to pacify IRIX 6.5 cc.
11631 2014-04-18  Pádraig Brady  <P@draigBrady.com>
11633         gitlog-to-changelog: revert inclusion of git-log-fix file
11634         * build-aux/git-log-fix: Delete dummy file.
11635         * modules/gitlog-to-changelog: Don't reference (overwrite)
11636         the project specific git-log-fix file.
11638 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
11640         maint.mk: Relax the copyright check to cater for non FSF projects
11641         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
11642         to not require the "Free" suffix after the copyright years.
11644 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
11646         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
11647         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
11648         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
11649         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
11650         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
11652 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
11654         exclude: port to strict C99
11655         Strict C does not allow converting a function pointer to void *
11656         and vice versa.  Pass a pointer to a function pointer instead.
11657         * lib/exclude.c (add_exclude_file):
11658         Pass the address of the function pointer.
11659         (call_addfn): And deference the address here, to match.
11661 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
11663         regex: do not depend on malloc-gnu
11664         * modules/regex (Depends-on): Remove malloc-gnu.
11665         It's no longer needed, because of the 2012-12-29 patch
11666         "regex: port to hosts where malloc (0) == NULL".
11667         Reported by Nathan Kennedy in:
11668         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
11670 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
11672         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
11673         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
11674         * doc/posix-functions/expl.texi: Mention the workaround.
11676 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11678         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
11679         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
11680         size to be zero even when the pointer is nonnull.  This
11681         accommodates the use case where P is malloc (0) and *PN is 0 on a
11682         host where malloc (0) yields nonnull.
11684 2014-04-09  Eric Blake  <eblake@redhat.com>
11686         fts: avoid unnecessary strlen calls
11687         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
11689 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11691         fts: avoid unnecessary strlen calls
11692         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
11693         when that can be faster than strlen.
11695 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11697         fts: avoid unnecessary strlen calls
11698         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
11699         (fts_build): Store the length of the dp->d_name entry in a local variable
11700         instead of calling strlen() several times via the above, removed macro.
11701         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
11702         run by ~4%, yet this reduces the execution time by about a third if run
11703         via "ltrace -c rm -rf some-dir".
11705 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11707         obstack: Remove ancient NeXTSTEP gcc support conditional
11708         This change will ease merging with glibc.  The "#if ... __NEXT__"
11709         causes a warning with -Wundef which glibc now enables by default.
11710         Problem reported by Will Newton in
11711         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
11712         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
11713         so go with that.
11714         * lib/obstack.h (__extension__):
11716 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11718         obstack: merge with glibc changes
11719         * lib/obstack.c, lib/obstack.h: Merge from glibc.
11720         This is mostly indenting and commentary changes.
11721         Instances of 'register' have been removed.
11723 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11725         strftime: wrap macros in "do {...} while(0)"
11726         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
11727         this macro in "do {...} while(0)" to prevent false use as a
11728         single statement, e.g., in an un-braced "{}" else-block.
11729         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
11730         (strftime_case_): Remove 'else' after 'goto' - which was the
11731         only non-fatal, un-braced use of one of the above macros.
11732         Spotted by coverity (NESTING_INDENT_MISMATCH).
11734 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11736         modechange: avoid memory leaks for invalid octal modes
11737         * lib/modechange.c (mode_compile): During the parsing of
11738         notations like +40, free the 'mc' buffer for invalid mode
11739         strings like +17777 (greater than the maximum octal mode),
11740         =18 (bad octal mode characters) or u=1 ('affected' with
11741         octal modes).
11742         Reproducer, e.g.:
11743             $ valgrind --leak-check=full chmod +17777 file
11744         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
11745         add notations +40, 00440, etc.".
11746         Spotted by coverity (RESOURCE_LEAK).
11748 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11750         gitlog-to-changelog: include a dummy git-log-fix file
11751         Problem reported by Nathan Stratton Treadway in:
11752         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
11753         * build-aux/git-log-fix: New file.
11755 2014-03-13  Jim Meyering  <meyering@fb.com>
11757         gitlog-to-changelog: also include the file, git-log-fix
11758         * modules/gitlog-to-changelog (Files): Add git-log-fix.
11759         Reported by Assaf Gordon.
11761 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
11763         regex: port to OS X 10.8.5 en_US.UTF-8 locale
11764         This fixes a bug when ignoring case and when comparing the
11765         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
11766         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
11767         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
11768         titlecase letter is neither lowercase nor uppercase, but
11769         uppercasing the titlecase letter (via towupper) yields the
11770         uppercase letter, so the two letters should match when ignoring case.
11771         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
11772         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
11773         Don't test whether a character is lowercase before uppercasing it.
11775 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
11777         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
11778         This is basically one of the options Bruno Haible proposed in:
11779         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
11780         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
11781         * lib/stdint.in.h: Use it.
11782         * modules/stdint (Depends-on): Add sys_types.
11784 2014-02-26  Pádraig Brady  <P@draigBrady.com>
11786         parse-datetime: fix crash or infloop in TZ="" parsing
11787         * lib/parse-datetime.y (parse_datetime): Break out of the
11788         TZ="" parsing loop once the second significant " is found.
11789         Also skip over any subsequent whitespace to be consistent
11790         with the non TZ= case.
11791         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
11793 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11795         savedir: new symbol for fast-read version
11796         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
11797         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
11798         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
11799         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
11801 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11803         unistd: port readlink to Mac OS X 10.3.9
11804         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
11805         around self-include problem in Mac OS X 10.3.9 when combined with
11806         readlink module.  Problem reported by Klaus Zietler in
11807         <http://bugs.gnu.org/16825>.
11809 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11811         diffseq: remove TOO_EXPENSIVE heuristic
11812         Problem with diffutils reported by Vincent Lefevre in
11813         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
11814         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
11815         Although appropriate for circa-1993 hardware, these days the heuristic
11816         seems to be more trouble than it's worth.
11817         * lib/diffseq.h: Modernize citations.
11818         (struct context): Remove member too_expensive.
11819         All uses changed.
11820         (struct partition): Remove members lo_minimal, hi_minimal.
11821         All uses changed.
11822         (diag, compareseq): Remove arg find_minimal.  All uses changed.
11823         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
11824         1993 to make 'diff' run faster (but not as well) on large inputs.
11825         These days, computers are fast enough that it's typically better
11826         to run slower but more accurately.
11827         * lib/fstrcmp.c: Remove duplicate comment.
11828         * lib/fstrcmp.c (strcmp_bounded):
11829         * lib/git-merge-changelog.c (compute_differences):
11830         Adjust to diffseq.h changes.
11831         * NEWS: Document the change.
11833         savedir: simplify by using stpcpy
11834         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
11835         (streamsavedir): Use stpcpy instead.
11836         * modules/savedir (Depends-on): Add stpcpy.
11838 2014-02-21  Pádraig Brady  <P@draigBrady.com>
11840         spawn: fix link error on uclibc
11841         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
11842         to incorporate -lrt if needed (on uclibc for example).
11843         * modules/posix_spawn: Reference the substituted LIB.
11845 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
11846         timer: fix uClibc detection of threading
11847         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
11848         enabled in uClibc.
11850 2014-02-21  Eric Blake  <eblake@redhat.com>
11852         maintainer-makefiles: provide AC_PROG_SED for older autoconf
11853         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
11855 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
11857         exclude: add support for posix regexps
11859         This commit adds support for POSIX extended regular expressions
11860         and fixes a long-standing memory leak (pattern buffer was never
11861         freed).  It also implements a new interface function to read
11862         exclude patterns from a FILE, which passes an additional parameter
11863         to its callback function, thereby allowing to preserve its state
11864         between invocations.
11866         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
11867         (pattern_buffer): New struct.
11868         (exclude): New member patbuf.
11869         (exclude_add_pattern_buffer): New function.
11870         (free_exclude_segment): Free regexps.
11871         (free_exclude): Free allocated pattern buffers.
11872         (exclude_patopts): New function.
11873         (file_pattern_matches): Use exclude_patopts.
11874         (add_exclude): support regexps.
11875         (add_exclude_fp): New function.
11876         (add_exclude_file): Rewrite using add_exclude_fp.
11877         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
11878         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
11879         (add_exclude_fp)
11880         (add_exclude_file): Rewrite using add_exclude_fp.
11881         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
11882         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
11883         (add_exclude_fp)
11884         (exclude_add_pattern_buffer): New prototypes.
11885         * modules/exclude: Depends on regex and filename.
11887 2014-02-20  Eric Blake  <eblake@redhat.com>
11889         maintainer-makefiles: use $(SED) for syntax check
11890         * modules/maintainer-makefile (configure.ac): Check for sane sed.
11891         * top/maint.mk: Change sed to $(SED).
11893 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
11894             Paul Eggert  <eggert@cs.ucla.edu>
11896         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
11897         Patch based on an idea by Dick Streefland in
11898         <https://savannah.gnu.org/patch/?7892>.
11899         * NEWS: Document this.
11900         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
11901         (direntry_t, comparison_function): New types.
11902         (direntry_cmp_name): New function.
11903         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
11904         (streamsavedir, savedir): New arg OPTION.
11905         (streamsavedir): Simplify memory allocation.
11906         (fdsavedir): Remove.
11907         * lib/savedir.h (enum savedir_option): New type.
11908         (streamsavedir, savedir): New arg OPTION.
11909         (fdsavedir): Remove.
11911 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
11913         file-type: add support for doors and other less-common file types
11914         Problem with S_ISDOOR reported by Rich Burridge.
11915         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
11916         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
11917         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
11919 2014-01-23  Eric Blake  <eblake@redhat.com>
11921         pthread: work around winpthread header pollution on mingw
11922         * lib/time.in.h: Move pthread workarounds...
11923         * lib/pthread.in.h: ...here.
11924         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
11925         detect macro pollution on mingw.
11926         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
11928 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
11930         qacl: check for fchmod
11931         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
11932         and qset-acl.c both use HAVE_FCHMOD.
11934 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11936         fdopen-tests: port to Tru64
11937         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
11938         descriptor that is not open, as POSIX doesn't specify the
11939         resulting behavior and the test does not work on Tru64.
11940         Problem reported by Steven M. Schweda in:
11941         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
11943         stdalign: port to HP-UX compilers
11944         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
11945         if __HP_cc or __HP_aCC are nonzero.
11947 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
11949         strtoimax: port to platforms lacking 'long long'
11950         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
11951         check whether strtoll is declared, which causes the C file to
11952         wrongly report an error.  Problem reported by Steven M. Schweda in:
11953         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
11954         * lib/strtoimax.c (strtoull):
11955         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
11956         (strtoll): Declare only if HAVE_LONG_LONG_INT.
11958 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
11960         relocatable-perl: fix texi syntax
11961         * doc/relocatable-maint.texi: Escape braces.
11963 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
11965         relocatable-perl: like relocatable-script, but for Perl scripts
11966         * build-aux/relocatable.pl.in: Add.
11967         * doc/relocatable-maint.texi: Add documentation.
11968         * modules/relocatable-perl: Add.
11970 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
11972         tests: fix export bug in previous patch
11973         Problem reported by Jim Meyering.
11974         * tests/init.sh (re_shell): New var, which is exported instead of
11975         re_shell_.
11977         tests: simplify porting to Solaris 10 /bin/sh
11978         Some test cases in 'grep' need a shell that groks '$(';
11979         export re_shell_ for their benefit.  Problem reported for 'grep'
11980         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
11981         * tests/init.sh (re_shell_): Export if it's used.
11983 2014-01-06  Eric Blake  <eblake@redhat.com>
11985         md5, sha1, sha256, sha512: support older autoconf
11986         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
11987         for autoconf < 2.63b.
11989         include_next: port to autoconf 2.63
11990         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
11992 2014-01-04  Jim Meyering  <meyering@fb.com>
11994         maint: add a gnulib-local rule to keep non-ascii out of .texi files
11995         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
11996         so that "make sc_maint" will ding anyone who puts non-ascii
11997         in any of gnulib's .texi files.
11999 2014-01-03  Jim Meyering  <meyering@fb.com>
12001         freadable, fwritable, fwriting: declare with the "pure" attribute
12002         * lib/freadable.h (freadable): Declare with the "pure" attribute.
12003         * lib/fwritable.h (fwritable): Likewise.
12004         * lib/fwriting.h (fwriting): Likewise.
12005         Suggested by Bruno Haible.
12007         maint.mk: adapt openat.h-include-without-use test
12008         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
12009         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
12010         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
12011         With this change, running "make sc_maint" in gnulib's top-level
12012         directory now passes for me.
12014 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12016         doc: use ASCII in .texi files where UTF-8 isn't needed
12017         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
12018         * doc/posix-functions/setkey.texi, doc/regex.texi:
12019         Use ASCII input, not UTF-8.
12021 2014-01-02  Jim Meyering  <meyering@fb.com>
12023         freading: declare with the "pure" attribute
12024         * lib/freading.h (freading): Declare with the "pure" attribute.
12026         manywarnings: remove -Wmudflap
12027         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
12028         it is no longer supported in gcc-4.9-to-be.
12030 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12032         relocatable-script: remove unused code
12033         Problem reported by Reuben Thomas in:
12034         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
12035         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
12037 2014-01-01  Jim Meyering  <meyering@fb.com>
12039         maint: fix public-submodule-commit to work with newer git
12040         * top/maint.mk (public-submodule-commit): Remove excess quoting.
12041         We were over-quoting the test arguments, and somewhere prior to
12042         version 1.8.5.2.229, git stopped removing those excess quotes,
12043         which made the test fail, since the unexpanded strings would
12044         always differ; using GIT_TRACE=1 confirmed that the git merge-base
12045         command wasn't even being run.
12047 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12049         doc: update main copyright year
12050         * doc/gnulib.texi: Update copyright date.
12052 2014-01-01  Eric Blake  <eblake@redhat.com>
12054         version-etc: new year
12055         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
12056         * all files: run 'make update-copyright'
12058 2013-12-24  Eric Blake  <eblake@redhat.com>
12060         passfd: give nicer error for recvfd at eof
12061         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
12062         * tests/test-passfd.c (main): Enhance test to cover this.
12064 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12066         gettimeofday: port recent C++ fix to Emacs
12067         Without this further patch, Emacs won't build due to
12068         the portcheck failing.  Also, this simplifies the patch a bit.
12069         * lib/time.in.h (localtime, gmtime): Don't replace unless
12070         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
12071         * lib/time.in.h (localtime, gmtime):
12072         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
12073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12074         * modules/time (time.h):
12075         Don't worry about the possibility of localtime and gmtime
12076         being absent; they're present in all C libraries we know about.
12077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12078         Don't assume sys_time is present and has been initialized.
12079         Instead, use a hack that should work even if it hasn't been.
12080         Don't use a portcheck for gmtime or localtime; this supports
12081         the hack.
12082         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
12084 2013-12-17  John W. Eaton  <jwe@gnu.org>
12086         gettimeofday: fix C++ crosscompilation
12088         Never replace gmtime and localtime by macros when compiling with
12089         C++, this prevents <ctime> from being included.
12091         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
12092         define gmtime and localtime as preprocessor macros.  Instead
12093         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
12094         REPLACE_LOCALTIME substitutions.
12095         * lib/time.in.h: Declare gmtime and localtime when needed.
12096         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
12097         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
12098         * modules/time: Depend on gettimeofday, and substitute the above
12099         variables in time.h.
12101 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12103         qacl: port to Windows better
12104         See Eli Zaretskii in
12105         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
12106         * lib/file-has-acl.c (acl_access_nontrivial):
12107         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
12108         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
12110 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
12112         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
12113         * lib/gl_openssl.h: Cast void pointers to a specific type.
12115 2013-12-07  Pádraig Brady  <P@draigBrady.com>
12117         open-tests: fix build failure with -Werror=old-style-declaration
12118         * tests/test-open.h: Reorder the inline to avoid the issue.
12120 2013-12-07  Pádraig Brady  <P@draigBrady.com>
12122         md5, sha1, sha256, sha512: fix link error with partial libcrypto
12123         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
12124         init time, so that if early checks find crypto routines,
12125         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
12126         avoiding link failures.
12128 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
12130         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
12131         This provides a new way to specify the default for
12132         gl_CRYPTO_CHECK, one that is reflected in the --help message.
12133         Emacs uses this, as well as the old way.
12134         This attempts to implement a suggestion by Pádraig Brady in
12135         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
12136         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
12137         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
12139         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
12140         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
12141         Add support for a new option, --with-openssl=auto, which causes
12142         the library to be used if available and silently ignored if not.
12143         Add support to allow configure.ac to specify its own
12144         default, by setting with_openssl_default before invoking gl_INIT.
12146 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
12148         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
12149         Problem reported by Daiki Ueno in:
12150         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
12151         * tests/test-open.h (__always_inline):
12152         New macro, if not already defined.
12153         (test_open): Use it.
12155 2013-12-04  Eric Blake  <eblake@redhat.com>
12157         include_next: minimize code duplication
12158         * modules/include_next (Depends-on): Add absolute-header.
12159         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
12160         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
12162 2013-12-04  Pádraig Brady  <P@draigBrady.com>
12164         getcwd: fix compile error in configure check
12165         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
12167 2013-12-04  Pádraig Brady  <P@draigBrady.com>
12169         regex: suppress core dumps from detection code
12170         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
12171         to suppress core dumps that may well occur on glibc systems.
12172         These core dumps might not be cleaned up automatically, or could
12173         trigger some system core dump handling logic.
12175 2013-12-03  Pádraig Brady  <P@draigBrady.com>
12177         md5, sha1, sha256, sha512: support mandating use of openssl
12178         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
12179         description, to list the now 3 separate options.  also don't
12180         mention the default=no, since this is implicit given the option
12181         is described as --with-openssl rather than --without-openssl.
12182         If projects change the default they're free to document that.
12183         with --with-openssl[=yes] we now error out when the specified
12184         hash algorithm is not available in libcrypto.
12186 2013-12-03  Ivailo  <xakepa10@gmail.com>
12188         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
12189         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
12190         -Wformat-nonliteral checks, as these edge cases are part of the test.
12192 2013-12-03  Eric Blake  <eblake@redhat.com>
12194         regex: avoid glibc deadlock during configure
12195         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
12196         glibc bug 15078 in turn triggers bug 16159.
12197         Reported by Michal Privoznik.
12199 2013-12-02  Pádraig Brady  <P@draigBrady.com>
12201         md5, sha1, sha256, sha512: use openssl routines if available.
12202         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
12203         routines will be used if available, requiring apps to link @LIB_CRYPTO@
12204         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
12205         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
12206         in the standard system location.
12207         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
12208         * m4/sha256.m4: Likewise with SHA256.
12209         * m4/sha512.m4: Likewise with SHA512.
12210         * m4/md5.m4: Likewise with MD5.
12211         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
12212         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
12213         * lib/sha256.h: Likewise with SHA256.
12214         * lib/sha512.h: Likewise with SHA512.
12215         * lib/md5.h: Likewise with MD5.
12216         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
12217         * lib/sha256.c: Likewise with SHA256.
12218         * lib/sha512.c: Likewise with SHA512.
12219         * lib/md5.c: Likewise with MD5.
12220         * modules/crypto/sha1 (Link:): Add the new optional lib.
12221         (Depends-on:): Add dependency on extern-inline.
12222         * modules/crypto/sha256: Likewise.
12223         * modules/crypto/sha512: Likewise.
12224         * modules/crypto/md5: Likewise.
12225         * modules/crypto/sha1-tests: Reference the lib here too.
12226         * modules/crypto/md5-tests: Likewise.
12227         * modules/crypto/gc-des-tests: Likewise.
12228         * modules/crypto/gc-hmac-md5-tests: Likewise.
12229         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12230         * modules/crypto/gc-hmac-sha256-tests: Likewise.
12231         * modules/crypto/gc-hmac-sha512-tests: Likewise.
12232         * modules/crypto/gc-md5-tests: Likewise.
12233         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12234         * modules/crypto/gc-sha1-tests: Likewise.
12235         * modules/crypto/gc-tests: Likewise.
12236         * modules/crypto/hmac-md5-tests: Likewise.
12237         * modules/crypto/hmac-sha1-tests: Likewise.
12238         * modules/crypto/hmac-sha256-tests: Likewise.
12239         * modules/crypto/hmac-sha512-tests: Likewise.
12241 2013-11-29  RV1971  <rv1971@web.de>
12243         base64: (trivial) fix compilation regression on some compilers
12244         * lib/base64.c: Don't return the void function,
12245         instead split to a separate return statement.
12247 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12249         ignore-value: revert previous code change
12250         * lib/ignore-value.h (ignore_value): Use __extension__ and
12251         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
12252         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
12253         Change the comment to try to explain this better.
12255 2013-11-27  Pádraig Brady  <P@draigBrady.com>
12257         selinux-h: improve stub types and add more stub functions
12259         * lib/se-selinux.in.h: Change security_context_t to a typedef
12260         rather than a define, as it's a pointer type and so is better
12261         as a typedef to avoid issues declaring multiple variables
12262         with the comma operator.  Also add stub for string_to_security_class().
12263         * lib/se-context.in.h: Add stub functions for
12264         context_{type,range,role,user}_get().
12266 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12268         ignore-value: prefer GCC version back through 2.0
12269         The code didn't match the comments, so I did a bit of software
12270         archaeology.  GCC 2.0 seems to support __extension__ and
12271         __typeof__, so fix both code and comments to use 2.0.
12272         * lib/ignore-value.h (ignore_value): Use __extension__ and
12273         __typeof__ for GCC 2.0 through 3.3, too.
12275 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
12277         pty: Activate the signature wrapper of forkpty.
12278         The intended preprocessor macro HAVE_FORKPTY is
12279         never defined, yet `lib/forkpty.c' depends on it.
12281         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
12282         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
12283         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
12285 2013-11-18  Jim Meyering  <meyering@fb.com>
12286         and Paul Eggert  <eggert@cs.ucla.edu>
12288         quotearg: don't attempt to store 1 << 31 into an "int"
12289         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
12290         gcc's new -fsanitize=undefined and running its tests triggered some
12291         new test failures due to undefined behavior, all with this diagnostic:
12292           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
12293             cannot be represented in type int
12294         Rather than shifting "1" left to form a mask, shift the bits right and
12295         simply use "1" as the mask.
12297 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12299         error: depend on stdio
12300         Problem reported by Nikos Mavrogiannopoulos in
12301         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
12302         * modules/error (Depends-on): Add stdio.
12304 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
12306         * doc/relocatable-maint.texi (Supporting Relocation): Improve
12307         wording.
12308         Reported by Reuben Thomas <rrt@sc3d.org>.
12310 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12312         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
12313         New function and macro, to work around _DARWIN_C_SOURCE problem.
12314         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
12316 2013-11-11  Pádraig Brady  <P@draigBrady.com>
12318         base64: provide a fast path for encoding well sized buffers
12319         Avoid conditionals in the base64 encoding loop,
12320         which was seen to give 60% better throughput.
12321         * lib/base64.c (base64_encode_fast): A new function to be called
12322         when we don't want to NUL terminate, and we have enough space
12323         in the output to encode the given input.
12324         (base64_encode): Call the _fast() version when appropriate.
12325         Also remove a redundant mask with 0x3F on the first encoded byte.
12327 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
12329         extern-inline: port better to OS X 10.9
12330         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
12331         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
12332         OS X 10.9, except for g++ where the bug is still present.
12333         See <http://trac.macports.org/ticket/41033>.
12335 2013-11-08  Eric Blake  <eblake@redhat.com>
12337         fpending: fix regression on DragonFly BSD
12338         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
12339         * lib/fpending.h (__fpending): Don't declare twice.
12340         Reported by GW in
12341         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
12343 2013-11-05  Jim Meyering  <meyering@fb.com>
12345         hash: relax license to LGPLv2+, for libguestfs
12346         * modules/hash (License): Change from GPL to LGPLv2+.
12348 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12350         intprops: port to Oracle Studio c99
12351         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
12352         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
12354 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12356         obstack: pacify HP C
12357         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
12358         warning "conversion from pointer to smaller integer" from HP
12359         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
12360         C89 or later nowadays, so cast to void instead of int.  Privately
12361         reported by H.Merijn Brand.  Also, change header to match glibc's,
12362         to make checking against glibc easier.
12364 2013-10-29  Jim Meyering  <meyering@fb.com>
12366         maint.mk: prefer gpgv2 over gpgv
12367         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
12368         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
12369         Reported by Gary Vaughan.
12371 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12373         isnan: port to VAX
12374         Reported by John Klos for NetBSD-5/VAX in
12375         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
12376         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
12377         (FUNC): Use it.
12379 2013-10-28  Jim Meyering  <meyering@fb.com>
12381         gnulib-tool: protect against CDPATH
12382         * gnulib-tool: Many "cd" built-in functions print a directory name
12383         to stdout when CDPATH is set, e.g.,
12384           $ bash -c 'CDPATH=/; cd tmp'
12385           /tmp
12386         Unset it, when possible.  Prompted by a comment from Bruce Korb.
12388         maint.mk: restore functionality removed by recent change...
12389         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
12390         the context of a shallow-cloned gnulib repository: "git describe"
12391         would fail in such a directory.  However, that change made it so
12392         the reported gnulib revision no longer includes the version number
12393         or a commit count, even when run from a full clone.
12394         * top/maint.mk (gnulib-version): Use the full "git describe"
12395         output when possible, e.g., the form above, rather than the
12396         abbreviated, no-tag, no-commit-count string, and fall back to
12397         using a 10-byte hash, rather than the default minimal-length
12398         hash prefix, since while the minimal-length one may be fine today,
12399         it is likely not to be unique for very long.
12401 2013-10-26  Jim Meyering  <meyering@fb.com>
12403         maint.mk: fix "release" target to build _version
12404         This fixes a bug in README-release whereby following the outlined
12405         steps, one would publish a tarball whose programs would report
12406         --version output not consistent with the package version number.
12407         This bug caused grep-2.15 to produce a grep program whose
12408         --version option made it print 2.14.56-1e3d rather than 2.15.
12409         * top/maint.mk (release): Making this target build "_version"
12410         ensures that the new version number is reflected in configure.
12412 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
12414         install-reloc: Support multi-binary installation.
12415         * build-aux/install-reloc: Support installing multiple programs in
12416         one invocation, as done by Automake starting with commit
12417         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
12418         Haible <bruno@clisp.org>, archived at
12419         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
12420         Reported by Sylvain <beuc@gnu.org>.
12422 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12424         selinux-h: Really build without selinux when library is missing.
12425         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
12426         continue without selinux, as already told in the warning message.
12428 2013-10-21  Jim Meyering  <meyering@fb.com>
12430         regex: also remove dependency on HAVE_WCSCOLL
12431         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
12433 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
12435         xfreopen: Fix typo. s/frepoen/freopen/
12436         * lib/xfreopen.c: Fix description.
12437         * modules/xfreopen: Likewise.
12439 2013-10-21  Jim Meyering  <meyering@fb.com>
12441         regex: don't depend on wcscoll
12442         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
12443         It is no longer used.
12445 2013-10-20  Jim Meyering  <meyering@fb.com>
12447         error: add the printf attribute to a static function
12448         * lib/error.c (error_tail): Add the printf attribute, to placate
12449         gcc's -Werror=suggest-attribute=format option.
12451 2013-09-30  Jim Meyering  <meyering@fb.com>
12453         fpending, obstack, strerror-override: use pure+const function attrs
12454         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
12455         * lib/obstack.c (_obstack_allocated_p): Likewise.
12456         * lib/obstack.h (_obstack_memory_used): Likewise.
12457         (_obstack_memory_used): Likewise.
12458         * lib/strerror-override.h (strerror_override): Declare with
12459         the "const" attribute.
12461 2013-10-18  Eric Blake  <eblake@redhat.com>
12463         extern-inline: make safe for -Wundef usage
12464         Reported by Vladimir 'phcoder' Serbinenko in
12465         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
12466         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
12468 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12470         mkfifo-tests, etc.: allow HP-UX 11.11 bug
12471         Problem reported by Daniel Richard G. in
12472         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
12473         * doc/posix-functions/mkfifo.texi (mkfifo):
12474         * doc/posix-functions/mkfifoat.texi (mkfifoat):
12475         * doc/posix-functions/mknod.texi (mknod):
12476         * doc/posix-functions/mknodat.texi (mknodat):
12477         Document the HP-UX 11.11 bug.
12478         * tests/test-mkfifo.h (test_mkfifo):
12479         Allow the HP-UX 11.11 bug.
12481 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12483         acl: allow cross-compilation to Gentoo
12484         Problem reported by Gabriel Marcano in
12485         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
12486         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
12487         test only whether it links.
12489 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12491         mgetgroups: remove dependency on realloc-gnu
12492         The dependency violates the comment in realloc-gnu, which
12493         says that tests can't depend on realloc-gnu; some tests depend
12494         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
12495         Problem reported by Daniel Richard G. in
12496         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
12497         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
12498         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
12499         not realloc-gnu.
12501 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
12503         regex-tests: port to HP-UX 11.11
12504         Problem reported by Daniel Richard G. in
12505         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
12506         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
12508 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12510         verify: document some 'assume' pitfalls
12511         * doc/verify.texi (Compile-time Assertions):
12512         Mention that 'assume (E)' can sometimes slow things down.
12513         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
12515 2013-10-10  Eric Blake  <eblake@redhat.com>
12517         strtoumax: fix typo in previous commit.
12518         * modules/strtoumax (Depends-on): Fix typo.
12519         * modules/strtoimax (Depends-on): Likewise.
12521 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12523         strtoumax: port to Solaris 8
12524         This problem was introduced in the recent HP-UX patch.
12525         Reported by Tom G. Christensen in
12526         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
12527         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
12528         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
12530 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12532         strtoimax, strtoumax: port to HP-UX 11.11
12533         Problem reported by Daniel Richard G. in
12534         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
12535         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
12536         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
12537         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
12538         REPLACE_STRTOUMAX.
12539         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
12540         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
12541         Replace the function if defined as a macro but not as a function.
12542         * modules/inttypes-incomplete (inttypes.h): Substitute
12543         REPLACE_STRTOUMAX.
12544         * modules/strtoumax (configure.ac): Replace strtoumax if
12545         REPLACE_STRTOUMAX.
12547 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12549         strtoimax: port to HP-UX 11.11
12550         Problem reported by Daniel Richard G.
12551         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
12552         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
12553         they might clash with inttypes.h.
12555 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12557         New module 'count-trailing-zeros'.
12558         * MODULES.html.sh: Mention it.
12559         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
12560         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
12561         * modules/count-trailing-zeros-tests:
12562         * tests/test-count-trailing-zeros.c:
12563         New files.
12565         count-leading-zeros: port to MSC; support types wider than 64 bits
12566         The ideas behind the MSC port are stolen from Emacs.
12567         * lib/count-leading-zeros.h:
12568         Don't include verify.h: it's no longer needed, as types wider than
12569         64 bits are now supported.
12570         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
12571         performance with MSC.  All uses changed.  Do not assume that TYPE
12572         has at most 64 bits.
12573         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
12574         All uses changed.  Fold the subtraction from 31 into the table.
12576         count-one-bits: port to MSC; support types wider than 64 bits
12577         The ideas behind the MSC port are stolen from Emacs.
12578         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
12579         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
12580         Don't include verify.h: it's no longer needed, as types wider than
12581         64 bits are now supported.
12582         (COUNT_ONE_BITS_GENERIC): New macro.
12583         (popcount_supported) [_MSC_VER]: New inline function.
12584         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
12585         performance with MSC.  All uses changed.  Do not assume that TYPE
12586         has at most 64 bits.
12587         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
12589 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
12591         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
12592         * lib/mountlist.c (read_file_system_list): fix leak of directory
12593         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
12595 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12597         tests: improve diagnostic when an assertion fails
12598         * tests/macros.h (ASSERT): Report the assertion that failed.
12600 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12602         verify: new macro 'assume'
12603         This is taken from Emacs, and should be generally useful.
12604         * doc/verify.texi (assume): Document it.
12605         * lib/verify.h (assume): New macro.
12606         (__has_builtin): Expand to 0 if not defined.
12608 2013-09-26  Eric Blake  <eblake@redhat.com>
12610         dup2, dup3: work around another cygwin crasher
12611         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
12612         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
12613         * tests/test-dup2.c (main): Likewise.
12614         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
12615         * lib/dup3.c (dup3): Likewise.
12616         * doc/posix-functions/dup2.texi (dup2): Document it.
12617         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12619         getdtablesize: work around cygwin issue
12620         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
12621         * modules/getdtablesize (configure.ac): Build replacement.
12622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
12623         * modules/unistd (Makefile.am): Expose the witness.
12624         * lib/unistd.in.h (getdtablesize): Declare replacement.
12625         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
12626         * tests/test-getdtablesize.c (main): Test it.
12627         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
12629 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
12631         pmccabe2html: escaping of special characters
12632         Escape all '<', '>', and '&' in HTML output.
12633         * build-aux/pmccabe2html (html_fnc): Call gsub()
12634         instead of sub() to capture all '<', '>', and '&'.
12635         Neither of '<' and '>' is special in a regexp,
12636         so first arguments to gsub() are corrected. Also,
12637         in replacement strings, ampersand must be escaped.
12638         Finally, '&' must be handled first, then '<' and '>'.
12640 2013-09-24  Eric Blake  <eblake@redhat.com>
12642         manywarnings: enable nicer gcc warning messages
12643         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
12644         some -f options for optimal warnings.
12646 2013-09-21  Jim Meyering  <meyering@fb.com>
12648         timespec: use the new TIMESPEC_RESOLUTION in a few more places
12649         * lib/timespec-add.c (timespec_add): Also replace 999999999
12650         with TIMESPEC_RESOLUTION - 1.
12651         * lib/timespec-sub.c (timespec_sub): Likewise.
12653 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12655         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
12656         Problem reported by Dagobert Michelsen via Eric Blake in
12657         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
12658         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
12659         not AC_COMPILE_IFELSE.
12661 2013-09-23  Eric Blake  <eblake@redhat.com>
12663         configmake: support new --runstatedir option
12664         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
12665         even if autoconf was too old to provide the command line option.
12666         * modules/configmake (Makefile.am): Propagate it to .h file.
12668 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12670         ctype, string: depend on extern-inline
12671         This is needed to complete the recent OS X fixes.
12672         Also, fix related documentation as suggested by Eric Blake.
12673         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12674         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
12675         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
12676         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
12677         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
12678         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
12679         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
12680         * doc/posix-functions/toupper.texi:
12681         List the 'ctype' gnulib module.
12682         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
12683         * doc/posix-functions/strncpy.texi:
12684         List the 'string' gnulib module.
12685         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
12686         Add string.
12687         * modules/ctype, modules/string (Depends-on): Add extern-inline.
12689 2013-09-19  Pádraig Brady  <P@draigBrady.com>
12691         userspec: support optional parameters to parse_user_spec()
12692         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
12693         then avoid group processing and treat the full spec as a user.
12694         (parse_with_separator): Allow the USERNAME and GROUPNAME to
12695         be optional params (NULL), in which case they're ignored.
12697 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
12699         timespec: new function make_timespec, and new constants
12700         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
12701         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
12702         (make_timespec): New function.
12703         * lib/dtotimespec.c (dtotimespec):
12704         * lib/timespec-add.c (timespec_add):
12705         * lib/timespec-sub.c (timespec_sub):
12706         * lib/utimens.c (validate_timespec):
12707         * lib/utimensat.c (rpl_utimensat):
12708         Use these new constants and functions.
12710         stdio: OS X port of putc_unlocked + extern inline
12711         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
12712         * doc/posix-functions/putc_unlocked.texi:
12713         * doc/posix-functions/putchar_unlocked.texi:
12714         Document this portability problem.
12716         signal: OS X port of sigaddset etc. + extern inline
12717         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
12718         (sigismember): #undef on problematic Apple platforms.
12719         * doc/posix-functions/sigaddset.texi:
12720         * doc/posix-functions/sigdelset.texi:
12721         * doc/posix-functions/sigemptyset.texi:
12722         * doc/posix-functions/sigfillset.texi:
12723         * doc/posix-functions/sigismember.texi:
12724         Document this portability problem.
12726         extern-inline: do not always suppress extern inline on OS X
12727         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
12728         extern inline on Apple only if the particular compile-time
12729         configuration is known to have the problem.
12730         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
12731         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
12732         other Gnulib modules.
12734         extern-inline: document fixes for ctype and wctype macros
12735         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12736         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
12737         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
12738         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
12739         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
12740         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
12741         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
12742         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
12743         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
12744         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
12745         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
12746         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
12747         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
12748         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
12749         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
12750         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
12751         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
12752         * doc/posix-functions/strncpy.texi:
12753         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
12754         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
12755         Document that Gnulib fixes portability problems with these
12756         functions on OS X 10.8 and earlier when called from plain inline
12757         or extern inline functions.
12759 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
12761         fflush, freadahead, fseeko: Fix for Android
12762         Suggested by Bruno Haible in:
12763         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
12764         * lib/stdio-impl.h: Use local __sfileext definition.
12766 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
12768         pmccabe2html: Portability to other awk versions.
12769         The functions systime() and strftime() are available
12770         in Gawk only.  Properly close two HTML-tags 'style'
12771         and 'span'.
12772         * build-aux/pmccabe2html (BEGIN): Store timing
12773         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
12774         systime() in HTML_COMMENT.
12775         (html_header): Correctly close tag 'style'.
12776         (END): Replace strftime() by CHRONOS_TIME.  Close
12777         tag 'span' correctly, not as 'div'.
12779 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12781         getgroups: statement without effect
12782         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
12783         Change equality conditional to expected assignment.
12785 2013-09-09  Eric Blake  <eblake@redhat.com>
12787         glob: fix compilation
12788         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
12790 2013-09-07  Eric Blake  <eblake@redhat.com>
12792         glob: fix build for platforms without __THROW
12793         * lib/glob.in.h (__THROW): Add definition again.
12795 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
12797         regex-quote: fix buffer access out of bounds
12798         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
12799         * lib/regex-quote.c (regex_quote_spec_pcre):
12800         Fix typo that resulted in an out-of-bounds read.
12802 2013-09-04  Eric Blake  <eblake@redhat.com>
12804         glob: avoid -Wattribute warnings on glibc
12805         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
12806         __THROWNL, not __THROW, on static functions.
12807         * lib/glob.in.h (__THROW): Adjust...
12808         (__THROWNL): ...accordingly.
12810 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12812         headers: check that _GL_INLINE_HEADER_BEGIN is defined
12813         Suggested by Bruce Korb in:
12814         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
12815         * doc/extern-inline.texi (extern inline):
12816         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
12817         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
12818         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
12819         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
12820         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
12821         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
12822         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
12823         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
12824         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
12825         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
12826         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
12827         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
12828         * lib/xtime.h:
12829         Check that _GL_INLINE_HEADER_BEGIN is defined.
12831 2013-08-29  Pádraig Brady  <P@draigBrady.com>
12833         bootstrap: remove the --version requirement from ancillary tools
12834         * build-aux/bootstrap (check_exists): A new refactored function to
12835         determine if a command exists.
12836         (find_tool): Use the new function which does not require the
12837         --version option to be supported.
12838         (check_versions): Use the new function.
12840 2013-08-26  Simon Josefsson  <simon@josefsson.org>
12842         gc: support HMAC-SHA256 and HMAC-SHA512.
12843         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
12844         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
12845         functions.
12846         (gc_hmac_md5): Use symbolic constant.
12847         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
12848         (gc_hmac_sha256, gc_hmac_sha512): New functions.
12849         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
12850         * m4/sha256.m4: Protect against empty expansion.
12851         * m4/sha512.m4: Likewise.
12852         * lib/hmac-sha256.c: New file.
12853         * lib/hmac-sha512.c: Likewise.
12854         * m4/gc-hmac-sha256.m4: Likewise.
12855         * m4/gc-hmac-sha512.m4: Likewise.
12856         * m4/gc-sha256.m4: Likewise.
12857         * m4/gc-sha512.m4: Likewise.
12858         * modules/crypto/gc-hmac-sha256: Likewise.
12859         * modules/crypto/gc-hmac-sha256-tests: Likewise.
12860         * modules/crypto/gc-hmac-sha512: Likewise.
12861         * modules/crypto/gc-hmac-sha512-tests: Likewise.
12862         * modules/crypto/hmac-sha256: Likewise.
12863         * modules/crypto/hmac-sha256-tests: Likewise.
12864         * modules/crypto/hmac-sha512: Likewise.
12865         * modules/crypto/hmac-sha512-tests: Likewise.
12866         * tests/test-gc-hmac-sha256.c: Likewise.
12867         * tests/test-gc-hmac-sha512.c: Likewise
12868         * tests/test-hmac-sha256.c: Likewise.
12869         * tests/test-hmac-sha512.c: Likewise
12871 2013-08-24  Daiki Ueno  <ueno@gnu.org>
12873         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
12874         of AC_CHECK_DECLS.
12876 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12878         selinux-at: omit unnecessary include
12879         * lib/selinux-at.c: Don't include dosname.h; not needed, since
12880         this source file doesn't use its macros, and subsidiary files that
12881         use the macros already include it.
12883 2013-08-21  Eric Blake  <eblake@redhat.com>
12885         d-ino: avoid false negative on symlink
12886         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
12887         Reported by Stephane Chazelas.
12889 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
12891         bootstrap: port to OpenBSD sed
12892         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
12893         does not interpret `-' as a file argument to mean stdin.
12895 2013-08-15  Eric Blake  <eblake@redhat.com>
12897         warnings: minor optimization
12898         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
12900         warnings: check -Wfoo rather than -Wno-foo
12901         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
12902         -Wno-, test if the compiler recognizes the positive form instead.
12904 2013-08-15  Karl Berry  <karl@gnu.org>
12906         * config/srclist-update: add option "doclicense" to placate
12907         pulling *.texi files from Emacs.  Write terse usage
12908         documentation at the top.
12910 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
12912         xvasprintf-tests: port to GCC with hardening flags
12913         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
12914         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
12915         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
12917 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12919         fpending: port to recent Cygwin change to stdio_ext.h
12920         Reported by LRN in
12921         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
12922         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
12923         just declare __fpending unless it's a macro.
12924         A duplicate decl shouldn't hurt.
12925         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
12926         call compiles and links, instead of separately checking for
12927         decl and lib function.
12928         * modules/fpending (configure-ac):
12929         Adjust to fpending.m4's renaming of shell variable.
12931 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12933         sys_time: port to OpenBSD
12934         * lib/sys_time.in.h: Simply delegate to the system's header
12935         in the BSDish cases as well.  Problem reported by Mike Miller in
12936         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
12937         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
12938         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
12939         wider than time_t.
12941 2013-08-09  Pádraig Brady  <P@draigBrady.com>
12943         bootstrap: support checksum utils having -c but not --status
12944         * build-aux/bootstrap: Only look for sha1sum if updating po files.
12945         Add sha1 to the list of supported checksum utils since it's now
12946         supported through adjustments below.
12947         (update_po_files): Remove the use of --status
12948         in a way that will suppress all error messages, but since this is
12949         only used to minimize updates, it shouldn't cause an issue.
12950         Exit early if there is a problem updating the po file checksums.
12951         (find_tool): Remove the check for --version support as this
12952         is optional as per commit 86186b17.  Don't even check for the
12953         presence of the command as if that is needed, it's supported
12954         through configuring prerequisites in bootstrap.conf.
12955         Prompt that when a tool isn't found, one can define an environment
12956         variable to add to the hardcoded search list.
12958 2013-08-05  Jim Meyering  <meyering@fb.com>
12960         regex: port to non-glibc/lock-using systems
12961         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
12962         system with GNULIB_LOCK would fail due to absence of the
12963         included "glthread/lock.h".  This would affect any package
12964         for which the "lock" module is used only by the regex module,
12965         and not explicitly used.
12966         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
12967         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
12968         Add a dependency on the "lock" module.
12970 2013-07-20  Daiki Ueno  <ueno@gnu.org>
12972         localecharset: make locale_charset thread-safe on Mac OS X
12973         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
12974         instead of MB_CUR_MAX.
12976 2013-07-20  Daiki Ueno  <ueno@gnu.org>
12978         gettext: update to version 0.18.3
12979         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
12980         require AC_PROG_SED to allow user to specify custom sed command when
12981         generating en@quot PO file.
12983 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
12985         bootstrap: use correct source when copying build-aux files
12986         * build-aux/bootstrap (gnulib_extra_files): This variable is
12987         relative to upstream gnulib layout, not downstream.
12989 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
12991         tmpdir: fix bug in VMS port
12992         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
12993         See Steven M. Schweda in
12994         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
12996 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12998         tmpdir: port to VMS, to // != /, and to long dirs
12999         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
13000         __secure_getenv, so that we're more like the glibc version.
13001         All uses changed.
13002         (path_search): Don't put slash after directory if __VMS.
13003         Problem reported by Steven M. Schweda in
13004         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
13005         Simplify code to add slash; no need for a loop.
13006         Do not remove trailing slash from "//".
13007         Do not assume dlen <= INT_MAX.
13009 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13011         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
13012         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
13013         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
13014         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
13016         accept4, dup3, pipe2: port to Cygwin
13017         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
13018         * lib/accept4.c (accept4) [O_BINARY]:
13019         * lib/dup3.c (dup3) [O_BINARY]:
13020         * lib/pipe2.c (pipe2) [O_BINARY]:
13021         Use set_binary_mode, not setmode.
13022         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
13023         * modules/binary-io (Depends-on): Remove module indicator.
13024         These last two bits undo the previous change to pipe2 and binary-io.
13026 2013-07-09  Pádraig Brady  <P@draigBrady.com>
13028         mountlist: add support for deallocating returned list entries
13029         * lib/mountlist.c (free_mount_entry): A new exported function
13030         to deallocate a mount list entry.
13031         (read_file_system_list): Refactor to use the new deallocation function.
13032         Suggested by Anton Ovchinnikov.
13034 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13036         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
13037         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
13038         * lib/stdalign.in.h (_Alignas, _Alignof):
13039         Port to FreeBSD 9.1, and to C11 and C++11.
13040         (_Alignas): Also support ICC.
13041         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
13042         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
13044 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13046         fnmatch: don't goto over declaration
13047         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
13048         undefined behavior for goto over a declaration.
13049         Problem reported by Charlie Brown in
13050         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
13052         pipe2: decouple from binary-io a bit
13053         This is for Emacs, which needs pipe2 but not binary-io.
13054         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
13055         * modules/binary-io (Depends-on): Add module indicator.
13057 2013-07-03  Eric Blake  <eblake@redhat.com>
13059         mgetgroups: relax license to LGPLv2+
13060         * modules/getugroups (License): Change from GPLv3+.
13061         * modules/mgetgroups (License): Likewise.
13062         * modules/getgroups (License): Change from LGPLv3+.
13064         xalloc-oversized: relax license to LGPLv2+
13065         * modules/xalloc-oversized (License): Change from GPLv3+.
13067         nproc: relax license to LGPLv2+
13068         * modules/nproc (License): Change from LGPLv3+.
13070         bootstrap: honor --no-git
13071         * build-aux/bootstrap: Don't even try to use git when user is
13072         pointing to a static checkout.
13074 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13076         ignore-value: port to gcc -pedantic
13077         * lib/ignore-value.h (ignore_value):
13078         Port to gcc -pedantic, by using __extension__.
13079         Reindent as per usual gnulib style nowadays.
13080         Simplify GCC version check.
13082 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13084         extern-inline: port to gcc -std=c89
13085         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
13086         Do not use __gnu_inline__ if pedantic and pre-C99.
13088 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13090         doc: document extern-inline
13091         * doc/extern-inline.texi: New file.
13092         * doc/gnulib.texi (alloca-opt): Include it.
13093         * m4/extern-inline.m4: Move some comments to documentation,
13094         and others closer to what they describe.
13096         doc: chatter less
13097         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
13098         (updated-stamp): Use it.  This causes 'make' to output just
13099         one file name rather than zillions.
13101         fflush, fseeko: port to musl cross-compiles
13102         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
13103         on some implementation that (1) is not known to be buggy,
13104         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
13105         cross-compiled to so we can't easily check for lack of
13106         conformance.  This is for cross-compiling to musl.
13107         Reported by Rich Felker in
13108         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
13109         * m4/fclose.m4 (gl_FUNC_FCLOSE):
13110         * m4/fflush.m4 (gl_FUNC_FFLUSH):
13111         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
13112         Adjust to above change.
13113         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
13114         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
13115         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
13116         known not to work, or unknown.
13118 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13120         msvc-inval: port to mingw-w64
13121         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
13122         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
13123         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
13125 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
13127         getcwd-lgpl: port to Tru64
13128         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
13129         Problem reported by Steven M. Schweda in
13130         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
13132         tests: port large-fd POSIX spawn tests to OS X
13133         Problem reported by Daiki Ueno in
13134         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
13135         * tests/test-posix_spawn_file_actions_addclose.c:
13136         * tests/test-posix_spawn_file_actions_adddup2.c:
13137         * tests/test-posix_spawn_file_actions_addopen.c:
13138         Include <limits.h>, for OPEN_MAX, if available.
13139         (big_fd): New static function.
13140         (main): Use it.
13142 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
13144         tests/nap.h: use an adaptive delay to avoid ctime update issues
13145         The recent change in nap.h (5191133e) decreased the probability of lost
13146         races to about a third, however such problems could still be observed
13147         in virtual machines and openSUSE's OBS.
13148         Before, nap() detected the needed time once empirically and then used
13149         that delay (together with a small correction multiplier) in further
13150         calls.  This problem has been reported and discussed several times,
13151         including guesses about possible kernel issues:
13152         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
13153         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
13154         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
13155         http://bugs.gnu.org/12820
13156         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
13157         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
13158         Now, nap() avoids the race alltogether by verifying on a reference
13159         file whether a timestamp difference has happened.
13160         * tests/nap.h (nap_fd): Define file descriptor variable for the
13161         witness file.
13162         (nap_works): Change return value to bool.  Change passing
13163         the old file's status by value instead of by reference as this function
13164         does no longer update that timestamp; rename the function argument from
13165         st to old_st.  Remove the local variables cdiff and mdiff because that
13166         function now returns true/false instead of the precise delay.
13167         (guess_delay): Remove function.
13168         (clear_tmp_file): Add new function to close and unlink the witness file.
13169         (nap): Instead of re-using the delay which has been calculated during
13170         the first call, avoid the race by actually verifying that a timestamp
13171         difference can be observed on the current file system.  Use an adaptive
13172         approach for the delay to minimize execution time.  Assert that the
13173         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
13174         = 2^31 - 1 = 2.1s.
13175         Use atexit to call clear_tmp_file when the process terminates.
13177 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13179         sig2str: port to C++
13180         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
13181         Reported by Daniel J Sebald in
13182         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
13184 2013-05-30  Eric Blake  <eblake@redhat.com>
13186         docs: mention cygwin shortcoming in <sys/un.h>
13187         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
13189         vasnprintf: silence mingw compiler warning
13190         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
13192 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13194         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
13195         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
13196         This fixes a porting bug I recently reintroduced in regex, and
13197         some other instances that I discovered while testing the fix.
13198         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
13199         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
13200         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
13201         with an empty argument if this is a pedantic pre-C99 GCC.
13202         * lib/verify.h: Do not use _Static_assert if this is a pedantic
13203         pre-C11 GCC.
13205         regex: adapt to locking regime instead of depending on pthread
13206         Instead of depending on pthread, adapt to whatever thread
13207         modules are in use.  Problem reported by Ludovic Courtès in
13208         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
13209         and by Mats Erik Andersson in
13210         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
13211         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
13212         Support either the 'lock' module, or the 'pthread' module, or
13213         no module.
13214         (lock_lock, lock_unlock): New macros.
13215         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
13216         * modules/lock, modules/pthread (configure.ac): Add module indicator.
13217         * modules/regex (Depends-on): Remove pthread.
13219 2013-05-22  Eric Blake  <eblake@redhat.com>
13221         getgroups: document portability issues
13222         * doc/glibc-functions/initgroups.texi (initgroups): Mention
13223         multithread safety.
13224         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
13225         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
13226         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
13227         getugroups.
13228         * doc/posix-functions/getgroups.texi (getgroups): Mention
13229         multithread safety and mgetgroups.
13231 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13233         test-lchown, test-chown: also skip test if chown fails with EPERM
13234         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
13235         skip this test, to handle FAT file systems.
13236         * tests/test-chown.h (test_chown): Likewise.
13238 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13240         regex: fix dfa race in multithreaded uses
13241         Problem reported by Ludovic Courtès in
13242         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
13243         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
13244         New macros.  All uses of __libc_lock_define, __libc_lock_init
13245         changed to use the first two of these.
13246         (__libc_lock_lock, __libc_lock_unlock): New macros, for
13247         non-glibc platforms.
13248         (struct re_dfa_t): Define the lock unconditionally.
13249         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
13250         '#ifdef _LIBC"s.
13251         * modules/regex (Depends-on): Add pthread, if we use the
13252         included regex.
13254         * lib/regcomp.c: Do actions that are not needed for glibc,
13255         but may be needed elsewhere.
13256         (regfree, re_compile_internal): Destroy the lock.
13257         (re_compile_internal): Check for lock-initialization failure.
13259         malloca: port to compilers that reject size-zero arrays
13260         This fixes a bug introduced in my previous patch.
13261         * lib/malloca.c (struct preliminary_header): Use an int
13262         rather than a character array of size int; that's simpler.
13263         (struct header): Remove, replacing with ...
13264         (union header): New type.  This avoids the need for declaring a
13265         character array of size zero, which is not allowed on some platforms.
13266         All uses changed.
13268 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13270         parse-datetime, tests: don't use "string" + int
13271         Recent versions of 'clang' complain about C source code that
13272         uses expressions of the form '"string literal" + integer',
13273         I guess on the theory that it's confusing for readers who are
13274         used to C++.  On those grounds I suppose it's OK to make this
13275         minor style change.
13276         * lib/parse-datetime.y (parse_datetime):
13277         * tests/test-fchdir.c (main):
13278         * tests/test-snprintf-posix.h (test_function):
13279         * tests/test-snprintf.c (main):
13280         * tests/test-vasnprintf-posix.c (test_function):
13281         * tests/test-vasnprintf.c (test_function):
13282         * tests/test-vsnprintf.c (main):
13283         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
13284         Rewrite '"str" + E' to '&"str"[E]'.
13286 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
13288         argmatch: port to C++
13289         * lib/argmatch.h [__cplusplus]: Add extern "C".
13291         argp: typo fix
13292         * lib/argp-help.c: Typo in comment.
13294 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
13296         manywarnings: update for GCC 4.8.0
13297         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
13298         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
13299         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
13300         -Wmissing-noreturn, as they are duplicates of other warnings.
13301         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
13302         was documented to be flaky in earlier versions of GCC.
13304         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
13305         * tests/test-spawn.c (main):
13306         * tests/test-sys_socket.c (main):
13307         * tests/test-sys_wait.c (main):
13308         Don't have a switch value that isn't covered by a case.
13310         getaddrinfo-tests: port --enable-gcc-warnings to clang
13311         * tests/test-getaddrinfo.c (simple):
13312         Avoid casts from looser to stricter-aligned pointers.
13314         thread: port --enable-gcc-warnings to clang
13315         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
13316         Include <signal.h>, to pacify a warning about pthread_sigmask.
13318         stdio: use __REDIRECT for fwrite, fwrite_unlocked
13319         * lib/stdio.in.h (fwrite):
13320         When working around bug 11959, use __REDIRECT rather than '#define
13321         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
13322         fix the -Wunused-value issue with clang, and it works with GCC too.
13323         Problem with targeting reported by Eric Blake in
13324         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
13325         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
13326         debugging the fwrite issue.
13328         stdio: port --enable-gcc-warnings to clang
13329         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
13330         since the GCC workaround for fwrite does not pacify clang.
13332         sig2str: port --enable-gcc-warnings to clang
13333         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
13335         obstack: port --enable-gcc-warnings to clang
13336         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
13337         Avoid casts from looser to stricter-aligned pointers.
13339         memchr2: port --enable-gcc-warnings to clang
13340         * lib/memchr2.c (memchr2):
13341         Avoid casts from looser to stricter-aligned pointers.
13343         mbsstr: port --enable-gcc-warnings to clang
13344         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
13345         Avoid casts from looser to stricter-aligned pointers.
13347         malloca: port --enable-gcc-warnings to clang
13348         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
13349         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
13351         inttostr: port --enable-gcc-warnings to clang
13352         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
13354         warnings: port to clang
13355         Problem reported by Daniel P. Berrange via Eric Blake in
13356         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
13357         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
13358         (gl_WARN_ADD): Use it.
13360 2013-05-11  Jim Meyering  <meyering@fb.com>
13362         quotearg: do not read beyond end of buffer
13363         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
13364         end of an ARG for which no length was specified.  With an N-byte
13365         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
13366         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
13367         via coreutils' misc/sort-debug-keys.sh test and detected by running
13368         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
13369         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
13370         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
13371         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
13372         characters correctly."
13374 2013-05-11  Daiki Ueno  <ueno@gnu.org>
13376         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
13377         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
13378         compilation target is Mac OS X 10.6.
13379         Problem reported by parafin and Andoni Morales in
13380         <http://savannah.gnu.org/bugs/?37844> and
13381         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
13383 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13385         mkdir-p: remove assumptions about umask and mode
13386         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
13387         umask is 0, or that MODE is a subset of MODE_BITS.
13389 2013-05-10  Eric Blake  <eblake@redhat.com>
13391         maint.mk: catch more abuse of HAVE_DECL in syntax-check
13392         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
13394 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
13396         deps: require Automake >= 1.9.6 in generated Makefile fragments
13398         That is the same minimal version required in the DEPENDENCIES file.
13399         Moreover, the old code generated a requirement of Automake >= 1.5,
13400         and that is an insanely outdated version.
13402         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
13403         * tests/havelib/rpathlx/Makefile.am: Likewise.
13404         * tests/havelib/rpathly/Makefile.am: Likewise.
13405         * tests/havelib/rpathlyx/Makefile.am: Likewise.
13406         * tests/havelib/rpathlz/Makefile.am: Likewise.
13407         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
13408         * tests/havelib/rpathx/Makefile.am: Likewise.
13409         * tests/havelib/rpathy/Makefile.am: Likewise.
13410         * tests/havelib/rpathz/Makefile.am: Likewise.
13412 2013-05-08  Eric Blake  <eblake@redhat.com>
13414         bootstrap: AC_INIT may have more than four parameters
13415         * build-aux/bootstrap (extract_package_name): Correctly extract
13416         non-empty tarname field.  Avoid range in regex.
13417         Based on a report by Sami Kerola <kerolasa@iki.fi>.
13419 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13421         qacl: port to MS-Windows port of GNU Emacs
13422         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
13423         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
13424         port of GNU Emacs.  Problem reported by Eli Zaretskii in
13425         <http://bugs.gnu.org/14295#14>.
13427 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
13429         acl: include quote.h
13430         * lib/copy-acl.c: Include quote.h.
13431         * lib/set-acl.c: Likewise.
13433 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
13435         fchownat, renameat, unlinkat: update statat dependencies
13436         These modules use statat and lstatat, not fstatat; so depend on
13437         the statat module, which was split out recently from fstatat.
13438         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
13439         * modules/renameat: Likewise.  Also delete fstat.
13440         URL: http://bugs.gentoo.org/468790
13442 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
13444         Assume gnulib is checked out from Git, not CVS
13446         In fact, access to the gnulib repository through CVS has been
13447         disabled, or more precisely, got broken and was never restored; see:
13448         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
13450         Note that support for CVS is not removed completely and unthinkingly
13451         by this change: only support for CVS checkouts of gnulib itself is
13452         removed.  For example, the 'bootstrap' script still cater to .cvsingore
13453         files and CVS directories, for the benefit of those poor gnulib clients
13454         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
13456         * gnulib-tool: Simplify accordingly.
13457         * posix-modules: Likewise.
13458         * MODULES.html.sh: Likewise.
13459         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
13460         repository.
13461         * doc/gnulib-intro.texi: Likewise.
13462         * doc/gnulib-readme.texi: Likewise.
13463         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
13464         sample '.gitignore' file rather than a sample '.cvsignore'.
13465         * NEWS: Update.
13466         * m4/extensions.m4: While at it, remove a comment mistakenly referring
13467         to "CVS Autoconf" rather than "git Autoconf".
13469 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13471         utimensat-tests, etc.: try to fix some races
13472         Problem reported by Bernhard Voelker in
13473         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
13474         I don't know whether this patch fixes that race condition, but it
13475         fixes *some* race conditions, so it should be a win.
13476         * modules/chown-tests (Depends-on):
13477         * modules/fchownat-tests (Depends-on):
13478         * modules/fdutimensat-tests (Depends-on):
13479         * modules/futimens-tests (Depends-on):
13480         * modules/lchown-tests (Depends-on):
13481         * modules/stat-time-tests (Depends-on):
13482         * modules/utimens-tests (Depends-on):
13483         * modules/utimensat-tests (Depends-on):
13484         Depend on nanosleep, not usleep.
13485         * modules/chown-tests (test_chown_LDADD):
13486         * modules/lchown-tests (test_lchown_LDADD):
13487         * modules/stat-time-tests (test_stat_time_LDADD):
13488         New macro.
13489         * modules/fchownat-tests (test_fchownat_LDADD):
13490         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
13491         * modules/futimens-tests (test_futimens_LDADD):
13492         * modules/utimens-tests (test_utimens_LDADD):
13493         * modules/utimensat-tests (test_utimensat_LDADD):
13494         Add $(LIB_NANOSLEEP).
13495         * modules/stat-time-tests (Files): Add tests/nap.h.
13496         * tests/nap.h: Include <limits.h>, for INT_MAX.
13497         (lt_mtime): Remove.
13498         (diff_timespec): New function.
13499         (get_stat): Rename from get_mtime.  All callers changed.
13500         (nap_works): Determine the needed delay by inspecting the
13501         file system's timestamp jumps; this should be more reliable.
13502         Look at both mtime and ctime, and take the maximum of the two jumps.
13503         (nap_works, guess_delay):
13504         Return a nanosecond count, not a microsecond count.
13505         All callers changed.
13506         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
13507         failure.
13508         (nap): Multiply the guess by 1.125, to accommodate the case where
13509         the file system's clock is a bit slower than nanosleep's clock.
13510         * tests/test-stat-time.c (BASE): New macro.
13511         Include nap.h.
13512         (nap): Remove; nap.h now defines this.  This removes a duplicate
13513         implementation of 'nap'.
13515         utimens, utimensat: work around Solaris UTIME_OMIT bug
13516         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
13517         Linux kernel 2.6.32 does.  Work around it in the same way.
13518         * doc/posix-functions/futimens.texi (futimens):
13519         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
13520         * lib/utimens.c (fdutimens, lutimens):
13521         * lib/utimensat.c (rpl_utimensat): Work around the bug.
13523         gettext: now it's your responsibility to add -I$(top_builddir)/intl
13524         Formerly, it was your responsibility to do this for all Makefile.ams
13525         other than Gnulib's.  Now it's your responsibility to do it for
13526         Gnulib's Makefile.am, too.
13527         * NEWS: Document this.
13528         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
13530         acl: include errno.h to get errno
13531         Reported by Daiki Ueno in
13532         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
13533         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
13535 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13537         tests: don't assume getdtablesize () <= 10000000
13538         * modules/cloexec-tests:
13539         * modules/dup2-tests:
13540         * modules/dup3-tests:
13541         * modules/nonblocking-tests:
13542         * modules/posix_spawn_file_actions_addclose-tests:
13543         * modules/posix_spawn_file_actions_adddup2-tests:
13544         * modules/posix_spawn_file_actions_addopen-tests:
13545         * modules/unistd-safer-tests:
13546         Depend on the getdtablesize module.
13547         * tests/test-cloexec.c:
13548         * tests/test-dup-safer.c:
13549         * tests/test-dup2.c:
13550         * tests/test-dup3.c:
13551         * tests/test-fcntl.c:
13552         * tests/test-nonblocking.c:
13553         * tests/test-posix_spawn_file_actions_addclose.c:
13554         * tests/test-posix_spawn_file_actions_adddup2.c:
13555         * tests/test-posix_spawn_file_actions_addopen.c:
13556         Don't assume getdtablesize () <= 10000000.
13558 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
13560         extern-inline: work around bug in Sun c99
13561         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
13562         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
13564 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
13566         qacl: new module, broken out from the acl module
13567         This is for GNU Emacs, which wants the acl functions but does
13568         not want 'error' invoked when they fail.
13569         * lib/acl-internal.h: Do not include error.h, quote.h.
13570         (ENOSYS, ENOTSUP): Remove; no longer needed.
13571         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
13572         * lib/acl.h: Include <stdbool.h>.
13573         (acl_errno_valid): New function.
13574         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
13575         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
13576         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
13577         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
13578         (ACL_INTERNAL_INLINE): Remove; no longer needed.
13579         * lib/file-has-acl.c (file_has_acl):
13580         * lib/qcopy-acl.c (qcopy_acl):
13581         * lib/qset-acl.c (qset_acl):
13582         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
13583         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
13584         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
13585         lib/file-has-acl.c, m4/acl.m4 to qacl module.
13586         Add lib/set-acl.c.
13587         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
13588         Add qacl.
13589         (configure.ac): Move gl_FUNC_ACL to qacl module.
13590         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
13591         Rename set-mode-acl.c to set-acl.c.
13592         * lib/acl-errno-valid.c: New file.
13593         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
13594         copy_acl function remains in copy-acl.c.
13595         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
13596         (_): Remove; not needed.
13597         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
13598         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
13599         * modules/qacl: New file, moved from the old modules/acl.
13600         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
13601         Remove set-mode-acl.c, copy-acl.c.
13602         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
13604         alignof, intprops, malloca: port better to IBM's C compiler
13605         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
13606         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
13607         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
13609 2013-04-25  Daiki Ueno  <ueno@gnu.org>
13611         wctype-h: fix gettext link error on mingw
13612         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
13613         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
13614         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
13615         rpl_towupper and rpl_towupper.
13617 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
13619         regex-tests, regex: allow glibc re_search behavior
13620         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
13621         re_search input data to make the multi-character collating element
13622         in it clearly visible, and treat re_search return code 0 as valid.
13623         * m4/regex.m4 (gl_REGEX): Likewise.
13625 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13627         stdalign: doc fix
13628         * doc/posix-headers/stdalign.texi (stdalign.h):
13629         Gnulib doesn't support '_Alignof expr'.
13631 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13633         stdalign: port to stricter ISO C11
13634         ISO C11 says that _Alignof's operand must be a parenthesized type.
13635         Problem reported by Eli Zaretskii in
13636         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
13637         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
13638         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
13640 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13642         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
13643         Problem reported by Marco Atzeri in
13644         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
13645         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
13646         Simply delegate to the system <sys/select.h> in this case too.
13647         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
13648         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
13649         be needed on Solaris either.
13650         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
13651         Simply delegate to the system <sys/time.h> in this case.
13653 2013-03-19  Karl Berry  <karl@gnu.org>
13655         * build-aux/gnupload: check for erroneous (with gnupload) use of
13656         ftp-upload.gnu.org, tweak help.
13658 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13660         copy-file, rpmatch: fix problems found by cppcheck
13661         Reported by Arno Onken in
13662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
13663         * lib/rpmatch.c (try): Fix memory leak.
13664         * lib/copy-file.c: Include "ignore-value.h".
13665         (qcopy_file_preserving): Ignore chown value.
13666         * modules/copy-file (Depends-on): Add ignore-value.
13668 2013-01-27  Jim Meyering  <jim@meyering.net>
13670         prefix-gnulib-mk: give better diagnostics
13671         * build-aux/prefix-gnulib-mk: Don't just "die".
13672         Give better diagnostics upon failure.
13674 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
13676         putenv: port to Solaris 10
13677         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
13678         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
13679         is not what is wanted here.
13680         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
13681         declaration, not for its existence.
13683 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
13685         mktime: fix configure typo
13686         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
13688 2013-03-12  Eric Blake  <eblake@redhat.com>
13690         regex-tests: skip UTF-8 test on mingw
13691         * modules/regex-tests (Depends-on): Add localcharset.
13692         * tests/test-regex.c (main): Use it to skip test on mingw.
13694 2013-03-11  Eric Blake  <eblake@redhat.com>
13696         tests: make it easier to bypass alarm time in debugger
13697         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
13698         * tests/test-memmem.c (main): Likewise.
13699         * tests/test-passfd.c (main): Likewise.
13700         * tests/test-ptsname.c (main): Likewise.
13701         * tests/test-ptsname_r.c (main): Likewise.
13702         * tests/test-strcasestr.c (main): Likewise.
13703         * tests/test-strstr.c (main): Likewise.
13705         regex: port to mingw's recent addition of undeclared alarm
13706         * doc/posix-functions/alarm.texi (alarm): Document that alarm
13707         exists but still doesn't work in newer mingw.
13708         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
13709         not existence.  Ensure SIGALRM is not trapped.
13710         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
13711         * m4/regex.m4 (gl_REGEX): Likewise.
13712         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
13713         * tests/test-regex.c (main): Use correct probe for alarm.
13715         putenv: avoid compilation warning on mingw
13716         * lib/putenv.c (_unsetenv): Protect variable declaration.
13717         (putenv): Fix indentation.
13719 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
13721         unistd: don't prevent Tru64 Unix from using gnulib strtod.
13722         * lib/unistd.in.h: be careful not to include un-needed system
13723         stdlib.h from here, because that prevents gnulib stdlib.h from
13724         defining rpl_strtod correctly.
13726 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
13728         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
13729         changesets, but for the 'precision 0' test.
13730         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13731         round-to-even, since POSIX says rounding is implementation-defined
13732         and OS X 10.8.2 rounds 1.51 to 1 here.
13734         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
13735         changeset.
13736         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13737         round-to-even, since POSIX says rounding is implementation-defined
13738         and OS X 10.8.2 rounds 1.5 to 1 here.
13740 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
13742         vasnprintf-posix-tests: allow rounding 1.5 to 1
13743         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
13744         round-to-even, since POSIX says rounding is implementation-defined
13745         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
13746         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
13748         bootstrap: port to FreeBSD
13749         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
13750         that treat '--' differently.  Reported by Mats Erik Andersson in
13751         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
13753 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
13755         regex: rename remaining __attribute calls to __attribute__.
13756         2012-02-25 changed definition of __attribute, but left some uses
13757         unchanged, preventing compilation of regex module on most non-gcc
13758         environments.
13759         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
13760         (lookup_collation_sequence_value, build_range_exp)
13761         (build_collating_symbol): Set attributes with newly renamed
13762         __attribute__ decorator.
13763         * lib/regex_internal.c (re_string_peek_byte_case)
13764         (re_node_set_compare, re_node_set_contains): Likewise.
13765         * lib/regexec.c (acquire_init_state_context): Likewise.
13767 2013-03-06  Bruno Haible  <bruno@clisp.org>
13769         execute: Revert last change, but use a different condition.
13770         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
13771         on Windows.
13773 2013-03-05  Eric Blake  <eblake@redhat.com>
13775         execute: drop dead code
13776         * lib/execute.c (nonintr_close, nonintr_open): Delete.
13778 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
13780         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
13781         * m4/non-recursive-gnulib-prefix-hack.m4
13782         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
13783         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
13784         <http://bugs.gnu.org/10305#237>.
13786 2013-03-04  Eric Blake  <eblake@redhat.com>
13788         test-getsockopt: avoid compiler warning
13789         * tests/test-getsockopt.c (includes): Ensure close is declared.
13791 2013-03-02  Bruno Haible  <bruno@clisp.org>
13793         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
13794         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
13796 2013-03-02  Bruno Haible  <bruno@clisp.org>
13798         gettext: Update to version 0.18.2.
13799         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
13800         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
13801                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
13803 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13805         regex: merge patches from libc
13807         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13808         * lib/regex_internal.h (__attribute__): Rename from __attribute.
13809         All uses changed.
13810         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
13811         (re_string_wchar_at, re_string_elem_size_at):
13812         Mark function as possibly unused.
13814         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
13815         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
13816         elements compare against the byte sequence of it, not its name.
13818 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13820         putenv: port better to native Windows
13821         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
13822         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
13823         (_unsetenv): Use _putenv if available.
13824         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
13825         a bit less likely to cause damage.
13826         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
13827         Fix the wrong value with SetEnvironmentVariable.
13828         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
13829         code better.
13831 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13833         regex: ignore old-style-definition warnings
13834         * lib/regex.c: Add pragma to ignore these warnings.
13835         Problem reported for GNU tar by Pavel Raiskup.
13837 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
13839         getcwd: support coreutils better
13840         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
13841         but this might not be correct in coreutils, which disables
13842         the raw decl checks.  Problem reported by Nagendra in
13843         <http://bugs.gnu.org/10305#192>.
13844         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
13845         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
13846         Test the getcwd function, not any macro, since getcwd.c wants the
13847         function.
13848         * m4/getcwd.m4 (gl_FUNC_GETCWD):
13849         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
13850         compile, as might happen if there's a macro but no function.
13852         strtod: support coreutils better
13853         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
13854         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
13855         disables the raw decl checks.  This assumes there is an underlying
13856         strtod, but that's a safe assumption these days.
13857         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
13859         mountlist: port to HP NonStop
13860         Reported by Joachim Schmitz in
13861         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
13862         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
13863         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
13865 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13867         extern-inline: avoid compilation error with HP-UX cc
13868         Reported by Richard Lloyd in
13869         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
13870         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
13871         Suppress extern inline with HP-UX cc.  This should be safe,
13872         though it may hurt performance.  Perhaps someone with some HP-UX
13873         experience can come up with a higher-performance fix.
13875 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
13877         putenv: fix heap corruption with mixed putenv/_putenv
13878         Problem reported by Michael Goffioul in
13879         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
13880         * lib/putenv.c (putenv) [HAVE__PUTENV]:
13881         Rely on _putenv to allocate the new environment.
13882         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
13883         * modules/putenv (configure.ac): Use it.
13885 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
13887         unsetenv etc.: port to Solaris 11 + GNU Emacs
13888         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
13889         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
13890         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
13891         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
13892         idea but is too painful to fix right now), and without this gnulib
13893         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
13894         compiling unsetenv.c on Solaris 11.  Fix the problem for
13895         unsetenv.c, and fix other similar occurrences.
13897 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13899         secure_getenv: fix C++ declaration typo
13900         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
13901         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
13902         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
13904 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13906         careadlinkat: stop exporting careadlinkatcwd
13907         Only Emacs used it directly, and Emacs no longer needs it.
13908         * NEWS: Document this simplification.
13909         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
13910         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
13911         for readlink.
13912         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
13913         Don't include stdlib.h; no longer needed.
13914         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
13915         * lib/relocwrapper.c: Adjust comment to match new dependencies.
13916         * modules/areadlink (Depends-on): Add readlink.
13917         (Maintainer): Add self.
13918         * modules/careadlinkat (Depends-on): Remove readlink.
13920         extensions: port better to HP-UX
13921         This is merged from git Autoconf.
13922         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
13923         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
13924         so that it's compatible with the value used when compiling.
13926         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
13927         Problem reported by Mats Erik Andersson in
13928         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
13929         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
13930         openpty function exists, not merely when we intend to replace it.
13931         This corrects the 2013-01-31 patch, which mistakenly defined
13932         HAVE_OPENPTY even on hosts that lacked it.
13934 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13936         secure_getenv: fix include typo
13937         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
13939         secure_getenv: port better to FreeBSD and Solaris
13940         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
13941         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
13942         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
13943         This works better on BSDish platforms.
13944         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
13945         Test for issetugid if __secure_getenv is missing.
13947 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13949         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
13950         Some of these changes are merged in from git Autoconf.
13951         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
13952         When deciding whether to define _XOPEN_SOURCE, inspect the
13953         preprocessor macro __hpux instead of the more-heavyweight
13954         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
13955         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
13956         as the key for __EXTENSIONS__.
13958         unistd: avoid namespace pollution on non-glibc systems
13959         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
13960         This avoids namespace pollution on non-glibc systems, by causing
13961         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
13962         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
13963         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
13965 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13967         tmpdir: use secure_getenv
13968         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
13969         Define to secure_getenv, not getenv.
13970         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
13971         as that's now secure_getenv's job.
13972         * modules/tmpdir (Depends-on): Add secure_getenv.
13974         tempname: use secure_getenv
13975         * lib/tempname.c (__secure_getenv) [!_LIBC]:
13976         Define to secure_getenv, not getenv.
13977         * modules/tempname (Depends-on):
13978         Add secure_getenv.
13980         secure_getenv: new module
13981         * MODULES.html.sh (Extra functions based on ANSI C 89):
13982         Add secure_getenv.
13983         * doc/glibc-functions/secure_getenv.texi: New file.
13984         * doc/gnulib.texi: Include it.
13985         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
13986         New files.
13987         * lib/stdlib.in.h (secure_getenv): New decl.
13988         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
13989         * modules/stdlib (stdlib.h):
13990         Add secure_getenv checks.
13992 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13994         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
13995         Reported for OS X 10.8.2 by Assaf Gordon in
13996         <http://bugs.gnu.org/13516>.
13997         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
13998         !HAVE_OPENAT && !HAVE_FDOPENDIR.
13999         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
14000         so that they can be kept in sync more easily.  Avoid PATH_MAX
14001         test on the Hurd.  Sync from test-getcwd.c for errno tests after
14002         mkdir or chdir failure.
14003         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
14004         lib/getcwd.c.
14005         (test_abort_bug): Do not test for the deep directory bug unless we
14006         have openat support.  Avoid PATH_MAX test on the Hurd.
14008         regex-tests, regex: fix bug: memset undeclared
14009         * tests/test-regex.c: Don't include regex.h twice.  Include
14010         string.h, to declare memset.  Christensen's report also mentioned
14011         this issue.
14012         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
14013         test-regex.c, to avoid future problems like this.  Remove
14014         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
14015         twice.
14017         regex-tests: fix link errors on older Solaris
14018         These need to link with @LIBINTL@ to get libintl_gettext.
14019         Problem reported by Tom G. Christensen in
14020         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
14021         * modules/regex-tests (test_regex_LDADD): New macro.
14023 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
14025         regex-tests: new module
14026         * modules/regex-tests, tests/test-regex.c: New files.
14028         regex: fix off-by-one error in configure test
14029         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
14031 2013-01-31  Eric Blake  <eblake@redhat.com>
14033         regex: avoid infinite configure test
14034         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
14036 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
14038         openpty: fix bug where HAVE_OPENPTY wasn't defined
14039         See the thread starting at:
14040         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
14041         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
14042         openpty function exists, not merely when we intend to replace it.
14044 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14046         sys_time: port to Solaris 2.6
14047         There is a circularity problem on Solaris 2.6, where <time.h> includes
14048         <sys/time.h> for struct timespec.  The include nesting is gnulib
14049         <time.h>, system <time.h>, gnulib <sys/time.h>, system
14050         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
14051         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
14052         <sys/siginfo.h>; the last, innermost file needs struct
14053         timestruc_t, which is defined in <sys/time.h>, which has not been
14054         fully parsed.  Problem reported by Tom G. Christensen in
14055         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
14056         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
14057         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
14058         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
14059         uses split double-inclusion guards.
14061 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14063         regex: test for buffer overrun
14064         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
14065         for the just-fixed regex bug.
14067 2013-01-29  Andreas Schwab  <schwab@suse.de>
14069         regex: fix buffer overrun in regexp matcher [BZ #15078]
14070         * lib/regexec.c (extend_buffers): Add parameter min_len.
14071         (check_matching): Pass minimum needed length.
14072         (clean_state_log_if_needed): Likewise.
14073         (get_subexp): Likewise.
14075 2013-01-28  Pádraig Brady  <P@draigBrady.com>
14077         mountlist: don't consider "devtmpfs" as dummy
14078         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
14079         as there is storage associcated with it.
14081 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
14083         futimens-tests, utimens-tests: Depend on gettext.
14084         This works around a problem introduced in my 2013-01-12 patch,
14085         which added @LIBINTL@ to these modules.
14086         * modules/futimens-tests (Depends-on):
14087         * modules/utimens-tests (Depends-on): Add gettext.
14089 2013-01-26  Eric Blake  <eblake@redhat.com>
14091         test-getpeername: fix typo
14092         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
14094 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
14096         bootstrap: remove the need for a sorted .gitignore file
14097         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
14098         rename to insert_if_absent(), so that we don't need or generate
14099         a sorted .gitignore file.  We do require a .gitignore with no
14100         existing duplicate entries and enforce that.
14101         (sort_patterns): Remove this function as we now use the simpler
14102         technigue of inserting blacklist entries at the top of the file,
14103         assuming gnulib won't be inserting !whitelist entries.
14105 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14107         readlinkat: don't depend on gl_FUNC_OPENAT
14108         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
14109         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
14110         renameat.m4, symlinkat.m4; but one thing at a time.
14112         statat: new module, split out from fstatat
14113         GNU Emacs needs the POSIX-specified fstatat, but not the
14114         gnulib-specified statat and lstat.  Split the latter two into a
14115         new module 'statat'.
14116         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
14117         * lib/openat.h, lib/statat.c (STATAT_INLINE):
14118         Rename from FSTATAT_INLINE. All uses changed.
14119         * modules/fstatat (Files): Remove lib/statat.c.
14120         (gl_MODULE_INDICATOR([fstatat])): Remove.
14121         (lib_SOURCES): Remove.
14122         (Maintainer): Add self.
14123         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
14124         * tests/test-fstatat.c (BASE): Don't define if already defined.
14125         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
14127 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14129         tests: don't assume fd 99 is closed
14130         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
14131         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
14132         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
14133         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
14134         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
14135         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
14136         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
14137         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
14138         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
14139         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
14140         * tests/test-fwrite.c, tests/test-getpeername.c:
14141         * tests/test-getsockname.c, tests/test-getsockopt.c:
14142         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
14143         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
14144         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
14145         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
14146         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
14147         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
14148         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
14149         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
14150         * tests/test-unlinkat.c, tests/test-unlockpt.c:
14151         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
14152         Close file descriptor 99, instead of assuming it's already closed.
14154 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14156         stpncpy: port to OS X 10.8
14157         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
14158         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
14160 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14162         unistd: port to recent mingw
14163         * lib/unistd.in.h: Remove special invocation convention for mingw,
14164         which breaks for the latest mingw version.  See John W. Eaton in
14165         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
14167         largefile: port better to Mac OS X 10.5
14168         This patch is backported from Autoconf git.
14169         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
14170         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
14171         with ino_t size being different for configuration time versus
14172         build/run time.  Problem reported by PHO in
14173         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
14175 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14177         doc: clarify -Werror
14178         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
14179         clarify that it's intended for developers, not for ordinary builds,
14180         and mention --enable-gcc-warnings as one possible use.
14182 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
14184         stdint: fix build with Android's Bionic fox x86
14185         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
14186         was already included as _SSIZE_T_DEFINED_ might also be defined
14187         in include/machine/_types.h, which is included by stdio.h
14189 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
14191         net_if-tests: port to Solaris 7 + GCC 3.4.6
14192         Problem reported by Tom G. Christensen in
14193         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
14194         * tests/test-net_if.c (ni): Move to next the code that uses it,
14195         so that it's declared only if needed.
14197 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
14199         net_if-tests: port to older Solaris
14200         Problem reported by Tom G. Christensen in
14201         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14202         * modules/net_if-tests (NET_IF_LIB): New substitution.
14203         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
14204         (HAVE_IF_NAMEINDEX): New C macro.
14205         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
14207         system-quote-tests: port to older Solaris
14208         Problem reported by Tom G. Christensen in
14209         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14210         * tests/test-system-quote-child.c (fopen, fread): Undef.
14212         c-xvasprintf etc.: fix link errors on older Solaris
14213         These need to link with @LIBINTL@ to get libintl_gettext.
14214         Problem reported by Tom G. Christensen in
14215         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14216         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
14217         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
14218         * modules/futimens-tests (test_futimens_LDADD):
14219         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
14221 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14223         locale: port to Solaris 2.6 and 7 + GNU gettext
14224         * lib/locale.in.h: Just include_next <locale.h> when
14225         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
14226         when combining the localename module with GNU gettext 0.18.2.
14227         Problem reported by Tom G. Christensen in
14228         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
14230 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14232         stdlib: port to Solaris 2.6
14233         Also, the code worked on Solaris 7 through 9 only by accident.
14234         Problem reported by Tom G. Christensen in
14235         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
14236         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
14237         simply include the system stdlib.h.
14238         * lib/getopt.in.h (__need_system_stdlib_h):
14239         * lib/pthread.in.h (__need_system_stdlib_h):
14240         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
14241         Define when including <stdlib.h>, to avoid problems at least for
14242         the pthread case on Solaris 2.6 and 7.  These .h files can get by
14243         with the system stdlib.h.
14245 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
14247         doc: update main copyright year
14248         * doc/gnulib.texi: Update copyright date.
14250         doc: improve ISO 8601 discussion
14251         * doc/parse-datetime.texi (Combined date and time of day items):
14252         Specify more carefully what formats are supported and what is
14253         done with excess precision.
14255 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14257         doc: avoid small caps
14258         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
14259         they're more trouble than they're worth.  Suggested by Karl Berry
14260         in <http://bugs.gnu.org/13360>.
14262         regex: conform to strict C
14263         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
14264         From Aharon Robbins.
14266         gnulib-tool: fix incompatibility with autopoint 0.18.2
14267         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
14268         Problem reported by Tom G. Christensen in
14269         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
14271 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14273         fprintftime: bring back and reword fwrite comment
14274         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
14276         stdio: remove now-unnecessary stdio.c
14277         Since stdio.in.h no longer uses inline functions, we no longer
14278         need to compile the extern versions.
14279         * lib/stdio.c: Remove.
14280         * modules/stdio (Files): Remove lib/stdio.c.
14281         (lib_SOURCES): Remove.
14283         unicodeio: depend on stdio, not ignore-value
14284         * lib/unicodeio.c: Do not include ignore-value.h.
14285         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
14286         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
14288         fprintftime: depend on stdio, not ignore-value
14289         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
14290         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
14291         since the stdio module arranges to silence that warning now.
14292         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
14294 2012-10-04  Simon Josefsson  <simon@josefsson.org>
14296         stdint-tests: Fix expanded-before-required-warning.
14297         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
14299 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14301         fwrite: silence __wur only for older glibc versions
14302         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
14303         This will help us remove this workaround some time in the far future.
14305 2013-01-03  Eric Blake  <eblake@redhat.com>
14307         fwrite: silence __wur without using inline
14308         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
14309         just gcc, and in a way that avoids inline issues.
14310         * modules/stdio (Depends-on): Drop extern-inline.
14312 2013-01-03  Jim Meyering  <jim@meyering.net>
14314         update-copyright: avoid copyright notice date corruption
14315         Given a sequence of copyright year numbers in which the final
14316         one was a two-digit number that happened to be a substring of
14317         a preceding four-digit year number, we would mistakenly update
14318         the substring (from two- to four-digit) rather than the two-digit
14319         number at the end, which, combined with the addition of the current
14320         4-digit year number would yield two 5-digit year numbers, e.g.,
14321         here, it would convert the first "99" to "1999, 2013" rather than
14322         the final one:
14323           1991, 99
14324           11999, 20131, 1999
14325         * build-aux/update-copyright: Tighten a regexp.
14326         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
14327         Reported by Joseph Myers in
14328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
14330 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14332         regex: omit needless signed-pointer casts
14333         * lib/regcomp.c (build_charclass, build_charclass_op):
14334         Use char *, not unsigned char *, for class name and extra.
14335         The char values are always nonnegative so there's no need to
14336         insist on unsigned char * here, and using char * removes the need
14337         for casts.  Reported by Aharon Robbins in
14338         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14340         regex: support Gawk, which never uses alloca
14341         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
14342         Do not include in this case.  Gawk doesn't supply a substitute
14343         alloca.h and doesn't need one.
14345         regex: port __libc_lock_define usage to C89
14346         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
14347         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
14348         does not conform to C89, as it has an empty macro argument.
14349         Reported by Aharon Robbins in
14350         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14352 2013-01-01  Eric Blake  <eblake@redhat.com>
14354         maint: update all copyright year number ranges
14355         Run "make update-copyright".
14357         version-etc: bump copyright year reported in --version
14358         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
14360 2012-12-31  Eric Blake  <eblake@redhat.com>
14362         sigprocmask-tests: skip test if pid is unexpectedly large
14363         * tests/test-sigprocmask.c (main): Add range check.
14365         git-version-gen: avoid test -z portability glitch
14366         * build-aux/git-version-gen: Prefer portable test spelling, since
14367         git-version-gen is run on more than just developer machines.
14369 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
14371         git-version-gen: add --fallback option to use if git is not present
14372         * build-aux/git-version-gen: Add support for the new option --fallback,
14373         which comes into play when there is no $tarball_version_file and
14374         git is not working.
14375         (scriptversion): Update.
14377         maint.mk: handle missing git with more grace
14378         * top/maint.mk (no-submodule-changes, public-submodule-commit):
14379         Quietly proceed if git is not present.
14381 2012-12-31  Eric Blake  <eblake@redhat.com>
14383         dup2: work around cygwin bug
14384         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
14385         * lib/dup2.c (rpl_dup2): Work around it.
14386         * doc/posix-functions/dup2.texi (dup2): Document it.
14388 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14390         regex: remove unnecessary dependency on localcharset.h
14391         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
14392         hasn't been needed for years.
14393         * modules/regex (Depends-on): Remove localcharset.
14395         regex: revert single-byte change
14396         * lib/regexec.c (check_node_accept_bytes): Revert previous change
14397         to this function.  This was alredy fixed in a different way, at
14398         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
14399         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
14400         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
14402         regex: simplify based on Gawk version
14403         * lib/regex_internal.c (re_dfa_add_node): Simplify.
14404         Reported by Aharon Robbins in
14405         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14407 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14409         regex: check that pattern char is single-byte
14410         Reported by Aharon Robbins in
14411         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14412         * lib/regexec.c (check_node_accept_bytes):
14413         Return 0 if the pattern string has a multibyte character here.
14415         regex: implement rational ranges
14416         Reported by Aharon Robbins in
14417         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14418         * lib/regcomp.c (build_range_exp) [!_LIBC]:
14419         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
14420         Implement rational ranges.
14422         regex: avoid redefining __wctype
14423         Reported by Aharon Robbins in
14424         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14425         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
14426         #undef before defining.
14428         regex: port to hosts where malloc (0) == NULL
14429         Reported by Aharon Robbins in
14430         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14431         * lib/regex_internal.c (re_node_set_alloc):
14432         Don't assume that malloc (0) yields nonnull.
14433         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
14434         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
14435         * modules/regex (Files): Add m4/eealloc.m4.
14437         regex: port to C89
14438         Reported by Aharon Robbins in
14439         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14440         * lib/regcomp.c (init_word_char): Declaration before statement.
14442         regex: merge glibc changes
14443         Also, copy the license wording from glibc.  This simplifies
14444         merging changes.  gnulib-tool will change the wording to GPL as
14445         appropriate, when importing it to other packages.  The only
14446         glibc change made since the last merge, which needs merging, is:
14447         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
14448         * lib/regex_internal.h (gettext): Remove use of INTUSE.
14450         * users.txt: Add Emacs.
14452         doc: omit mention of version when not needed
14453         * doc/gnulib-intro.texi (Portability and Application Code):
14454         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
14455         Don't mention particular dates or versions when not necessary, so
14456         that the documentation won't go out of date so quickly.
14458         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
14460 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
14462         bootstrap: pass --force to autoreconf.
14463         * build-aux/bootstrap (AUTORECONFFLAGS): New.
14464         Add "--force" so that Automake's ylwrap and other such tools
14465         be updated at each bootstrap invocation.
14466         Use it.
14468 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14470         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
14471         The earlier patch forgot to update one of the #if conditions, causing
14472         a problem on Debian testing i386 reported by Mats Erik Andersson
14473         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
14474         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
14475         (__argp_fmtstream_puts, argp_fmtstream_puts)
14476         (__argp_fmtstream_write, argp_fmtstream_write)
14477         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
14479         * doc/gnulib-readme.texi: Minor fixups.
14480         (Portability guidelines): Modernize URLs.  Remove some repetition.
14481         (Indent with spaces not TABs): Reword to avoid too-long lines.
14482         Remove some '@ifset standalone' stuff that isn't used.
14484         * doc/gnulib-readme.texi (Portability guidelines):
14485         ctype.h, not ctime.h.
14487         Correct name of POSIX.1-2001.
14488         * doc/posix-functions/fgetc.texi (fgetc):
14489         * doc/posix-functions/fgets.texi (fgets):
14490         * doc/posix-functions/fread.texi (fread):
14491         * doc/posix-functions/fscanf.texi (fscanf):
14492         * doc/posix-functions/getc.texi (getc):
14493         * doc/posix-functions/getchar.texi (getchar):
14494         * doc/posix-functions/scanf.texi (scanf):
14495         POSIX.1-2001, not POSIX-2001.
14497         doc: move README into manual
14498         * README: Move contents to new file doc/gnulib-readme.texi.
14499         Replace with a one-line summary.
14500         * doc/gnulib.texi (Brief Overview): New section,
14501         with old intro preface.  Include gnulib-readme.texi for contents.
14502         (Philosophy): Rename from "Introduction", since this
14503         section no longer introduces the rest.  Write a new preface.
14504         * doc/gnulib-readme.texi: New file, with the old contents of
14505         README texinfo-ized.  This way, the README info appears
14506         in the online and printed manual.
14508 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
14510         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
14511         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
14512         c_vasprintf() prototype.
14514 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
14516         c-vasprintf: Fix "empty declaration" warning reported by GCC.
14517         * lib/c-vasprintf.h: Remove stray semicolon.
14519 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14521         gettext: avoid obsolete macro AM_PROG_MKDIR_P
14522         It is obsolete and is planned to be removed from Automake 1.14; see
14523         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
14524         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
14525         (installdirs-data, installdirs-data-yes):
14526         Use $(MKDIR_P), not $(mkdir_p).
14527         * m4/intl.m4 (AM_INTL_SUBDIR):
14528         * m4/po.m4 (AM_PO_SUBDIRS):
14529         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
14531 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14533         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
14534         On this platform, we are not optimizing but we are using
14535         the substitute for extern inlines, so compile as if
14536         C99-style extern inline, or a substitute, is available.
14537         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
14538         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
14539         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
14540         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
14541         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
14542         Declare as ARGP_FS_EI, not as extern.
14543         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
14544         (__option_is_short, _option_is_end, __option_is_end)
14545         [!_LIBC && __USE_EXTERN_INLINES]:
14546         Declare as ARGP_EI, not as extern.
14548 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14550         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
14551         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
14552         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
14553         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
14554         ...), as the latter is fatal with older Autoconfs.
14555         Problem reported and fix suggested by Eric Blake in thread starting at
14556         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
14558 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14560         AC_PROG_MKDIR_P: don't workaround if not buggy
14561         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
14562         Define only for Autoconf versions before 2.62.
14563         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
14564         undocumented m4_PACKAGE_VERSION, for consistency with the
14565         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
14566         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
14567         was introduced in 2.62.
14569 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
14571         New 'c-*printf' modules for formatted output in C locale.
14573         New module 'c-vasnprintf'.
14574         * modules/c-vasnprintf: New file.
14575         * lib/c-vasnprintf.c: New file.
14576         * lib/c-vasnprintf.h: New file.
14578         New module 'c-snprintf'.
14579         * modules/c-snprintf: New file.
14580         * modules/c-snprintf-tests: New file.
14581         * lib/c-snprintf.c: New file.
14582         * lib/c-snprintf.h: New file.
14583         * tests/test-c-snprintf.c: New file.
14584         * tests/test-c-snprintf.sh: New file.
14586         New module 'c-vsnprintf'.
14587         * modules/c-vsnprintf: New file.
14588         * modules/c-vsnprintf-tests: New file.
14589         * lib/c-vsnprintf.c: New file.
14590         * lib/c-vsnprintf.h: New file.
14591         * tests/test-c-vsnprintf.c: New file.
14592         * tests/test-c-vsnprintf.sh: New file.
14594         New module 'c-vasprintf'.
14595         * modules/c-vasprintf: New file.
14596         * modules/c-vasprintf-tests: New file.
14597         * lib/c-asprintf.c: New file.
14598         * lib/c-vasprintf.c: New file.
14599         * lib/c-vasprintf.h: New file.
14600         * tests/test-c-vasprintf.c  +: New file.
14601         * tests/test-c-vasprintf.sh: New file.
14603         New module 'c-xvasprintf'.
14604         * modules/c-xvasprintf: New file.
14605         * modules/c-xvasprintf-tests: New file.
14606         * lib/c-xasprintf.c: New file.
14607         * lib/c-xvasprintf.c: New file.
14608         * lib/c-xvasprintf.h: New file.
14609         * tests/test-c-xvasprintf.c: New file.
14610         * tests/test-c-xvasprintf.sh: New file.
14612 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14614         argp: better 'inline'
14615         Use extern-inline module to declare extern inline functions.
14616         This avoids some bogus warning diagnostics.  Problem discovered
14617         when modifying GNU tar to use the manywarnings module.
14618         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
14619         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
14620         Define based on extern-inline.
14621         * modules/argp (Depends-on): Add extern-inline.
14623 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14625         filemode, sys_stat: Handle MPX files a la AIX.
14626         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
14627         * lib/sys_stat.in.h (S_ISMPX): New macro.
14628         * tests/test-sys_stat.c: Add tests for MPX files.
14630 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
14632         x-to-1: honor $PERL
14633         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
14634         a chance to use his preferred version of Perl.  This is typically
14635         required by Darwin users whose default /usr/bin/perl does not have all
14636         the libraries required by help2man, and who need to use their MacPorts
14637         installation of Perl instead.
14639 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
14641         gnu-web-doc-update: add all the new files, even in new directories
14642         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
14643         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
14644         Use it.
14645         (main): Don't use cvsutils to get the list of unknown files,
14646         just add all the existing files and directories.
14648 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
14650         gnu-web-doc-update: improve --help
14651         * build-aux/gnu-web-doc-update: Move comments into --help.
14653 2012-12-07  Eric Wong  <normalperson@yhbt.net>
14655         mountlist: recognize more "dummy" file systems
14656         * lib/mountlist.c (ME_DUMMY_0):
14657         Add these dummy FS names to the list:
14658         - "debugfs" virtual filesystem for kernel debugging
14659         - "devpts" PTY slave filesystem
14660         - "devtmpfs" device filesystem on top of tmpfs/ramfs
14661         - "fusectl" control filesystem for FUSE
14662         - "mqueue" enumerates POSIX message queues
14663         - "rpc_pipefs" kernel <-> userspace bridge for NFS
14664         - "sysfs" is for exporting kernel objects
14665         - "devfs" device filesystem for Linux 2.4 and FreeBSD
14667 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
14669         extern-inline: avoid incompatibility with Darwin Libc
14670         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
14671         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
14672         Problem reported by Akim Demaille in
14673         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
14675 2012-12-11  Simon Josefsson  <simon@josefsson.org>
14677         gnupload: Work with GnuPG using gpg-agent (for smartcards).
14678         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
14679         let it handle password prompting.
14681 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
14683         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
14684         * lib/canonicalize.c (canonicalize_filename_mode):
14685         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
14686         fetching the current directory.  Don't overrun the beginning of
14687         rpath if there's no slashes after the MS-Windows drive letter.
14689 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
14691         maint.mk: avoid extra forks
14692         * top/maint.mk (_cfg_mk): The GNU make manual documents that
14693         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
14694         So use that instead of "$(shell test -f FILE && echo FILE)".
14696 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14698         vasnprintf: fix ASCII_ONLY typo
14699         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14700         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14701         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14702         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
14703         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
14705 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14707         list, oset, xlist, xoset: fix extern inline issue with C99
14708         This was introduced by my recent changes for 'inline'.
14709         Problem reported for gettext by Daiki Ueno in
14710         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
14711         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
14712         (gl_list_nx_create, gl_list_size, gl_list_node_value)
14713         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
14714         (gl_list_previous_node, gl_list_get_at)
14715         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
14716         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
14717         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
14718         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
14719         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
14720         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
14721         (gl_list_iterator_free, gl_sortedlist_search)
14722         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
14723         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
14724         (gl_sortedlist_remove):
14725         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
14726         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
14727         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
14728         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
14729         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
14730         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
14731         (gl_list_add_at, gl_sortedlist_add):
14732         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
14733         Wrap these extern decls inside "#if 0", because they are implemented
14734         as inline functions, and extern inline is not what's wanted here.
14735         It would simplify these .h files to remove the extern decls entirely,
14736         although a downside would be less-clear separation between
14737         specification and implementation.
14739 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
14741         sys_stat: no 'static inline'
14742         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
14743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
14745         extern-inline: no 'static inline'
14746         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14747         Do not require AC_C_INLINE.
14748         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
14749         'static inline', for older compilers.
14751         snippet/warn-on-use: no 'static inline'
14752         * build-aux/snippet/warn-on-use.h:
14753         Remove unnecessary 'inline' in comment.
14755         rbtree-list, rbtreehash-list: no 'static inline'
14756         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
14757         * lib/gl_anytree_list2.h (node_at):
14758         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
14759         (gl_oset_first, add_nodes_to_buckets):
14760         Now static, not static inline.
14762         regex: no 'static inline'
14763         * lib/regex_internal.c (calc_state_hash):
14764         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
14765         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14766         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
14767         Now static, not static inline.
14768         (inline) [__GNUC__ < 3 && _LIBC]:
14769         Remove macro; no longer needed.
14771         xvasprintf: no 'static inline'
14772         * lib/xvasprintf.c (xstrcat):
14773         Now static, not static inline.
14774         * m4/xvasprintf.m4 (gl_XVASPRINTF):
14775         Do not require AC_C_INLINE.
14777         parse-datetime, parse-duration: no 'static inline'
14778         * lib/parse-datetime.y (to_uchar):
14779         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
14780         (scale_n_add):
14781         Now static, not static inline.
14782         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
14783         * modules/parse-duration (configure.ac):
14784         Do not require AC_C_INLINE.
14786         getaddrinfo: no 'static inline'
14787         * lib/getaddrinfo.c (validate_family):
14788         Now static, not static inline.
14789         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
14790         Do not require AC_C_INLINE.
14792         ftruncate, fts, lstat, openat, raise: no 'static inline'
14793         * lib/ftruncate.c (chsize_nothrow):
14794         * lib/fts.c (opendirat, diropen):
14795         * lib/lstat.c (orig_lstat):
14796         * lib/openat.c (orig_openat):
14797         * lib/raise.c (raise_nothrow):
14798         Now static, not static inline.
14799         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
14800         * m4/fts.m4 (gl_FUNC_FTS_CORE):
14801         * m4/lstat.m4 (gl_PREREQ_LSTAT):
14802         * m4/openat.m4 (gl_PREREQ_OPENAT):
14803         * m4/raise.m4 (gl_PREREQ_RAISE):
14804         Do not require AC_C_INLINE.
14806         fflush, stat: no 'static inline'
14807         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14808         (clear_ungetc_buffer, disable_seek_optimization)
14809         (restore_seek_optimization, update_fpos_cache):
14810         * lib/stat.c (orig_stat):
14811         Now static, not static inline.
14812         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
14813         (update_fpos_cache):
14814         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
14815         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
14816         * m4/stat.m4 (gl_PREREQ_STAT):
14817         Do not require AC_C_INLINE.
14819         error, filevercmp: no 'static inline'
14820         * lib/error.c (is_open, flush_stdout):
14821         * lib/filevercmp.c (order):
14822         Now static, not static inline.
14823         * m4/error.m4 (gl_PREREQ_ERROR):
14824         * modules/filevercmp (configure.ac):
14825         Do not require AC_C_INLINE.
14827         dup, execute, fatal-signal, etc.: no 'static inline'
14828         * lib/dup.c (dup_nothrow):
14829         * lib/execute.c (nonintr_close, nonintr_open):
14830         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
14831         * lib/fopen.c (orig_fopen):
14832         * lib/freadseek.c (freadptrinc):
14833         * lib/freopen.c (orig_freopen):
14834         * lib/fstat.c (orig_fstat, fstat_nothrow):
14835         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
14836         (get_rusage_as_via_iterator):
14837         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
14838         * lib/getdtablesize.c (_setmaxstdio_nothrow):
14839         * lib/isatty.c (_isatty_nothrow):
14840         * lib/open.c (orig_open):
14841         * lib/read.c (read_nothrow):
14842         * lib/sigprocmask.c (signal_nothrow):
14843         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
14844         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
14845         * lib/wait-process.c (unregister_slave_subprocess):
14846         * lib/write.c (write_nothrow):
14847         Now static, not static inline.
14848         * lib/spawn-pipe.c (nonintr_open): Define only if
14849         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
14850         * m4/dup.m4 (gl_PREREQ_DUP):
14851         * m4/execute.m4 (gl_EXECUTE):
14852         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
14853         * m4/fopen.m4 (gl_PREREQ_FOPEN):
14854         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
14855         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
14856         * m4/fstat.m4 (gl_PREREQ_FSTAT):
14857         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
14858         * m4/isatty.m4 (gl_PREREQ_ISATTY):
14859         * m4/open.m4 (gl_PREREQ_OPEN):
14860         * m4/read.m4 (gl_PREREQ_READ):
14861         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
14862         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
14863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
14864         * m4/wait-process.m4 (gl_WAIT_PROCESS):
14865         * m4/write.m4 (gl_PREREQ_WRITE):
14866         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
14867         Do not require AC_C_INLINE.
14869         c-strtod, memcoll, readutmp: no 'static inline'
14870         * lib/c-strtod.c (c_locale):
14871         * lib/memcoll.c (strcoll_loop):
14872         * lib/readutmp.c (desirable_utmp_entry):
14873         Now static, not static inline.
14874         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
14875         * m4/memcoll.m4 (gl_MEMCOLL):
14876         * m4/readutmp.m4 (gl_READUTMP):
14877         Do not require AC_C_INLINE.
14879         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
14880         * lib/arctwo.c (to_uchar):
14881         * lib/md4.c (set_uint32):
14882         * lib/md5.c (set_uint32):
14883         * lib/sha1.c (set_uint32):
14884         * lib/sha256.c (set_uint32):
14885         * lib/sha512.c (set_uint64):
14886         Now static, not static inline.  This is a bit simpler, and doesn't
14887         affect performance with GCC and default optimization.
14888         * m4/arctwo.m4 (gl_ARCTWO):
14889         * m4/md4.m4 (gl_MD4):
14890         * m4/md5.m4 (gl_MD5):
14891         * m4/sha1.m4 (gl_SHA1):
14892         * m4/sha256.m4 (gl_SHA256):
14893         * m4/sha512.m4 (gl_SHA512):
14894         Do not require AC_C_INLINE.
14896         cond, lock, thread: better 'inline'
14897         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
14898         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
14899         New macros.  Use them instead of static inline, for header functions.
14900         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
14901         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
14902         * lib/glthread/lock.c (gl_waitqueue_init)
14903         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
14904         * lib/glthread/thread.c (get_current_thread_handle):
14905         Change 'static inline' to 'inline'.
14906         * lib/glthread/cond.h, lib/glthread/thread.h:
14907         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14908         * m4/cond.m4 (gl_COND):
14909         * m4/lock.m4 (gl_PREREQ_LOCK):
14910         * m4/thread.m4 (gl_THREAD):
14911         Do not require AC_C_INLINE.
14912         * modules/cond, modules/thread (Depends-on): Add extern-inline.
14914         chdir-long, cycle-check, savewd: better 'inline'
14915         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
14916         (find_non_slash):
14917         * lib/cycle-check.c (is_zero_or_power_of_two):
14918         * lib/savewd.c (savewd_delegating):
14919         Change 'static inline' to 'inline'.
14920         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
14921         Replace all remaining uses of 'static inline' with it.
14922         * lib/savewd.h:
14923         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14924         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
14925         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
14926         * m4/savewd.m4 (gl_SAVEWD):
14927         Do not require AC_C_INLINE.
14928         * modules/savewd (Depends-on): Add extern-inline.
14930         base32, base64: no need for 'inline'
14931         * lib/base32.c (to_uchar, get_8, decode_8):
14932         * lib/base64.c (to_uchar, get_4, decode_4):
14933         Change 'static inline' to 'inline'.
14934         * m4/base32.m4 (gl_PREREQ_BASE32):
14935         * m4/base64.m4 (gl_PREREQ_BASE64):
14936         Do not require AC_C_INLINE.
14938         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
14939         * lib/gl_array_oset.c (gl_array_nx_add_at):
14940         (gl_array_remove_at):
14941         * lib/gl_linkedhash_list.c (hash_resize_after_add)
14942         (add_to_bucket, remove_from_bucket):
14943         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
14944         Change 'static inline' to 'static', as it's simpler to omit
14945         'inline' unless there's a significant performance advantage.
14947         list, oset, xlist, xoset, xsublist: simplify via extern inline
14948         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
14949         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
14950         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
14951         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
14952         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
14953         New macro.  Replace all uses of 'static inline' with it.
14954         [HAVE_INLINE]: Implement functions as *_INLINE functions,
14955         instead of as macros FOO that are defined to static inline
14956         functions FOO_inline.
14957         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
14958         * lib/gl_xsublist.c:
14959         Reimplement from scratch, by defining the corresponding *_INLINE
14960         macro and including the corresponding .h file.  This is simpler.
14961         * modules/list, modules/oset, modules/xlist, modules/xoset:
14962         (Files): Remove m4/gl_list.m4.
14963         (configure.ac): Remove gl_LIST.
14964         * m4/gl_list.m4: Remove.
14965         * modules/list, modules/oset, modules/xlist, modules/xoset:
14966         * modules/xsublist:
14967         (Depends-on): Depend on extern-inline, not inline.
14969         xalloc: better 'inline'
14970         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
14971         New macro.  Replace all uses of 'static inline' with it.
14972         (static_inline): Remove.
14973         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
14974         Let 'extern inline' do the work automatically, instead of doing
14975         it by hand.
14976         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
14977         Remove.  All uses removed.
14978         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
14980         gethrxtime: better 'inline'
14981         * lib/xtime.c: New file.
14982         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
14983         * lib/xtime.h (XTIME_INCLUDE):
14984         New macros.  Replace all uses of 'static inline' with them.
14985         * lib/gethrxtime.c (gethrxtime): Define only if
14986         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
14987         this source file is now always compiled, because of the extern inline.
14988         * lib/gethrxtime.h, lib/xtime.h:
14989         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14990         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
14991         if gethrtime works, as they're not needed in that case.
14992         (gl_XTIME): Do not require AC_C_INLINE.
14993         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
14994         compiled now.  Move the check into gl_GETHRXTIME.
14995         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
14996         (Depends-on): Add extern-inline.
14997         (configure.ac): gethrxtime is always compiled now.
14998         (lib_SOURCES): Add gethrxtime.c.
15000         wctype-h: better 'inline'
15001         * lib/wctype-h.c: New file.
15002         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
15003         New macro.  Replace all uses of 'static inline' with it.
15004         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15005         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
15006         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
15007         (Depends-on): Add extern-inline.
15009         unistd: better 'inline'
15010         * lib/unistd.c: New file.
15011         * lib/unistd.in.h (_GL_UNISTD_INLINE):
15012         New macro.  Replace all uses of 'static inline' with it.
15013         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15014         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
15015         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
15016         (Depends-on): Add extern-inline.
15018         sys_socket: better 'inline'
15019         * lib/sys_socket.c: New file.
15020         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
15021         New macro.  Replace all uses of 'static inline' with it.
15022         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
15024         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
15025         (Depends-on): Add extern-inline.
15027         stdio: better 'inline'
15028         * lib/stdio.c: New file.
15029         * lib/stdio.in.h (_GL_STDIO_INLINE):
15030         New macro.  Replace all uses of 'static inline' with it.
15031         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15032         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
15033         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
15034         (Depends-on): Add extern-inline.
15036         sigaction: better 'inline'
15037         * lib/sig-handler.c: New file.
15038         * lib/sig-handler.h (SIG_HANDLER_INLINE):
15039         New macro.  Replace all uses of 'static inline' with it.
15040         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15041         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
15042         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
15043         (Depends-on): Add extern-inline.
15045         selinux-h: better 'inline'
15046         * lib/se-context.c, lib/se-selinux.c: New files.
15047         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
15048         * lib/se-context.in.h (SE_CONTEXT_INLINE):
15049         New macro.  Replace all uses of 'static inline' with it.
15050         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15051         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
15052         New macro.  Replace all uses of 'static inline' with it.
15053         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15054         * modules/selinux-h (Files, lib_SOURCES):
15055         Add lib/se-context.c, lib/se-selinux.c.
15056         (Depends-on): Add extern-inline.
15057         (configure.ac): Do not require AC_C_INLINE.
15059         pthread: better 'inline'
15060         * lib/pthread.c: New file.
15061         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
15062         New macro.  Replace all uses of 'static inline' with it.
15063         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15064         * m4/pthread.m4 (gl_PTHREAD_CHECK):
15065         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
15066         * modules/pthread (Files): Add lib/pthread.c.
15067         (Depends-on): Add extern-inline.
15069         math: better 'inline'
15070         * lib/math.c: New file.
15071         * lib/math.in.h (_GL_MATH_INLINE):
15072         New macro.  Replace all uses of 'static inline' with it.
15073         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15074         * m4/math_h.m4 (gl_MATH_H):
15075         Do not require AC_C_INLINE.
15076         * modules/math (Files, lib_SOURCES):
15077         Add lib/math.c.
15078         (Depends-on): Add extern-inline.
15080         count-one-bits: better 'inline'
15081         * lib/count-one-bits.c: New file.
15082         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
15083         New macro.  Replace all uses of 'static inline' with it.
15084         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15085         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
15086         Do not require AC_C_INLINE.
15087         * modules/count-one-bits (Files, lib_SOURCES):
15088         Add lib/count-one-bits.c.
15089         (Depends-on): Add extern-inline.
15091         count-leading-zeros: better 'inline'
15092         * lib/count-leading-zeros.c: New file.
15093         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
15094         New macro.  Replace all uses of 'static inline' with it.
15095         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15096         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
15097         Do not require AC_C_INLINE.
15098         * modules/count-leading-zeros (Files, lib_SOURCES):
15099         Add lib/count-leading-zeros.c.
15100         (Depends-on): Add extern-inline.
15102         bitrotate: better 'inline'
15103         * lib/bitrotate.c: New file.
15104         * lib/bitrotate.h (BITROTATE_INLINE):
15105         New macros.
15106         Replace all uses of 'static inline' with them.
15107         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15108         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
15109         (Depends-on): Add extern-inline.
15110         (configure.ac): Do not require AC_C_INLINE.
15112 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
15114         maint.mk: avoid gratuitous failure
15115         Reported by Stefano Lattarini in
15116         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
15117         * top/maint.mk (public-submodule-commit): Quote more safely.
15119 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
15121         canonicalize, canonicalize-lgpl: support MS-Windows file names
15122         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
15123         for test cases, which it'd be nice to add at some point.
15124         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
15125         * lib/canonicalize.c (canonicalize_filename_mode):
15126         * lib/canonicalize-lgpl.c (__realpath):
15127         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
15128         slash is at the beginning of the file name.  Use ISSLASH, instead
15129         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
15130         the first character with '/'.  Test for
15131         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
15132         with a drive letter.
15133         * lib/canonicalize.c (SLASHES): New macro.
15134         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
15136 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
15138         fts: introduce FTS_VERBATIM
15139         * lib/fts_.h (FTS_VERBATIM): New bit flag.
15140         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
15141         * lib/fts.c (fts_open): Honor it.
15143 2012-11-09  Pádraig Brady  <P@draigBrady.com>
15145         getlogin-tests: allow errno == ENXIO
15146         * tests/test-getlogin.c (main): Skip tests if getlogin fails
15147         with errno == ENXIO (No controlling tty).
15148         getlogin_r-tests: Likewise. Also allow errno == ENOENT
15149         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
15150         with errno == ENOENT.  This was reported to happen in various
15151         situations on GNU/Linux.
15153 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15155         getlogin-tests: allow errno == ENOENT
15156         * tests/test-getlogin.c (main): Skip tests if getlogin fails
15157         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
15158         when running a test in an Emacs shell buffer.
15160 2012-11-08  Jim Meyering  <jim@meyering.net>
15162         tests/nap.h: avoid warning about unused variable
15163         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
15165         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
15166         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
15167         white space before each of the special-cased file names, to avoid
15168         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
15169         in http://bugs.gnu.org/12830.
15171 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15173         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
15174         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
15175         fails with errno == EBADF when fd is opened with O_PATH.
15176         Reported by Jim Meyering in
15177         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
15178         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
15179         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
15181 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15183         test-utimens: speed up by taking shorter naps
15184         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
15185         New functions.
15186         (nap): Use them, to do a better job of guessing the delay.
15187         On Fedora 17 with ext4 atop md atop hard disks, this made
15188         test-utimens run 10x faster, because the test napped for
15189         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
15190         <http://bugs.gnu.org/12820#11>.
15192 2012-11-07  Jim Meyering  <jim@meyering.net>
15194         mountlist.c: fix a compilation failure
15195         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
15196         I introduced while transforming commit v0.0-7683-g613bcb6
15198 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15200         errno: port to LynxOS 178 2.2.2
15201         Problem reported by Joel Brobecker in
15202         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
15203         * doc/posix-headers/errno.texi (errno.h): Document this.
15204         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
15205         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
15206         Supply a string for EILSEQ.
15207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
15209 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15211         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
15212         Linux kernel 2.6.39 introduced O_PATH (see
15213         <http://lwn.net/Articles/433854/>) and this is a better fallback
15214         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
15215         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
15216         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
15217         * lib/fcntl.in.h (O_ACCMODE):
15218         * tests/test-fcntl-h.c (main):
15219         Do not reject O_ACCMODE merely because it has more than the
15220         minimal number of bits, as POSIX allows extensions here.
15222 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
15224         mountlist: do not classify a bind-mounted dir entry as "dummy"
15225         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
15226         the "none"-testing clause.
15227         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
15228         exception for bind-mounted directories.
15230 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
15232         quote: provide a means to escape strings with nul characters
15233         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
15234         (quote, quote_n): Rename formal arguments for consistency with
15235         quotearg.
15237 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15239         test-raise: don't assume 199 is an invalid signal
15240         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
15242         sh-quote-tests: port to Solaris 9
15243         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
15244         Problem reported by Dagobert Michelsen in
15245         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
15247 2012-10-28  Jim Meyering  <jim@meyering.net>
15249         maint.mk: rename a new configurable variable
15250         * top/maint.mk (_gl_translatable_string_re): Rename from
15251         translation-markers: _gl_ prefix to insulate from user Makefile code,
15252         and the _re suffix to inform that it's a regular expression.
15254 2012-10-26  Eric Blake  <eblake@redhat.com>
15256         maint.mk: let packages tweak sc_po_check pattern
15257         * top/maint.mk (sc_po_check): Add translation-markers, to allow
15258         finding files with other translation markers.
15260 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15262         euidaccess: speed up 'configure' on GNU hosts
15263         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
15264         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
15265         it's needed only in this case.  Use AC_CHECK_DECLS, not
15266         AC_CHECK_DECLS_ONCE.
15267         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
15268         or AC_REQUIRE for AC_FUNC_GETGROUPS.
15270         * lib/regexec.c (re_search_internal): Fix grammar in comment.
15272 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15274         fchmodat, fchownat, fstatat: port to non-inlining compilers
15275         Problem reported for FreeBSD 9 by Jim Meyering in
15276         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
15277         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
15278         New files, which define FCHMODAT_INLINE etc.
15279         * lib/fchmodat.c (FCHMODAT_INLINE):
15280         * lib/fchownat.c (FCHOWNAT_INLINE):
15281         * lib/fstatat.c (FSTATAT_INLINE):
15282         Remove, as chmodat.c etc. now do this.
15283         * modules/fchmodat (Files): Add lib/chmodat.c.
15284         * modules/fchownat (Files): Add lib/chownat.c.
15285         * modules/fstatat (Files): Add lib/statat.c.
15287 2012-10-15  Jim Meyering  <jim@meyering.net>
15289         fchmodat.c, fchownat.c: compile-impeding typos
15290         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
15291         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
15292         Introduced in commit v0.0-7636-gd202279.
15294 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15296         fcntl-h: support GNU flags like O_IGNORE_CTTY
15297         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
15298         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
15299         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
15300         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
15301         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
15302         Define to 0 if not already defined.
15303         * tests/test-fcntl-h.c: Test these new flags.
15305 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15307         faccessat, etc.: support AT_FDCWD-only use
15308         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
15309         this function only if its first argument is AT_FDCWD.
15310         Emacs wants faccessat for AT_EACCESS but not for any first-arg
15311         values other than AT_FDCWD, so it doesn't want all the openat
15312         machinery with fchdir etc.
15313         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
15314         * modules/fstatat, modules/mkdirat, modules/openat (Files):
15315         * modules/unlinkat (Files):
15316         Remove lib/openat-priv.h, as at-internal supplies this file.
15317         Removing this file here allows us to support programs like Emacs
15318         that avoid at-internal.
15320         faccessat: speed up 'configure' on mainstream hosts
15321         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
15322         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
15323         since it's only on unusual platforms that we need to check for
15324         'access', and it's better not to slow 'configure' down on all
15325         platforms.
15327         faccessat: port to Solaris 10
15328         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
15329         Needed on Solaris 10, which doesn't have AT_EACCESS,
15330         so we need the Gnulib fcntl.h, which defines it.
15332 2012-10-14  Pádraig Brady  <P@draigBrady.com>
15333         canonicalize: fix C89 compilation
15334         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
15335         declarations so C89 is supported.  Also remove the comment
15336         referencing memorty allocation as the suggested feature could
15337         not be implemented as suggested.
15338         Reported by Michael Goffioul.
15340 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15342         group-member: omit unnecessary dependencies
15343         This is for Emacs, which has its own allocator and where we
15344         don't want to use xalloc.
15345         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
15346         since we no longer use xmalloc.  Do not include stdbool.h, since
15347         the changes below happen to remove the only use of bool.
15348         (GROUPBUF_SIZE): New constant.
15349         (struct group_info): Remove n_groups member.  Add groupbuf member.
15350         This lets us get the groups without using malloc, usually.
15351         (free_group_info, get_group_info): Adjust to this.
15352         (get_group_info): Return the number of groups found, or -1 on error.
15353         Use plain malloc not xmalloc, and treat its failure as if there
15354         are no groups, as the user already loses in case of error.
15355         (group_member): Simplify, based on changes to get_group_info.
15356         * modules/group-member (Depends-on): Remove dependencies on
15357         xalloc and stdbool.  Add dependency on xalloc-oversized.
15359 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
15361         gethrxtime: port to C++
15362         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
15364 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15366         ptsname: fix macro-name typo
15367         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
15369 2012-10-03  Simon Josefsson  <simon@josefsson.org>
15371         inttostr: Relax license.
15372         * modules/inttostr (License): Change from LGPL to LGPLv2+.
15374 2012-10-03  Eric Blake  <eblake@redhat.com>
15376         ptsname_r: support ptys returned by FreeBSD posix_openpt
15377         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
15378         lives in /dev/pts/.
15380 2012-10-02  Eric Blake  <eblake@redhat.com>
15382         pselect: reject invalid file descriptors
15383         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
15384         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
15385         * modules/pselect (Depends-on): Add dup2.
15386         * doc/posix-functions/pselect.texi (pselect): Document this.
15388         select: reject invalid file descriptors
15389         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
15390         * lib/select.c (rpl_select) [!win32]: Work around it.
15391         * modules/select (Depends-on): Add dup2.
15392         * doc/posix-functions/select.texi (select): Document this.
15394         select: enhance test
15395         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
15396         New functions.
15397         (test_function): Enhance test.
15398         (do_select_bad_fd): Avoid any stale errno values.
15400         ptsname: reject invalid file descriptors
15401         http://www.austingroupbugs.net/view.php?id=503
15402         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
15403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
15404         * modules/stdlib (Makefile.am): Replace witness.
15405         * lib/stdlib.in.h (ptsname): Allow for replacement.
15406         * modules/ptsname (configure.ac): Trigger replacement.
15407         * doc/posix-functions/ptsname.texi (ptsname): Document this.
15409 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
15411         hash-pjw-bare: new module
15412         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
15413         * lib/hash-pjw-bare.h: Likewise.
15414         * modules/hash-pjw-bare: New file.
15415         * MODULES.html.sh (Misc): Add it.
15417 2012-10-02  Eric Blake  <eblake@redhat.com>
15419         manywarnings: cater to more gcc infelicities
15420         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
15421         -Wuninitialized without -O.
15423 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
15425         select, poll tests: Make setsockopt invocation effective.
15426         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
15427         the bind() call.
15428         * tests/test-select.h (open_server_socket): Likewise.
15430 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15432         sockets, sys_stat: restore AC_C_INLINE
15433         This undoes the 2012-09-22 patch.
15434         * m4/sockets.m4 (gl_SOCKETS):
15435         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
15436         Restore AC_C_INLINE, since MSVC requires __inline or _inline
15437         and does not support plain 'inline'.  Reported by Bruno Haible in
15438         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
15440 2012-09-30  Bruno Haible  <bruno@clisp.org>
15442         localeconv tests: Avoid test failure on OpenIndiana.
15443         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
15444         skip the 'grouping' and 'mon_grouping' tests.
15445         Reported by Jim Meyering.
15447 2012-09-30  Bruno Haible  <bruno@clisp.org>
15449         havelib: Follow libtool developments.
15450         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
15451         Suggested by Simon Josefsson.
15453 2012-09-29  Jim Meyering  <meyering@redhat.com>
15455         fstatat.c: fix a compile-impeding typo
15456         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
15457         Introduced in commit v0.0-7636-gd202279.
15458         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
15460 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
15462         extern-inline: provide a -Wundef safe config.h
15463         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
15464         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
15465         to produce a -Wundef warning free config.h.
15467 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15469         hash-pjw: relax license to LGPLv2+
15470         * modules/hash-pjw (License): Relax, with consent of author.
15472 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
15474         maint.mk: fix strict vs. lazy variable issues with RELEASE
15475         * top/maint.mk (_equal): New function.
15476         (member_check): Strip the result to avoid spurious spaces.
15477         (url_dir_list): Do not use ifeq, which is strict, as it will
15478         require RELEASE_TYPE to be defined.
15479         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
15480         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
15481         (announcement_Cc_alpha,announcement_mail_headers_alpha)
15482         (announcement_Cc_beta,announcement_mail_headers_beta)
15483         (announcement_Cc_stable,announcement_mail_headers_stable): these.
15484         (release): Do not depend on $(release-type), as it forces its
15485         evaluation.  Bounce to it.
15487 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
15489         maint.mk: formatting changes
15490         * top/maint.mk: Indent bodies of if's.
15492 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
15494         maint.mk: factor the validation of RELEASE_TYPE
15495         With help from Jim Meyering.
15496         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
15497         * top/maint.mk (_empty, _sp): Move their definition earlier.
15498         (member-check, release-type): New.
15499         Use the latter instead of $(RELEASE_TYPE).
15500         Remove now useless local checks.
15502 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
15504         maint.mk: provide "make upload" to ease uploading
15505         See
15506         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
15507         Do not depend simply on the current $(VERSION), as there may have been
15508         new commits since the tarball generation.  Rather, rely on $(RELEASE),
15509         as "make release-commit" already does.
15511         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
15512         "make TYPE".
15514         * top/maint.mk (upload_command, upload, release): New.
15515         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
15516         (VERSION): first word of $(RELEASE) is always right.
15517         (emit_upload_commands): Adjust.
15518         * top/README-release: Update.
15520 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
15522         maint.mk: silent rules
15523         With help from Stefano Lattarini.
15524         * top/maint.mk (writable-files): Use $(AM_V_GEN).
15525         (announcement): Use $(AM_V_at).
15527 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
15529         localename: port gl_locale_name_thread_unsafe to FreeBSD
15530         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
15531         and use the simpler FreeBSD implementation on Mac OS X as well.
15532         Original idea suggested by Ed Maste in
15533         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
15535 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15537         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
15538         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
15539         * lib/mbuiter.c, lib/xsize.c: New files.
15540         * lib/binary-io.h (BINARY_IO_INLINE):
15541         * lib/eealloc.h (EEALLOC_INLINE):
15542         * lib/mbfile.h (MBFILE_INLINE):
15543         * lib/mbiter.h (MBITER_INLINE):
15544         * lib/mbuiter.h (MBUITER_INLINE):
15545         * lib/xsize.h (XSIZE_INLINE):
15546         New macros.
15547         Replace all uses of 'static inline' with them.
15548         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15549         * m4/eealloc.m4 (gl_EEALLOC):
15550         * m4/mbfile.m4 (gl_MBFILE):
15551         * m4/mbiter.m4 (gl_MBITER):
15552         * m4/xsize.m4 (gl_XSIZE):
15553         Do not require AC_C_INLINE.
15554         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
15555         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
15556         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
15557         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
15558         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
15559         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
15560         * modules/binary-io, modules/eealloc, modules/mbfile:
15561         * modules/mbiter, modules/mbuiter:
15562         (Depends-on): Add extern-inline.
15564         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
15565         * lib/pipe-filter-aux.c: New file.
15566         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
15567         Replace all uses of 'static inline' with it.
15568         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15569         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
15570         (filter_retcode): No real need for inline here.
15571         * modules/pipe-filter-gi, modules/pipe-filter-ii:
15572         (Files): Add lib/pipe-filter-aux.c.
15573         (Depends-on): Add extern-inline.
15574         (configure.ac): Do not require AC_C_INLINE.
15575         (lib_SOURCES): Add pipe-filter-aux.c.
15577         fdutimensat: omit unnecessary AC_C_INLINE
15578         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
15580         fchmodat, fchownat, fstatat: use extern-inline
15581         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
15582         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
15583         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
15584         New macros.
15585         * lib/openat.h:
15586         Replace all uses of 'static inline' with them.
15587         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15588         * modules/fchmodat, modules/fchownat, modules/fstatat:
15589         * modules/openat-h:
15590         (Depends-on):
15591         Add extern-inline.
15592         (configure.ac): Remove AC_C_INLINE.
15594         acl, mbchar, priv-set: use extern-inline
15595         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
15596         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
15597         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
15598         New macros.
15599         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
15600         Replace all uses of 'static inline' with it.
15601         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15602         * m4/acl.m4 (gl_FUNC_ACL):
15603         * m4/mbchar.m4 (gl_MBCHAR):
15604         * m4/priv-set.m4 (gl_PRIV_SET):
15605         Remove AC_C_INLINE, since 'inline' is no longer used directly.
15606         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
15607         Add extern-inline.
15609         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
15610         * m4/sockets.m4 (gl_SOCKETS):
15611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
15612         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
15613         environments where it's already guaranteed to work, so we needn't
15614         check for it at 'configure'-time.
15616         tls-tests: omit unnecessary 'inline'
15617         * tests/test-tls.c (perhaps_yield): No longer inline.
15618         Simplicity and portability trump efficiency in test cases.
15620         utimens-tests: avoid unnecessary 'inline'
15621         * modules/fdutimensat-tests (configure.ac):
15622         * modules/futimens-tests (configure.ac):
15623         * modules/utimens-tests (configure.ac):
15624         * modules/utimensat-tests (configure.ac):
15625         Remove AC_C_INLINE.
15626         * tests/test-utimens-common.h (ctime_compare):
15627         No longer inline.  Simplicity and portability trump efficiency here.
15629         misc: don't limit commentary to inline functions
15630         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
15631         * lib/xalloc-oversized.h, lib/xsize.h:
15632         Contrast macros to functions in general, not just to inline functions,
15633         when the commentary does not apply only to inline functions.
15635 2012-09-20  Jim Meyering  <meyering@redhat.com>
15637         non-recursive-gnulib-prefix-hack: new module
15638         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
15639         the file that originated in Bison.
15640         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
15641         largely copied from a snippet that resided in bison's configure.ac.
15642         * modules/non-recursive-gnulib-prefix-hack: New file.
15643         * MODULES.html.sh (Support for maintaining and releasing projects):
15644         Add it.
15646 2012-09-18  Jim Meyering  <meyering@redhat.com>
15648         maint.mk: generalize _gl_tight_scope for non-recursive make
15649         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
15650         that *.h would describe additional .h files in the directory
15651         specified by $(_gl_TS_dir).  I.e., add this...
15652         (_gl_TS_other_headers): New variable.
15654         maint.mk: exempt trailing blanks found in "binary" files
15655         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
15656         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
15657         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15659 2012-09-17  Jim Meyering  <meyering@redhat.com>
15661         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
15662         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
15663         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
15664         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15666 2012-09-17  Jim Meyering  <meyering@redhat.com>
15668         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
15669         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
15670         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
15671         It is not in the same category as "exit (0)" or "exit (1)", and
15672         besides, I know of no symbolic name for that 77.  Reported by
15673         Richard W.M. Jones in
15674         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15676 2012-09-17  Jim Meyering  <meyering@redhat.com>
15678         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
15679         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
15680         all uses of #define, not just those that start in column 1.
15681         Richard W.M. Jones reported a false positive in
15682         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15684 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15686         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
15687         * lib/localcharset.c (locale_charset) [DARWIN7]:
15688         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
15689         as these two values are incompatible.  Problem reported by Max Horn.
15690         For more discussion, please see
15691         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
15693         doc: document sticky-EOF issue
15694         * doc/posix-functions/fgetc.texi (fgetc):
15695         * doc/posix-functions/fgets.texi (fgets):
15696         * doc/posix-functions/fread.texi (fread):
15697         * doc/posix-functions/fscanf.texi (fscanf):
15698         * doc/posix-functions/getc.texi (getc):
15699         * doc/posix-functions/getchar.texi (getchar):
15700         * doc/posix-functions/scanf.texi (scanf):
15701         Mention that glibc and default Solaris do not conform to
15702         C99 and POSIX-2001 or later, with respect to how getchar
15703         etc. behave when feof reports nonzero.
15705 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15707         poll: fix poll(0, NULL, msec)
15708         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
15709         but nfd is 0.  In that case poll should behave like select.
15711 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15712             Paolo Bonzini  <bonzini@gnu.org>
15714         poll: fix for systems that can't recv() on a non-socket
15715         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
15716         is readable.  In this case POLLHUP will not be supported.
15717         * doc/posix-functions/poll.texi: Document this.
15719 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
15721         poll/select: document portability problems not fixed by Gnulib.
15722         * doc/posix-functions/poll.texi: poll does not work well on
15723         pipes under Windows.  It has the same limitations as select on
15724         BeOS.
15725         * doc/posix-functions/select.texi: select does not work well
15726         on pipes under Windows.
15728 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15730         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
15731         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
15732         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
15733         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
15735 2012-09-06  Eric Blake  <eblake@redhat.com>
15737         net_if: give more details about the bug being fixed
15738         * doc/posix-headers/net_if.texi: Add clarification.
15740 2012-09-05  Eric Blake  <eblake@redhat.com>
15742         net_if: new module
15743         * modules/net_if: New module, borrowing ideas from netinet_in.
15744         * m4/net_if_h.m4: New file.
15745         * lib/net_if.in.h: Likewise.
15746         * doc/posix-headers/net_if.texi (net/if.h): Document it.
15747         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15748         * tests/test-net_if.c: Make function checks conditional.
15749         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
15751 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15753         readutmp: fix non-portable UT_PID use
15754         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
15755         Use `UT_PID (u) > 0' as absolute condition.
15757 2012-09-04  Jim Meyering  <meyering@redhat.com>
15759         fts: reduce two or more trailing spaces to just one, usually
15760         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
15761         or more slashes, trim all but the final one.  But if a name consists
15762         solely of two slashes, don't modify it.  If it consists solely of
15763         three or more slashes, strip all but one.
15765         This is part of the solution to a minor problem with rm:
15766         it would print a bogus ELOOP diagnostic when failing to remove
15767         the slash-decorated name of a symlink-to-directory:
15769             $ mkdir d && ln -s d s && env rm -r s/
15770             rm: cannot remove 's': Too many levels of symbolic links
15772         With the change below and a trivial don't-trim-trailing-slashes
15773         adjustment to remove.c, it does this:
15775             $ env rm -r s/
15776             rm: cannot remove 's/': Not a directory
15778         Improved by: Eric Blake
15780         fts: when there is no risk of overlap, use memcpy, not memmove
15781         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
15783 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15785         stdbool: be more compatible with mixed C/C++ compiles
15786         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
15787         Define to bool, true, false, respectively, as GCC's builtin
15788         stdbool.h does.  Problem reported by Michael Goffioul in
15789         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
15791 2012-08-28  Jim Meyering  <meyering@redhat.com>
15793         revert last change: it was not needed
15794         * tests/test-vc-list-files-git.sh: There's already a test for
15795         a working git, just below.
15797 2012-08-28  Jim Meyering  <meyering@redhat.com>
15799         tests: test-vc-list-files-git.sh: skip if git is not available
15800         * tests/test-vc-list-files-git.sh: Skip this test when git is
15801         not available.
15803 2012-08-26  Bruno Haible  <bruno@clisp.org>
15805         gnulib-tool: Remove no-op option --no-changelog.
15806         * gnulib-tool (func_usage): Don't mention --no-changelog.
15807         (do_changelog): Remove variable.
15808         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15810 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15812         doc: remove fdl-1.2.texi
15813         It is no longer used or maintained, and its use of @acronym
15814         is problematic.  See the thread containing
15815         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
15816         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
15817         * doc/old-licenses/fdl-1.2.texi: Remove.
15819         execinfo: port to FreeBSD
15820         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
15821         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
15822         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
15823         * modules/execinfo (Link): Add $(LIB_EXECINFO).
15825 2012-08-23  Jim Meyering  <meyering@redhat.com>
15827         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
15828         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
15829         to placate gcc's -Wold-style-declaration.
15831 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15833         doc: do not use @acronym
15834         * doc/inet_ntoa.texi (inet_ntoa):
15835         * doc/parse-datetime.texi (Seconds since the Epoch)
15836         (Specifying time zone rules):
15837         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
15838         Don't use @acronym.  Problem reported by John Darlington in
15839         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
15841 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15843         stdnoreturn: port to newer GCCs
15844         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
15845         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
15846         Problem reported by Jim Meyering in
15847         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
15848         Also, rename the 'test' function to a void a clash with the
15849         already-supplied 'main' function; this fixes a bug that incorrectly
15850         rejected GCC 4.7.1's <stdnoreturn.h>.
15851         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
15852         Document GCC problem.
15854 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
15856         pipe-filter: fix comment typo
15857         * lib/pipe-filter.h: Mention correct function.
15859 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
15861         execinfo: new module
15862         This is for Emacs.  Currently, it provides a no-effect stub
15863         on all platforms where it does not already work.
15864         It already works on glibc-based systems, and on Solaris 11.
15865         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
15866         New files.
15867         * doc/glibc-headers/execinfo.texi (execinfo.h):
15868         * MODULES.html.sh (Misc): Document it.
15870 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15872         extern-inline: support old GCC 'inline'
15873         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
15874         if available.  This applies to GCC versions 2.7 through 4.2, or
15875         when newer GCC is using -fgnu89-inline.  The goal is to address
15876         some of the performance issues mentioned by Bruno Haible in
15877         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
15879 2012-08-20  Eric Blake  <eblake@redhat.com>
15881         maint.mk: avoid redundant file name in message
15882         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
15883         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
15884         (sc_makefile_path_separator_check): Remove bogus $(ME).
15886 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
15888         timer-time: fix link order when static linking on glibc
15889         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
15890         _after_ -lrt so that it's significant.
15892 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15894         timespec: omit unnecessary AC_C_INLINE
15895         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
15897         stat-time: omit unnecessary AC_C_INLINE
15898         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15899         Do not require AC_C_INLINE.
15901         ignore-value: omit unnecessary AC_C_INLINE
15902         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
15904         sys_select: avoid 'static inline'
15905         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
15907         mktime: avoid 'static inline'
15908         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
15909         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
15911 2012-08-19  Bruno Haible  <bruno@clisp.org>
15913         gnulib-tool: Improve coding style.
15914         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
15915         func_emit_lib_Makefile_am.
15916         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15918 2012-08-19  Bruno Haible  <bruno@clisp.org>
15920         gnulib-tool: Fix indentation.
15921         * gnulib-tool (func_import): Fix indentation.
15923 2012-08-19  Bruno Haible  <bruno@clisp.org>
15925         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
15926         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
15927         on the list of removed files.
15929 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15931         test-parse-datetime: avoid glibc leap-second glitch
15932         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
15933         with the 2012 rules.  Problem reported by Bruce Dubbs in
15934         <http://bugs.gnu.org/12206>.
15936 2012-08-14  Bruno Haible  <bruno@clisp.org>
15938         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
15939         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
15940         from argument.
15941         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15943 2012-08-14  Eric Blake  <eblake@redhat.com>
15945         ldexp: relax license
15946         * modules/ldexp (License): Trivial relax, since the module only
15947         provides a permissively licensed m4 file.
15949 2012-08-13  Bruno Haible  <bruno@clisp.org>
15951         gnulib-tool: Fix persistence of --witness-c-macro option.
15952         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
15953         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15955 2012-08-11  Eric Blake  <eblake@redhat.com>
15957         count-leading-zeros: use a lookup table on non-gcc compilers
15958         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
15959         alternate implementation, suggested by Jim Meyering.
15961 2012-08-10  Eric Blake  <eblake@redhat.com>
15963         count-leading-zeros: new module
15964         * modules/count-leading-zeros: New module.
15965         * m4/count-leading-zeros.m4: New file.
15966         * lib/count-leading-zeros.h: Likewise.
15967         * modules/count-leading-zeros-tests: New test.
15968         * tests/test-count-leading-zeros.c: New file.
15969         * MODULES.html.sh (Integer arithmetic functions): Document it.
15971 2012-08-07  Simon Josefsson  <simon@josefsson.org>
15972             Jim Meyering  <meyering@redhat.com>
15974         maintainer-makefile: Fix syntax error with dash.
15975         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
15976         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
15978 2012-08-05  Jim Meyering  <meyering@redhat.com>
15980         extern-inline: also ignore -Wmissing-declarations
15981         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
15982         required with gcc-4.8.0-to-be.
15984         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
15985         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
15986         for /error ?([^,]*)/.  This avoids false-positives for strings like
15987         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
15989 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
15991         gnumakefile: better interaction with Automake-NG
15992         * modules/gnumakefile [Makefile.am]: The makefiles generated by
15993         Automake-NG always contain a definition of VPATH, even in non-VPATH
15994         builds (its value being simply '.' in that case).  So, in the
15995         'clean-GNUmakefile' rule, to determine whether running under a
15996         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
15997         '$(VPATH)' expands to the empty string.
15999 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
16001         base64: Use extern C scope in header file, for C++.
16002         * lib/base64.h: Add C++ namespace protection.
16004 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
16006         stat-time, timespec, u64: support naive out-of-dir builds
16007         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
16008         Use '#include "foo.h"', not '#include <foo.h>', when including
16009         one's own interface.  This works better when configuring with
16010         out-of-directory builds, since packages need not add an
16011         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
16013 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
16015         utimens: use extern-inline
16016         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
16017         * lib/utimens.h: Add copyright notice, since this is now large enough
16018         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16019         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
16020         * modules/utimens (Depends-on): Add extern-inline.
16022         u64: use extern-inline
16023         * lib/u64.c: New file.
16024         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16025         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
16026         * modules/u64 (Files): Add lib/u64.c.
16027         (Depends-on): Add extern-inline.
16028         (configure.ac): No need to require AC_C_INLINE, since extern-inline
16029         does that now.
16030         (lib_SOURCES): Add u64.c.
16032         timespec: use extern-inline
16033         * lib/timespec.c: New file.
16034         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16035         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
16036         * modules/timespec (Files): Add lib/timespec.c.
16037         (Depends-on): Add extern-inline.
16038         (lib_SOURCES): Add timespec.c.
16040         stat-time: use extern-inline
16041         * lib/stat-time.c: New file.
16042         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16043         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
16044         * modules/stat-time (Files): Add lib/stat-time.c.
16045         (Depends-on): Add extern-inline.
16046         (lib_SOURCES): Add stat-time.c.
16048         extern-inline: new module
16049         * modules/extern-inline, m4/extern-inline.m4: New files.
16050         This is for better support of 'extern inline' a la ISO C99,
16051         with a portable alternative on compilers that do not support
16052         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
16053         of the Emacs executable, when compiled with debugging disabled,
16054         which is a typical way that Emacs is built while developing.
16056 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
16058         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
16059         * build-aux/do-release-commit-and-tag: Move variable definitions
16060         together.
16061         ($branch): Instead of defaulting to "master", default to the current
16062         branch (as gnu-web-doc-update does).
16063         (help): Display the current values of the option arguments.
16064         * top/maint.mk (release-commit): New.
16065         * top/README-release: Simplify the corresponding step.
16067 2012-07-30  Eric Blake  <eblake@redhat.com>
16069         passfd: fix comment on recvfd
16070         * lib/passfd.c (recvfd): Fix comment.
16071         Reported by Jann Horn <jannhorn@googlemail.com>.
16073 2012-07-30  Jim Meyering  <meyering@redhat.com>
16075         maint.mk: avoid a sub-shell
16076         * top/maint.mk (release-prep): Remove unneeded sub-shell.
16078 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16080         maint.mk: use silent-rules support from Automake
16081         * top/maint.mk (news-check, vc-diff-check, announcement)
16082         (no-submodule-changes, alpha beta stable, release-prep)
16083         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
16085 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16087         maint.mk: provide a web-manual-update target
16088         * top/maint.mk: here.
16089         * top/README-release: Use it to simplify the web manual update step.
16091 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16093         README-release: shorten the circuit to post a news
16094         * top/README-release: Point directly to the news submission form.
16096 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16098         gnu-web-doc-update: fix --help
16099         * build-aux/gnu-web-doc-update: The information "top level" was written
16100         twice.
16102 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16104         maint.mk: absolute VPATH issue
16105         * top/maint.mk (release-prep): Help Git find .git/.
16106         From Jim Meyering.
16108 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16110         gitlog-to-changelog: fix previous change
16111         * build-aux/gitlog-to-changelog: Fix condition.
16112         Add missing ";".
16114 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16116         gitlog-to-changelog: don't expect .git to be in $srcdir
16117         Reported by Bruno Haible.
16118         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
16119         * build-aux/gitlog-to-changelog (&git_dir_option): New.
16120         Use it.
16122 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16124         maint.mk: absolute VPATH build fix
16125         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
16126         $(srcdir) is not a parent of $(builddir).
16128 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
16130         clean-temp: Fix memory leak.
16131         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
16132         'files' members of tmpdir.
16134 2012-07-27  Jim Meyering  <meyering@redhat.com>
16136         maint.mk: new rule: refresh-gnulib-patches
16137         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
16138         Use this rule to refresh them.
16139         * top/maint.mk (refresh-gnulib-patches): New rule.
16141 2012-07-24  Bruno Haible  <bruno@clisp.org>
16143         gnulib-tool: Fix handling of inctests variable.
16144         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
16145         Reported by Nick Bowler <nbowler@elliptictech.com>.
16147 2012-07-22  Bruno Haible  <bruno@clisp.org>
16149         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
16150         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
16151         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
16152         Remove exemption for getpass.h.
16153         Suggested by Eric Blake.
16155 2012-07-20  Eric Blake  <eblake@redhat.com>
16157         verify: document conflict with -Wnested-externs
16158         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
16160         maint.mk: forbid exit(-1)
16161         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
16163 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
16165         fsusage: port back to Solaris
16166         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
16167         error (fsd not declared) on Solaris 10.  Reported privately by
16168         Andrew Borodin.
16170 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
16172         gnu-web-doc-update: fix error messages
16173         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
16175         gnu-web-doc-update: check the requirements.
16176         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
16177         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
16178         * build-aux/bootstrap (find_tool): Comment change.
16180 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
16182         maint.mk: minor simplication.
16183         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
16184         for default values.
16186 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
16188         gitlog-to-changelog: VPATH build issues
16189         If builddir is not a subdirectory of srcdir, running git from it will
16190         fail.
16191         * build-aux/gitlog-to-changelog (--srcdir): New option.
16193 2012-07-15  Bruno Haible  <bruno@clisp.org>
16195         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
16196         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
16197         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
16198         Remove exemption for fpending.h.
16199         Suggested by Eric Blake.
16201 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16203         pthread_sigmask: fix bug on FreeBSD 9
16204         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
16205         Include string.h.
16206         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
16207         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
16208         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
16209         but pthread_sigmask (1729, NULL, NULL) returns zero.
16210         See <http://bugs.gnu.org/11884>.
16211         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
16212         by inspecting whether the main call changed the old mask.
16214 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
16216         README-release: make it more legible
16217         * top/README-release: Improve typography slightly.
16219 2012-07-15  Jim Meyering  <meyering@redhat.com>
16221         maint: require that each sc_... command start with "@"
16222         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
16223         "make sc_maint" helps us avoid this nit.
16225 2012-07-15  Jim Meyering  <meyering@redhat.com>
16227         maint.mk: add leading "@" to quiet new "make syntax-check" rule
16228         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
16230 2012-07-13  Eric Blake  <eblake@redhat.com>
16232         maint.mk: new syntax check for HAVE_DECL checks
16233         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
16234         * cfg.mk
16235         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
16236         Exempt some false positives.
16237         Based on a report by Karel Zak.
16239         argp: make HAVE_DECL usage consistent
16240         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
16241         macros, not whether they are defined.
16242         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
16243         convention with other declaration checks.
16244         Reported by Karel Zak, with suggestions from Paul Eggert.
16246         stat-time: relax license to LGPLv2+
16247         * modules/stat-time (License): Relax, with consent of all authors.
16249         strndup: fix m4 usage error
16250         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
16251         defined, to either 0 or 1.
16252         Reported by Karel Zak.
16254 2012-07-11  Jim Meyering  <meyering@redhat.com>
16256         maint: enable the sc_avoid_if_before_free syntax-check rule
16257         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
16258         (if_before_free_offenders_): Define.
16259         (if_before_free_basename_re_): Define.
16260         Exempt current files with useless if-before-free.
16262 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16264         gettext: do not assume '#define ... defined ...' behavior
16265         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
16266         Do not use '#define FOO ... defined BAR ...', as the C standard says
16267         it's not portable to expect that this works after macro expansion.
16268         Problem reported for gzip by Steven M. Schweda in
16269         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
16271 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
16273         getloadavg: clean out old Emacs and Autoconf cruft
16274         See Glenn Morris in <http://bugs.gnu.org/11905>.
16275         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
16276         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
16277         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
16278         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
16280 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
16282         bootstrap: let warn be like tests/init.sh's warn_
16283         Reported by Jim Meyering.
16284         * build-aux/bootstrap (warn): Remove, replaced by...
16285         (warnf_, warn_): these.
16286         Adjust callers.
16287         Shorten messages that no longer fit in 80 columns.
16289 2012-07-09  Bruno Haible  <bruno@clisp.org>
16291         getopt: Simplify after Emacs changed.
16292         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
16293         (gl_GETOPT_IFELSE): Remove macro.
16295 2012-07-09  Jim Meyering  <meyering@redhat.com>
16297         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
16298         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
16300         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
16301         Bugs in both of those conspired to make the
16302         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
16303         _sc_search_regexp's handling of non-empty $in_files would filter
16304         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
16305         choice of in_files value meant there would be no match in most
16306         projects, due to the presence of two or more Makefile.in files.
16307         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
16308         Fix a bug in how a non-empty $$in_files was processed:
16309         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
16310         in spite of the name, it's a regexp, not a list of file names.
16312 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16314         getloadavg, getopt: fix commentary re configure.in
16315         Autoconf is deprecating the name 'configure.in', so change it to
16316         to the new name 'configure.ac' in a couple of places.
16317         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
16318         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
16319         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
16320         Emacs has renamed it to configure.ac, and it no longer refers
16321         to these macros anyway.
16323         timespec: mark functions with const attributes
16324         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
16325         Mark with _GL_ATTRIBUTE_CONST.
16327 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
16329         canonicalize[-lgpl]: handle "guessing" values when cross-building
16330         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16331         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
16332         matches "*yes" instead of just "yes".  Regression introduced in commit
16333         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
16335 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
16336             Bruno Haible  <bruno@clisp.org>
16338         canonicalize: make the right guess when cross-compiling to GNU
16339         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
16340         determine whether cross-compiling to glibc systems, so as to
16341         include GNU/Hurd.
16343 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16345         timespec-sub: avoid duplicate include
16346         * lib/timespec-sub.c: Do not include <config.h> twice.
16347         Reported by Juanma Barranquero.
16349 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
16351         bootstrap: use a more consistent error reporting scheme
16352         * build-aux/bootstrap (warn, die): New.
16353         Use them.
16355 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16357         sys_time: allow too-wide tv_sec
16358         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
16359         timeval even if tv_sec is wider than time_t.  This allows
16360         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
16361         as without this patch gnulib replaces struct timeval
16362         and OpenBSD futimes therefore has a type mismatch.
16363         * doc/posix-headers/sys_time.texi: Mention this.
16365         pthread: check for both pthread_create and pthread_join
16366         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
16367         alter the check so that it tests for both pthread_create and
16368         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
16369         Suggested by Bruno Haible and Richard Yao in
16370         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
16372         parse-datetime: doc tuneup
16373         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
16374         spacing issues.
16376 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
16378         do-release-commit-and-tag: fix the previous commit
16379         * build-aux/do-release-commit-and-tag: Actually the test was right,
16380         but the comment and the error message were misleading.
16381         Fix comment, and improve error message.
16382         Perform check first, so that NEWS is not modified uselessly.
16384         do-release-commit-and-tag: fix typo
16385         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
16386         _not_ start with a stub.
16388 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
16390         pthread: check for pthread_create, not pthread_join
16391         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
16392         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
16393         pthread_join in libc.  I hope this removes the need for all the
16394         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
16395         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
16397 2012-07-04  Jim Meyering  <meyering@redhat.com>
16399         parse-datetime: fix failure to diagnose invalid input
16400         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
16401         rather than diagnosing the invalid input.  Now it reports this:
16402         date: invalid date '\260'
16403         * lib/parse-datetime.y (to_uchar): Define.
16404         (yylex): Don't sign-extend "other" bytes.
16405         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
16406         Thanks to Bruno Haible for the patch to this file.
16407         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
16408         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
16410 2012-07-03  Jim Meyering  <meyering@redhat.com>
16412         bootstrap: do not require now-removed build-aux/missing
16413         Now that build-aux/missing is, er, missing, bootstrap would
16414         silently fail.
16415         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
16416         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
16417         no longer part of gnulib.
16418         Diagnose the failure.
16420 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16422         alloca: add support for HP NonStop TNS/E native
16423         * lib/alloca.in.h (alloca): Support the new host.
16424         From a suggestion by Joachim Schmitz in
16425         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
16427 2012-07-02  Pádraig Brady  <P@draigBrady.com>
16429         fsusage: remove code not needed on non GNU/Linux systems.
16431         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
16432         Don't include headers no longer needed in this case.
16433         * lib/fsusage.c [STAT_STATVFS &&
16434         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
16435         STAT_STATFS2_FRSIZE to exclude code not used in this case.
16437 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
16439         fsusage: include files needed for glibc 2.6 fallback
16440         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
16441         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
16442         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
16443         Problem reported by Ludovic Courtès in
16444         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
16446         fsusage: avoid needless check on GNU/Linux
16447         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
16448         on GNU/Linux systems, since it can't possibly work.
16450 2012-07-01  Bruno Haible  <bruno@clisp.org>
16452         log: Fix an autoconf >= 2.64 warning.
16453         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
16454         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16456 2012-06-28  Bruno Haible  <bruno@clisp.org>
16458         log10f: Fix possible configuration problem.
16459         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
16460         $LOGF_LIBM.
16461         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16463 2012-06-28  Bruno Haible  <bruno@clisp.org>
16465         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
16466         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
16467         not gl_cv_func_unlink_works.
16468         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16470 2012-06-27  Eric Blake  <eblake@redhat.com>
16472         config: drop scripts that automake says are not independent
16473         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
16474         * build-aux/elisp-comp: Delete.
16475         * build-aux/missing: Likewise.
16476         * build-aux/ylwrap: Likewise.
16477         * modules/elisp-comp: Likewise.
16478         * MODULES.html.sh: Drop mention of elisp-comp.
16479         * NEWS: Mention this.
16481 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
16483         root-uid: new module
16484         This is for portability to Tandem's NonStop Kernel.
16485         * lib/root-uid.h, modules/root-uid: New files.
16486         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
16487         * lib/write-any-file.c, tests/test-sethostname2.c:
16488         Include "root-uid.h".
16489         * lib/euidaccess.c (euidaccess):
16490         * lib/pt_chown.c (main):
16491         * lib/unlinkdir.c (cannot_unlink_dir):
16492         * lib/write-any-file.c (can_write_any_file):
16493         * m4/mknod.m4 (gl_FUNC_MKNOD):
16494         * tests/test-sethostname2.c (geteuid, main):
16495         Don't assume ROOT_UID == 0.
16496         * modules/euidaccess (Depends-on):
16497         * modules/pt_chown (Depends-on):
16498         * modules/sethostname-tests (Depends-on):
16499         * modules/unlinkdir (Depends-on):
16500         * modules/write-any-file (Depends-on):
16501         Add root-uid.
16503         regex: use locale-independent comparison for codeset name
16504         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
16505         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
16506         for codeset name.
16507         * lib/regex_internal.h: Do not include <strings.h>, since we
16508         no longer use strcasecmp.
16509         * modules/regex (Depends-on): Remove strcase.
16511 2012-06-23  Bruno Haible  <bruno@clisp.org>
16513         getopt-posix: No longer guarantee that option processing is resettable.
16514         * doc/posix-functions/getopt.texi: Drop description of problem with
16515         internal state. Fix info about mingw and msvc9.
16516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
16517         option processing by getopt(). Run three test programs instead of one.
16518         Simplify cross-compilation guess.
16519         * NEWS: Mention the change.
16520         Reported by Rich Felker <dalias@aerifal.cx>.
16522 2012-06-26  Bruno Haible  <bruno@clisp.org>
16524         argp, regex: Ensure strcasecmp gets declared.
16525         * lib/argp-help.c: Include <strings.h>.
16526         * lib/regex_internal.h: Likewise.
16527         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
16529 2012-06-24  Bruno Haible  <bruno@clisp.org>
16531         ptsname_r: Make it consistent with ptsname on AIX.
16532         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
16533         implementation as for OSF/1.
16534         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
16535         a pty master.
16537         ptsname_r: Make it consistent with ptsname on OSF/1.
16538         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
16539         OSF/1.
16541 2012-06-24  Bruno Haible  <bruno@clisp.org>
16543         ttyname_r: Fix result on OSF/1, Solaris.
16544         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
16546 2012-06-24  Bruno Haible  <bruno@clisp.org>
16548         ptsname_r: Add support for Solaris.
16549         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
16550         Solaris.
16552         ptsname_r: Fix test failure on native Windows.
16553         * modules/ptsname_r (Depends-on): Add isatty.
16555         ptsname_r: Fix test failures on IRIX, Solaris.
16556         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
16557         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
16558         accordingly.
16559         * lib/ptsname_r.c: Include <fcntl.h>.
16560         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
16561         set errno if fd is invalid.
16562         * tests/test-isatty.c (main): Update comments.
16564 2012-06-24  Bruno Haible  <bruno@clisp.org>
16566         ptsname test: Extend test.
16567         * tests/test-ptsname.c: Include <errno.h>.
16568         (main): Test behaviour with invalid file descriptor.
16570 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16572         time: fix obsolete comment
16573         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
16574         reference to HAVE_STRUCT_TIMESPEC in comment.
16576 2012-06-23  Bruno Haible  <bruno@clisp.org>
16578         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
16579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
16580         does not handle abbreviated long options with equivalent
16581         disambiguations, set gl_replace_getopt to yes.
16582         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
16584 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16586         time_r: fix typo that always overrode localtime_r decl
16587         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
16588         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
16589         not in a standard include.
16591 2012-06-22  Bruno Haible  <bruno@clisp.org>
16593         Write "Mac OS X" instead of "MacOS X".
16594         * README: Write "Mac OS X" instead of "MacOS X".
16595         * build-aux/bootstrap: Likewise.
16596         * build-aux/install-reloc: Likewise.
16597         * lib/acl-internal.h: Likewise.
16598         * lib/acl_entries.c: Likewise.
16599         * lib/argp-ba.c: Likewise.
16600         * lib/argp-pv.c: Likewise.
16601         * lib/config.charset: Likewise.
16602         * lib/copy-acl.c: Likewise.
16603         * lib/csharpexec.c: Likewise.
16604         * lib/euidaccess.c: Likewise.
16605         * lib/fbufmode.c: Likewise.
16606         * lib/fflush.c: Likewise.
16607         * lib/file-has-acl.c: Likewise.
16608         * lib/filemode.h: Likewise.
16609         * lib/fpurge.c: Likewise.
16610         * lib/freadable.c: Likewise.
16611         * lib/freadahead.c: Likewise.
16612         * lib/freading.c: Likewise.
16613         * lib/freadptr.c: Likewise.
16614         * lib/freadseek.c: Likewise.
16615         * lib/fseeko.c: Likewise.
16616         * lib/fseterr.c: Likewise.
16617         * lib/fsusage.c: Likewise.
16618         * lib/fwritable.c: Likewise.
16619         * lib/fwriting.c: Likewise.
16620         * lib/get-rusage-as.c: Likewise.
16621         * lib/get-rusage-data.c: Likewise.
16622         * lib/getdomainname.c: Likewise.
16623         * lib/idpriv-drop.c: Likewise.
16624         * lib/idpriv-droptemp.c: Likewise.
16625         * lib/localcharset.c: Likewise.
16626         * lib/locale.in.h: Likewise.
16627         * lib/localename.c: Likewise.
16628         * lib/mbsrtowcs-state.c: Likewise.
16629         * lib/nproc.c: Likewise.
16630         * lib/passfd.c: Likewise.
16631         * lib/posix_openpt.c: Likewise.
16632         * lib/printf-parse.c: Likewise.
16633         * lib/progreloc.c: Likewise.
16634         * lib/safe-read.h: Likewise.
16635         * lib/safe-write.h: Likewise.
16636         * lib/sched.in.h: Likewise.
16637         * lib/set-mode-acl.c: Likewise.
16638         * lib/signal.in.h: Likewise.
16639         * lib/stdint.in.h: Likewise.
16640         * lib/stdio-impl.h: Likewise.
16641         * lib/stdlib.in.h: Likewise.
16642         * lib/strtod.c: Likewise.
16643         * lib/sys_select.in.h: Likewise.
16644         * lib/tcgetsid.c: Likewise.
16645         * lib/unistd.in.h: Likewise.
16646         * lib/unlockpt.c: Likewise.
16647         * lib/vasnprintf.c: Likewise.
16648         * lib/vma-iter.c: Likewise.
16649         * lib/wcsrtombs-state.c: Likewise.
16650         * m4/acl.m4: Likewise.
16651         * m4/acosl.m4: Likewise.
16652         * m4/asinl.m4: Likewise.
16653         * m4/atanl.m4: Likewise.
16654         * m4/c-stack.m4: Likewise.
16655         * m4/cosl.m4: Likewise.
16656         * m4/expl.m4: Likewise.
16657         * m4/extensions.m4: Likewise.
16658         * m4/fdatasync.m4: Likewise.
16659         * m4/fmal.m4: Likewise.
16660         * m4/frexp.m4: Likewise.
16661         * m4/frexpf.m4: Likewise.
16662         * m4/frexpl.m4: Likewise.
16663         * m4/fsusage.m4: Likewise.
16664         * m4/getdomainname.m4: Likewise.
16665         * m4/getloadavg.m4: Likewise.
16666         * m4/getopt.m4: Likewise.
16667         * m4/gettext.m4: Likewise.
16668         * m4/gnulib-common.m4: Likewise.
16669         * m4/intdiv0.m4: Likewise.
16670         * m4/intlmacosx.m4: Likewise.
16671         * m4/largefile.m4: Likewise.
16672         * m4/ldexpl.m4: Likewise.
16673         * m4/link-follow.m4: Likewise.
16674         * m4/locale-ar.m4: Likewise.
16675         * m4/locale-fr.m4: Likewise.
16676         * m4/locale-ja.m4: Likewise.
16677         * m4/locale-tr.m4: Likewise.
16678         * m4/locale-zh.m4: Likewise.
16679         * m4/locale_h.m4: Likewise.
16680         * m4/lock.m4: Likewise.
16681         * m4/logl.m4: Likewise.
16682         * m4/mathfunc.m4: Likewise.
16683         * m4/minus-zero.m4: Likewise.
16684         * m4/mktime.m4: Likewise.
16685         * m4/mmap-anon.m4: Likewise.
16686         * m4/multiarch.m4: Likewise.
16687         * m4/nanosleep.m4: Likewise.
16688         * m4/nocrash.m4: Likewise.
16689         * m4/poll.m4: Likewise.
16690         * m4/printf-frexpl.m4: Likewise.
16691         * m4/printf.m4: Likewise.
16692         * m4/signbit.m4: Likewise.
16693         * m4/sinl.m4: Likewise.
16694         * m4/sqrtl.m4: Likewise.
16695         * m4/strerror_r.m4: Likewise.
16696         * m4/tanl.m4: Likewise.
16697         * m4/threadlib.m4: Likewise.
16698         * m4/ttyname_r.m4: Likewise.
16699         * m4/unlink.m4: Likewise.
16700         * m4/visibility.m4: Likewise.
16701         * m4/wcwidth.m4: Likewise.
16702         * tests/minus-zero.h: Likewise.
16703         * tests/test-alloca-opt.c: Likewise.
16704         * tests/test-copy-acl.sh: Likewise.
16705         * tests/test-copy-file.sh: Likewise.
16706         * tests/test-fdatasync.c: Likewise.
16707         * tests/test-file-has-acl.sh: Likewise.
16708         * tests/test-flock.c: Likewise.
16709         * tests/test-fsync.c: Likewise.
16710         * tests/test-localename.c: Likewise.
16711         * tests/test-malloca.c: Likewise.
16712         * tests/test-nonblocking-pipe.h: Likewise.
16713         * tests/test-nonblocking-socket.h: Likewise.
16714         * tests/test-openpty.c: Likewise.
16715         * tests/test-posix_openpt.c: Likewise.
16716         * tests/test-ptsname.c: Likewise.
16717         * tests/test-ptsname_r.c: Likewise.
16718         * tests/test-sameacls.c: Likewise.
16719         * tests/test-select.h: Likewise.
16720         * tests/test-set-mode-acl.sh: Likewise.
16721         * tests/test-snprintf-posix.h: Likewise.
16722         * tests/test-sprintf-posix.h: Likewise.
16723         * tests/test-strtod.c: Likewise.
16724         * tests/test-time.c: Likewise.
16725         * tests/test-vasnprintf-posix.c: Likewise.
16726         * tests/test-vasprintf-posix.c: Likewise.
16727         * doc/acl-resources.txt: Likewise.
16728         * doc/**/*.texi: Likewise.
16729         Reported by Max Horn <max@quendi.de>.
16731 2012-06-22  Bruno Haible  <bruno@clisp.org>
16733         grantpt: Relax requirement regarding invalid file descriptors.
16734         * lib/grantpt.c: Don't include <fcntl.h>.
16735         (grantpt): Don't verify the validity of the file descriptor.
16736         * modules/grantpt (Depends-on): Remove fcntl-h.
16737         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
16738         file descriptors.
16739         * doc/posix-functions/grantpt.texi: Document more platforms on which
16740         grantpt succeeds for invalid file descriptors.
16741         Reported by Rich Felker <dalias@aerifal.cx>.
16743 2012-06-22  Bruno Haible  <bruno@clisp.org>
16745         fbufmode test: Don't test unportable behaviour.
16746         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
16747         (main): Invoke it three times.
16748         Reported by Szabolcs Nagy <nsz@port70.net>
16749         and Rich Felker <dalias@aerifal.cx>.
16751 2012-06-21  Bruno Haible  <bruno@clisp.org>
16753         gnulib-tool: Refactor inctests variable.
16754         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
16755         (func_modules_transitive_closure,
16756         func_modules_transitive_closure_separately,
16757         func_import, func_create_testdir): Update.
16759         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
16760         * gnulib-tool: Accept option --without-tests.
16761         (func_usage): Document --without-tests option. Rearrange.
16762         (inctests): Normalize according to the mode.
16763         * NEWS: Mention the change.
16764         Suggested by Simon Josefsson.
16766 2012-06-21  Bruce Korb  <bkorb@gnu.org>
16768         parse-duration test: Avoid spurious output.
16769         * tests/test-parse-duration.sh: Reindent with leading tabs.
16771 2012-06-21  Jim Meyering  <meyering@redhat.com>
16773         maint: disable the strncpy prohibition
16774         * cfg.mk: Do not prohibit strncpy here.
16776 2012-06-21  Bruno Haible  <bruno@clisp.org>
16778         nonblocking: Avoid compilation error on mingw64.
16779         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
16780         fscanf.
16781         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
16782         * modules/vfscanf (configure.ac): Likewise.
16783         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
16784         definition only if stdio.h has prepared it.
16785         Reported by Daniel P. Berrange <berrange@redhat.com>.
16787 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
16789         gnulib-tool: Use readlink if it is available.
16790         * gnulib-tool (func_readlink): Choose function more appropriately.
16792 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16794         posixtm-tests: port to buggy compiler
16795         Problem reported by Simon Josefsson in
16796         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
16797         * modules/posixtm-tests (Depends-on): Add stdint.
16798         * tests/test-posixtm.c (struct posixtm_test.t_expected):
16799         Now of type int_least64_t, not int64_t, both because that's
16800         what INT64_C returns and because int_least64_t works even
16801         on 72-bit hosts.
16802         (T): Use INT64_C on constants outside the traditional int range,
16803         to work around compiler bug noted by Simon.
16805         mktime: fix integer overflow in 'configure'-time test
16806         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
16807         after integer overflow.  Problem reported by Rich Felker in
16808         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
16809         Also, don't look for further instances of a bug if we've already
16810         found one instance; this helps 'configure' run faster.
16812 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
16814         tmpfile, clean-temp: Fix invocation of GetVersionEx.
16815         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
16816         GetVersionEx correctly.
16817         * lib/clean-temp.c (supports_delete_on_close): Likewise.
16819 2012-06-20  Bruno Haible  <bruno@clisp.org>
16821         fdopen: Allow implementations that don't reject invalid fd arguments.
16822         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
16823         succeeds.
16824         Reported by Rich Felker <dalias@aerifal.cx>.
16826 2012-06-20  Simon Josefsson  <simon@josefsson.org>
16828         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
16829         bring in LIBINTL.
16831 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16833         init.sh: do not rely on autoupated PWD
16834         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
16835         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
16836         Although Nelson's bug was not necessarily fixed by this patch,
16837         it seems wise to make the change for safety.
16838         * tests/init.sh (path_prepend_): Do not rely on PWD updating
16839         automagically after 'cd'; this is not reliable on older shells.
16840         (setup_): Fail if we cannot cd to temporary directory.
16842 2012-06-19  Bruno Haible  <bruno@clisp.org>
16844         stat, fstat: Avoid warnings on mingw64.
16845         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
16846         redefining.
16847         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
16848         Reported by Daniel P. Berrange <berrange@redhat.com>.
16850 2012-06-19  Bruno Haible  <bruno@clisp.org>
16852         stdioext: Add support for musl libc.
16854         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
16855         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
16857         * m4/fseterr.m4: New file.
16858         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
16859         function exists.
16860         * modules/fseterr (Files): Add m4/fseterr.m4.
16861         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
16862         __fseterr does not exist.
16863         (Makefile.am): Remove fseterr.c from lib_SOURCES.
16865         * lib/freadable.h: Update comment.
16867         * lib/fwritable.h: Update comment.
16869         * lib/freading.h: Update comment.
16871         * lib/fwriting.h: Update comment.
16873         * m4/freadahead.m4: New file.
16874         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
16875         that function exists.
16876         * modules/freadahead (Files): Add m4/freadahead.m4.
16877         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
16878         __freadahead does not exist.
16879         (Makefile.am): Remove freadahead.c from lib_SOURCES.
16881         * m4/freadptr.m4: New file.
16882         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
16883         function exists.
16884         * modules/freadptr (Files): Add m4/freadptr.m4.
16885         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
16886         __freadptr does not exist.
16887         (Makefile.am): Remove freadptr.c from lib_SOURCES.
16889         * m4/freadseek.m4: New file.
16890         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
16891         exists.
16892         * modules/freadseek (Files): Add m4/freadseek.m4.
16893         (configure.ac): Invoke gl_FUNC_FREADSEEK.
16895         * lib/fpurge.c (fpurge): Update comment.
16897         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
16899 2012-06-19  Bruno Haible  <bruno@clisp.org>
16901         *printf-posix: Put more info into config.log.
16902         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
16903         exit code into config.log.
16905 2012-06-19  Bruno Haible  <bruno@clisp.org>
16907         getopt-gnu: Fix exit code overflow in autoconf test.
16908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
16909         to keep them below < 128.
16911 2012-06-17  Jim Meyering  <meyering@redhat.com>
16913         maint.mk: fix typo in code to derive GPG key at release time
16914         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
16916 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16918         regex: avoid warning when pointers are not long
16919         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
16920         and uintptr_t, not long, for portability to hosts where pointers and
16921         long have different sizes.  Issue noted by Daniel P. Berrange in
16922         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
16923         and fix suggested by Bruno Haible in
16924         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
16926 2012-06-17  Bruno Haible  <bruno@clisp.org>
16928         dummy: Relicense into the public domain.
16929         * modules/dummy (License): Set to "public domain".
16930         Suggested by Reuben Thomas.
16932 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
16934         announce-gen: VPATH issues
16935         * build-aux/announce-gen (--srcdir): New option, used to trim the
16936         $srcdir part of the path from $builddir to NEWS.
16937         * top/maint.mk (announcement): Adjust.
16939 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
16941         gnu-web-doc-update: VPATH builds
16942         * build-aux/gnu-web-doc-update (--builddir): New option.
16943         Revamp the handling of options.
16944         Prefer $(...) to `...`.
16945         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
16946         the template, and it is GNU mktemp specific.
16947         Prefer set -e to long series of &&.
16948         Restore the initial git branch, not "master".
16949         Properly initialize submodules (don't rely only on bootstrap).
16950         Do not reconfigure blindly, use config.status.
16951         * top/README-release: Update instructions for gnu-web-doc-update.
16953 2012-06-11  Jim Meyering  <meyering@redhat.com>
16955         maint.mk: revert most of the previous change re "all these"
16956         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
16957         For rationale, see the discussion at
16958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
16960 2012-06-10  Karl Berry  <karl@gnu.org>
16962         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
16964         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
16966 2012-06-10  Bruce Korb  <bkorb@gnu.org>
16968         parse-duration: Relicense under LGPLv2+.
16969         * modules/parse-duration (License): Change to LGPLv2+.
16971 2012-06-10  Jim Meyering  <meyering@redhat.com>
16973         maint.mk: prohibit common grammar error: "all these"
16974         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
16975         the list of prohibited word sequences.  It should be "all of these".
16976         * lib/tempname.c (__gen_tempname): Fix one of them.
16978 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
16980         do-release-commit-and-tag: support VPATH builds
16981         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
16982         (noteworthy): Defined earlier to factor its value.
16983         (noteworthy_stub): New.
16984         Use it to factor.
16985         (help_version): Split into...
16986         (help, version): these.
16987         Adjust the option processing part.
16988         Support "--option=value" in addition to "--option value".
16989         (builddir): New.
16990         (--builddir): New option.
16991         * top/README-release: Document this.
16992         Reword slightly so that the reader cannot understand that he
16993         has to do these steps before calling do-release-commit-and-tag.
16995 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
16997         readme-release: also require announce-gen and maintainer-makefile
16998         * modules/readme-release (Depends-on): here.
16999         * modules/announce-gen, modules/do-release-commit-and-tag,
17000         modules/gnu-web-doc-update, modules/maintainer-makefile
17001         (Description): Point to readme-release.
17003 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
17005         maint.mk: fix VPATH issues.
17006         * top/maint.mk (news-check): GNU Make understand $< very well.
17007         (release-prep): NEWS is in $(srcdir).
17009 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
17011         readme-release: require the promoted modules.
17012         * modules/readme-release (Depends-on): Add
17013         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
17014         in this text.
17016 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17017             Bruno Haible  <bruno@clisp.org>
17019         error, strerror-override: Support mingw64 from Fedora 17.
17020         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
17021         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
17022         EINPROGRESS.
17023         * lib/strerror-override.h (strerror_override): Test it.
17024         * lib/strerror-override.c (strerror_override): Likewise.
17025         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
17027 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17028             Bruno Haible  <bruno@clisp.org>
17030         error, strerror-override: Support mingw64 from Fedora 17.
17031         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
17032         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
17033         * lib/strerror-override.h (strerror_override): Test it.
17034         * lib/strerror-override.c (strerror_override): Likewise.
17036 2012-06-03  Bruno Haible  <bruno@clisp.org>
17038         error, strerror-override: Support new errno values from POSIX:2008.
17039         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
17040         ENOTRECOVERABLE.
17041         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
17042         platforms.
17043         * lib/strerror-override.c (strerror_override): Conditionalize the
17044         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
17045         * lib/strerror-override.h (strerror_override): Declare also if
17046         GNULIB_defined_EOWNERDEAD is defined.
17047         * tests/test-errno.c (e130, e131): New variables.
17048         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
17049         ENOTRECOVERABLE.
17050         Reported by Paolo Bonzini.
17052 2012-05-31  Jim Meyering  <meyering@redhat.com>
17054         savewd: add missing dependency on sys_wait module
17055         * modules/savewd (Depends-on): Add sys_wait, needed at least
17056         for MSVC.  Report and suggested change by Michael Goffioul.
17058 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17060         system-quote-tests: port to CentOS 5
17061         Problem reported by Tom G. Christensen in
17062         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
17063         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
17065 2012-05-29  Jim Meyering  <meyering@redhat.com>
17067         maint: fix typos in comments and ChangeLog
17068         Culprits identified and fixed mostly automatically using these commands:
17069         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
17070         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
17071         using http://github.com/lyda/misspell-check
17072         * ChangeLog: Fix typos.
17073         * doc/solaris-versions: Likewise.
17074         * lib/regexec.c (re_search_stub): Likewise.
17075         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17077 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
17079         manywarnings: remove duplicate -Wmultichar entry
17080         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
17081         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
17082         so keep the entry marked as documented.
17084 2012-05-27  Karl Berry  <karl@gnu.org>
17086         * config/srclist.txt (mktime.c): remove last libc sync,
17087         perhaps just temporarily.
17089 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
17091         regex: don't assume uint64_t or uint32_t
17092         * lib/regcomp.c (init_word_char): Don't assume that the types
17093         uint64_t and uint32_t exist.  The C standard doesn't guarantee
17094         them, and on some 32-bit compilers there is no uint64_t.
17095         Problem reported by Gianluigi Tiesi in
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
17098 2012-05-25  Jim Meyering  <meyering@redhat.com>
17100         maint.mk: add strncpy-prohibiting syntax-check rule
17101         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
17103 2012-05-24  Jim Meyering  <meyering@redhat.com>
17105         maint.mk: compute $(gpg_key_ID) more portably
17106         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
17107         That use of sed is not portable to some fringe systems.
17108         Reported by Paul Eggert in
17109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
17111 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17113         mktime: sync from glibc
17114         * config/srclist.txt: Uncomment mktime.c.
17115         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
17116         First, indent with tabs, since glibc uses tabs and doesn't want to
17117         change and we'd rather be identical to glibc.  Also, two small
17118         coding changes:
17119         (isdst_differ): Use &&, not &, as && is the usual style.
17120         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
17121         for clarity.
17123 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17125         announce-gen: du -h is more portable than du --human
17126         * build-aux/announce-gen (sizes): Invoke du with -h instead
17127         of --human.  Accept leading white space in its output.
17129 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17131         announce-gen: Improve diagnostics.
17132         * build-aux/announce-gen: When parsing command line options,
17133         prefer "announce-gen: option --release-type requires an argument"
17134         to "Option release-type requires an argument".
17136 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17138         maint.mk: gpg_key_ID: use sed more portably
17139         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
17140         the closing brace.
17141         (refresh-po): Fuse two sed invocations into one.
17143 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
17145         gitlog-to-changelog: support the log message format used in Bison.
17146         * build-aux/gitlog-to-changelog: Support --strip-tab and
17147         --strip-cherry-picked.
17149 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17151         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
17152         the rest of the current time slice to another thread in the current
17153         process. So if the thread that feeds the file decscriptor we're
17154         polling is not in the current process, we get busy-waiting.
17155         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
17156         Patch from Theodore Leblond.
17157         * lib/select.c: Split polling out of the loop that sets the output
17158         fd_sets.  Check for zero result and loop if the wait timeout is
17159         infinite.
17161 2012-05-21  Simon Josefsson  <simon@josefsson.org>
17163         select: Fix build error on IRIX 6.5.
17164         * lib/select.c: Include stddef.h for NULL.
17166 2012-05-21  Simon Josefsson  <simon@josefsson.org>
17168         gc: fix libgcrypt detection on older machines.
17169         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
17170         copyright years because the file has been distributed every year
17171         since it was created.
17173 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17175         crypto: fix bug in large buffer handling
17176         Problem reported by Serge Belyshev for glibc in
17177         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
17178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
17179         * lib/md4.c (md4_process_block):
17180         * lib/md5.c (md5_process_block):
17181         * lib/sha1.c (sha1_process_block):
17182         * lib/sha256.c (sha256_process_block):
17183         Don't assume the buffer length is less than 2**32.
17184         * lib/sha512.c (sha512_process_block): Likewise.
17185         Here, the bug is present only in the rare case where the host does
17186         not support uint64_t or where size_t is wider than 64 bits.
17187         Use u64size to work around the problems.
17188         * lib/u64.h (u64size): New macro.
17190 2012-05-15  Pádraig Brady  <P@draigBrady.com>
17192         fsusage: fix block size returned on older Linux 2.6
17194         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
17195         which is available since Linux 2.6.
17196         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
17197         when the member is available so it can be used as a fallback.
17198         * doc/posix-functions/statvfs.texi: Mention the hang issue
17199         on Linux < 2.6.36.
17201 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17203         bootstrap: suppress stderr chatter
17204         * build-aux/bootstrap (insert_sorted_if_absent, main program):
17205         Omit unnecessary chatter to stderr.  The main program chatter
17206         was there only inadvertantly.
17208         bootstrap: .gitignore files created by autopoint, libtool
17209         I ran into this problem when bootstrapping the latest diffutils.
17210         After './bootstrap', 'git status' reported lots of untracked files
17211         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
17212         autopoint and do not need to be version-controlled.
17213         * build-aux/bootstrap: Put into .gitignore the files that
17214         autopoint and libtool create, by keeping track of files that exist
17215         after but not before these programs are run.
17216         (version_controlled_file): Move up.  2nd arg is now full file
17217         name, not base name; this is more convenient.  Put CVS at the end,
17218         as it's now somewhat deprecated.
17220 2012-05-14  Jim Meyering  <meyering@redhat.com>
17222         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
17223         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
17224         definition.  Reported by Bruno Haible.
17226 2012-05-13  Bruno Haible  <bruno@clisp.org>
17227             Paul Eggert  <eggert@cs.ucla.edu>
17229         binary-io: Define set_binary_mode function.
17230         * lib/binary-io.h (set_binary_mode): New function.
17231         (SET_BINARY): Define in terms of set_binary_mode.
17232         * modules/binary-io (configure.ac): Require AC_C_INLINE.
17233         * tests/test-binary-io.c (main): Accept an argument, and test either
17234         set_binary_mode or SET_BINARY depending on the argument.
17235         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
17236         argument. Clean up also t-bin-out0.tmp.
17238 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
17240         bootstrap: take advantage of POSIX shell features
17242         The 'bootstrap' script offered by Gnulib script already uses POSIX
17243         shell features (like $((...)) arithmetic expansions) that are not
17244         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
17245         means that bootstrap must already be run using a proper POSIX shell,
17246         which will thus provide more features, like ${var#pattern} parameter
17247         expansion or inversion of a command exit status with '!'.  We can
17248         thus use these features to improve the clarity and the performances
17249         of the bootstrap script.
17251         Suggested by Eric Blake.
17253         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
17254         of sed/expr plus command substitutions, to save some forks.  While
17255         we are at it, prefer the POSIX $(...) form of command substitution,
17256         rather than the legacy form `...` (since the former is visually
17257         clearer and interacts better with quoting), and prefer the idiom:
17258           "if ! CMD; then ACTION ..."
17259         over the idiom:
17260           "if CMD; then :; else ACTION ..."
17261         which was required by legacy Bourne shells not supporting '!'.
17263 2012-05-12  Bruno Haible  <bruno@clisp.org>
17265         system-quote: Add more comments.
17266         * lib/system-quote.h: Add more comments about wilcards and limitations.
17267         Suggested by Eli Zaretskii <eliz@gnu.org>.
17269         sh-quote, system-quote: Add comments about wildcards.
17270         * lib/sh-quote.h: Clarify what happens with wildcard characters.
17271         * lib/system-quote.h: Likewise.
17272         Reported by Eli Zaretskii <eliz@gnu.org>.
17274 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17276         fsusage: check for GNU/Linux statvfs problem dynamically
17277         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
17278         Define STAT_STATFS2_BSIZE too, since in this case the code now
17279         checks dynamically whether statvfs is reliable, falling back on
17280         Linux-style statfs otherwise.
17281         (statvfs_works): New function, for dynamically testing statvfs.
17282         (get_fs_usage) [STAT_STATVFS]: Use it.
17283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
17284         statvfs on GNU/Linux hosts, since it's now done dynamically.
17286 2012-05-10  Bruno Haible  <bruno@clisp.org>
17288         system-quote, execute, spawn-pipe: Escape '?' on Windows.
17289         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
17290         '?' character.
17291         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
17292         * tests/test-system-quote-main.c (check_all): Check also strings like
17293         "??????????".
17294         Reported by Eli Zaretskii <eliz@gnu.org>.
17296 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
17298         _Noreturn: port config.h to gcc -Wundef
17299         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
17300         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
17301         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
17303 2012-05-10  Bruno Haible  <bruno@clisp.org>
17305         system-quote: Refactor.
17306         * lib/system-quote.h (system_quote_copy): Fix comment.
17307         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
17308         New functions, extracted from system_quote_copy.
17309         (system_quote_length, system_quote_copy): Use these functions.
17310         Reported by Paul Eggert.
17312 2012-05-08  Bruno Haible  <bruno@clisp.org>
17314         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
17315         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
17317 2012-05-08  Bruno Haible  <bruno@clisp.org>
17319         Tests for module 'system-quote'.
17320         * modules/system-quote-tests: New file.
17321         * tests/test-system-quote.sh: New file.
17322         * tests/test-system-quote-main.c: New file.
17323         * tests/test-system-quote-child.c: New file.
17325         New module 'system-quote'.
17326         * lib/system-quote.h: New file.
17327         * lib/system-quote.c: New file.
17328         * modules/system-quote: New file.
17330 2012-05-08  Bruno Haible  <bruno@clisp.org>
17332         sh-quote: Make C++ safe and allow multiple inclusion.
17333         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
17334         declarations in extern "C".
17336 2012-05-08  Bruno Haible  <bruno@clisp.org>
17338         sh-quote tests: Make tests stricter.
17339         * tests/test-sh-quote.c (check_one): Check the return value of
17340         shell_quote_copy.
17341         (main): Check a string with a CR character. Check a string that
17342         contains UCHAR_MAX.
17344 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
17346         warnings.m4: provide a means to specify the program to compile.
17347         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
17348         (gl_WARN_ADD): here.
17349         Use gl_AS_VAR_APPEND.
17350         Support an argument to specify the program to compile.
17351         (gl_WARN_ADD): Accept an argument to specify the program to compile.
17352         AC_SUBST the WARN_CFLAGS when they are used.
17353         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
17354         leave this to gl_WARN_ADD.
17356 2012-05-08  Eric Blake  <eblake@redhat.com>
17358         doc: recommendations on gettext version
17359         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
17360         choice between versions.
17361         * DEPENDENCIES (gettext): Cover both approaches.
17363 2012-05-08  Jim Meyering  <meyering@redhat.com>
17365         init.sh: explain why EXEEXT support uses aliases rather than functions
17366         * tests/init.sh: Add a comment.
17368         init.sh: don't let bash aliases interfere with tests
17369         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
17370         is bash.  This avoids problems for those who alias standard commands to
17371         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
17372         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
17374 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17376         stdint: be more consistent with glibc, SunOS libc
17377         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
17378         (gl_int_fast16_t, gl_uint_fast16_t)
17379         (gl_int_fast32_t, gl_uint_fast32_t)
17380         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
17381         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
17382         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
17383         Be consistent with glibc by default, and with SunOS 5.10 and later
17384         if __sun is defined.  This lessens the likelihood of clashes if
17385         code compiled for older hosts is combined with code compiled for
17386         newer ones.  Problem reported by Niels Möller in
17387         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
17389 2012-05-07  Eric Blake  <eblake@redhat.com>
17391         isatty: relax license to LGPLv2+
17392         * modules/isatty (License): Relax license.
17394 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17396         stat-size: comment fix
17397         * lib/stat-size.h: Remove obsolete comment about indenting.
17399 2012-05-06  Bruno Haible  <bruno@clisp.org>
17401         Tests for module 'sh-quote'.
17402         * modules/sh-quote-tests: New file.
17403         * tests/test-sh-quote.c: New file.
17405 2012-05-06  Bruno Haible  <bruno@clisp.org>
17407         sh-quote: Improve shell_quote_argv's signature.
17408         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
17409         * lib/sh-quote.c (shell_quote_argv): Likewise.
17411 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17413         stdint: document issues with int_fast8_t etc.
17414         * doc/posix-headers/stdint.texi (stdint.h): Say that other
17415         stdint.h substitutes may define these types differently.  See
17416         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
17418 2012-05-05  Bruno Haible  <bruno@clisp.org>
17420         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
17421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
17422         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
17423         or 'guessing no (mishandles large arguments)'.
17425 2012-05-05  Bruno Haible  <bruno@clisp.org>
17427         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
17428         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
17429         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
17430         set gl_cv_func_link_follows_symlink to "guessing no".
17432 2012-05-05  Bruno Haible  <bruno@clisp.org>
17434         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
17435         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
17436         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
17437         "guessing no".
17438         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
17440 2012-05-05  Bruno Haible  <bruno@clisp.org>
17442         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
17443         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
17444         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
17445         set gl_cv_struct_dirent_d_ino to "guessing yes".
17447 2012-05-05  Bruno Haible  <bruno@clisp.org>
17449         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
17450         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
17451         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
17452         "guessing yes".
17454 2012-05-05  Bruno Haible  <bruno@clisp.org>
17456         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
17457         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
17458         compiling to a glibc system, set gl_cv_func_signbit and
17459         gl_cv_func_signbit_gcc to "guessing yes".
17461 2012-05-05  Bruno Haible  <bruno@clisp.org>
17463         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
17464         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
17465         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
17466         to "guessing yes".
17467         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
17468         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
17470 2012-05-05  Bruno Haible  <bruno@clisp.org>
17472         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
17473         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
17474         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
17475         gl_cv_func_realpath_works to "guessing yes".
17477 2012-05-05  Bruno Haible  <bruno@clisp.org>
17479         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
17480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
17481         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
17483 2012-05-04  Bruno Haible  <bruno@clisp.org>
17485         Tweak last commit.
17486         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
17487         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17489 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
17491         unistd_h: make it easier to avoid sys_types_h
17492         This is useful for Emacs, which has its own method of porting to
17493         Windows, and which therefore does not need the sys_types_h module.
17494         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
17495         code moved here from gl_SYS_TYPES_H.
17496         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
17497         using the code directly.
17498         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
17499         gl_SYS_TYPES_H.
17500         * modules/sys_types (Files):
17501         * modules/unistd (Files): Add m4/off_t.m4.
17503 2012-05-03  Bruno Haible  <bruno@clisp.org>
17505         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
17506         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
17507         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
17508         "guessing yes" or "guessing no".
17509         (gl_FUNC_LSTAT): Update.
17510         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
17511         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17512         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
17514 2012-05-03  Bruno Haible  <bruno@clisp.org>
17516         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
17517         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
17518         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
17519         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
17520         cross-compiling, choose the first alternative on glibc systems.
17521         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
17523 2012-05-03  Bruno Haible  <bruno@clisp.org>
17525         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
17526         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
17527         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
17529 2012-05-03  Bruno Haible  <bruno@clisp.org>
17531         chown: Avoid "guessing no" when cross-compiling to glibc systems.
17532         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
17534 2012-05-03  Bruno Haible  <bruno@clisp.org>
17536         Avoid "guessing no" guesses when cross-compiling to glibc systems.
17537         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
17538         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
17539         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
17540         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
17541         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
17542         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
17543         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
17544         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
17545         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
17546         compiling to glibc systems, set gl_cv_func_chown_slash_works,
17547         gl_cv_func_chown_ctime_works to "guessing yes".
17548         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
17549         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
17550         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
17551         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
17552         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
17553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
17554         compiling to glibc systems, set gl_cv_func_open_directory_works to
17555         "guessing yes".
17556         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
17557         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
17558         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
17559         "guessing yes".
17560         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
17561         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
17562         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
17563         compiling to glibc systems, set gl_cv_func_floorf_ieee to
17564         "guessing yes".
17565         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
17566         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
17567         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
17568         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
17569         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
17570         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
17571         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
17572         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
17573         "guessing yes".
17574         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
17575         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
17576         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
17577         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
17578         "guessing yes".
17579         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
17580         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
17581         "guessing yes".
17582         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
17583         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
17584         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
17585         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
17586         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
17587         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
17588         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
17589         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
17590         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
17591         compiling to glibc systems, set gl_cv_func_log10f_ieee to
17592         "guessing yes".
17593         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
17594         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
17595         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
17596         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
17597         "guessing yes".
17598         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
17599         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
17600         "guessing yes".
17601         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
17602         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
17603         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
17604         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
17605         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
17606         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
17607         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
17608         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
17609         compiling to glibc systems, set gl_cv_func_mkfifo_works to
17610         "guessing yes".
17611         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
17612         compiling to glibc systems, set gl_cv_func_mknod_works to
17613         "guessing yes".
17614         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
17615         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
17616         "guessing yes".
17617         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
17618         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
17619         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
17620         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
17621         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
17622         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
17623         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
17624         compiling to glibc systems, set gl_cv_func_svid_putenv to
17625         "guessing yes".
17626         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
17627         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
17628         "guessing yes".
17629         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
17630         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
17631         "guessing yes".
17632         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
17633         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
17634         to "guessing yes".
17635         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
17636         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
17637         to "guessing yes".
17638         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
17639         compiling to glibc systems, set gl_cv_func_rmdir_works to
17640         "guessing yes".
17641         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
17642         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
17643         gl_cv_func_unlink_parent_fails to "guessing yes".
17644         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
17645         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
17646         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
17647         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
17648         gl_cv_func_rename_dest_works to "guessing yes".
17649         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
17650         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
17651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
17652         compiling to glibc systems, set gl_cv_func_roundf_ieee to
17653         "guessing yes".
17654         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
17655         compiling to glibc systems, set gl_cv_func_roundl_ieee to
17656         "guessing yes".
17657         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
17658         compiling to glibc systems, set gl_cv_func_setenv_works to
17659         "guessing yes".
17660         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
17661         compiling to glibc systems, set gl_cv_func_unsetenv_works to
17662         "guessing yes".
17663         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
17664         compiling to glibc systems, set gl_cv_func_sleep_works to
17665         "guessing yes".
17666         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
17667         compiling to glibc systems, set gl_cv_func_stat_file_slash to
17668         "guessing yes".
17669         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
17670         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
17671         "guessing yes".
17672         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
17673         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
17674         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
17675         compiling to glibc systems, set gl_cv_func_truncf_ieee to
17676         "guessing yes".
17677         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
17678         compiling to glibc systems, set gl_cv_func_truncl_ieee to
17679         "guessing yes".
17680         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
17681         compiling to glibc systems, set gl_cv_func_usleep_works to
17682         "guessing yes".
17683         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
17684         compiling to glibc systems, set gl_cv_func_futimesat_works to
17685         "guessing yes".
17687 2012-05-03  Bruno Haible  <bruno@clisp.org>
17689         Say "guessing yes" or "guessing no" when cross-compiling.
17690         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
17691         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
17692         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
17693         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
17694         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
17695         am_cv_func_working_getline to "guessing yes" or "guessing no".
17696         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
17697         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
17698         (gl_FUNC_MEMMEM): When cross-compiling, set
17699         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
17700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
17701         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
17702         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
17703         set gl_cv_func_strcasestr_works_always to "guessing yes" or
17704         "guessing no".
17705         (gl_FUNC_STRCASESTR): When cross-compiling, set
17706         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
17707         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
17708         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
17709         (gl_FUNC_STRSTR): When cross-compiling, set
17710         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
17711         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
17712         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
17713         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
17714         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
17716 2012-05-01  Bruno Haible  <bruno@clisp.org>
17718         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
17719         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
17720         * build-aux/reloc-ldflags: Likewise.
17721         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
17723 2012-05-01  Bruno Haible  <bruno@clisp.org>
17725         gnulib-tool: Remove transitional code.
17726         * gnulib-tool: Don't warn about --import with 0 arguments any more.
17727         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17729 2012-05-01  Bruno Haible  <bruno@clisp.org>
17731         getcwd: Fix misindentation.
17732         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
17734 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
17736         exclude: process exclude and include directives in order
17737         This restores the pre-2009 behavior, and is part of a fix of a
17738         grep bug reported by Quentin Arce in
17739         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
17740         * lib/exclude.c (struct exclude): Remove 'tail' member.
17741         (new_exclude_segment): Prepend the new segment instead of appending.
17742         Return void, since that's now more convenient.
17743         (file_pattern_matches): Renamed from excluded_file_pattern_p.
17744         (file_name_matches): Renamed from excluded_file_name_p.
17745         (file_pattern_matches, file_name_matches):
17746         Return true if the pattern matches, not if it excludes.
17747         All callers changed.
17748         (excluded_file_name): Process the list in reverse order;
17749         since the list is now reversed this restores the pre-2009 behavior.
17750         (add_exclude): Adjust to new reversed-order list.  Use local var
17751         rather than macro, for clarity.
17752         * tests/test-exclude7.sh: Adjust to corrected behavior.
17754         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
17755         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
17756         it's not possible here.  Handle the case of \ at end of pattern
17757         without dumping core.
17758         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
17760         _Noreturn: future-proof non-GNU and non-MSVC compilers
17761         * build-aux/snippet/_Noreturn.h (_Noreturn):
17762         * m4/gnulib-common.m4 (gl_COMMON_BODY):
17763         Do not define _Noreturn if __STDC_VERSION__ indicates this is
17764         C11 or later.  This is more likely to work with random future C
17765         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
17766         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
17768         exclude: handle wildcards with FNM_EXTMATCH
17769         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
17770         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
17771         comment that "has wildcards" really means "has or may have
17772         wildcards".  Simplify by avoiding the need to call strcspn.
17774 2012-04-29  Bruno Haible  <bruno@clisp.org>
17776         gnulib-tool: Fix list of authors.
17777         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
17779 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
17781         bootstrap: support Automake-NG in $buildreq
17782         * bootstrap (check_versions): Handle automake and aclocal from
17783         Automake-NG specially.  They can be specified as respectively
17784         the "automake-ng" and "aclocal-ng" requirements.
17786 2012-04-25  Eric Blake  <eblake@redhat.com>
17788         bootstrap: only force latest Makefile.in.in for gettext module
17789         * build-aux/bootstrap (with_gettext): Only install latest
17790         Makefile.in.in for projects requesting bleeding edge gettext.
17792 2012-04-22  Bruno Haible  <bruno@clisp.org>
17794         doc: Mention reason for replacement on glibc/Linux systems.
17795         * doc/posix-functions/dprintf.texi: Mention the problem with special
17796         'long double' values.
17797         * doc/posix-functions/fprintf.texi: Likewise.
17798         * doc/posix-functions/printf.texi: Likewise.
17799         * doc/posix-functions/snprintf.texi: Likewise.
17800         * doc/posix-functions/sprintf.texi: Likewise.
17801         * doc/posix-functions/vdprintf.texi: Likewise.
17802         * doc/posix-functions/vfprintf.texi: Likewise.
17803         * doc/posix-functions/vprintf.texi: Likewise.
17804         * doc/posix-functions/vsnprintf.texi: Likewise.
17805         * doc/posix-functions/vsprintf.texi: Likewise.
17806         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
17807         platforms with F_DUPFD_CLOEXEC problems.
17808         * doc/posix-functions/glob.texi: Mention which platforms are affected
17809         by the problem with symbolic links.
17810         * doc/posix-functions/linkat.texi: Mention the problem with
17811         AT_SYMLINK_FOLLOW on Linux.
17813 2012-04-22  Bruno Haible  <bruno@clisp.org>
17815         pwrite: Don't replace on all platforms.
17816         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
17818 2012-04-22  Bruno Haible  <bruno@clisp.org>
17820         rint* tests: Avoid gcc warnings.
17821         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
17822         * tests/test-rintf.c (INFINITY, NAN): Likewise.
17823         * tests/test-rintl.c (INFINITY, NAN): Likewise.
17825 2012-04-21  Bruno Haible  <bruno@clisp.org>
17827         users.txt: Update.
17828         * users.txt: Add freedink, wdiff. Update URLs for projects that have
17829         switched from CVS to git, bzr, or svn.
17831 2012-04-21  Bruno Haible  <bruno@clisp.org>
17833         Large File Support for native Windows platforms.
17835         * m4/largefile.m4 (gl_LARGEFILE): New macro.
17836         * modules/largefile (configure.ac): Require gl_LARGEFILE.
17838         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
17839         type.
17840         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
17841         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
17842         * doc/posix-headers/sys_types.texi: Mention the effect of the
17843         'largefile' module.
17845         * lib/fcntl.in.h: Add comments about off_t.
17846         * modules/fcntl-h (Depends-on): Add sys_types.
17848         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
17849         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
17850         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
17851         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
17852         * modules/unistd (Depends-on): Add sys_types.
17853         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
17855         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
17856         instead of lseek.
17857         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
17858         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
17859         * modules/lseek (Depends-on): Add sys_types.
17861         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
17862         msvc-nothrow.h.
17863         (SetFileSize): New function.
17864         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
17865         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
17866         if Large File Support is requested.
17867         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
17868         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
17870         * lib/stdio.in.h: Add comments about off_t.
17871         * modules/stdio (Depends-on): Add sys_types.
17873         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
17874         instead of ftello.
17875         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
17876         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
17877         (gl_PREREQ_FTELLO): New macro.
17878         * modules/ftello (Depends-on): Add sys_types.
17879         (configure.ac): Incoke gl_PREREQ_FTELLO.
17881         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
17882         instead of fseeko.
17883         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
17884         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
17885         (gl_PREREQ_FSEEKO): New macro.
17886         * modules/fseeko (Depends-on): Add sys_types.
17887         (configure.ac): Invoke gl_PREREQ_FSEEKO.
17889         * lib/sys_stat.in.h: Add comments about off_t.
17890         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
17891         64-bit integer for st_size in 'struct stat'.
17892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
17893         Define _GL_WINDOWS_64_BIT_ST_SIZE.
17894         * modules/sys_stat (Depends-on): Add sys_types.
17895         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
17897         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
17898         instead of stat or _stat.
17900         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
17901         'struct _stati64' instead of fstat and 'struct stat'.
17902         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
17903         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
17905         Reported by Ray Satiro <raysatiro@yahoo.com>.
17907 2012-04-19  Eric Blake  <eblake@redhat.com>
17909         bootstrap: accommodate older libtool
17910         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
17911         Reported by Daniel P. Berrange.
17913 2012-04-19  Jim Meyering  <meyering@redhat.com>
17915         announce-gen: avoid failure due to lack of Digest::SHA1
17916         Even with the preferred Digest::SHA available, this script
17917         would fail when the backup module, Digest::SHA1, was not installed.
17918         * build-aux/announce-gen: Quote the conditional use of "use".
17919         Reported by Reuben Thomas in:
17920         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
17922         bootstrap: don't let a user's CDPATH setting affect this script
17923         When CDPATH is set, cd will sometimes generate output.
17924         When "cd" is run in a subshell whose output matters, that
17925         surprising-to-some output can cause malfunction.
17926         Unsetting CDPATH turns off this shell "feature."
17927         * build-aux/bootstrap (CDPATH): Unset.
17928         Reported by Reuben Thomas in:
17929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
17930         and inspired by his patch here:
17931         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
17933 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
17934         and Jim Meyering  <meyering@redhat.com>
17936         maint.mk: catch "see @xref{}" and similar
17937         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
17938         prohibit "See also @xref{", "Also see @pxref{", and similar.
17940 2012-04-16  Jim Meyering  <meyering@redhat.com>
17942         bootstrap: really use gnulib's po/Makefile.in.in
17943         * build-aux/bootstrap: Correct the source file name in previous change.
17944         Reported by Akim Demaille.
17946         configmake: correct minor inconsistency in Makefile rule
17947         * modules/configmake (Makefile.am): All other rules like this one
17948         run the final "mv -f ..." in the same backslash-continued command
17949         as the one that does everything else.  This one put the mv -f ...
17950         command on a separate, non-backslash-continued line.
17951         Make it like the others.
17953         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
17954         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
17955         the one from gettext.  Reported by Akim Demaille.
17957 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
17959         Fix recursion of install-* into po directories.
17960         Bison's install-pdf bug reported by Hans Aberg at
17961         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
17962         * build-aux/po/Makefile.in.in (install-dvi, install-html)
17963         (install-info, install-pdf, install-ps): New targets.
17965 2012-04-16  Jim Meyering  <meyering@redhat.com>
17967         maint: avoid spurious "make sc_maint" failure
17968         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
17969         exempt all *.class file names, for lib/javaversion.class.
17971 2012-04-15  Bruno Haible  <bruno@clisp.org>
17973         lseek: Make configure test independent of environment.
17974         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
17975         Windows, we know that lseek() on pipes is broken; skip the runtime
17976         test.
17978 2012-04-14  Bruno Haible  <bruno@clisp.org>
17980         stat: Bypass buggy override in mingw64.
17981         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
17982         * lib/stat.c (stat) [mingw64]: Define to _stat.
17983         * doc/posix-functions/stat.texi: Mention mingw64 bug.
17985 2012-04-14  Bruno Haible  <bruno@clisp.org>
17987         pathmax: Fix compilation error on MSVC 9.
17988         * modules/pathmax (Depends-on): Add unistd.
17990 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17992         README: document pointer comparison assumption
17993         * README (Portability guidelines): Document assumption about
17994         pointer comparisons, in response to a recent bug-gnulib comment by
17995         Jeffrey Kegler.
17997 2012-04-12  Bruno Haible  <bruno@clisp.org>
17999         Tests for module 'getrusage'.
18000         * modules/getrusage-tests: New file.
18001         * tests/test-getrusage.c: New file.
18003         New module 'getrusage'.
18004         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
18005         warn-on-use.h.
18006         (getrusage): New declaration.
18007         * lib/getrusage.c: New file.
18008         * m4/getrusage.m4: New file.
18009         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
18010         is declared.
18011         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
18012         HAVE_GETRUSAGE.
18013         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
18014         snippet/c++defs, snippet/warn-on-use.
18015         (Makefile.am): Update generation of sys/resource.h. Substitute
18016         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
18017         * modules/getrusage: New file.
18018         * doc/posix-functions/getrusage.texi: Mention the new module.
18020 2012-04-12  Bruno Haible  <bruno@clisp.org>
18022         Tests for module 'sys_resource'.
18023         * modules/sys_resource-tests: New file.
18024         * tests/test-sys_resource.c: New file.
18026         New module 'sys_resource'.
18027         * lib/sys_resource.in.h: New file.
18028         * m4/sys_resource_h.m4: New file.
18029         * modules/sys_resource: New file.
18030         * doc/posix-headers/sys_resource.texi: Mention the new module.
18032 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
18034         ioctl: Fix compilation error on mingw.
18035         * lib/ioctl.c: Include <windows.h>.
18036         Also reported by Ray Satiro <raysatiro@yahoo.com>.
18038 2012-04-04  Jim Meyering  <meyering@redhat.com>
18040         regex: correct #pragma guard expression
18041         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
18042         not 4.3.  Correct its cpp guard expression.
18044 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
18046         regex: remove unnecessary type punning
18047         Problem reported by Vladimir Serbinenko in
18048         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
18049         * lib/regex.h (struct re_pattern_buffer): Change the type of
18050         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
18051         Fix comment to match code.
18052         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
18053         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
18054         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18055         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
18056         (set_regs):
18057         Omit no-longer-necessary casts.
18059 2012-04-03  Bruno Haible  <bruno@clisp.org>
18061         Tests for module 'ilogbl'.
18062         * modules/ilogbl-tests: New file.
18063         * tests/test-ilogbl.c: New file.
18065         New module 'ilogbl'.
18066         * lib/math.in.h (ilogbl): New declaration.
18067         * lib/ilogbl.c: New file.
18068         * m4/ilogbl.m4: New file.
18069         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
18070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
18071         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
18072         Split sed invocation, to avoid the limit of 100 substitutions of
18073         HP-UX 'sed'.
18074         * modules/ilogbl: New file.
18075         * tests/test-math-c++.cc: Check the declaration of ilogbl.
18076         * doc/posix-functions/ilogbl.texi: Mention the new module.
18078 2012-04-03  Bruno Haible  <bruno@clisp.org>
18080         Tests for module 'ilogbf'.
18081         * modules/ilogbf-tests: New file.
18082         * tests/test-ilogbf.c: New file.
18084         New module 'ilogbf'.
18085         * lib/math.in.h (ilogbf): New declaration.
18086         * lib/ilogbf.c: New file.
18087         * m4/ilogbf.m4: New file.
18088         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
18089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
18090         REPLACE_ILOGBF.
18091         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
18092         REPLACE_ILOGBF.
18093         * modules/ilogbf: New file.
18094         * tests/test-math-c++.cc: Check the declaration of ilogbf.
18095         * doc/posix-functions/ilogbf.texi: Mention the new module.
18097 2012-04-03  Bruno Haible  <bruno@clisp.org>
18099         Tests for module 'ilogb'.
18100         * modules/ilogb-tests: New file.
18101         * tests/test-ilogb.c: New file.
18102         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
18103         tests/test-logb-ieee.h.
18105         New module 'ilogb'.
18106         * lib/math.in.h (ilogb): New declaration.
18107         * lib/ilogb.c: New file.
18108         * m4/ilogb.m4: New file.
18109         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
18110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
18111         REPLACE_ILOGB.
18112         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
18113         REPLACE_ILOGB.
18114         * modules/ilogb: New file.
18115         * tests/test-math-c++.cc: Check the declaration of ilogb.
18116         * doc/posix-functions/ilogb.texi: Mention the new module.
18118 2012-04-03  Bruno Haible  <bruno@clisp.org>
18120         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
18121         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
18122         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
18123         (main): Check their values.
18124         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
18125         problem.
18127 2012-04-03  Bruno Haible  <bruno@clisp.org>
18129         Tests for module 'logbl-ieee'.
18130         * modules/logbl-ieee-tests: New file.
18131         * tests/test-logbl-ieee.c: New file.
18133         New module 'logbl-ieee'.
18134         * modules/logbl-ieee: New file.
18136         Tests for module 'logb-ieee'.
18137         * modules/logb-ieee-tests: New file.
18138         * tests/test-logb-ieee.c: New file.
18140         New module 'logb-ieee'.
18141         * modules/logb-ieee: New file.
18143         Tests for module 'logbf-ieee'.
18144         * modules/logbf-ieee-tests: New file.
18145         * tests/test-logbf-ieee.c: New file.
18146         * tests/test-logb-ieee.h: New file.
18148         New module 'logbf-ieee'.
18149         * modules/logbf-ieee: New file.
18151 2012-04-03  Bruno Haible  <bruno@clisp.org>
18153         Tests for module 'logbl'.
18154         * modules/logbl-tests: New file.
18155         * tests/test-logbl.c: New file.
18157         New module 'logbl'.
18158         * lib/math.in.h (logbl): New declaration.
18159         * lib/logbl.c: New file.
18160         * m4/logbl.m4: New file.
18161         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
18162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
18163         REPLACE_LOGBL.
18164         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
18165         REPLACE_LOGBL.
18166         * modules/logbl: New file.
18167         * tests/test-math-c++.cc: Check the declaration of logbl.
18168         * doc/posix-functions/logbl.texi: Mention the new module.
18170 2012-04-02  Bruno Haible  <bruno@clisp.org>
18172         Tests for module 'logbf'.
18173         * modules/logbf-tests: New file.
18174         * tests/test-logbf.c: New file.
18176         New module 'logbf'.
18177         * lib/math.in.h (logbf): New declaration.
18178         * lib/logbf.c: New file.
18179         * m4/logbf.m4: New file.
18180         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
18181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
18182         REPLACE_LOGBF.
18183         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
18184         REPLACE_LOGBF.
18185         * modules/logbf: New file.
18186         * tests/test-math-c++.cc: Check the declaration of logbf.
18187         * doc/posix-functions/logbf.texi: Mention the new module.
18189 2012-04-02  Bruno Haible  <bruno@clisp.org>
18191         logb tests: More tests.
18192         * tests/test-logb.h: New file, based on tests/test-logb.c and
18193         tests/test-frexp.h.
18194         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
18195         (main): Just invoke test_function.
18196         * modules/logb-tests (Files): Add tests/test-logb.h,
18197         tests/minus-zero.h, tests/randomd.c.
18198         (Makefile.am): Add randomd.c to test_logb_SOURCES.
18200         logb: Provide replacement and workarounds.
18201         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
18202         is 1.
18203         * lib/logb.c: New file.
18204         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
18205         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
18206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
18207         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
18208         * modules/logb (Files): Add lib/logb.c.
18209         (Depends-on): Add isfinite, frexp, isnand.
18210         (configure.ac): Compile the replacement code logb.c if needed.
18211         * tests/test-math-c++.cc: Check the declaration of logb.
18212         * doc/posix-functions/logb.texi: Mention the replacement and the bug
18213         with subnormal numbers.
18215 2012-04-02  Bruno Haible  <bruno@clisp.org>
18217         log10* tests: Speed up.
18218         * tests/test-log10.h (test_function): Reduce amount of random numbers
18219         to test.
18221 2012-04-01  Bruno Haible  <bruno@clisp.org>
18223         logf-ieee: Fix test whether logf works.
18224         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
18226 2012-04-01  Bruno Haible  <bruno@clisp.org>
18228         log10l: Work around log10l-ieee test failure on IRIX 6.5.
18229         * lib/log10l.c: Include <float.h>
18230         (log10l): On IRIX, normalize the +Infinity value.
18231         * modules/log10l (Depends-on): Add 'float'.
18232         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
18233         +Infinity.
18235         log10f-ieee: Work around test failure on NetBSD 5.1.
18236         * m4/log10f-ieee.m4: New file.
18237         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
18238         test whether log10f works with a negative argument. Replace it if not.
18239         * lib/log10f.c (log10f): For negative arguments, return NaN.
18240         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
18241         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
18242         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
18244         log10f-ieee: Work around test failure on Solaris 9.
18245         * modules/log10f-ieee (Depends-on): Add log10-ieee.
18246         (configure.ac): Require gl_FUNC_LOG10F.
18248         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
18249         * m4/log10-ieee.m4: New file.
18250         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
18251         whether log10 works with a negative argument. Replace it if not.
18252         * lib/log10.c (log10): For negative arguments, return NaN.
18253         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
18254         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
18255         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
18257         Tests for module 'log10l-ieee'.
18258         * modules/log10l-ieee-tests: New file.
18259         * tests/test-log10l-ieee.c: New file.
18261         New module 'log10l-ieee'.
18262         * modules/log10l-ieee: New file.
18264         Tests for module 'log10-ieee'.
18265         * modules/log10-ieee-tests: New file.
18266         * tests/test-log10-ieee.c: New file.
18268         New module 'log10-ieee'.
18269         * modules/log10-ieee: New file.
18271         Tests for module 'log10f-ieee'.
18272         * modules/log10f-ieee-tests: New file.
18273         * tests/test-log10f-ieee.c: New file.
18274         * tests/test-log10-ieee.h: New file.
18276         New module 'log10f-ieee'.
18277         * modules/log10f-ieee: New file.
18279 2012-04-01  Bruno Haible  <bruno@clisp.org>
18281         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
18282         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
18283         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
18284         workaround.
18285         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
18286         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
18287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
18288         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
18289         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
18290         (Depends-on): Update conditions.
18291         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
18292         IRIX 6.5, OSF/1 5.1 problems.
18294 2012-04-01  Bruno Haible  <bruno@clisp.org>
18296         log10f: Work around OSF/1 5.1 bug.
18297         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
18298         * lib/log10f.c (log10f): If logf exists, use it and provide just the
18299         workaround.
18300         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
18301         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
18302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
18303         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
18304         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
18305         (Depends-on): Update conditions.
18306         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
18308 2012-04-01  Bruno Haible  <bruno@clisp.org>
18310         log10: Work around OSF/1 5.1 bug.
18311         * lib/math.in.h (log10): New declaration.
18312         * lib/log10.c: New file.
18313         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
18314         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
18315         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
18316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
18317         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
18318         * modules/log10 (Files): Add lib/log10.c.
18319         (Depends-on): Add math.
18320         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
18321         * tests/test-math-c++.cc: Check the declaration of log10.
18322         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
18324 2012-03-31  Bruno Haible  <bruno@clisp.org>
18326         log10l tests: More tests.
18327         * modules/log10l-tests (Files): Add tests/test-log10l.h,
18328         tests/minus-zero.h, tests/randoml.c.
18329         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
18330         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
18331         (main): Invoke test_function.
18333         log10f tests: More tests.
18334         * modules/log10f-tests (Files): Add tests/test-log10.h,
18335         tests/minus-zero.h, tests/randomf.c.
18336         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
18337         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
18338         (main): Invoke test_function.
18340         log10 tests: More tests.
18341         * tests/test-log10.h: New file.
18342         * modules/log10-tests (Files): Add tests/test-log10.h,
18343         tests/minus-zero.h, tests/randomd.c.
18344         (Makefile.am): Add randomd.c to test_log10_SOURCES.
18345         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
18346         (main): Invoke test_function.
18348 2012-03-31  Simon Josefsson  <simon@josefsson.org>
18350         fflush: Fix syntax error.
18351         * lib/fflush.c: Include unused-parameter.h, needed for
18352         _GL_UNUSED_PARAMETER.
18353         * modules/fflush (Depends-on): Add snippet/unused-parameter.
18355 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
18357         regex: pacify GCC when compiling GRUB
18358         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
18359         a diagnostic.  Reported by Vladimir Serbinenko in
18360         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
18362 2012-03-29  Eric Blake  <eblake@redhat.com>
18364         stdio: don't assume gets any more
18365         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
18366         support.
18367         * modules/stdio (Makefile.am): Likewise.
18368         * lib/stdio-read.c (gets): Likewise.
18369         * tests/test-stdio-c++.cc: Likewise.
18370         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
18371         * lib/stdio.in.h (gets): Make warning occur in more places.
18372         * doc/posix-functions/gets.texi (gets): Update documentation.
18373         Reported by Christer Solskogen.
18375         maint.mk: fix syntax checks without exclusions
18376         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
18377         Reported by Daniel P. Berrange.
18379         strerror_r: avoid compiler warning
18380         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
18381         level.
18383         fflush: avoid compiler warning
18384         * lib/fflush.c (update_fpos_cache): Mark variables that are
18385         potentially unused.
18387 2012-03-25  Bruno Haible  <bruno@clisp.org>
18389         Tests for module 'localeconv'.
18390         * modules/localeconv-tests: New file.
18391         * tests/test-localeconv.c: New file.
18393         New module 'localeconv'.
18394         * lib/locale.in.h (localeconv): New declaration.
18395         * lib/localeconv.c: New file.
18396         * m4/localeconv.m4: New file.
18397         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
18398         REPLACE_LOCALECONV.
18399         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
18400         REPLACE_LOCALECONV.
18401         * modules/localeconv: New file.
18402         * modules/nl_langinfo (Depends-on): Add localeconv.
18403         * modules/human (Depends-on): Likewise.
18404         * doc/posix-functions/localeconv.texi: Mention the new module.
18406 2012-03-25  Bruno Haible  <bruno@clisp.org>
18408         locale: Provide a complete 'struct lconv'.
18409         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
18410         'struct lconv' does not contain int_p_cs_precedes.
18411         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
18412         * doc/posix-headers/locale.texi: Update.
18414         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
18415         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
18416         * doc/posix-headers/locale.texi: Update.
18418         locale: Provide a working 'struct lconv'.
18419         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
18420         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
18421         'struct lconv' does not even contain decimal_point.
18422         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
18423         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
18424         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
18425         * doc/posix-headers/locale.texi: Mention the problems with
18426         'struct lconv'.
18427         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18429 2012-03-24  Bruno Haible  <bruno@clisp.org>
18431         Enable common subexpression optimization in GCC.
18432         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
18433         macros.
18434         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
18435         GCC attribute 'const'.
18436         (uc_locale_language): Declare with GCC attribute 'pure'.
18437         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
18438         with GCC attribute 'const'.
18439         * lib/unictype.in.h (uc_is_general_category_withtable,
18440         uc_combining_class, uc_combining_class_name,
18441         uc_combining_class_long_name, uc_bidi_class_name,
18442         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
18443         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
18444         uc_decimal_value, uc_digit_value, uc_numeric_value,
18445         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
18446         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
18447         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
18448         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
18449         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
18450         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
18451         Declare with GCC attribute 'const'.
18452         (uc_general_category_name, uc_general_category_long_name,
18453         uc_general_category_byname, uc_general_category,
18454         uc_is_general_category, uc_combining_class_byname,
18455         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
18456         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
18457         Declare with GCC attribute 'pure'.
18458         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
18459         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
18460         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
18461         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
18462         with GCC attribute 'pure'.
18463         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
18464         'const'.
18465         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
18466         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
18467         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
18468         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
18469         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
18470         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
18471         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
18472         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
18473         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
18474         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
18475         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
18476         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
18477         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
18478         GCC attribute 'pure'.
18479         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
18480         'const'.
18481         * lib/uniwidth.in.h (uc_width): Simplify declaration.
18482         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
18483         u32_strwidth): Declare with GCC attribute 'pure'.
18485         Enable common subexpression optimization in GCC.
18486         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18487         (alphasort): Declare with GCC attribute 'pure'.
18488         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18489         (atoll): Declare with GCC attribute 'pure'.
18490         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18491         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18492         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
18493         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18494         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
18495         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
18496         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
18498 2012-03-24  Bruno Haible  <bruno@clisp.org>
18500         gnulib-tool: Avoid unintended error output from 'cmp'.
18501         * gnulib-tool (func_add_file, func_update_file, func_import): Use
18502         "cmp -s", not "cmp > /dev/null".
18504 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
18506         gnulib-tool: fix imprecise comments w.r.t. an automake bug
18508         It's not just Automake versions < 1.9b that creates an empty
18509         pkgdatadir at installation time if pkgdata_DATA is specified
18510         to empty; modern automake versions do this as well, at least
18511         until automake 1.11.4 (not yet released at the moment of writing,
18512         but soon to appear).  That behaviour was generally considered a
18513         feature rather than a bug, at least until this discussion:
18514         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
18516         See also automake bugs #10997 and #11030.
18518         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
18519         reference to relevant automake bug numbers.
18520         (func_emit_tests_Makefile_am): Likewise.
18522 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
18524         announce-gen: use Digest::SHA when possible
18525         * build-aux/announce-gen: Use Digest::SHA when possible, falling
18526         back to Digest::SHA1 if necessary.
18528 2012-03-20  Jim Meyering  <meyering@redhat.com>
18530         tests: avoid gcc warnings about argv vs. const initializers
18531         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
18532         warnings about discarding 'const' qualifier from pointer target type.
18533         * tests/test-posix_spawn2.c (main): Likewise.
18535 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
18537         README-release: simplify slightly
18538         * top/README-release: Run "git checkout master" only once.
18540 2012-03-15  Mark Wielaard  <mark@klomp.org>
18542         git-merge-changelog: add specific example on how to use with hg.
18543         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
18545 2012-03-18  Mark Wielaard  <mark@klomp.org>
18547         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
18549 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
18551         git-version-gen: don't let "prefix" envvar cause trouble
18552         * build-aux/git-version-gen (prefix): Initialize properly,
18553         so as not to use a value specified via the environment.
18554         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
18556 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18558         regex: diagnose too-large repeat counts in EREs
18559         Previously, the code did not diagnose the too-large repeat count
18560         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
18561         as if it were 'b\{1000000000}', which is unexpected.
18562         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
18563         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
18564         is a reasonable one for this problem.  Another option would be to
18565         create a new REG_OVERFLOW error for repeat counts that are too large.
18566         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
18567         count is too large, so that the caller can distinguish the two cases.
18568         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
18569         "Too large" return code, and that repeat counts are one example of this.
18571 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18573         doc: some glibc x32 integer width issues
18574         * doc/posix-headers/sys_types.texi (sys/types.h):
18575         * doc/posix-headers/time.texi (time.h):
18576         Mention that glibc x32 does not conform to POSIX in a couple of
18577         areas related to integer widths.
18579 2012-03-15  Bruno Haible  <bruno@clisp.org>
18581         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
18582         * lib/fma.c (VOLATILE): New macro.
18583         (FUNC): Use it to work around a GCC compiler bug.
18585 2012-03-13  Bruno Haible  <bruno@clisp.org>
18587         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18588         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
18589         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
18590         REPLACE_HYPOTL to 1.
18591         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
18593 2012-03-13  Bruno Haible  <bruno@clisp.org>
18595         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18596         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
18597         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
18598         REPLACE_REMAINDERL to 1.
18599         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
18600         bug.
18602 2012-03-13  Bruno Haible  <bruno@clisp.org>
18604         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18605         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
18606         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
18607         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
18608         too big rounding errors.
18609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
18610         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
18611         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
18612         (Depends-on): Update conditions.
18613         * tests/test-sqrtl.c (my_ldexpl): New function.
18614         (main): Add test of a particular value.
18615         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
18617 2012-03-13  Pádraig Brady  <P@draigBrady.com>
18619         doc: Update timer_* platform portability notes.
18620         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
18621         that always return ENOSYS.
18622         * doc/posix-functions/timer_delete.texi: Likewise.
18623         * doc/posix-functions/timer_gettime.texi: Likewise.
18624         * doc/posix-functions/timer_settime.texi: Likewise.
18626 2012-03-13  Bruno Haible  <bruno@clisp.org>
18628         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18629         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
18630         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
18631         REPLACE_CBRTL to 1.
18632         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
18634 2012-03-13  Bruno Haible  <bruno@clisp.org>
18636         remainderl: Avoid compilation error on AIX >= 5.2.
18637         * lib/math.in.h (remainderl): Undefine macro from the system header.
18639 2012-03-13  Bruno Haible  <bruno@clisp.org>
18641         Avoid compilation errors with MSVC option -fp:strict.
18642         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
18643         * lib/cbrtf.c: Likewise.
18644         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
18646 2012-03-12  Bruno Haible  <bruno@clisp.org>
18648         uninorm: Don't crash in out-of-memory conditions.
18649         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
18650         gracefully.
18651         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
18652         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
18654 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
18656         quote: fix syntax-check
18657         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
18658         also exports quote_quoting_options.
18660 2012-03-12  Simon Josefsson  <simon@josefsson.org>
18662         Collapse list of copyright years to ranges.  See
18663         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
18664         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
18665         build-aux/csharpexec.sh.in, build-aux/gnupload,
18666         build-aux/install-reloc, build-aux/javacomp.sh.in,
18667         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
18668         build-aux/move-if-change, build-aux/reloc-ldflags,
18669         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
18671 2012-03-11  Bruno Haible  <bruno@clisp.org>
18673         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18674         * m4/log2f-ieee.m4: New file.
18675         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
18676         whether log2f works with a minus zero argument. Replace it if not.
18677         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
18678         (Depends-on): Add log2-ieee.
18679         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
18680         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
18682         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18683         * m4/log2-ieee.m4: New file.
18684         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
18685         whether log2 works with a minus zero argument. Replace it if not.
18686         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
18687         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
18688         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
18690         Tests for module 'log2l-ieee'.
18691         * modules/log2l-ieee-tests: New file.
18692         * tests/test-log2l-ieee.c: New file.
18694         New module 'log2l-ieee'.
18695         * modules/log2l-ieee: New file.
18697         Tests for module 'log2-ieee'.
18698         * modules/log2-ieee-tests: New file.
18699         * tests/test-log2-ieee.c: New file.
18701         New module 'log2-ieee'.
18702         * modules/log2-ieee: New file.
18704         Tests for module 'log2f-ieee'.
18705         * modules/log2f-ieee-tests: New file.
18706         * tests/test-log2f-ieee.c: New file.
18707         * tests/test-log2-ieee.h: New file.
18709         New module 'log2f-ieee'.
18710         * modules/log2f-ieee: New file.
18712 2012-03-11  Bruno Haible  <bruno@clisp.org>
18714         Tests for module 'log2l'.
18715         * modules/log2l-tests: New file.
18716         * tests/test-log2l.c: New file.
18718         New module 'log2l'.
18719         * lib/math.in.h (log2l): New declaration.
18720         * lib/log2l.c: New file.
18721         * m4/log2l.m4: New file.
18722         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
18723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
18724         REPLACE_LOG2L.
18725         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
18726         REPLACE_LOG2L.
18727         * modules/log2l: New file.
18728         * tests/test-math-c++.cc: Check the declaration of log2l.
18729         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
18730         and OSF/1 problems.
18732 2012-03-11  Bruno Haible  <bruno@clisp.org>
18734         Tests for module 'log2f'.
18735         * modules/log2f-tests: New file.
18736         * tests/test-log2f.c: New file.
18738         New module 'log2f'.
18739         * lib/math.in.h (log2f): New declaration.
18740         * lib/log2f.c: New file.
18741         * m4/log2f.m4: New file.
18742         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
18743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
18744         REPLACE_LOG2F.
18745         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
18746         REPLACE_LOG2F.
18747         * modules/log2f: New file.
18748         * tests/test-math-c++.cc: Check the declaration of log2f.
18749         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
18750         and OSF/1 and Cygwin problems.
18752 2012-03-11  Bruno Haible  <bruno@clisp.org>
18754         Tests for module 'log2'.
18755         * modules/log2-tests: New file.
18756         * tests/test-log2.c: New file.
18757         * tests/test-log2.h: New file.
18759         New module 'log2'.
18760         * lib/math.in.h (log2): New declaration.
18761         * lib/log2.c: New file.
18762         * m4/log2.m4: New file.
18763         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
18764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
18765         REPLACE_LOG2.
18766         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
18767         REPLACE_LOG2.
18768         * modules/log2: New file.
18769         * tests/test-math-c++.cc: Check the declaration of log2.
18770         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
18771         and OSF/1 and Cygwin problems.
18773 2012-03-11  Bruno Haible  <bruno@clisp.org>
18775         exp2* tests: More tests.
18776         * tests/test-exp2.h (test_function): Test all integral arguments that
18777         don't need to overflow or denormalized numbers.
18778         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
18779         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
18780         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
18782 2012-03-10  Bruno Haible  <bruno@clisp.org>
18784         log1pl-ieee: Work around test failure on AIX 7.1.
18785         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
18787         log1pl-ieee: Work around test failure on IRIX 6.5.
18788         * m4/log1pl-ieee.m4: New file.
18789         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
18790         test whether log1pl works with a minus zero argument. Replace it if
18791         not.
18792         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
18793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
18794         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
18795         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
18796         (Depends-on): Update conditions.
18797         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
18798         m4/signbit.m4.
18799         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
18800         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
18802         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
18803         * m4/log1pf-ieee.m4: New file.
18804         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
18805         test whether log1pf works with a minus zero argument. Replace it if
18806         not.
18807         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
18808         m4/signbit.m4.
18809         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
18810         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
18812         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
18813         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
18814         (configure.ac): Require gl_FUNC_LOG1PF.
18816         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
18817         * m4/log1p-ieee.m4: New file.
18818         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
18819         whether log1p works with a minus zero argument. Replace it if not.
18820         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
18821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
18822         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
18823         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
18824         (Depends-on): Update conditions.
18825         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
18826         m4/signbit.m4.
18827         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
18828         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
18830         Tests for module 'log1pl-ieee'.
18831         * modules/log1pl-ieee-tests: New file.
18832         * tests/test-log1pl-ieee.c: New file.
18834         New module 'log1pl-ieee'.
18835         * modules/log1pl-ieee: New file.
18837         Tests for module 'log1p-ieee'.
18838         * modules/log1p-ieee-tests: New file.
18839         * tests/test-log1p-ieee.c: New file.
18841         New module 'log1p-ieee'.
18842         * modules/log1p-ieee: New file.
18844         Tests for module 'log1pf-ieee'.
18845         * modules/log1pf-ieee-tests: New file.
18846         * tests/test-log1pf-ieee.c: New file.
18847         * tests/test-log1p-ieee.h: New file.
18849         New module 'log1pf-ieee'.
18850         * modules/log1pf-ieee: New file.
18852 2012-03-10  Bruno Haible  <bruno@clisp.org>
18854         Tests for module 'log1pl'.
18855         * modules/log1pl-tests: New file.
18856         * tests/test-log1pl.c: New file.
18858         New module 'log1pl'.
18859         * lib/math.in.h (log1pl): New declaration.
18860         * lib/log1pl.c: New file.
18861         * m4/log1pl.m4: New file.
18862         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
18863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
18864         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
18865         * modules/log1pl: New file.
18866         * tests/test-math-c++.cc: Check the declaration of log1pl.
18867         * doc/posix-functions/log1pl.texi: Mention the new module.
18869 2012-03-10  Bruno Haible  <bruno@clisp.org>
18871         Tests for module 'log1pf'.
18872         * modules/log1pf-tests: New file.
18873         * tests/test-log1pf.c: New file.
18875         New module 'log1pf'.
18876         * lib/math.in.h (log1pf): New declaration.
18877         * lib/log1pf.c: New file.
18878         * m4/log1pf.m4: New file.
18879         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
18880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
18881         REPLACE_LOG1PF.
18882         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
18883         REPLACE_LOG1PF.
18884         * modules/log1pf: New file.
18885         * tests/test-math-c++.cc: Check the declaration of log1pf.
18886         * doc/posix-functions/log1pf.texi: Mention the new module.
18888 2012-03-10  Bruno Haible  <bruno@clisp.org>
18890         log1p tests: More tests.
18891         * tests/test-log1p.h: New file.
18892         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
18893         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
18894         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
18895         (main): Invoke test_function.
18897         log1p: Provide replacement for Minix and MSVC.
18898         * lib/math.in.h (log1p): New declaration.
18899         * lib/log1p.c: New file.
18900         * m4/log1p.m4: New file.
18901         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
18902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
18903         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
18904         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
18905         (Depends-on): Add math, isnand, log, round.
18906         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
18907         HAVE_LOG1P is 0.
18908         * tests/test-math-c++.cc: Check the declaration of log1p.
18909         * doc/posix-functions/log1p.texi: Mention the replacement.
18911 2012-03-10  Bruno Haible  <bruno@clisp.org>
18913         math tests: Small simplification.
18914         * tests/test-exp.h (test_function): Use the same err_bound for
18915         'double' on platforms with sizeof (long double) == sizeof (double)
18916         than on platforms with sizeof (long double) > sizeof (double).
18917         * tests/test-exp2.h (test_function): Likewise.
18918         * tests/test-expm1.h (test_function): Likewise.
18919         * tests/test-log.h (test_function): Likewise.
18921 2012-03-10  Bruno Haible  <bruno@clisp.org>
18923         Fix some comments.
18924         * lib/expl.c: Fix an ambiguous comment.
18925         * lib/expm1.c: Likewise.
18926         * lib/expm1l.c: Likewise.
18927         * lib/exp2.c: Likewise.
18928         * lib/exp2l.c: Likewise.
18930 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
18932         regex: allow inclusion of <regex.h> before <limits.h>
18933         Without this patch, portable programs had to include <limits.h> before
18934         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
18935         I ran into this problem with a test version of GNU grep on Solaris 8.
18936         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
18937         This is done conditionally so that this change can be merged
18938         back to glibc.
18939         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
18940         using the included regex.
18942         fts: depend on fdopendir
18943         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
18944         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
18945         problem was introduced when fdopendir was split out.
18947 2012-03-10  Bruno Haible  <bruno@clisp.org>
18949         Remove unused variables.
18950         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
18951         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
18953 2012-03-10  Bruno Haible  <bruno@clisp.org>
18955         isnanf-nolibm: Fix last commit.
18956         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
18958         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
18959         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
18961 2012-03-10  Bruno Haible  <bruno@clisp.org>
18963         logf-ieee: Work around test failure on NetBSD 5.1.
18964         * m4/logf-ieee.m4: New file.
18965         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
18966         whether logf works with a negative argument. Replace it if not.
18967         * lib/logf.c (logf): For negative arguments, return NaN.
18968         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
18969         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
18970         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
18972         logf-ieee: Work around test failure on Solaris 9.
18973         * modules/logf-ieee (Depends-on): Add log-ieee.
18974         (configure.ac): Require gl_FUNC_LOGF.
18976         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
18977         * m4/log-ieee.m4: New file.
18978         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
18979         log works with a negative argument. Replace it if not.
18980         * lib/log.c (log): For negative arguments, return NaN.
18981         * modules/log-ieee (Files): Add m4/log-ieee.m4.
18982         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
18983         * doc/posix-functions/log.texi: Mention the log-ieee module.
18985         Tests for module 'logl-ieee'.
18986         * modules/logl-ieee-tests: New file.
18987         * tests/test-logl-ieee.c: New file.
18989         New module 'logl-ieee'.
18990         * modules/logl-ieee: New file.
18992         Tests for module 'log-ieee'.
18993         * modules/log-ieee-tests: New file.
18994         * tests/test-log-ieee.c: New file.
18996         New module 'log-ieee'.
18997         * modules/log-ieee: New file.
18999         Tests for module 'logf-ieee'.
19000         * modules/logf-ieee-tests: New file.
19001         * tests/test-logf-ieee.c: New file.
19002         * tests/test-log-ieee.h: New file.
19004         New module 'logf-ieee'.
19005         * modules/logf-ieee: New file.
19007 2012-03-10  Bruno Haible  <bruno@clisp.org>
19009         log: Fix bug introduced on 2012-03-09.
19010         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
19012 2012-03-10  Pádraig Brady  <P@draigBrady.com>
19014         timer-time: link explicitly with pthreads on glibc
19015         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19016         to support static linking, when newer glibc is
19017         detected, as that contains pthread emulation of
19018         POSIX timer functions where required.
19019         * modules/timer-time: Depend on threadlib to
19020         pull in the appropriate library to link.
19022 2012-03-10  Bruno Haible  <bruno@clisp.org>
19024         log* tests: More tests.
19025         * tests/test-log.h: New file.
19026         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
19027         (main): Invoke test_function.
19028         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
19029         (main): Invoke test_function.
19030         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
19031         (main): Invoke test_function.
19032         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19033         tests/randomd.c.
19034         (Makefile.am): Add randomd.c to test_log_SOURCES.
19035         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19036         tests/randomf.c.
19037         (Makefile.am): Add randomf.c to test_logf_SOURCES.
19038         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19039         tests/randoml.c.
19040         (Depends-on): Add 'float'.
19041         (Makefile.am): Add randoml.c to test_logl_SOURCES.
19043 2012-03-09  Bruno Haible  <bruno@clisp.org>
19045         logl: Work around OSF/1 5.1 bug.
19046         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
19047         * lib/logl.c (logl): If logl exists, use it and provide just the
19048         workaround.
19049         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
19050         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
19051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
19052         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
19053         * modules/logl (configure.ac): Consider REPLACE_LOGL.
19054         (Depends-on): Update conditions.
19055         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
19057 2012-03-09  Bruno Haible  <bruno@clisp.org>
19059         logf: Work around OSF/1 5.1 bug.
19060         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
19061         * lib/logf.c (logf): If logf exists, use it and provide just the
19062         workaround.
19063         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
19064         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
19065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
19066         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
19067         * modules/logf (configure.ac): Consider REPLACE_LOGF.
19068         (Depends-on): Update conditions.
19069         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
19071 2012-03-09  Bruno Haible  <bruno@clisp.org>
19073         log: Work around OSF/1 5.1 bug.
19074         * lib/math.in.h (log): New declaration.
19075         * lib/log.c: New file.
19076         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
19077         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
19078         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
19079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
19080         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
19081         * modules/log (Files): Add lib/log.c.
19082         (Depends-on): Add math.
19083         (configure.ac): If REPLACE_LOG is 1, compile an override.
19084         * tests/test-math-c++.cc: Check the declaration of log.
19085         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
19087 2012-03-09  Jim Meyering  <meyering@redhat.com>
19089         readtokens.c: adjust wording in a comment
19090         * lib/readtokens.c: Insert omitted "that" in a comment.
19092 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19094         modechange: add notations +40, 00440, etc.
19095         * lib/modechange.c (mode_compile): Support new notations
19096         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
19098 2012-03-08  Bruno Haible  <bruno@clisp.org>
19100         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
19101         * m4/exp2l-ieee.m4: New file.
19102         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
19103         test whether exp2l works with a NaN argument and with a negative
19104         infinity argument. Replace it if not.
19105         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
19106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
19107         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
19108         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
19109         (Depends-on): Update conditions.
19110         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
19111         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
19112         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
19114         Tests for module 'exp2l-ieee'.
19115         * modules/exp2l-ieee-tests: New file.
19116         * tests/test-exp2l-ieee.c: New file.
19118         New module 'exp2l-ieee'.
19119         * modules/exp2l-ieee: New file.
19121         Tests for module 'exp2-ieee'.
19122         * modules/exp2-ieee-tests: New file.
19123         * tests/test-exp2-ieee.c: New file.
19125         New module 'exp2-ieee'.
19126         * modules/exp2-ieee: New file.
19128         Tests for module 'exp2f-ieee'.
19129         * modules/exp2f-ieee-tests: New file.
19130         * tests/test-exp2f-ieee.c: New file.
19131         * tests/test-exp2-ieee.h: New file.
19133         New module 'exp2f-ieee'.
19134         * modules/exp2f-ieee: New file.
19136 2012-03-08  Bruno Haible  <bruno@clisp.org>
19138         Tests for module 'exp2l'.
19139         * modules/exp2l-tests: New file.
19140         * tests/test-exp2l.c: New file.
19142         New module 'exp2l'.
19143         * lib/math.in.h (exp2l): New declaration.
19144         * lib/exp2l.c: New file.
19145         * lib/expl-table.c: New file, extracted from lib/expl.c.
19146         * lib/expl.c (gl_expl_table): New declaration.
19147         (expl): Remove expl_table. Update reference.
19148         * m4/exp2l.m4: New file.
19149         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
19150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
19151         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
19152         * modules/exp2l: New file.
19153         * modules/expl (Files): Add lib/expl-table.c.
19154         (configure.ac): Compile also expl-table.c.
19155         * tests/test-math-c++.cc: Check the declaration of exp2l.
19156         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
19157         problem.
19159 2012-03-08  Bruno Haible  <bruno@clisp.org>
19161         Tests for module 'exp2f'.
19162         * modules/exp2f-tests: New file.
19163         * tests/test-exp2f.c: New file.
19165         New module 'exp2f'.
19166         * lib/math.in.h (exp2f): New declaration.
19167         * lib/exp2f.c: New file.
19168         * m4/exp2f.m4: New file.
19169         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
19170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
19171         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
19172         * modules/exp2f: New file.
19173         * tests/test-math-c++.cc: Check the declaration of exp2f.
19174         * doc/posix-functions/exp2f.texi: Mention the new module and the
19175         IRIX problem.
19177 2012-03-08  Bruno Haible  <bruno@clisp.org>
19179         Tests for module 'exp2'.
19180         * modules/exp2-tests: New file.
19181         * tests/test-exp2.c: New file.
19182         * tests/test-exp2.h: New file.
19184         New module 'exp2'.
19185         * lib/math.in.h (exp2): New declaration.
19186         * lib/exp2.c: New file.
19187         * m4/exp2.m4: New file.
19188         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
19189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
19190         REPLACE_EXP2.
19191         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
19192         REPLACE_EXP2.
19193         * modules/exp2: New file.
19194         * tests/test-math-c++.cc: Check the declaration of exp2.
19195         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
19196         and OpenBSD problems.
19198 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19200         savedir: fix comment typo
19201         * lib/savedir.c (savedirstream): Fix typo in comment.
19203 2012-03-08  Bruno Haible  <bruno@clisp.org>
19205         test-readtokens.c: use const; remove unwarranted cast
19206         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
19208 2012-03-08  Bruno Haible  <bruno@clisp.org>
19210         fmal: Avoid compilation error on AIX.
19211         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
19212         AIX 5.2..7.1.
19214 2012-03-08  Bruno Haible  <bruno@clisp.org>
19216         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
19217         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
19218         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
19219         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
19220         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
19221         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
19222         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
19224 2012-03-08  Bruno Haible  <bruno@clisp.org>
19226         remainderf: Override buggy system function on IRIX 6.5.
19227         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
19228         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
19229         when it exists.
19230         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
19232 2012-03-08  Jim Meyering  <meyering@redhat.com>
19234         test-readtokens.c: avoid const-related compilation warnings
19235         * tests/test-readtokens.c: Avoid const-related compilation warnings.
19237 2012-03-07  Jim Meyering  <meyering@redhat.com>
19238             Bruno Haible  <bruno@clisp.org>
19240         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
19241         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
19242         tests/randomd.c.
19243         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
19244         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
19245         tests/randoml.c.
19246         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
19248 2012-03-07  Bruno Haible  <bruno@clisp.org>
19250         expm1l: Avoid compilation error on AIX.
19251         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
19252         AIX 5.2..7.1.
19254 2012-03-07  Bruno Haible  <bruno@clisp.org>
19256         expm1l: Don't override undeclared system function on IRIX 6.5.
19257         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
19258         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
19259         it exists. Set HAVE_DECL_EXPM1L.
19260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
19261         HAVE_EXPM1L.
19262         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
19263         HAVE_EXPM1L.
19264         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
19266 2012-03-07  Bruno Haible  <bruno@clisp.org>
19268         remainderl: Don't override undeclared system function on IRIX 6.5.
19269         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
19270         HAVE_REMAINDERL.
19271         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
19272         declared when it exists. Set HAVE_DECL_REMAINDERL.
19273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
19274         not HAVE_REMAINDERL.
19275         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
19276         HAVE_REMAINDERL.
19277         * doc/posix-functions/remainderl.texi: Mention missing declaration
19278         problem.
19280 2012-03-07  Bruno Haible  <bruno@clisp.org>
19282         rintf: Don't override undeclared system function on IRIX 6.5.
19283         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
19284         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
19285         exists. Set HAVE_DECL_RINTF.
19286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
19287         HAVE_RINTF.
19288         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
19289         HAVE_RINTF.
19290         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
19292 2012-03-07  Bruno Haible  <bruno@clisp.org>
19294         roundl: Avoid compilation error on AIX.
19295         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
19296         AIX 5.2..7.1.
19298 2012-03-07  Bruno Haible  <bruno@clisp.org>
19300         roundl: Don't override undeclared system function on IRIX 6.5.
19301         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
19302         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
19303         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
19304         * modules/roundl (configure.ac): For replacement code, test
19305         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
19306         (Depends-on): Update conditions.
19307         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
19309 2012-03-07  Bruno Haible  <bruno@clisp.org>
19311         roundf: Don't override undeclared system function on IRIX 6.5.
19312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
19313         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
19314         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
19315         * modules/roundf (configure.ac): For replacement code, test
19316         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
19317         (Depends-on): Update conditions.
19318         * modules/roundf-ieee (Depends-on): Update conditions.
19319         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
19321 2012-03-07  Bruno Haible  <bruno@clisp.org>
19323         round: Don't override undeclared system function on IRIX 6.5.
19324         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
19325         argument.
19326         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
19327         also when it is not declared. Set HAVE_ROUND. For replacement code,
19328         test HAVE_ROUND, not HAVE_DECL_ROUND.
19329         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
19330         not HAVE_DECL_ROUND.
19331         (Depends-on): Update conditions.
19332         * modules/round-ieee (Depends-on): Update conditions.
19333         * doc/posix-functions/round.texi: Mention the IRIX problem.
19335 2012-03-07  Bruno Haible  <bruno@clisp.org>
19337         copysignf: Don't override undeclared system function on IRIX 6.5.
19338         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
19339         HAVE_COPYSIGNF.
19340         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
19341         declared when it exists. Set HAVE_DECL_COPYSIGNF.
19342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
19343         not HAVE_COPYSIGNF.
19344         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
19345         HAVE_COPYSIGNF.
19346         * doc/posix-functions/copysignf.texi: Mention missing declaration
19347         problem.
19349 2012-03-07  Jim Meyering  <meyering@redhat.com>
19351         readtokens: add tests
19352         * modules/readtokens-tests: New file.
19353         * tests/test-readtokens.c: New file.
19355 2012-03-07  Jim Meyering  <meyering@redhat.com>
19357         quotearg: the module must now include quote.h
19358         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
19359         So must the module.
19360         * modules/quotearg (Files): Add quote.h.
19362 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
19364         readtokens: avoid core dumps with unusual calling patterns
19365         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
19366         * lib/readtokens.c: Include limits.h.
19367         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
19368         (readtoken): Don't cache the delimiters; the cache code was buggy
19369         if !delim && saved_delim, or if the new n_delim differs from the old.
19370         Also, it wasn't thread-safe.
19372 2012-03-07  Bruno Haible  <bruno@clisp.org>
19374         quote: Adhere to common module description layout.
19375         * modules/quote (Makefile.am): Add back empty section.
19377 2012-03-06  Akim Demaille  <demaille@gostai.com>
19379         quote: fuse into quotearg
19380         This patch is made for the benefit of Bison.
19381         quote does not leave the choice of the quoting style to the user.
19382         quoting_style provides poor customizability, yet quoting_options,
19383         which is very rich, is hidden inside quotearg.c.  So in order to
19384         allow quote customization, move its implementation to quotearg.c.
19385         * lib/quote.c: Remove.
19386         * modules/quote: Adjust.
19387         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
19388         warning: provide all the members of literal structs.
19389         (quote_quoting_options): New.
19390         (quote, quote_n): Import implementation from quote.c.
19391         * lib/quote.h: Import the comments from quote.c.
19392         (quote_quoting_options): New.
19394 2012-03-06  Bruno Haible  <bruno@clisp.org>
19396         Tests for module 'expm1l-ieee'.
19397         * modules/expm1l-ieee-tests: New file.
19398         * tests/test-expm1l-ieee.c: New file.
19400         New module 'expm1l-ieee'.
19401         * modules/expm1l-ieee: New file.
19403         Tests for module 'expm1f-ieee'.
19404         * modules/expm1f-ieee-tests: New file.
19405         * tests/test-expm1f-ieee.c: New file.
19407         New module 'expm1f-ieee'.
19408         * modules/expm1f-ieee: New file.
19410         Tests for module 'expm1-ieee'.
19411         * modules/expm1-ieee-tests: New file.
19412         * tests/test-expm1-ieee.c: New file.
19413         * tests/test-expm1-ieee.h: New file.
19415         New module 'expm1-ieee'.
19416         * modules/expm1-ieee: New file.
19417         * m4/expm1-ieee.m4: New file.
19418         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
19419         whether expm1 works with a minus zero argument. Replace it if not.
19420         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
19421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
19422         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
19423         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
19424         (Depends-on): Update conditions.
19425         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
19426         AIX problem.
19428 2012-03-06  Bruno Haible  <bruno@clisp.org>
19430         Work around expm1f bug on IRIX 6.5.
19431         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
19432         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
19433         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
19434         not work.
19435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
19436         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
19437         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
19438         (Depends-on): Update conditions.
19439         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
19441 2012-03-06  Bruno Haible  <bruno@clisp.org>
19443         Tests for module 'expm1l'.
19444         * modules/expm1l-tests: New file.
19445         * tests/test-expm1l.c: New file.
19447         New module 'expm1l'.
19448         * lib/math.in.h (expm1l): New declaration.
19449         * lib/expm1l.c: New file.
19450         * m4/expm1l.m4: New file.
19451         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
19452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
19453         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
19454         * modules/expm1l: New file.
19455         * tests/test-math-c++.cc: Check the declaration of expm1l.
19456         * doc/posix-functions/expm1l.texi: Mention the new module.
19458 2012-03-06  Bruno Haible  <bruno@clisp.org>
19460         Tests for module 'expm1f'.
19461         * modules/expm1f-tests: New file.
19462         * tests/test-expm1f.c: New file.
19464         New module 'expm1f'.
19465         * lib/math.in.h (expm1f): New declaration.
19466         * lib/expm1f.c: New file.
19467         * m4/expm1f.m4: New file.
19468         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
19469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
19470         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
19471         * modules/expm1f: New file.
19472         * tests/test-math-c++.cc: Check the declaration of expm1f.
19473         * doc/posix-functions/expm1f.texi: Mention the new module.
19475 2012-03-06  Bruno Haible  <bruno@clisp.org>
19477         Tests for module 'expm1'.
19478         * modules/expm1-tests: New file.
19479         * tests/test-expm1.c: New file.
19480         * tests/test-expm1.h: New file.
19482         New module 'expm1'.
19483         * lib/math.in.h (expm1): New declaration.
19484         * lib/expm1.c: New file.
19485         * m4/expm1.m4: New file.
19486         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
19487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
19488         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
19489         * modules/expm1: New file.
19490         * tests/test-math-c++.cc: Check the declaration of expm1.
19491         * doc/posix-functions/expm1.texi: Mention the new module.
19493 2012-03-06  Bruno Haible  <bruno@clisp.org>
19495         math: Ensure declarations of math functions.
19496         * modules/acosf (Depends-on): Add 'extensions'.
19497         * modules/asinf (Depends-on): Likewise.
19498         * modules/atan2f (Depends-on): Likewise.
19499         * modules/atanf (Depends-on): Likewise.
19500         * modules/cbrt (Depends-on): Likewise.
19501         * modules/cbrtf (Depends-on): Likewise.
19502         * modules/cbrtl (Depends-on): Likewise.
19503         * modules/copysignf (Depends-on): Likewise.
19504         * modules/copysignl (Depends-on): Likewise.
19505         * modules/cosf (Depends-on): Likewise.
19506         * modules/coshf (Depends-on): Likewise.
19507         * modules/expf (Depends-on): Likewise.
19508         * modules/fabsf (Depends-on): Likewise.
19509         * modules/fabsl (Depends-on): Likewise.
19510         * modules/fmaf (Depends-on): Likewise.
19511         * modules/fmal (Depends-on): Likewise.
19512         * modules/fmodf (Depends-on): Likewise.
19513         * modules/fmodl (Depends-on): Likewise.
19514         * modules/frexpf (Depends-on): Likewise.
19515         * modules/frexpl (Depends-on): Likewise.
19516         * modules/hypot (Depends-on): Likewise.
19517         * modules/hypotf (Depends-on): Likewise.
19518         * modules/hypotl (Depends-on): Likewise.
19519         * modules/ldexpf (Depends-on): Likewise.
19520         * modules/ldexpl (Depends-on): Likewise.
19521         * modules/log10f (Depends-on): Likewise.
19522         * modules/log10l (Depends-on): Likewise.
19523         * modules/log1p (Depends-on): Likewise.
19524         * modules/logb (Depends-on): Likewise.
19525         * modules/logf (Depends-on): Likewise.
19526         * modules/modff (Depends-on): Likewise.
19527         * modules/modfl (Depends-on): Likewise.
19528         * modules/powf (Depends-on): Likewise.
19529         * modules/remainderf (Depends-on): Likewise.
19530         * modules/remainderl (Depends-on): Likewise.
19531         * modules/rintf (Depends-on): Likewise.
19532         * modules/rintl (Depends-on): Likewise.
19533         * modules/sinf (Depends-on): Likewise.
19534         * modules/sinhf (Depends-on): Likewise.
19535         * modules/sqrtf (Depends-on): Likewise.
19536         * modules/tanf (Depends-on): Likewise.
19537         * modules/tanhf (Depends-on): Likewise.
19538         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
19539         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
19540         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
19541         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
19542         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
19543         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
19544         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
19545         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
19546         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
19547         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
19548         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
19549         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
19550         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
19551         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
19552         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
19553         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
19554         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19555         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19556         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
19557         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
19558         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19559         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
19560         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
19561         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
19562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
19563         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
19564         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
19565         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19566         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
19567         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19568         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19569         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
19570         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
19571         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
19572         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
19573         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
19574         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
19575         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
19576         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
19577         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
19578         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
19580 2012-03-06  Bruno Haible  <bruno@clisp.org>
19582         math: Update module names in warnings.
19583         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19584         tanl): Use specific module name in warn-on-use warning.
19586 2012-03-06  Bruno Haible  <bruno@clisp.org>
19588         expl: Simplify computation.
19589         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
19591 2012-03-05  Bruno Haible  <bruno@clisp.org>
19593         exp* tests: More tests.
19594         * tests/test-exp.h: New file.
19595         * tests/test-exp.c: Include <float.h> and test-exp.h.
19596         (main): Invoke test_function.
19597         * tests/test-expf.c: Include <float.h> and test-exp.h.
19598         (main): Invoke test_function.
19599         * tests/test-expl.c: Include <float.h> and test-exp.h.
19600         (main): Invoke test_function.
19601         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
19602         (Makefile.am): Add randomd.c to test_exp_SOURCES.
19603         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
19604         (Makefile.am): Add randomf.c to test_expf_SOURCES.
19605         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
19606         (Depends-on): Add 'float'.
19607         (Makefile.am): Add randoml.c to test_expl_SOURCES.
19609         expl: Fix precision of computed result.
19610         * lib/expl.c: Completely rewritten.
19611         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
19612         (Maintainer): Add me.
19613         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
19615 2012-03-05  Bruno Haible  <bruno@clisp.org>
19617         cbrt* tests: More tests.
19618         * tests/test-cbrt.h: New file.
19619         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
19620         (main): Invoke test_function.
19621         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
19622         (main): Invoke test_function.
19623         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
19624         (main): Invoke test_function.
19625         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
19626         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
19627         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
19628         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
19629         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
19630         (Depends-on): Add 'float'.
19631         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
19633 2012-03-05  Bruno Haible  <bruno@clisp.org>
19635         hypot* tests: More tests.
19636         * tests/test-hypot.h: New file, partially extracted from
19637         tests/test-hypotl.c.
19638         * tests/test-hypot.c: Include test-hypot.h.
19639         (main): Invoke test_function.
19640         * tests/test-hypotf.c: Include test-hypot.h.
19641         (main): Invoke test_function.
19642         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
19643         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
19644         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
19645         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
19646         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
19647         tests/randomf.c.
19648         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
19649         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
19650         tests/randoml.c.
19651         (Depends-on): Add 'fpucw', 'float'.
19652         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
19654 2012-03-05  Bruno Haible  <bruno@clisp.org>
19656         fpucw: Doc about FreeBSD.
19657         * lib/fpucw.h: Mention FreeBSD in comments.
19659 2012-03-04  Bruno Haible  <bruno@clisp.org>
19661         sqrt* tests: More tests.
19662         * tests/test-sqrt.h: New file.
19663         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
19664         (main): Invoke test_function.
19665         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
19666         (main): Invoke test_function.
19667         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
19668         (main): Invoke test_function.
19669         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
19670         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
19671         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
19672         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
19673         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
19674         (Depends-on): Add 'float'.
19675         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
19677 2012-03-04  Bruno Haible  <bruno@clisp.org>
19679         remainder* tests: More tests.
19680         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
19681         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
19682         (main): Invoke test_function.
19683         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
19684         (main): Invoke test_function.
19685         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
19686         (main): Invoke test_function.
19687         * modules/remainder-tests (Files): Add tests/test-remainder.h,
19688         tests/randomd.c.
19689         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
19690         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
19691         tests/randomf.c.
19692         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
19693         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
19694         tests/randoml.c.
19695         (Depends-on): Add 'float'.
19696         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
19698 2012-03-04  Bruno Haible  <bruno@clisp.org>
19700         remainder, remainderf, remainderl: Fix computation for large quotients.
19701         * lib/remainder.c: Completely rewritten.
19702         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
19703         USE_FLOAT.
19704         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
19705         USE_LONG_DOUBLE.
19706         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
19707         isnand, isinf. Remove round, fma.
19708         * modules/remainderf (Files): Add lib/remainder.c.
19709         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
19710         Remove roundf, fmaf.
19711         * modules/remainderl (Files): Add lib/remainder.c.
19712         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
19713         isinf. Remove roundl, fmal.
19714         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
19715         REMAINDER_LIBM.
19716         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
19717         REMAINDERF_LIBM.
19718         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
19719         REMAINDERL_LIBM.
19721 2012-03-04  Bruno Haible  <bruno@clisp.org>
19723         fmod* tests: More tests.
19724         * tests/test-fmod.h (my_ldexp): New function.
19725         (test_function): Reduce amount of random numbers to test. Add tests
19726         of very large quotients x / y.
19727         * tests/test-fmod.c (MAX_EXP): New macro.
19728         * tests/test-fmodf.c (MAX_EXP): Likewise.
19729         * tests/test-fmodl.c (MAX_EXP): Likewise.
19731 2012-03-04  Bruno Haible  <bruno@clisp.org>
19733         fmod, fmodl: Fix computation for large quotients x / y.
19734         * lib/fmod.c: Completely rewritten.
19735         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
19736         USE_LONG_DOUBLE.
19737         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
19738         isnand. Remove fma.
19739         * modules/fmodl (Files): Add lib/fmod.c.
19740         (Depends-on): Add float, isfinite, signbit, fabsl,
19741         frexpl, ldexpl, isnanl. Remove fma.
19742         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
19743         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
19745 2012-03-03  Bruno Haible  <bruno@clisp.org>
19747         fmod* tests: More tests.
19748         * tests/test-fmod.h: New file.
19749         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
19750         (main): Invoke test_function.
19751         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
19752         (main): Invoke test_function.
19753         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
19754         (main): Invoke test_function.
19755         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
19756         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
19757         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
19758         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
19759         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
19760         (Depends-on): Add 'float'.
19761         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
19763 2012-03-03  Bruno Haible  <bruno@clisp.org>
19765         rint* tests: More tests.
19766         * tests/test-rint.h: New file, partially extracted from
19767         tests/test-rintl.c.
19768         * tests/test-rint.c: Include test-rint.h.
19769         (main): Invoke test_function.
19770         * tests/test-rintf.c: Include test-rint.h.
19771         (main): Invoke test_function.
19772         * tests/test-rintl.c: Include test-rint.h.
19773         (main): Invoke test_function.
19774         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
19775         (Makefile.am): Add randomd.c to test_rint_SOURCES.
19776         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
19777         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
19778         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
19779         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
19781 2012-03-03  Bruno Haible  <bruno@clisp.org>
19783         modf* tests: More tests.
19784         * tests/test-modf.h: New file.
19785         * tests/test-modf.c: Include <float.h> and test-modf.h.
19786         (main): Invoke test_function.
19787         * tests/test-modff.c: Include <float.h> and test-modf.h.
19788         (main): Invoke test_function.
19789         * tests/test-modfl.c: Include <float.h> and test-modf.h.
19790         (main): Invoke test_function.
19791         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
19792         (Makefile.am): Add randomd.c to test_modf_SOURCES.
19793         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
19794         (Makefile.am): Add randomf.c to test_modff_SOURCES.
19795         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
19796         (Depends-on): Add 'float'.
19797         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
19799 2012-03-03  Bruno Haible  <bruno@clisp.org>
19801         fabs* tests: More tests.
19802         * tests/test-fabs.h: New file, partially extracted from
19803         tests/test-fabsl.c.
19804         * tests/test-fabs.c (RANDOM): New macro.
19805         * tests/test-fabsf.c (RANDOM): New macro.
19806         * tests/test-fabsl.c (RANDOM): New macro.
19807         * modules/fabs-tests (Files): Add tests/randomd.c.
19808         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
19809         * modules/fabsf-tests (Files): Add tests/randomf.c.
19810         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
19811         * modules/fabsl-tests (Files): Add tests/randoml.c.
19812         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
19814 2012-03-03  Bruno Haible  <bruno@clisp.org>
19816         ldexp* tests: More tests.
19817         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
19818         * tests/test-ldexp.c (RANDOM): New macro.
19819         * tests/test-ldexpf.c (RANDOM): New macro.
19820         * tests/test-ldexpl.c (RANDOM): New macro.
19821         * modules/ldexp-tests (Files): Add tests/randomd.c.
19822         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
19823         * modules/ldexpf-tests (Files): Add tests/randomf.c.
19824         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
19825         * modules/ldexpl-tests (Files): Add tests/randoml.c.
19826         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
19828 2012-03-03  Bruno Haible  <bruno@clisp.org>
19830         frexp* tests: More tests.
19831         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
19832         * tests/test-frexp.c (RANDOM): New macro.
19833         * tests/test-frexpf.c (RANDOM): New macro.
19834         * tests/test-frexpl.c (RANDOM): New macro.
19835         * modules/frexp-tests (Files): Add tests/randomd.c.
19836         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
19837         * modules/frexpf-tests (Files): Add tests/randomf.c.
19838         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
19839         * modules/frexpl-tests (Files): Add tests/randoml.c.
19840         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
19842 2012-03-03  Bruno Haible  <bruno@clisp.org>
19844         Support for pseudo-random numbers in tests.
19845         * tests/randomf.c: New file.
19846         * tests/randomd.c: New file.
19847         * tests/randoml.c: New file.
19848         * tests/macros.h (randomf, randomd, randoml): New declarations.
19850 2012-03-03  Bruno Haible  <bruno@clisp.org>
19852         frexp* tests: Refactor.
19853         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
19854         * tests/test-frexp.c: Include and use it.
19855         * tests/test-frexpf.c: Likewise.
19856         * tests/test-frexpl.c: Likewise.
19857         * modules/frexp-tests (Files): Add tests/test-frexp.h.
19858         * modules/frexpf-tests (Files): Likewise.
19859         * modules/frexpl-tests (Files): Likewise.
19861 2012-03-02  Jim Meyering  <meyering@redhat.com>
19863         maint: don't specify XZ_OPT=-9ev in dist-related rule
19864         Using xz's -9 option is warranted only if you have a very large
19865         tarball (see xz's documentation for the sizes vs. presets), and
19866         requires 64MiB of memory at decompression time.
19867         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
19868         Automake's default of just "-e" is fine.  Override on a
19869         per-package basis by setting XZ_OPT e.g., in cfg.mk.
19871 2012-03-01  Eric Blake  <eblake@redhat.com>
19873         maint.mk: allow announcement for non-gnulib project
19874         * maint.mk (announcement): Skip gnulib version if not used.
19876 2012-03-01  Jim Meyering  <meyering@redhat.com>
19878         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
19879         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
19880         envvar settings cannot interfere.  Otherwise, setting envvars like
19881         prohibit=foo require=bar, etc. would cause spurious test failures.
19883 2012-03-01  Eric Blake  <eblake@redhat.com>
19885         maint.mk: add per-line exclusions to prohibitions
19886         * maint.mk (_sc_search_regexp): Add $exclude parameter.
19887         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19888         (sc_const_long_option): Use it.
19890 2012-03-01  Bruno Haible  <bruno@clisp.org>
19892         Tests for module 'expl-ieee'.
19893         * modules/expl-ieee-tests: New file.
19894         * tests/test-expl-ieee.c: New file.
19896         New module 'expl-ieee'.
19897         * modules/expl-ieee: New file.
19899         Tests for module 'exp-ieee'.
19900         * modules/exp-ieee-tests: New file.
19901         * tests/test-exp-ieee.c: New file.
19903         New module 'exp-ieee'.
19904         * modules/exp-ieee: New file.
19906         Tests for module 'expf-ieee'.
19907         * modules/expf-ieee-tests: New file.
19908         * tests/test-expf-ieee.c: New file.
19909         * tests/test-exp-ieee.h: New file.
19911         New module 'expf-ieee'.
19912         * modules/expf-ieee: New file.
19914 2012-02-29  Bruno Haible  <bruno@clisp.org>
19916         cbrtl-ieee: Work around test failure on IRIX 6.5.
19917         * m4/cbrtl-ieee.m4: New file.
19918         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
19919         test whether cbrtl works with a minus zero argument. Replace it if not.
19920         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
19921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
19922         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
19923         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
19924         (Depends-on): Update conditions.
19925         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
19926         m4/signbit.m4.
19927         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
19928         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
19929         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
19931         Tests for module 'cbrtl-ieee'.
19932         * modules/cbrtl-ieee-tests: New file.
19933         * tests/test-cbrtl-ieee.c: New file.
19935         New module 'cbrtl-ieee'.
19936         * modules/cbrtl-ieee: New file.
19938         Tests for module 'cbrt-ieee'.
19939         * modules/cbrt-ieee-tests: New file.
19940         * tests/test-cbrt-ieee.c: New file.
19942         New module 'cbrt-ieee'.
19943         * modules/cbrt-ieee: New file.
19945         Tests for module 'cbrtf-ieee'.
19946         * modules/cbrtf-ieee-tests: New file.
19947         * tests/test-cbrtf-ieee.c: New file.
19948         * tests/test-cbrt-ieee.h: New file.
19950         New module 'cbrtf-ieee'.
19951         * modules/cbrtf-ieee: New file.
19953 2012-02-29  Bruno Haible  <bruno@clisp.org>
19955         cbrtf: Work around bug in IRIX 6.5 system function.
19956         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
19957         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
19958         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
19959         work.
19960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
19961         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
19962         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
19963         (Depends-on): Update conditions.
19964         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
19966 2012-02-29  Bruno Haible  <bruno@clisp.org>
19968         Tests for module 'cbrtl'.
19969         * modules/cbrtl-tests: New file.
19970         * tests/test-cbrtl.c: New file.
19972         New module 'cbrtl'.
19973         * lib/math.in.h (cbrtl): New declaration.
19974         * lib/cbrtl.c: New file.
19975         * m4/cbrtl.m4: New file.
19976         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
19977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
19978         HAVE_DECL_CBRTL.
19979         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
19980         HAVE_DECL_CBRTL.
19981         * modules/cbrtl: New file.
19982         * tests/test-math-c++.cc: Check the declaration of cbrtl.
19983         * doc/posix-functions/cbrtl.texi: Mention the new module.
19985 2012-02-29  Bruno Haible  <bruno@clisp.org>
19987         Tests for module 'cbrtf'.
19988         * modules/cbrtf-tests: New file.
19989         * tests/test-cbrtf.c: New file.
19991         New module 'cbrtf'.
19992         * lib/math.in.h (cbrtf): New declaration.
19993         * lib/cbrtf.c: New file.
19994         * m4/cbrtf.m4: New file.
19995         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
19996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
19997         HAVE_DECL_CBRTF.
19998         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
19999         HAVE_DECL_CBRTF.
20000         * modules/cbrtf: New file.
20001         * tests/test-math-c++.cc: Check the declaration of cbrtf.
20002         * doc/posix-functions/cbrtf.texi: Mention the new module.
20004 2012-02-29  Bruno Haible  <bruno@clisp.org>
20006         cbrt: Provide replacement on MSVC and Minix.
20007         * lib/math.in.h (cbrt): New declaration.
20008         * lib/cbrt.c: New file.
20009         * m4/cbrt.m4: New file.
20010         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
20011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
20012         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
20013         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
20014         (Depends-on): Add dependencies.
20015         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
20016         * tests/test-math-c++.cc: Check the declaration of cbrt.
20017         * doc/posix-functions/cbrt.texi: Mention that the module provides a
20018         replacement.
20020 2012-02-29  Bruno Haible  <bruno@clisp.org>
20022         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
20023         * m4/hypotl-ieee.m4: New file.
20024         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
20025         test whether hypotl works with mixed NaN and Infinity arguments.
20026         Replace it if not.
20027         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
20028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
20029         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
20030         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
20031         (Depends-on): Update conditions.
20032         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
20033         (Depends-on): Add hypot-ieee.
20034         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
20035         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
20037         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
20038         * m4/hypotf-ieee.m4: New file.
20039         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
20040         test whether hypotf works with mixed NaN and Infinity arguments.
20041         Replace it if not.
20042         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
20043         (Depends-on): Add hypot-ieee.
20044         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
20045         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
20047         hypot-ieee: Work around test failure on OSF/1 and native Windows.
20048         * lib/math.in.h (hypot): New declaration.
20049         * lib/hypot.c: New file.
20050         * m4/hypot-ieee.m4: New file.
20051         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
20052         whether hypot works with mixed NaN and Infinity arguments. Replace it
20053         if not.
20054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
20055         REPLACE_HYPOT.
20056         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
20057         * modules/hypot (Files): Add lib/hypot.c.
20058         (Depends-on): Add dependencies.
20059         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
20060         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
20061         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
20062         * tests/test-math-c++.cc: Check the declaration of hypot.
20063         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
20065         Tests for module 'hypotl-ieee'.
20066         * modules/hypotl-ieee-tests: New file.
20067         * tests/test-hypotl-ieee.c: New file.
20069         New module 'hypotl-ieee'.
20070         * modules/hypotl-ieee: New file.
20072         Tests for module 'hypot-ieee'.
20073         * modules/hypot-ieee-tests: New file.
20074         * tests/test-hypot-ieee.c: New file.
20076         New module 'hypot-ieee'.
20077         * modules/hypot-ieee: New file.
20079         Tests for module 'hypotf-ieee'.
20080         * modules/hypotf-ieee-tests: New file.
20081         * tests/test-hypotf-ieee.c: New file.
20082         * tests/test-hypot-ieee.h: New file.
20084         New module 'hypotf-ieee'.
20085         * modules/hypotf-ieee: New file.
20087 2012-02-29  Bruno Haible  <bruno@clisp.org>
20089         Remove unused variables.
20090         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
20091         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
20092         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
20093         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
20095 2012-02-29  Eric Blake  <eblake@redhat.com>
20097         termios: fix pid_t always, not just for tcgetsid
20098         * doc/posix-headers/termios.texi (termios.h): Mention problem.
20099         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
20100         just when building tcgetsid.
20102 2012-02-29  Bruno Haible  <bruno@clisp.org>
20104         Tests for module 'hypotl'.
20105         * modules/hypotl-tests: New file.
20106         * tests/test-hypotl.c: New file.
20108         New module 'hypotl'.
20109         * lib/math.in.h (hypotl): New declaration.
20110         * lib/hypotl.c: New file.
20111         * m4/hypotl.m4: New file.
20112         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
20113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
20114         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
20115         * modules/hypotl: New file.
20116         * tests/test-math-c++.cc: Check the hypotl declaration.
20117         * doc/posix-functions/hypotl.texi: Mention the new module.
20119 2012-02-29  Eric Blake  <eblake@redhat.com>
20121         tcgetsid: fix cygwin header bug
20122         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
20124         docs: update cygwin progress
20125         * doc/posix-functions/llround.texi (llround): Added in cygwin
20126         1.7.8.
20127         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
20128         * doc/glibc-functions/program_invocation_name.texi
20129         (program_invocation_name): Likewise.
20130         * doc/glibc-functions/program_invocation_short_name.texi
20131         (program_invocation_short_name): Likewise.
20132         * doc/glibc-functions/madvise.texi (madvise): Likewise.
20133         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
20134         Likewise.
20135         * doc/posix-functions/pthread_spin_destroy.texi
20136         (pthread_spin_destroy): Added in cygwin 1.7.10.
20137         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
20138         Likewise.
20139         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
20140         Likewise.
20141         * doc/posix-functions/pthread_spin_trylock.texi
20142         (pthread_spin_trylock): Likewise.
20143         * doc/posix-functions/pthread_spin_unlock.texi
20144         (pthread_spin_unlock): Likewise.
20145         * doc/posix-functions/pthread_setschedprio.texi
20146         (pthread_setschedprio): Likewise.
20147         * doc/posix-functions/pthread_attr_getstack.texi
20148         (pthread_attr_getstack): Likewise.
20149         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
20150         (pthread_attr_getstackaddr): Likewise.
20151         * doc/glibc-functions/pthread_getattr_np.texi
20152         (pthread_getattr_np): Likewise.
20153         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
20154         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
20155         * doc/posix-functions/clock_settime.texi (clock_settime):
20156         Likewise.
20157         * doc/posix-functions/pthread_attr_getguardsize.texi
20158         (pthread_attr_getguardsize): Likewise.
20159         * doc/posix-functions/pthread_attr_setguardsize.texi
20160         (pthread_attr_setguardsize): Likewise.
20161         * doc/posix-functions/pthread_attr_setstack.texi
20162         (pthread_attr_setstack): Likewise.
20163         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
20164         (pthread_attr_setstackaddr): Likewise.
20165         * doc/posix-functions/clock_getcpuclockid.texi
20166         (clock_getcpuclockid): Likewise.
20167         * doc/posix-functions/pthread_getcpuclockid.texi
20168         (pthread_getcpuclockid): Likewise.
20169         * doc/glibc-functions/error.texi (error): Likewise.
20170         * doc/glibc-functions/error_at_line.texi (error_at_line):
20171         Likewise.
20172         * doc/glibc-functions/error_message_count.texi
20173         (error_message_count): Likewise.
20174         * doc/glibc-functions/error_one_per_line.texi
20175         (error_one_per_line): Likewise.
20176         * doc/glibc-functions/error_print_progname.texi
20177         (error_print_progname): Likewise.
20178         * doc/posix-functions/pthread_condattr_getclock.texi
20179         (pthread_condattr_getclock): Likewise.
20180         * doc/posix-functions/pthread_condattr_setclock.texi
20181         (pthread_condattr_setclock): Likewise.
20182         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
20183         Likewise.
20184         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
20185         * doc/glibc-functions/getpt.texi (getpt): Likewise.
20186         * doc/glibc-functions/get_current_dir_name.texi
20187         (get_current_dir_name): Likewise.
20188         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
20189         Likewise.
20190         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
20191         wrong return type.
20192         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
20193         1.7.11.
20195 2012-02-29  Bruno Haible  <bruno@clisp.org>
20197         Tests for module 'hypotf'.
20198         * modules/hypotf-tests: New file.
20199         * tests/test-hypotf.c: New file.
20201         New module 'hypotf'.
20202         * lib/math.in.h (hypotf): New declaration.
20203         * lib/hypotf.c: New file.
20204         * m4/hypotf.m4: New file.
20205         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
20206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
20207         REPLACE_HYPOTF.
20208         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
20209         REPLACE_HYPOTF.
20210         * modules/hypotf: New file.
20211         * tests/test-math-c++.cc: Check the hypotf declaration.
20212         * doc/posix-functions/hypotf.texi: Mention the new module.
20214         hypot: Prepare for hypotf module.
20215         * m4/hypot.m4: New file.
20216         * modules/hypot (Files): Add m4/hypot.m4.
20217         (configure.ac): Invoke gl_FUNC_HYPOT.
20219 2012-02-29  Bruno Haible  <bruno@clisp.org>
20221         hypot tests: More tests.
20222         * tests/test-hypot.c: Include <float.h>.
20223         (main): Add tests about overflow and underflow.
20225 2012-02-29  Bruno Haible  <bruno@clisp.org>
20227         math code: Add comments.
20228         * lib/acosl.c: Add comment about related glibc source files.
20229         * lib/asinl.c: Likewise.
20230         * lib/atanl.c: Likewise.
20231         * lib/expl.c: Likewise.
20232         * lib/logl.c: Likewise.
20233         * lib/sincosl.c: Likewise.
20234         * lib/sinl.c: Likewise.
20235         * lib/tanl.c: Likewise.
20236         * lib/trigl.c: Likewise.
20237         * lib/cosl.c: Likewise. Fix comments.
20239 2012-02-28  Bruno Haible  <bruno@clisp.org>
20241         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
20242         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
20243         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
20244         HUGE_VALL are defined.
20245         (numeric_equald): Renamed from numeric_equal.
20246         (numeric_equalf, numeric_equall): New functions.
20247         (main): Check also HUGE_VALF, HUGE_VALL.
20248         * modules/math-tests (Files): Add tests/macros.h.
20249         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
20250         HUGE_VALL.
20252 2012-02-28  Bruno Haible  <bruno@clisp.org>
20254         doc: Move ISO C11 feature notes into POSIX chapters.
20255         * doc/posix-functions/aligned_alloc.texi: Renamed from
20256         doc/glibc-functions/aligned_alloc.texi.
20257         * doc/posix-functions/quick_exit.texi: Renamed from
20258         doc/glibc-functions/quick_exit.texi.
20259         * doc/posix-headers/uchar.texi: Renamed from
20260         doc/glibc-headers/uchar.texi.
20261         * doc/posix-functions/c16rtomb.texi: Renamed from
20262         doc/glibc-functions/c16rtomb.texi.
20263         * doc/posix-functions/c32rtomb.texi: Renamed from
20264         doc/glibc-functions/c32rtomb.texi.
20265         * doc/posix-functions/mbrtoc16.texi: Renamed from
20266         doc/glibc-functions/mbrtoc16.texi.
20267         * doc/posix-functions/mbrtoc32.texi: Renamed from
20268         doc/glibc-functions/mbrtoc32.texi.
20269         * doc/gnulib.texi: Update.
20270         (Glibc uchar.h): Remove section.
20271         Suggested by Eric Blake.
20273 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
20275         stdnoreturn: port to MSVC better
20276         MSVC standard headers use __declspec(noreturn), so #define noreturn
20277         to empty on that platform.  Reported by Bruno Haible in
20278         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
20279         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
20280         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
20282 2012-02-28  Bruno Haible  <bruno@clisp.org>
20284         doc: Mention new glibc headers and functions.
20285         * doc/glibc-headers/uchar.texi: New file.
20286         * doc/glibc-functions/aligned_alloc.texi: New file.
20287         * doc/glibc-functions/c16rtomb.texi: New file.
20288         * doc/glibc-functions/c32rtomb.texi: New file.
20289         * doc/glibc-functions/clock_adjtime.texi: New file.
20290         * doc/glibc-functions/fanotify_init.texi: New file.
20291         * doc/glibc-functions/fanotify_mark.texi: New file.
20292         * doc/glibc-functions/inet6_opt_append.texi: New file.
20293         * doc/glibc-functions/inet6_opt_find.texi: New file.
20294         * doc/glibc-functions/inet6_opt_finish.texi: New file.
20295         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
20296         * doc/glibc-functions/inet6_opt_init.texi: New file.
20297         * doc/glibc-functions/inet6_opt_next.texi: New file.
20298         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
20299         * doc/glibc-functions/inet6_rth_add.texi: New file.
20300         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
20301         * doc/glibc-functions/inet6_rth_init.texi: New file.
20302         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
20303         * doc/glibc-functions/inet6_rth_segments.texi: New file.
20304         * doc/glibc-functions/inet6_rth_space.texi: New file.
20305         * doc/glibc-functions/login.texi: New file.
20306         * doc/glibc-functions/mbrtoc16.texi: New file.
20307         * doc/glibc-functions/mbrtoc32.texi: New file.
20308         * doc/glibc-functions/name_to_handle_at.texi: New file.
20309         * doc/glibc-functions/ntp_gettimex.texi: New file.
20310         * doc/glibc-functions/open_by_handle_at.texi: New file.
20311         * doc/glibc-functions/prlimit.texi: New file.
20312         * doc/glibc-functions/process_vm_readv.texi: New file.
20313         * doc/glibc-functions/process_vm_writev.texi: New file.
20314         * doc/glibc-functions/recvmmsg.texi: New file.
20315         * doc/glibc-functions/scandirat.texi: New file.
20316         * doc/glibc-functions/sendmmsg.texi: New file.
20317         * doc/glibc-functions/setns.texi: New file.
20318         * doc/glibc-functions/timespec_get.texi: New file.
20319         * doc/gnulib.texi: Include them.
20320         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
20321         sections.
20322         Reported by Eric Blake.
20324 2012-02-28  Bruno Haible  <bruno@clisp.org>
20326         Avoid compilation errors with MSVC option -fp:strict.
20327         * lib/floor.c: Use MSVC specific pragma fenv_access.
20328         * lib/ceil.c: Likewise.
20329         * lib/trunc.c: Likewise.
20330         * lib/round.c: Likewise.
20331         * lib/rint.c: Likewise.
20332         * lib/fma.c: Likewise.
20333         * lib/integer_length.c: Likewise.
20334         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20336         * tests/test-floor2.c: Likewise.
20337         * tests/test-floorf2.c: Likewise.
20338         * tests/test-ceil2.c: Likewise.
20339         * tests/test-ceilf2.c: Likewise.
20340         * tests/test-trunc2.c: Likewise.
20341         * tests/test-truncf2.c: Likewise.
20342         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20344 2012-02-27  Bruno Haible  <bruno@clisp.org>
20346         Tests for module 'sqrtl-ieee'.
20347         * modules/sqrtl-ieee-tests: New file.
20348         * tests/test-sqrtl-ieee.c: New file.
20350         New module 'sqrtl-ieee'.
20351         * modules/sqrtl-ieee: New file.
20353         Tests for module 'sqrt-ieee'.
20354         * modules/sqrt-ieee-tests: New file.
20355         * tests/test-sqrt-ieee.c: New file.
20357         New module 'sqrt-ieee'.
20358         * modules/sqrt-ieee: New file.
20360         Tests for module 'sqrtf-ieee'.
20361         * modules/sqrtf-ieee-tests: New file.
20362         * tests/test-sqrtf-ieee.c: New file.
20363         * tests/test-sqrt-ieee.h: New file.
20365         New module 'sqrtf-ieee'.
20366         * modules/sqrtf-ieee: New file.
20368 2012-02-27  Bruno Haible  <bruno@clisp.org>
20370         remainderl-ieee: Work around test failure on OSF/1.
20371         * m4/remainderl-ieee.m4: New file.
20372         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
20373         present, test whether remainderl works with a zero second argument.
20374         Replace it if not.
20375         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
20376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
20377         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
20378         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
20379         (Depends-on): Update conditions.
20380         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
20381         (Depends-on): Add remainder-ieee.
20382         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
20383         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
20384         module.
20386         remainderf-ieee: Work around test failure on OSF/1.
20387         * m4/remainderf-ieee.m4: New file.
20388         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
20389         present, test whether remainderf works with a zero second argument.
20390         Replace it if not.
20391         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
20392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
20393         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
20394         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
20395         (Depends-on): Update conditions.
20396         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
20397         (Depends-on): Add remainder-ieee.
20398         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
20399         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
20400         module.
20402         remainder-ieee: Work around test failure on OSF/1.
20403         * m4/remainder-ieee.m4: New file.
20404         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
20405         present, test whether remainder works with a zero second argument.
20406         Replace it if not.
20407         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
20408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
20409         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
20410         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
20411         (Depends-on): Update dependencies.
20412         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
20413         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
20414         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
20416         Tests for module 'remainderl-ieee'.
20417         * modules/remainderl-ieee-tests: New file.
20418         * tests/test-remainderl-ieee.c: New file.
20420         New module 'remainderl-ieee'.
20421         * modules/remainderl-ieee: New file.
20423         Tests for module 'remainder-ieee'.
20424         * modules/remainder-ieee-tests: New file.
20425         * tests/test-remainder-ieee.c: New file.
20427         New module 'remainder-ieee'.
20428         * modules/remainder-ieee: New file.
20430         Tests for module 'remainderf-ieee'.
20431         * modules/remainderf-ieee-tests: New file.
20432         * tests/test-remainderf-ieee.c: New file.
20433         * tests/test-remainder-ieee.h: New file.
20435         New module 'remainderf-ieee'.
20436         * modules/remainderf-ieee: New file.
20438 2012-02-27  Bruno Haible  <bruno@clisp.org>
20440         modff, modfl: Fix configure syntax error.
20441         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
20442         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
20444 2012-02-27  Bruno Haible  <bruno@clisp.org>
20446         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
20447         * m4/fmodl-ieee.m4: New file.
20448         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
20449         whether fmodl works with zero arguments. Replace it if not.
20450         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
20451         (Depends-on): Add fmod-ieee.
20452         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
20453         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
20455         fmodf-ieee: Work around test failure on OSF/1.
20456         * m4/fmodf-ieee.m4: New file.
20457         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
20458         whether fmodf works with zero arguments. Replace it if not.
20459         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
20460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
20461         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
20462         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
20463         (Depends-on): Update dependencies.
20464         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
20465         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
20466         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
20468         fmodf-ieee: Work around test failure on MSVC 9.
20469         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
20470         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
20472         fmod-ieee: Work around test failures on OSF/1, mingw.
20473         * m4/fmod-ieee.m4: New file.
20474         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
20475         whether fmod works with zero arguments. Replace it if not.
20476         * lib/math.in.h (fmod): New declaration.
20477         * lib/fmod.c: New file.
20478         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
20479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
20480         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
20481         * modules/fmod (Files): Add lib/fmod.c.
20482         (Depends-on): Add math, isinf, trunc, fma.
20483         (configure.ac): Arrange to compile lib/fmod.c if needed.
20484         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
20485         m4/signbit.m4.
20486         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
20487         * tests/test-math-c++.cc: Check the declaration of fmod.
20488         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
20490         fmodl-ieee: Fix test failures.
20491         * lib/fmodl.c (fmodl): Treat Inf specially.
20492         * modules/fmodl (Depends-on): Add isinf.
20494         Tests for module 'fmodl-ieee'.
20495         * modules/fmodl-ieee-tests: New file.
20496         * tests/test-fmodl-ieee.c: New file.
20498         New module 'fmodl-ieee'.
20499         * modules/fmodl-ieee: New file.
20501         Tests for module 'fmod-ieee'.
20502         * modules/fmod-ieee-tests: New file.
20503         * tests/test-fmod-ieee.c: New file.
20505         New module 'fmod-ieee'.
20506         * modules/fmod-ieee: New file.
20508         Tests for module 'fmodf-ieee'.
20509         * modules/fmodf-ieee-tests: New file.
20510         * tests/test-fmodf-ieee.c: New file.
20511         * tests/test-fmod-ieee.h: New file.
20513         New module 'fmodf-ieee'.
20514         * modules/fmodf-ieee: New file.
20516 2012-02-27  Bruno Haible  <bruno@clisp.org>
20518         Tests for module 'rintl-ieee'.
20519         * modules/rintl-ieee-tests: New file.
20520         * tests/test-rintl-ieee.c: New file.
20522         New module 'rintl-ieee'.
20523         * modules/rintl-ieee: New file.
20525         Tests for module 'rint-ieee'.
20526         * modules/rint-ieee-tests: New file.
20527         * tests/test-rint-ieee.c: New file.
20529         New module 'rint-ieee'.
20530         * modules/rint-ieee: New file.
20532         Tests for module 'rintf-ieee'.
20533         * modules/rintf-ieee-tests: New file.
20534         * tests/test-rintf-ieee.c: New file.
20535         * tests/test-rint-ieee.h: New file.
20537         New module 'rintf-ieee'.
20538         * modules/rintf-ieee: New file.
20540 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20542         regex: re_search etc. should return -2 when memory exhausted
20543         This bug was uncovered when testing 'grep'.  Without the fix,
20544         re_search and friends return -1 when memory is exhausted, but -1
20545         means no match, and this causes grep to falsely report no-match
20546         instead of memory-exhaustion.  See
20547         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
20548         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
20549         trouble; this can occur if re_search_internal ran out of memory.
20551 2012-02-26  Bruno Haible  <bruno@clisp.org>
20553         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
20554         * m4/modfl-ieee.m4: New file.
20555         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
20556         whether modfl works with Inf. Replace it if not.
20557         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
20558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
20559         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
20560         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
20561         (Depends-on): Update dependencies.
20562         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
20563         m4/signbit.m4.
20564         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
20565         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
20567         modfl-ieee: Fix dependencies.
20568         * modules/modfl-ieee (Depends-on): Add modf-ieee.
20570         modfl-ieee: Fix test failures.
20571         * lib/modfl.c (modfl): Treat NaN and Inf specially.
20572         * modules/modfl (Depends-on): Add isfinite, isinf.
20574         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
20575         * m4/modff-ieee.m4: New file.
20576         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
20577         whether modff works with NaN and Inf. Replace it if not.
20578         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
20579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
20580         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
20581         * modules/modff (configure.ac): Consider REPLACE_MODFF.
20582         (Depends-on): Update dependencies.
20583         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
20584         m4/signbit.m4.
20585         (Depends-on): Add modf-ieee.
20586         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
20587         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
20589         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
20590         * m4/modf-ieee.m4: New file.
20591         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
20592         whether modf works with NaN and Inf. Replace it if not.
20593         * lib/math.in.h (modf): New declaration.
20594         * lib/modf.c: New file.
20595         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
20596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
20597         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
20598         * modules/modf (Files): Add lib/modf.c.
20599         (Depends-on): Add math, isfinite, trunc, isinf.
20600         (configure.ac): Addrange to compile lib/modf.c if needed.
20601         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
20602         m4/signbit.m4.
20603         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
20604         * tests/test-math-c++.cc: Check the declaration of modf.
20605         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
20607         Tests for module 'modfl-ieee'.
20608         * modules/modfl-ieee-tests: New file.
20609         * tests/test-modfl-ieee.c: New file.
20611         New module 'modfl-ieee'.
20612         * modules/modfl-ieee: New file.
20614         Tests for module 'modf-ieee'.
20615         * modules/modf-ieee-tests: New file.
20616         * tests/test-modf-ieee.c: New file.
20618         New module 'modf-ieee'.
20619         * modules/modf-ieee: New file.
20621         Tests for module 'modff-ieee'.
20622         * modules/modff-ieee-tests: New file.
20623         * tests/test-modff-ieee.c: New file.
20624         * tests/test-modf-ieee.h: New file.
20626         New module 'modff-ieee'.
20627         * modules/modff-ieee: New file.
20629 2012-02-26  Bruno Haible  <bruno@clisp.org>
20631         Tests for module 'fabsl-ieee'.
20632         * modules/fabsl-ieee-tests: New file.
20633         * tests/test-fabsl-ieee.c: New file.
20635         New module 'fabsl-ieee'.
20636         * modules/fabsl-ieee: New file.
20638         Tests for module 'fabs-ieee'.
20639         * modules/fabs-ieee-tests: New file.
20640         * tests/test-fabs-ieee.c: New file.
20642         New module 'fabs-ieee'.
20643         * modules/fabs-ieee: New file.
20645         Tests for module 'fabsf-ieee'.
20646         * modules/fabsf-ieee-tests: New file.
20647         * tests/test-fabsf-ieee.c: New file.
20648         * tests/test-fabs-ieee.h: New file.
20650         New module 'fabsf-ieee'.
20651         * modules/fabsf-ieee: New file.
20653 2012-02-26  Bruno Haible  <bruno@clisp.org>
20655         Tests for module 'fmal-ieee'.
20656         * modules/fmal-ieee-tests: New file.
20657         * tests/test-fmal-ieee.c: New file.
20659         New module 'fmal-ieee'.
20660         * modules/fmal-ieee: New file.
20662         Tests for module 'fma-ieee'.
20663         * modules/fma-ieee-tests: New file.
20664         * tests/test-fma-ieee.c: New file.
20666         New module 'fma-ieee'.
20667         * modules/fma-ieee: New file.
20669         Tests for module 'fmaf-ieee'.
20670         * modules/fmaf-ieee-tests: New file.
20671         * tests/test-fmaf-ieee.c: New file.
20672         * tests/test-fma-ieee.h: New file.
20674         New module 'fmaf-ieee'.
20675         * modules/fmaf-ieee: New file.
20677 2012-02-26  Bruno Haible  <bruno@clisp.org>
20679         Tests for module 'ldexpl-ieee'.
20680         * modules/ldexpl-ieee-tests: New file.
20681         * tests/test-ldexpl-ieee.c: New file.
20683         New module 'ldexpl-ieee'.
20684         * modules/ldexpl-ieee: New file.
20686         Tests for module 'ldexp-ieee'.
20687         * modules/ldexp-ieee-tests: New file.
20688         * tests/test-ldexp-ieee.c: New file.
20690         New module 'ldexp-ieee'.
20691         * modules/ldexp-ieee: New file.
20693         Tests for module 'ldexpf-ieee'.
20694         * modules/ldexpf-ieee-tests: New file.
20695         * tests/test-ldexpf-ieee.c: New file.
20696         * tests/test-ldexp-ieee.h: New file.
20698         New module 'ldexpf-ieee'.
20699         * modules/ldexpf-ieee: New file.
20701 2012-02-26  Bruno Haible  <bruno@clisp.org>
20703         Refactor frexp*-ieee tests.
20704         * tests/test-frexp-ieee.h: New file.
20705         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
20706         (main): Just call test_function.
20707         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
20708         (main): Just call test_function.
20709         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
20710         (main): Just call test_function.
20711         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
20712         * modules/frexp-ieee-tests (Files): Likewise.
20713         * modules/frexpl-ieee-tests (Files): Likewise.
20715         Tests for module 'frexpl-ieee'.
20716         * modules/frexpl-ieee-tests: New file.
20717         * tests/test-frexpl-ieee.c: New file.
20719         New module 'frexpl-ieee'.
20720         * modules/frexpl-ieee: New file.
20722         Tests for module 'frexp-ieee'.
20723         * modules/frexp-ieee-tests: New file.
20724         * tests/test-frexp-ieee.c: New file.
20726         New module 'frexp-ieee'.
20727         * modules/frexp-ieee: New file.
20729         Tests for module 'frexpf-ieee'.
20730         * modules/frexpf-ieee-tests: New file.
20731         * tests/test-frexpf-ieee.c: New file.
20733         New module 'frexpf-ieee'.
20734         * modules/frexpf-ieee: New file.
20736 2012-02-26  Bruno Haible  <bruno@clisp.org>
20738         roundl-ieee tests: More tests.
20739         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20740         (main): Add tests for [MX] shaded specification in POSIX.
20741         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20742         (Depends-on): Add isnanl-nolibm.
20744         round-ieee tests: More tests.
20745         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20746         (main): Add tests for [MX] shaded specification in POSIX.
20747         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20748         (Depends-on): Add isnand-nolibm.
20750         roundf-ieee tests: More tests.
20751         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20752         (main): Add tests for [MX] shaded specification in POSIX.
20753         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20754         (Depends-on): Add isnanf-nolibm.
20756         truncl-ieee tests: More tests.
20757         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20758         (main): Add tests for [MX] shaded specification in POSIX.
20759         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20760         (Depends-on): Add isnanl-nolibm.
20762         trunc-ieee tests: More tests.
20763         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20764         (main): Add tests for [MX] shaded specification in POSIX.
20765         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20766         (Depends-on): Add isnand-nolibm.
20768         truncf-ieee tests: More tests.
20769         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20770         (main): Add tests for [MX] shaded specification in POSIX.
20771         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20772         (Depends-on): Add isnanf-nolibm.
20774         ceill-ieee tests: More tests.
20775         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20776         (main): Add tests for [MX] shaded specification in POSIX.
20777         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20778         (Depends-on): Add isnanl-nolibm.
20780         ceil-ieee tests: More tests.
20781         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20782         (main): Add tests for [MX] shaded specification in POSIX.
20783         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20784         (Depends-on): Add isnand-nolibm.
20786         ceilf-ieee tests: More tests.
20787         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20788         (main): Add tests for [MX] shaded specification in POSIX.
20789         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20790         (Depends-on): Add isnanf-nolibm.
20792         floorl-ieee tests: More tests.
20793         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20794         (main): Add tests for [MX] shaded specification in POSIX.
20795         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20796         (Depends-on): Add isnanl-nolibm.
20798         floor-ieee tests: More tests.
20799         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20800         (main): Add tests for [MX] shaded specification in POSIX.
20801         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20802         (Depends-on): Add isnand-nolibm.
20804         floorf-ieee tests: More tests.
20805         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20806         (main): Add tests for [MX] shaded specification in POSIX.
20807         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20808         (Depends-on): Add isnanf-nolibm.
20810 2012-02-26  Bruno Haible  <bruno@clisp.org>
20812         fpieee: More comments.
20813         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
20815 2012-02-25  Bruno Haible  <bruno@clisp.org>
20817         Tests for module 'log10l'.
20818         * modules/log10l-tests: New file.
20819         * tests/test-log10l.c: New file.
20820         * tests/test-math-c++.cc: Check the declaration of log10l.
20822         New module 'log10l'.
20823         * lib/math.in.h (log10l): New declaration.
20824         * lib/log10l.c: New file.
20825         * m4/log10l.m4: New file.
20826         * modules/log10l: New file.
20827         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
20828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
20829         HAVE_DECL_LOG10L.
20830         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
20831         HAVE_DECL_LOG10L.
20832         * doc/posix-functions/log10l.texi: Mention the new module.
20834 2012-02-25  Bruno Haible  <bruno@clisp.org>
20836         fmodl, remainder*: Avoid wrong results due to rounding errors.
20837         * lib/fmodl.c (fmodl): Correct the result if it is not within the
20838         expected bounds.
20839         * lib/remainderf.c (remainderf): Likewise.
20840         * lib/remainder.c (remainder): Likewise.
20841         * lib/remainderl.c (remainderl): Likewise.
20843 2012-02-25  Bruno Haible  <bruno@clisp.org>
20845         Tests for module 'remainderl'.
20846         * modules/remainderl-tests: New file.
20847         * tests/test-remainderl.c: New file.
20848         * tests/test-math-c++.cc: Check the declaration of remainderl.
20850         New module 'remainderl'.
20851         * lib/math.in.h (remainderl): New declaration.
20852         * lib/remainderl.c: New file.
20853         * m4/remainderl.m4: New file.
20854         * modules/remainderl: New file.
20855         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
20856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
20857         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
20858         HAVE_REMAINDERL.
20859         * doc/posix-functions/remainderl.texi: Mention the new module.
20861 2012-02-25  Bruno Haible  <bruno@clisp.org>
20863         Tests for module 'remainderf'.
20864         * modules/remainderf-tests: New file.
20865         * tests/test-remainderf.c: New file.
20866         * tests/test-math-c++.cc: Check the declaration of remainderf.
20868         New module 'remainderf'.
20869         * lib/math.in.h (remainderf): New declaration.
20870         * lib/remainderf.c: New file.
20871         * m4/remainderf.m4: New file.
20872         * modules/remainderf: New file.
20873         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
20874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
20875         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
20876         HAVE_REMAINDERF.
20877         * doc/posix-functions/remainderf.texi: Mention the new module.
20879 2012-02-25  Bruno Haible  <bruno@clisp.org>
20881         remainder: Support for MSVC.
20882         * lib/math.in.h (remainder): New declaration.
20883         * lib/remainder.c: New file.
20884         * m4/remainder.m4: New file.
20885         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
20886         (Depends-on): Add math, round, fma.
20887         (configure.ac): Use results of gl_FUNC_REMAINDER.
20888         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
20889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
20890         HAVE_DECL_REMAINDER.
20891         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
20892         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
20893         * tests/test-math-c++.cc: Check the declaration of remainder.
20894         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
20895         problems are fixed.
20897 2012-02-25  Bruno Haible  <bruno@clisp.org>
20899         Tests for module 'fmodl'.
20900         * modules/fmodl-tests: New file.
20901         * tests/test-fmodl.c: New file.
20902         * tests/test-math-c++.cc: Check the declaration of fmodl.
20904         New module 'fmodl'.
20905         * lib/math.in.h (fmodl): New declaration.
20906         * lib/fmodl.c: New file.
20907         * m4/fmodl.m4: New file.
20908         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
20909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
20910         REPLACE_FMODL.
20911         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
20912         REPLACE_FMODL.
20913         * modules/fmodl: New file.
20914         * doc/posix-functions/fmodl.texi: Mention the new module.
20916 2012-02-25  Bruno Haible  <bruno@clisp.org>
20918         Tests for module 'modfl'.
20919         * modules/modfl-tests: New file.
20920         * tests/test-modfl.c: New file.
20921         * tests/test-math-c++.cc: Check the declaration of modfl.
20923         New module 'modfl'.
20924         * lib/math.in.h (modfl): New declaration.
20925         * lib/modfl.c: New file.
20926         * m4/modfl.m4: New file.
20927         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
20928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
20929         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
20930         * modules/modfl: New file.
20931         * doc/posix-functions/modfl.texi: Mention the new module.
20933 2012-02-25  Bruno Haible  <bruno@clisp.org>
20935         Tests for module 'fabsl'.
20936         * modules/fabsl-tests: New file.
20937         * tests/test-fabsl.c: New file.
20938         * tests/test-math-c++.cc: Check the declaration of fabsl.
20940         New module 'fabsl'.
20941         * lib/math.in.h (fabsl): New declaration.
20942         * lib/fabsl.c: New file.
20943         * m4/fabsl.m4: New file.
20944         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
20945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
20946         REPLACE_FABSL.
20947         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
20948         REPLACE_FABSL.
20949         * modules/fabsl: New file.
20950         * doc/posix-functions/fabsl.texi: Mention the new module.
20952 2012-02-25  Bruno Haible  <bruno@clisp.org>
20954         fabs tests: More tests.
20955         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
20956         (zero): New variable.
20957         (main): Add tests for signed zero.
20958         * modules/fabs-tests (Files): Add tests/minus-zero.h.
20960         fabsf tests: More tests.
20961         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
20962         (zero): New variable.
20963         (main): Add tests for signed zero.
20964         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
20966 2012-02-24  Bruno Haible  <bruno@clisp.org>
20968         atanl: Provide function definition on MSVC.
20969         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
20970         function pointer.
20971         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
20973 2012-02-24  Bruno Haible  <bruno@clisp.org>
20975         acosl: Provide function definition on MSVC.
20976         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
20977         function pointer.
20978         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
20980 2012-02-24  Bruno Haible  <bruno@clisp.org>
20982         asinl: Provide function definition on MSVC.
20983         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
20984         function pointer.
20985         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
20987 2012-02-24  Bruno Haible  <bruno@clisp.org>
20989         tanl: Provide function definition on MSVC.
20990         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
20991         function pointer.
20992         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
20994 2012-02-24  Bruno Haible  <bruno@clisp.org>
20996         cosl: Provide function definition on MSVC.
20997         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
20998         function pointer.
20999         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
21001 2012-02-24  Bruno Haible  <bruno@clisp.org>
21003         sinl: Provide function definition on MSVC.
21004         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
21005         function pointer.
21006         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
21008 2012-02-24  Bruno Haible  <bruno@clisp.org>
21010         logl: Provide function definition on MSVC.
21011         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
21012         function pointer.
21013         * lib/math.in.h (logl): Undefine if it does not exist as a function.
21015 2012-02-24  Bruno Haible  <bruno@clisp.org>
21017         expl: Provide function definition on MSVC.
21018         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
21019         function pointer.
21020         * lib/math.in.h (expl): Undefine if it does not exist as a function.
21022 2012-02-24  Bruno Haible  <bruno@clisp.org>
21024         sqrtl: Provide function definition on MSVC.
21025         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
21026         a function pointer.
21027         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
21029 2012-02-24  Bruno Haible  <bruno@clisp.org>
21031         ceill: Provide function definition on MSVC.
21032         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
21033         used as a function pointer.
21034         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
21036 2012-02-24  Bruno Haible  <bruno@clisp.org>
21038         floorl: Provide function definition on MSVC.
21039         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
21040         used as a function pointer.
21041         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
21043 2012-02-24  Bruno Haible  <bruno@clisp.org>
21045         ceilf: Provide function definition on MSVC.
21046         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
21047         used as a function pointer.
21048         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
21050 2012-02-24  Bruno Haible  <bruno@clisp.org>
21052         floorf: Provide function definition on MSVC.
21053         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
21054         used as a function pointer.
21055         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
21057 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21059         stdnoreturn: new module
21060         This implements a replacement for C11's <stdnoreturn.h>.
21061         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
21062         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
21063         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
21064         * tests/test-stdnoreturn.c: New files.
21066 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
21068         regex: fix false multibyte matches in some regular expressions
21069         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
21070         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
21071         * lib/regex_internal.c (re_string_skip_chars):
21072         Fix miscomputation of remain_len that may cause incomplete
21073         multi-byte character and false match.
21075 2012-02-24  Jim Meyering  <meyering@redhat.com>
21077         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
21078         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
21079         uses with "==" *before* the call, e.g., 0 == strcmp (...)
21080         Remove now-unnecessary str''cmp obfuscation.
21081         Suggested by Akim Demaille.
21083 2012-02-24  Bruno Haible  <bruno@clisp.org>
21085         streq: Rename macro.
21086         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
21087         * NEWS: Mention the change.
21088         * lib/mbrtowc.c (mbrtowc): Update.
21089         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
21090         * lib/wcwidth.c (wcwidth): Update.
21091         Suggested by Akim Demaille and Jim Meyering.
21093 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21095         regex: fix typo in definition of MIN
21096         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
21097         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
21099 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
21100             Bruno Haible  <bruno@clisp.org>
21102         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
21103         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
21104         entries into a stack-allocated buffer directly.
21105         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
21107 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
21108             Bruno Haible  <bruno@clisp.org>
21110         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
21112          - There were several instances of this pattern:
21114              for (;;) {
21115                n = acl (f, GETACLCNT, 0, NULL);
21116                [ allocate an array A of size N ]
21117                if (acl (f, GETACL, n, a) == n)
21118                  break;
21119              }
21121            This loop might never terminate if some other process is constantly
21122            manipulating the file's ACL.  The loop should be rewritten to
21123            terminate.
21125          - The acl (... GETACLNT ...) call is merely an optimization; its value
21126            is merely a hint as to how big to make the array.  A better
21127            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
21128            and just guess a reasonably-big size, growing the size and trying
21129            again if it's not large enough.  This guarantees termination, and
21130            saves a system call.
21132         * lib/acl-internal.h: Include <limits.h>.
21133         (MIN, SIZE_MAX): New macros.
21134         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
21135         a stack-allocated buffer, and use malloc if it does not fit. Don't
21136         use GETACLCNT.
21137         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
21139 2012-02-19  Bruno Haible  <bruno@clisp.org>
21141         acl: Fix endless loop on Solaris with vxfs.
21142         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
21143         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
21144         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
21145         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
21146         * tests/test-sameacls.c (main)[Solaris]: Likewise.
21147         Reported by Bill Jones in
21148         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
21150 2012-02-19  Bruno Haible  <bruno@clisp.org>
21152         acl: Fix copy-acl test failure on Solaris 11 2011-11.
21153         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
21154         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
21155         that this function returns 0 in some more cases.
21157 2012-02-19  Bruno Haible  <bruno@clisp.org>
21159         acl: Update doc references.
21160         * doc/acl-resources.txt: Update links to Solaris documentation.
21162 2012-02-19  Bruno Haible  <bruno@clisp.org>
21164         Fix test failure in many locales on Solaris 11.
21165         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
21166         'tr' arguments.
21167         * tests/test-pipe-filter-ii1.c (main): Likewise.
21168         * build-aux/bootstrap (check_versions): Run 'tr' command with range
21169         expressions in the C locale.
21170         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21171         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21173 2012-02-19  Bruno Haible  <bruno@clisp.org>
21175         gnulib-tool: Improve usage message.
21176         * gnulib-tool (func_usage): Move doc of --help and --version to the
21177         section "Operation modes".
21179 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
21181         README-release: make it easier to execute commands
21182         * top/README-release: break commands out on to separate lines.
21184 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
21186         GNUmakefile: simplify detection of unconfigured trees
21187         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
21188         whether the tree make is being run from is already configured or
21189         not.  Related simplifications.
21191 2012-02-13  Simon Josefsson  <simon@josefsson.org>
21193         * gnulib-tool (func_usage): Document --help and --version.
21195 2012-02-11  Jim Meyering  <meyering@redhat.com>
21197         bootstrap: don't exit 0 upon gnulib-tool failure
21198         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
21199         its exit status, not 0.
21201 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
21203         README-release: various improvements
21204         * top/README-release: Give a command to push changes for the
21205         release.  Add "distcheck" to list of other pre-release checks.
21206         Fix instance of "make stable" which should be "make TYPE".
21208 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21210         maint: replace FSF snail-mail addresses with URLs
21211         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
21212         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
21213         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
21214         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
21215         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
21216         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
21217         * lib/check-version.c, lib/check-version.h, lib/config.charset:
21218         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
21219         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
21220         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
21221         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
21222         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
21223         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
21224         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
21225         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
21226         * lib/glthread/thread.c, lib/glthread/thread.h:
21227         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
21228         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
21229         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
21230         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
21231         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
21232         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
21233         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
21234         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
21235         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
21236         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
21237         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
21238         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
21239         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
21240         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
21241         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
21242         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
21243         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
21244         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
21245         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
21246         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
21247         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
21248         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
21249         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
21250         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
21251         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
21252         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
21253         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
21254         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
21255         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
21256         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
21257         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
21258         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
21259         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
21260         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
21261         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
21262         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
21263         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
21264         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
21265         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
21266         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
21267         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
21268         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
21269         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
21270         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
21271         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
21272         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
21273         * tests/test-poll.c, tests/test-quotearg-simple.c:
21274         * tests/test-quotearg.c, tests/test-quotearg.h:
21275         * tests/test-round-ieee.c, tests/test-round1.c:
21276         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
21277         * tests/test-roundl-ieee.c, tests/test-roundl.c:
21278         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
21279         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
21280         * tests/test-strerror.c, tests/test-strerror_r.c:
21281         * tests/test-strsignal.c, tests/test-strverscmp.c:
21282         * tests/test-xmemdup0.c:
21283         Replace FSF snail mail addresses with URLs, as per GNU coding
21284         standards.  See glibc bug
21285         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
21287 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
21289         README-release: capitalize a word and split a line
21290         * top/README-release: Fix punctuation and spacing.
21292 2012-02-08  Akim Demaille  <demaille@gostai.com>
21294         fatal-signal: use C prototypes (with explicit void).
21295         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21296         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
21298 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21300         regex: spelling fix
21301         * lib/regexec.c: spelling fix
21303         regex: rely on stdint.h for SIZE_MAX
21304         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
21306 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21308         regex: merge glibc changes
21310         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
21311         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
21312         (init_word_char): Work even if bitset words are not exactly 32 or
21313         64 bits wide.  Don't assume there are no padding bits.
21314         * lib/regex.c [_LIBC]: Do not include <config.h>.
21315         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
21316         and -Wtype-limits.
21317         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
21318         needless disagreement with glibc.  All uses changed.  Define it to
21319         1 only if _GNU_SOURCE, to match glibc.
21320         (_REG_RM_NAME): Remove; no longer needed, since the names in
21321         question are now all protected by __USE_GNU.
21322         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
21323         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
21324         * lib/regex_internal.h (MIN): New macro.
21326         2012-01-03 Ulrich Drepper <drepper@gmail.com>
21327         * lib/regcomp.c (init_word_char): Optimize regex a bit.
21329         2011-12-30 Jakub Jelinek <jakub@redhat.com>
21330         * lib/regex_internal.c (re_string_fetch_byte_case):
21331         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
21332         is miscompiled, and it turns out it is because of an incorrect
21333         attribute on re_string_fetch_byte_case.  Unlike
21334         re_string_peek_byte_case, this one is really not pure, it modifies
21335         memory (increments pstr->cur_idx), and with the pure attribute GCC
21336         assumed it doesn't and it cached the presumed value of
21337         regexp->cur_idx in a variable across the
21338          for (;; ++i)
21339            {
21340              if (i >= BRACKET_NAME_BUF_SIZE)
21341                return REG_EBRACK;
21342              if (token->type == OP_OPEN_CHAR_CLASS)
21343                ch = re_string_fetch_byte_case (regexp);
21344              else
21345                ch = re_string_fetch_byte (regexp);
21346              if (re_string_eoi(regexp))
21347                return REG_EBRACK;
21348              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
21349                break;
21350              elem->opr.name[i] = ch;
21351            }
21353         2011-11-29 Andreas Schwab <schwab@redhat.com>
21354         * lib/regcomp.c (build_equiv_class):
21355         Fix access after end of search string in regex matcher.
21357         2011-11-12 Ulrich Drepper <drepper@redhat.com>
21358         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
21360         2011-10-12 Ulrich Drepper <drepper@redhat.com>
21361         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
21363         2011-10-11 Ulrich Drepper <drepper@redhat.com>
21364         * lib/regcomp.c (parse_branch, parse_sub_exp):
21365         More regex memory leak fixes and tests.
21366         (parse_sub_exp, parse_bracket_exp):
21367         Fix memory leak for some invalid regular expressions.
21369         2011-05-28 Ulrich Drepper <drepper@gmail.com>
21370         * lib/regex_internal.c, lib/regexec.c:
21371         Fix unnecessary overallocation due to incomplete character.  When
21372         incomplete characters are found at the end of a string the code
21373         ran amok and allocated lots of memory.  Stricter limits are now in
21374         place.
21376         2011-05-20 Reuben Thomas <rrt@sc3d.org>
21377         * lib/regex.h: Update documentation.
21379         2011-05-16 Aharon Robbins <arnold@skeeve.com>
21380         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
21382         2010-05-05 Andreas Schwab <schwab@redhat.com>
21383         * lib/regexec.c (find_collation_sequence_value):
21384         Fix lookup of collation sequence value during regexp matching.
21386         2010-01-22 Ulrich Drepper <drepper@redhat.com>
21387         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
21389         2008-01-16 Ulrich Drepper <drepper@redhat.com>
21390         * lib/regex.h: Cleanup namespace.
21392         2007-11-26 Ulrich Drepper <drepper@redhat.com>
21393         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
21395         2007-08-26 Ulrich Drepper <drepper@redhat.com>
21396         * lib/regex_internal.h: Prevent some declarations and definitions
21397         to be seen when used in tests.
21399         2005-05-06 Ulrich Drepper <drepper@redhat.com>
21400         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
21401         __libc_lock_* macros if not _LIBC.
21402         (struct re_dfa_t): Add lock.
21404 2012-02-07  Eric Blake  <eblake@redhat.com>
21406         maint.mk: also prohibit lower-case @var@
21407         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
21408         lower case, like @top_srcdir@.
21410 2012-02-04  Eric Blake  <eblake@redhat.com>
21412         canonicalize: avoid uninitialized memory use
21413         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
21414         random '/' left in dest.
21415         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
21417 2012-02-04  Bruno Haible  <bruno@clisp.org>
21419         isatty: Fix test failure of ptsname_r on native Windows.
21420         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
21421         and don't set errno.
21422         (isatty): Test first whether fd is valid. Set errno when returning 0.
21424 2012-02-04  Bruno Haible  <bruno@clisp.org>
21426         spawn-pipe tests: Fix a NULL program name in a diagnostic.
21427         * tests/test-spawn-pipe-main.c: Include progname.h.
21428         (main): Invoke set_program_name.
21429         * modules/spawn-pipe-tests (Depends-on): Add progname.
21431         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
21432         * tests/test-nonblocking-socket-main.c: Include progname.h.
21433         (main): Invoke set_program_name.
21434         * modules/nonblocking-socket-tests (Depends-on): Add progname.
21436         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
21437         * tests/test-nonblocking-pipe-main.c: Include progname.h.
21438         (main): Invoke set_program_name.
21439         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
21441 2012-02-04  Eric Blake  <eblake@redhat.com>
21443         canonicalize-lgpl: fix // handling
21444         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
21446         canonicalize: fix // handling
21447         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
21448         /// to //, since only // is special.
21450 2012-02-04  Bruno Haible  <bruno@clisp.org>
21452         ioctl: Fix test failure on native Windows.
21453         * lib/ioctl.c: Include msvc-nothrow.h.
21454         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
21456 2012-02-04  Bruno Haible  <bruno@clisp.org>
21458         fsync: Avoid test failure on native Windows.
21459         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
21460         read-only.
21462 2012-02-04  Bruno Haible  <bruno@clisp.org>
21464         sys_select: Avoid syntax error on OpenBSD 5.0.
21465         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
21466         currently being included, just include the system's <sys/select.h>.
21468 2012-02-04  Bruno Haible  <bruno@clisp.org>
21470         sys_select: Avoid syntax error on OpenBSD 5.0.
21471         * lib/sys_select.in.h: Include <signal.h> only after the include_next
21472         <sys/select.h>, not before.
21473         Reported by Jiri B <jirib@devio.us>.
21475 2012-02-04  Bruno Haible  <bruno@clisp.org>
21477         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
21478         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
21479         global variables.
21480         * tests/test-get-rusage-data.c (main): Likewise.
21481         Reported by Jim Meyering.
21483 2012-02-04  Bruno Haible  <bruno@clisp.org>
21485         stdioext: Fix last commit.
21486         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
21488 2012-02-03  Bruno Haible  <bruno@clisp.org>
21490         stdioext: Add tentative support for Plan9.
21491         * lib/stdio-impl.h: Include <errno.h>.
21492         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
21493         * lib/freadable.c (freadable): Likewise.
21494         * lib/fwritable.c (fwritable): Likewise.
21495         * lib/fbufmode.c (fbufmode): Likewise.
21496         * lib/freading.c (freading): Likewise.
21497         * lib/fwriting.c (fwriting): Likewise.
21498         * lib/freadptr.c (freadptr): Likewise.
21499         * lib/freadseek.c (freadptrinc): Likewise.
21500         * lib/freadahead.c (freadahead): Likewise.
21501         * lib/fpurge.c (fpurge): Likewise.
21502         * lib/fseeko.c (rpl_fseeko): Likewise.
21503         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
21504         Reported by Jens Staal <staal1978@gmail.com>.
21506 2012-02-02  Jim Meyering  <meyering@redhat.com>
21508         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
21509         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
21510         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
21511         not even to try to add the attribute.  Instead, add a pragma to suppress
21512         the suggestion/warning.
21514 2012-01-31  Karl Berry  <karl@gnu.org>
21516         setstate doc: typo.
21517         * doc/posix-functions/setstate.texi (setstate): { not (.
21519 2012-01-31  Bruno Haible  <bruno@clisp.org>
21521         popen: Make more robust on Windows.
21522         * lib/popen.c: On native Windows, use the _popen based code even if
21523         HAVE_POPEN is set.
21524         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
21525         environment variable on native Windows.
21527 2012-01-30  Bruno Haible  <bruno@clisp.org>
21529         pclose: Fix typo.
21530         * lib/stdio.in.h (pclose): Fix typo in warning message.
21532 2012-01-30  Bruno Haible  <bruno@clisp.org>
21534         doc about getlogin_r, setstate.
21535         * doc/posix-functions/getlogin_r.texi: List the incompatible
21536         declaration problem under "not fixed by gnulib".
21537         * doc/posix-functions/setstate.texi: Mention incompatible declaration
21538         problem on Solaris 11 and other platforms.
21540 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
21541             Bruno Haible  <bruno@clisp.org>
21543         poll tests: Make test more robust.
21544         * tests/test-poll.c: Include macros.h.
21545         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
21546         return value of various I/O operations.
21547         * modules/poll-tests (Files): Add tests/macros.h.
21549 2012-01-30  Bruno Haible  <bruno@clisp.org>
21551         sys_stat: Fix support for mingw64 and MSVC.
21552         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
21553         header files already do it.
21554         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
21555         stat itself.
21556         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
21558 2012-01-30  Bruno Haible  <bruno@clisp.org>
21560         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
21561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
21562         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
21564 2012-01-29  Bruno Haible  <bruno@clisp.org>
21566         quotearg: Fix test failure on MacOS X 10.5.
21567         * tests/test-quotearg-simple.c: Include localcharset.h.
21568         (main): If the locale encoding is not ASCII, bypass the tests of
21569         locale_quoting_style and clocale_quoting_style.
21570         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
21572 2012-01-29  Jim Meyering  <meyering@redhat.com>
21574         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
21575         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
21576         detect uses of canonicalize_file_name.
21578 2012-01-28  Bruno Haible  <bruno@clisp.org>
21580         test-framework-sh: Fix test failure with AIX 7.1 diff.
21581         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
21582         in column 1, like 'diff -c' does.
21583         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
21584         whether 'diff -u' is used. Instead, test whether the output contains
21585         some '@' character.
21587 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21589         strtoimax: eliminate need for stdint.h, inttypes.h checks
21590         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
21591         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
21592         the prerequisites for a recently-introduced strtoimax test.
21593         I guess this might cause strtoimax to be replaced when not
21594         strictly necessary on older hosts, but this shouldn't introduce
21595         any bugs and it should make Emacs 'configure' faster on typical
21596         modern hosts.  Problem discovered when importing the latest gnulib
21597         to an Emacs test version.
21598         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
21600 2012-01-28  Bruno Haible  <bruno@clisp.org>
21602         sys_time: Override 'struct timeval' on some native Windows platforms.
21603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
21604         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
21605         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
21606         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
21607         needs to be overridden.
21608         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
21609         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
21610         * tests/test-sys_select.c: Check that the tv_sec member has the same
21611         size as a 'time_t'.
21612         * tests/test-sys_time.c: Likewise.
21613         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
21614         is set, set also REPLACE_GETTIMEOFDAY.
21615         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
21616         convert the resulting 'struct timeval' before returning.
21617         * lib/select.c: Include <sys/time.h>.
21618         (select, timeval): Undefine at the right place.
21619         * modules/select (Depends-on): Add sys_time.
21620         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
21621         some Windows platforms.
21622         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
21624 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21626         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
21627         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
21628         an integer.
21629         * lib/fcntl.c (dupfd): Likewise.
21630         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
21632 2012-01-28  Bruno Haible  <bruno@clisp.org>
21634         fcntl: Avoid compilation error on native Windows.
21635         * modules/fcntl (Depends-on): Add 'close'.
21637 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21639         select, poll, isatty: Avoid warnings on x86_64 mingw64.
21640         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
21641         pointer to an integer.
21642         * lib/poll.c (IsConsoleHandle): Likewise.
21643         * lib/isatty.c (IsConsoleHandle): Likewise.
21645 2012-01-28  Jim Meyering  <meyering@redhat.com>
21647         doc: clarify README-release
21648         * top/README-release: Clarify: you should make a point to have
21649         the latest stable versions of build tools in your PATH, and the
21650         reference to buildreq is solely for its list of tool names, not
21651         for its minimal-functional version numbers.
21652         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
21654         maint.mk: use more readable (yet functionally equivalent) quoting
21655         It is common to quote a single quote in a single quoted string like
21656         this:  '...'\''...'.  Unless you know the idiom, that looks like
21657         gibberish, so prefer to double-quote the string when possible.
21658         Then you can use a more readable, lone single quote: "...'..."
21659         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
21660         "don't" is more readable than the equivalent 'don'\''t'.
21661         (sc_cast_of_x_alloc_return_value): Likewise.
21662         (sc_cast_of_alloca_return_value): Likewise.
21663         (sc_makefile_path_separator_check): Similar: use ":" in '...',
21664         rather than '\'':'\''.
21666 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21668         stdalign: relax _Alignof and tighten _Alignas test
21669         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
21670         as it was too strict: alignof must divide offsetof, but it need
21671         not equal offsetof.  Inspired by Joseph S. Myers's comment
21672         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
21673         Conversely, tighten the _Alignas test a bit, as the resulting
21674         alignment must be exactly 8.
21676 2012-01-27  Bruno Haible  <bruno@clisp.org>
21678         stdalign: Document the last change.
21679         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
21681 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21683         stdalign: check that alignof and offsetof are consistent
21684         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
21685         Problem reported for gnulib by Richard W.M. Jones in
21686         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
21688 2012-01-27  Jim Meyering  <meyering@redhat.com>
21690         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
21691         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
21692         convert a sequence with gaps to the minimal containing range.
21693         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
21694         * tests/test-update-copyright.sh: Test for this.
21695         The FSF confirmed it is ok to do this, assuming there is at
21696         least one significant change per year in the affected range:
21697         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
21699 2012-01-26  Bruno Haible  <bruno@clisp.org>
21701         pipe2: refine doc about thread-safety
21702         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
21703         multithread-safety problem.
21704         * doc/glibc-functions/accept4.texi: Likewise.
21706 2012-01-26  Bruno Haible  <bruno@clisp.org>
21708         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
21709         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
21710         In the test program, include <fcntl.h>, for O_RDONLY.
21712 2012-01-26  Eric Blake  <eblake@redhat.com>
21714         pipe2: document lack of thread-safety in replacement
21715         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
21716         issue in replacement.
21717         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21718         Based on a report by Eric Wong.
21720 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21721             Bruno Haible  <bruno@clisp.org>
21723         malloca: Avoid warnings on x86_64 mingw64.
21724         * lib/malloca.c: Include <stdint.h>.
21725         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
21726         * modules/malloca (Depends-on): Add stdint.
21727         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
21729 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
21731         obstack: remove __STDC__ conditionals
21732         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
21733         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
21734         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
21735         m4/include_next.m4 as the only gnulib-maintained places that still
21736         refer to __STDC__.
21738 2012-01-24  Bruno Haible  <bruno@clisp.org>
21740         havelib: Modern quoting.
21741         * build-aux/config.rpath: Quote 'like this', not `like this', as per
21742         the recent change to the GNU coding standards.
21744 2012-01-24  Bruno Haible  <bruno@clisp.org>
21746         stdint: Improve support for Android.
21747         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
21748         Reported by Simon Josefsson <simon@josefsson.org>.
21750 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21752         doc: omit trailing empty lines from INSTALL etc.
21753         * doc/Makefile (INSTALL): Omit trailing empty lines.
21754         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
21755         omit trailing empty lines.  This simplifies the build procedure.
21757 2012-01-23  Jim Meyering  <meyering@redhat.com>
21759         tests: avoid spurious warnings about gl_sockets_startup
21760         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
21761         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
21762         reporting a "statement with no effect".
21763         * tests/test-accept.c (main): Mark as "(void)".
21764         * tests/test-accept4.c (main): Likewise.
21765         * tests/test-bind.c (main): Likewise.
21766         * tests/test-connect.c (main): Likewise.
21767         * tests/test-getpeername.c (main): Likewise.
21768         * tests/test-getsockname.c (main): Likewise.
21769         * tests/test-getsockopt.c (main): Likewise.
21770         * tests/test-listen.c (main): Likewise.
21771         * tests/test-recv.c (main): Likewise.
21772         * tests/test-recvfrom.c (main): Likewise.
21773         * tests/test-send.c (main): Likewise.
21774         * tests/test-sendto.c (main): Likewise.
21775         * tests/test-setsockopt.c (main): Likewise.
21776         * tests/test-shutdown.c (main): Likewise.
21778 2012-01-21  Bruno Haible  <bruno@clisp.org>
21780         locale-fr.m4: Fix for Android.
21781         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
21782         failure of the test program on Bionic libc.
21784 2012-01-21  Jim Meyering  <meyering@redhat.com>
21786         bootstrap: fail when bootstrap_post_import_hook fails
21787         Otherwise, it's far too easy to miss diagnostics emitted
21788         between gnulib-tool's output and that of running configure.
21789         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
21791 2012-01-17  Jim Meyering  <meyering@redhat.com>
21793         maint: enable sc_trailing_blank
21794         * build-aux/pmccabe.css: Remove trailing blanks.
21795         * doc/acl-cygwin.txt: Likewise.
21796         * doc/gnu-oids.texi: Likewise
21797         * cfg.mk: Enable sc_trailing_blank.
21798         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
21800 2012-01-17  Jim Meyering  <meyering@redhat.com>
21802         maint: enable sc_prohibit_openat_without_use
21803         * cfg.mk: Enable sc_prohibit_openat_without_use.
21804         Exempt lib/selinux-at.c.
21806 2012-01-17  Jim Meyering  <meyering@redhat.com>
21808         maint: enable sc_prohibit_cloexec_without_use
21809         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
21810         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
21812 2012-01-17  Jim Meyering  <meyering@redhat.com>
21814         maint: enable sc_prohibit_intprops_without_use
21815         * cfg.mk: Enable sc_prohibit_intprops_without_use
21816         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
21818 2012-01-17  Jim Meyering  <meyering@redhat.com>
21820         maint: enable sc_prohibit_hash_pjw_without_use
21821         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
21822         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
21823         to match any use of \<hash_pjw\>, i.e., not necessarily with a
21824         following " (".
21826 2012-01-17  Jim Meyering  <meyering@redhat.com>
21828         maint: enable double-word-prohibiting rule
21829         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
21830         Exempt three files.
21832 2012-01-17  Jim Meyering  <meyering@redhat.com>
21834         maint: remove empty lines at EOF, but excluding modules/*
21835         Apply syntax rules at home as well as abroad.  Most changes
21836         were induced by running this:
21837           make srcdir=. _build-aux=build-aux -f top/maint.mk \
21838             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
21839             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
21840         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
21841         Exempt modules/* and two binary files.
21842         Also exempt doc/INSTALL*, per request from Bruno Haible.
21843         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
21844         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
21845         * doc/Copyright/request-assign.future: Likewise.
21846         * doc/Copyright/request-disclaim.changes: Likewise.
21847         * doc/INSTALL: Likewise.
21848         * doc/INSTALL.ISO: Likewise.
21849         * doc/INSTALL.UTF-8: Likewise.
21850         * doc/acl-cygwin.txt: Likewise.
21851         * doc/acl-resources.txt: Likewise.
21852         * doc/fdl-1.2.texi: Likewise.
21853         * doc/fdl-1.3.texi: Likewise.
21854         * doc/fdl.texi: Likewise.
21855         * lib/argp-pin.c: Likewise.
21856         * lib/round.c: Likewise.
21857         * lib/unicase/u16-totitle.c: Likewise.
21858         * lib/unictype/block_test.c: Likewise.
21859         * lib/uninorm/canonical-decomposition.c: Likewise.
21860         * m4/README: Likewise.
21861         * m4/relocatable-lib.m4: Likewise.
21862         * tests/test-isnand-nolibm.c: Likewise.
21863         * tests/test-isnand.c: Likewise.
21864         * tests/uninorm/NormalizationTest.txt: Likewise.
21866 2012-01-17  Jim Meyering  <meyering@redhat.com>
21868         maint: add framework to run syntax-check rules against gnulib sources
21869         * cfg.mk: New file, to disable all currently-failing tests.
21870         We'll enable them one by one, as they are made to pass.
21871         * Makefile (sc_maint): New rule.
21873 2012-01-21  Bruno Haible  <bruno@clisp.org>
21875         stdint: Add support for Android.
21876         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
21877         include the system's <stdint.h>.
21878         Reported by Simon Josefsson <simon@josefsson.org>.
21880 2012-01-19  Jim Meyering  <meyering@redhat.com>
21882         bootstrap: add bootstrap_post_import_hook
21883         Bison does still need something like the gnulib_mk_hook whose
21884         invocation I had to remove along with slurp in commit 767ccd40.
21885         Technically, we could get along without it, but doing so would
21886         have required living with a warning and a mandatory post-bootstrap
21887         automake rerun.
21888         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
21889         (bootstrap_post_import_hook): New function.
21890         Invoke it after gnulib-tool --import and before autoreconf.
21892 2012-01-18  Jim Meyering  <meyering@redhat.com>
21894         gitlog-to-changelog: don't use "no_"-prefixed variable name
21895         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
21896         to enable both --cluster and --no-cluster.  Change variable name,
21897         s/\$no_cluster/$cluster/, and reverse usage to match.
21899         gitlog-to-changelog: use "||", not "or" in expressions
21900         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
21901         expressions.
21903 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
21905         gitlog-to-changelog: new option --no-cluster
21906         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
21907         clustering of adjacent commit messages.
21909 2012-01-17  Jim Meyering  <meyering@redhat.com>
21911         maint: spell file systems with two words, not one
21912         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
21913         two words, not one.
21915 2012-01-16  Jim Meyering  <meyering@redhat.com>
21917         bootstrap: add a FIXME comment to ensure we eventually remove the hack
21918         * build-aux/bootstrap (gnulib_tool_options): Add comment.
21920 2012-01-16  Eric Blake  <eblake@redhat.com>
21922         bootstrap: cater to autoconf 2.59
21923         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
21924         is not available.
21926         bootstrap: properly check for libtool
21927         * build-aux/bootstrap (libtoolize): Also run libtool when older
21928         usage is detected.
21930 2012-01-15  Bruno Haible  <bruno@clisp.org>
21932         Improve support for MSVC 9.
21933         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
21934         clashes on MSVC.
21935         * lib/fcntl.in.h: Likewise.
21936         * lib/stdlib.in.h: Likewise.
21937         * lib/sys_stat.in.h: Likewise.
21939 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
21941         gnupload: we hold the master copy of this script now
21942         For motivation and more information, see:
21943         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
21944         * build-aux/gnupload: Make it clear in the heading comments that the
21945         master copy of this file is maintained by gnulib.  Since we are at
21946         it, bump its copyright year and ...
21947         ($scriptversion): ... the date in its version.
21948         ($usage): Patches and bug reports should be sent to the gnulib list,
21949         not the automake one.
21950         * config/srclist.txt: Don't try to sync 'gnupload' from automake
21951         anymore.
21953 2012-01-15  Bruno Haible  <bruno@clisp.org>
21955         Fix module 'random'.
21956         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
21957         initstate, setstate are declared.
21959 2012-01-14  Bruno Haible  <bruno@clisp.org>
21961         Tests for module 'random'.
21962         * modules/random-tests: New file.
21963         * tests/test-random.c: New file, based on tests/test-random_r.c.
21965         New module 'random'.
21966         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
21967         declarations.
21968         * lib/random.c: New file, based on glibc/stdlib/random.c.
21969         * m4/random.m4: New file.
21970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
21971         HAVE_RANDOM.
21972         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
21973         * modules/random: New file.
21974         * config/srclist.txt: Add an entry for random.c.
21975         * doc/posix-functions/random.texi: Mention the 'random' module.
21976         * doc/posix-functions/initstate.texi: Likewise.
21977         * doc/posix-functions/setstate.texi: Likewise.
21978         * doc/posix-functions/srandom.texi: Likewise.
21980 2012-01-12  Bruno Haible  <bruno@clisp.org>
21982         random_r: Use common idioms.
21983         * lib/random_r.c: Include <stdlib.h> first.
21985         random_r: Override incompatible API on AIX, OSF/1.
21986         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
21987         Override the system function if REPLACE_RANDOM_R is 1.
21988         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
21989         and OSF/1, set REPLACE_RANDOM_R.
21990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
21991         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
21992         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
21993         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
21994         * doc/glibc-functions/random_r.texi: Likewise.
21995         * doc/glibc-functions/setstate_r.texi: Likewise.
21997         random_r: Support for MSVC 9.
21998         * lib/random_r.c: Include stdint.h, not inttypes.h.
22000 2012-01-12  Eric Blake  <eblake@redhat.com>
22002         inet_ntop: guard extra work by IF_LINT
22003         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
22004         better code generation when not checking for warnings.
22005         Suggested by Paul Eggert and Jim Meyering.
22007         strptime: fix regression on mingw
22008         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
22009         Fix regression.  Reported by Bruno Haible.
22011 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
22012             Bruno Haible  <bruno@clisp.org>
22014         copy-file: add error-code-returning variant.
22015         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
22016         (qcopy_file_preserving): New declaration.
22017         * lib/copy-file.c (qcopy_file_preserving): Renamed from
22018         copy_file_preserving. Change return type to 'int'. Don't emit an error
22019         message here.
22020         (copy_file_preserving): New function.
22021         * tests/test-copy-file.c: Include <stdlib.h>.
22022         (main): Test qcopy_file_preserving if the environment variable
22023         NO_STDERR_OUTPUT is set.
22024         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
22025         with NO_STDERR_OUTPUT
22026         * tests/test-copy-file-2.sh: Likewise.
22028 2012-01-10  Bruno Haible  <bruno@clisp.org>
22030         copy-file: Use 'quote' module consistently.
22031         * lib/copy-file.c (copy_file_preserving): Use quote().
22033         copy-file: Refactor.
22034         * lib/copy-file.c: Include quote.h.
22035         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
22036         message here.
22037         * modules/copy-file (Depends-on): Add quote.
22039         acl: Export qcopy_acl.
22040         * lib/acl.h (qcopy_acl): New declaration.
22041         * lib/copy-acl.c (qcopy_acl): Make non-static.
22043         acl: Rename a local variable.
22044         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
22046         acl: Align return values of copy_acl and qcopy_acl.
22047         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
22048         maybe < -1.
22050 2012-01-11  Eric Blake  <eblake@redhat.com>
22052         strptime: silence gcc warnings
22053         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
22054         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
22055         Reported by Daniel P. Berrange.
22057         inet_ntop: silence gcc warning
22058         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
22059         Reported by Daniel P. Berrange.
22061 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
22063         getloadavg test: skip the test on GNU/Linux without /proc mounted
22064         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
22065         file.  When /proc is not mounted, it always fails with ENOENT.
22066         * tests/test-getloadavg.c (main): Treat ENOENT return code from
22067         getloadavg(3) the same way as ENOSYS and ENOTSUP.
22069 2012-01-10  Bruno Haible  <bruno@clisp.org>
22071         regex: Avoid link error on MSVC 9.
22072         * modules/regex (Depends-on): Add wctype.
22074 2012-01-10  Bruno Haible  <bruno@clisp.org>
22076         doc: Mention --with-tests option.
22077         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
22078         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
22079         --with-tests.
22080         Reported by Reuben Thomas.
22082 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
22084         users.txt: order package names lexicographically.
22085         * users.txt: Order package names lexicographically.
22087 2012-01-10  Jim Meyering  <meyering@redhat.com>
22089         maint.mk: fix description in comment
22090         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
22092         ignore-value: remove deprecated ignore_ptr function
22093         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
22094         * NEWS: Note this.
22096 2012-01-09  Jim Meyering  <meyering@redhat.com>
22098         test-init.sh: avoid a subshell
22099         * tests/test-init.sh: Remove protective subshell.
22100         Suggested by Bernhard Voelker.  While a subshell is normally
22101         required to protect against older shells (Solaris, FreeBSD) that
22102         warn about a missing program before performing redirection, the
22103         shell-selection tests performed by init.sh probably exclude any
22104         offending shell.
22106 2012-01-08  Bruno Haible  <bruno@clisp.org>
22108         setlocale tests: Avoid test failure on Solaris 11 2011-11.
22109         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
22110         variable.
22112 2012-01-08  Bruno Haible  <bruno@clisp.org>
22114         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
22115         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22116         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
22117         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
22118         macro.
22119         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
22120         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
22121         * lib/spawn_faction_addopen.c: Add workaround implementation if
22122         HAVE_WORKING_POSIX_SPAWN.
22123         * modules/spawn (Makefile): Substitute
22124         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
22125         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
22126         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
22127         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
22128         (Depends-on): Update conditions.
22129         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22130         the Solaris 11 bug.
22132 2012-01-08  Bruno Haible  <bruno@clisp.org>
22134         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
22135         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22136         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
22137         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
22138         macro.
22139         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
22140         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
22141         * lib/spawn_faction_adddup2.c: Add workaround implementation if
22142         HAVE_WORKING_POSIX_SPAWN.
22143         * modules/spawn (Makefile): Substitute
22144         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
22145         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
22146         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
22147         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
22148         (Depends-on): Update conditions.
22149         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22150         the Solaris 11 bug.
22152 2012-01-08  Bruno Haible  <bruno@clisp.org>
22154         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
22155         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22156         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
22157         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
22158         HAVE_WORKING_POSIX_SPAWN.
22159         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
22160         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
22161         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
22162         * lib/spawn_faction_addclose.c: Add workaround implementation if
22163         HAVE_WORKING_POSIX_SPAWN.
22164         * modules/spawn (Makefile): Substitute
22165         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
22166         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
22167         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
22168         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
22169         (Depends-on): Update conditions.
22170         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22171         the Solaris 11 bug.
22173 2012-01-08  Bruno Haible  <bruno@clisp.org>
22175         doc: Update for Solaris 11 2011-11.
22176         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
22177         * m4/printf.m4: Update comments.
22179 2012-01-08  Bruno Haible  <bruno@clisp.org>
22181         mktime: Avoid compilation error on Solaris 11.
22182         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
22184 2012-01-08  Bruno Haible  <bruno@clisp.org>
22186         doc: Small fix.
22187         * doc/posix-headers/nl_types.texi: Correct platforms list.
22189 2012-01-08  Simon Josefsson  <simon@josefsson.org>
22191         Add lgpl-3.0 module.
22192         * MODULES.html.sh (Support for building documentation): Add
22193         lgpl-3.0.
22194         * modules/lgpl-3.0: New file.
22196 2012-01-08  Jim Meyering  <meyering@redhat.com>
22198         select.c: indent with spaces, not TABs
22199         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
22201 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22203         quotearg: do not use grave accent for left quote
22204         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
22205         locale_quoting_style.
22206         (quotearg_buffer_restyled): Fix example.
22207         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
22209 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22211         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
22212         Most programs do not have translation catalogs for English and much
22213         less separate catalogs for British and American English.  Drop the
22214         suggestion to translators about these two, and provide it
22215         automatically for Unicode locales.  Like most programs, even those
22216         using American English, we use single quotation marks.  This conflicts
22217         with the American typographic convention, but works better when you
22218         cite the entire error message within double quotes.  It also tries not
22219         to clash with established practice and with what non-gnulib programs
22220         will usually do.
22221         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
22222         using an UTF-8 or GB-18030 locale.  The list of other locales with
22223         quotes was provided by Bruno Haible.
22224         (quotearg_buffer_restyled): Adjust instructions to translators.
22225         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
22226         text, since this would be wrong when using Unicode.
22227         * modules/quotearg: Depend on c-strcaseeq.
22229 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22231         quotearg: fix Wikipedia link
22232         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
22234 2012-01-07  Simon Josefsson  <simon@josefsson.org>
22236         Fix for mingw with MSVC9.
22237         * m4/ld-version-script.m4: Check that compiler rejects version
22238         scripts with syntax errors.  Reported by Bruno Haible
22239         <bruno@clisp.org>.
22241 2012-01-06  Bruno Haible  <bruno@clisp.org>
22243         Talk about "native Windows API", not "Woe32".
22244         * lib/accept4.c: Update comments to mention native Windows.
22245         * lib/execute.c: Likewise.
22246         * lib/fatal-signal.c: Likewise.
22247         * lib/localcharset.c: Likewise.
22248         * lib/nanosleep.c: Likewise.
22249         * lib/nl_langinfo.c: Likewise.
22250         * lib/pclose.c: Likewise.
22251         * lib/pipe-filter-gi.c: Likewise.
22252         * lib/pipe-filter-ii.c: Likewise.
22253         * lib/pipe.c: Likewise.
22254         * lib/pipe2.c: Likewise.
22255         * lib/popen.c: Likewise.
22256         * lib/progreloc.c: Likewise.
22257         * lib/relocatable.c: Likewise.
22258         * lib/sigaction.c: Likewise.
22259         * lib/sigprocmask.c: Likewise.
22260         * lib/spawn-pipe.h: Likewise.
22261         * lib/spawn-pipe.c: Likewise.
22262         * lib/spawni.c: Likewise.
22263         * lib/stat-time.h: Likewise.
22264         * lib/w32spawn.h: Likewise.
22265         * tests/test-isatty.c: Likewise.
22266         * lib/config.charset: More comments.
22267         * doc/gnulib-intro.texi: Mention native Windows.
22268         * doc/posix-functions/_Exit_C99.texi: Likewise.
22269         * doc/posix-headers/fcntl.texi: Likewise.
22271 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
22273         argp: Avoid crash if translator uses % characters in a translation.
22274         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
22275         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
22277 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22279         doc: C11 and C++11 are now official
22280         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
22281         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
22282         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
22283         * modules/stdalign:
22284         Replace references to draft C1X to C11, and to draft C++0X to C++11.
22286 2012-01-06  Bruno Haible  <bruno@clisp.org>
22288         uc-is-grapheme-break tests: Tweak.
22289         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
22290         message.
22292 2012-01-06  Bruno Haible  <bruno@clisp.org>
22294         test-init.sh: correct the test for diff -u
22295         * tests/test-init.sh: Also redirect stdout to /dev/null.
22297 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
22299         Use ', not `, for quoting output.
22300         * build-aux/announce-gen (usage, sizes, print_news_deltas)
22301         (print_changelog_deltas, get_tool_versions, main program):
22302         * build-aux/git-version-gen:
22303         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
22304         * build-aux/move-if-change (help):
22305         * build-aux/useless-if-before-free (usage, main program):
22306         * check-module (parse_module_file, usage)
22307         (find_included_lib_files, check_module):
22308         * lib/argmatch.c (main) [TEST]:
22309         * lib/argp-help.c (_help):
22310         * lib/getopt1.c (main) [TEST]:
22311         * lib/git-merge-changelog.c (usage):
22312         * lib/xstrtol-error.c (xstrtol_error):
22313         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
22314         * m4/argz.m4 (gl_FUNC_ARGZ):
22315         * m4/bison.m4 (gl_BISON):
22316         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
22317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
22318         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
22319         * m4/fpending.m4 (gl_PREREQ_FPENDING):
22320         * m4/gc-random.m4 (gl_GC_RANDOM):
22321         * m4/intl.m4 (gt_CHECK_DECL):
22322         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
22323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
22324         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
22325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
22326         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
22327         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
22328         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
22329         * tests/test-dirname.c (main):
22330         * tests/test-getpass.c (main):
22331         * tests/test-iconvme.c (main):
22332         * tests/test-parse-datetime.c (LOG):
22333         * tests/test-xstrtoimax.sh:
22334         * tests/test-xstrtol.sh:
22335         * tests/test-xstrtoll.sh:
22336         * tests/test-xstrtoumax.sh:
22337         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
22338         * top/GNUmakefile (abort-due-to-no-makefile):
22339         Quote 'like this', not `like this', as per the recent change to
22340         the GNU coding standards.
22342 2012-01-05  Bruno Haible  <bruno@clisp.org>
22344         strtoimax: Don't force a replacement on systems where intmax_t is int.
22345         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
22346         'intmax_t' is not larger than 'int'.
22347         Reported by Pádraig Brady <P@draigBrady.com>.
22349 2012-01-05  Bruno Haible  <bruno@clisp.org>
22351         doc: Mention NetBSD bugs.
22352         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
22353         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
22355 2012-01-05  Bruno Haible  <bruno@clisp.org>
22357         strtoumax tests: Enhance tests.
22358         * tests/test-strtoumax.c (main): Add tests for large values.
22360 2012-01-05  Bruno Haible  <bruno@clisp.org>
22362         strtoimax: Work around AIX 5.1 bug.
22363         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
22364         definition.
22365         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
22366         Set HAVE_STRTOIMAX.
22367         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
22368         REPLACE_STRTOIMAX.
22369         * modules/inttypes-incomplete (Makefile.am): Substitute
22370         REPLACE_STRTOIMAX.
22371         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22372         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
22373         (Depends-on): Update conditions.
22374         * tests/test-strtoimax.c (main): Add tests for large values.
22375         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
22377 2012-01-05  Bruno Haible  <bruno@clisp.org>
22379         inttypes: Modernize.
22380         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
22381         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
22382         (Makefile.am): Update inttypes.h rule.
22384 2012-01-05  Jim Meyering  <meyering@redhat.com>
22386         init.sh: don't waste a subshell just to redirect stderr
22387         * tests/init.sh: In testing for diff -u and diff -c, use a
22388         stderr-redirecting exec inside `...` rather than a subshell.
22390         test-init.sh: avoid failure on HP-UX 11.00
22391         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
22392         resolves to diff -c or cmp.  Reported by Bruno Haible.
22394 2012-01-05  Bruno Haible  <bruno@clisp.org>
22396         Tests for module 'strtoull'.
22397         * modules/strtoull-tests: New file.
22398         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
22400 2012-01-05  Bruno Haible  <bruno@clisp.org>
22402         Tests for module 'strtoll'.
22403         * modules/strtoll-tests: New file.
22404         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
22406 2012-01-05  Bruno Haible  <bruno@clisp.org>
22408         Tests for module 'strtoul'.
22409         * modules/strtoul-tests: New file.
22410         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
22412 2012-01-05  Bruno Haible  <bruno@clisp.org>
22414         Tests for module 'strtol'.
22415         * modules/strtol-tests: New file.
22416         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
22418 2012-01-04  Jim Meyering  <meyering@redhat.com>
22420         test-init.sh: accommodate Solaris 5.10's different diff -u output
22421         * tests/test-init.sh: Also exempt @@ lines from the comparison
22422         of diff output, since Solaris 5.10 and GNU diff formats differ.
22423         Reported by Stefano Lattarini.
22425 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22427         test-posixtm: don't assume signed integer wraparound
22428         * tests/test-posixtm.c (main): Don't assume wraparound semantics
22429         after signed integer overflow.  Inspired by (though it may not
22430         fix) Bruno Haible's bug report in
22431         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
22433         Spell out "Windows 9x" and "Windows XP".
22434         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
22435         "Windows 9x" and "WinXP" with "Windows XP".
22437 2012-01-04  Jim Meyering  <meyering@redhat.com>
22439         test-vc-list-files-cvs.sh: remove obsolete comment
22440         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
22441         double exit.  Now that's all encapsulated via skip_ and Exit.
22443 2012-01-04  Bruno Haible  <bruno@clisp.org>
22445         Talk about "native Windows API", not "Win32".
22446         * lib/classpath.c: Update comments to mention native Windows.
22447         * lib/csharpexec.c: Likewise.
22448         * lib/dup2.c: Likewise.
22449         * lib/error.c: Likewise.
22450         * lib/fcntl.c: Likewise.
22451         * lib/filename.h: Likewise.
22452         * lib/findprog.c: Likewise.
22453         * lib/get-rusage-as.c: Likewise.
22454         * lib/get-rusage-data.c: Likewise.
22455         * lib/getpagesize.c: Likewise.
22456         * lib/javaexec.c: Likewise.
22457         * lib/msvc-inval.c: Likewise.
22458         * lib/msvc-nothrow.c: Likewise.
22459         * lib/nanosleep.c: Likewise.
22460         * lib/nonblocking.c: Likewise.
22461         * lib/printf-parse.c: Likewise.
22462         * lib/setlocale.c: Likewise.
22463         * lib/sigaction.c: Likewise.
22464         * lib/strerror_r.c: Likewise.
22465         * lib/tmpdir.c: Likewise.
22466         * lib/vasnprintf.c: Likewise.
22467         * lib/w32spawn.h: Likewise.
22468         * lib/waitpid.c: Likewise.
22469         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
22470         * m4/locale-ar.m4: Likewise.
22471         * m4/locale-fr.m4: Likewise.
22472         * m4/locale-ja.m4: Likewise.
22473         * m4/locale-tr.m4: Likewise.
22474         * m4/locale-zh.m4: Likewise.
22475         * m4/printf.m4: Likewise.
22476         * tests/test-cloexec.c: Likewise.
22477         * tests/test-copy-acl.sh: Likewise.
22478         * tests/test-copy-file.sh: Likewise.
22479         * tests/test-file-has-acl.sh: Likewise.
22480         * tests/test-set-mode-acl.sh: Likewise.
22481         * tests/test-dup-safer.c: Likewise.
22482         * tests/test-dup2.c: Likewise.
22483         * tests/test-dup3.c: Likewise.
22484         * tests/test-fcntl.c: Likewise.
22485         * tests/test-nonblocking-pipe.h: Likewise.
22486         * tests/test-nonblocking-socket.h: Likewise.
22487         * tests/test-pipe.c: Likewise.
22488         * tests/test-pipe2.c: Likewise.
22489         * tests/test-spawn-pipe-child.c: Likewise.
22490         * doc/acl-resources.txt: Likewise.
22491         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22492         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
22493         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
22494         * lib/localcharset.c: Update comments to mention native Windows.
22495         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22496         * lib/localename.c: Likewise.
22497         * lib/progreloc.c: Likewise.
22498         * lib/relocatable.c: Likewise.
22499         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22500         (windows_compute_revents): Renamed from win32_compute_revents.
22501         (windows_compute_revents_socket): Renamed from
22502         win32_compute_revents_socket.
22503         * lib/select.c: Update comments to mention native Windows.
22504         (windows_poll_handle): Renamed from win32_poll_handle.
22505         * m4/threadlib.m4: Update comments to mention native Windows.
22506         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
22507         --enable-threads=windows instead of --enable-threads=win32. Set
22508         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
22509         * lib/glthread/lock.h: Update comments to mention native Windows.
22510         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
22511         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
22512         USE_WIN32_THREADS.
22513         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
22514         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
22515         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
22516         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
22517         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
22518         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
22519         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
22520         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
22521         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
22522         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
22523         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
22524         * tests/test-tls.c: Likewise.
22525         Rationale:
22526         Microsoft renamed the "Win32 API" to "Windows API", as it is available
22527         on both 32-bit and 64-bit Windows systems.
22528         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
22529         line of distinction is between "native Windows" on one side and Unix/
22530         POSIX systems on the other side. More details in
22531         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
22532         Suggested by Paul Eggert.
22534 2012-01-03  Bruno Haible  <bruno@clisp.org>
22536         isatty: Support for MSVC 9.
22537         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
22538         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
22539         (_isatty_nothrow): New function.
22540         (isatty): Use it instead of _isatty.
22541         (IsConsoleHandle): Add comment, from Paolo Bonzini.
22542         * lib/poll.c (IsConsoleHandle): Likewise.
22543         * lib/select.c (IsConsoleHandle): Likewise.
22544         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
22545         (gl_PREREQ_ISATTY): New macro.
22546         * modules/isatty (Depends-on): Add msvc-inval.
22547         (configure.ac): Invoke gl_PREREQ_ISATTY.
22549 2012-01-03  Jim Meyering  <meyering@redhat.com>
22551         maint.mk: remove temporary transition aid from over 1.5 years ago
22552         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
22553         purpose was to aid in the transition (avoiding silent malfunction)
22554         from that old name to the new _sc_search_regexp.  This shim was
22555         added by commit 219c504b.
22557         init.sh: do not try to accommodate compare arguments starting with "-"
22558         * tests/init.sh (compare_dev_null_): Do not try to accommodate
22559         compare arguments that start with "-".  Besides, we do not worry
22560         about this when invoking diff or cmp; why start now with sed?
22561         Using "--" to separate options from argument would trigger sed
22562         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
22563         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
22565 2012-01-02  Bruno Haible  <bruno@clisp.org>
22567         Enhance tests for module 'isatty'.
22568         * modules/isatty-tests (Depends-on): Add pipe-posix.
22569         * tests/test-isatty.c: Include <fcntl.h>.
22570         (DEV_NULL): New macro.
22571         (main): Test the resut of isatty() also on regular files, pipes, and
22572         /dev/null.
22574         New module 'isatty'.
22575         * lib/unistd.in.h (isatty): New declaration.
22576         * lib/isatty.c: New file, based on an idea of
22577         Bastien Roucariès <roucaries.bastien@gmail.com>.
22578         * m4/isatty.m4: New file.
22579         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
22580         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
22581         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
22582         REPLACE_ISATTY.
22583         * modules/isatty: New file.
22584         * doc/posix-functions/isatty.texi: Mention the new module.
22585         Suggested by Paolo Bonzini.
22587 2012-01-02  Bruno Haible  <bruno@clisp.org>
22589         canonicalize: Tweak 2011-12-29 commit.
22590         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
22591         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
22593 2012-01-02  Jim Meyering  <meyering@redhat.com>
22595         gitlog-to-changelog: describe input syntax in --help output
22596         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
22598         gitlog-to-changelog: fix typo in --help: show backslash before email @
22599         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
22600         in sources, but not in actual output.
22602 2011-12-30  Jim Meyering  <meyering@redhat.com>
22604         gitlog-to-changelog: don't malfunction when name contains %-directive
22605         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
22606         in a name string cause trouble.  E.g., with a user name of "%s",
22607         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
22609 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
22611         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
22612         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
22613         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
22614         the "  (tiny change)" notation that is appended to the standard
22615         ChangeLog "date  name  email" header line.
22617 2012-01-01  Jim Meyering  <meyering@redhat.com>
22619         test-framework-sh: init.sh: fix "make dist" failure
22620         When using gnulib-tool's --with-tests option and any module that
22621         depends on test-framework-sh, "make dist" would fail due to the
22622         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
22623         in the gltests directory, and not in the gllib/ directory.
22624         One way to work around that is to move the EXTRA_DIST += init.sh
22625         from the primary module to the -tests one:
22626         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
22627         * modules/test-framework-sh (Makefile.am): ...not here.
22628         Reported by Tom G. Christensen in
22629         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
22631         version-etc: update copyright year reported by --version
22632         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
22634 2011-12-31  Pádraig Brady  <P@draigBrady.com>
22636         canonicalize: only stat() if required
22637         * lib/canonicalize.c (canonicalize_filename_mode):
22638         Avoid calling l?stat() when both CAN_MISSING,
22639         and CAN_NOLINKS are set, as we neither need
22640         to resolve symlinks or test component existence.
22642 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
22644         doc: cover st_ino issues once; add OpenVMS etc.
22645         * doc/posix-functions/stat.texi (stat):
22646         * doc/posix-functions/lstat.texi (lstat):
22647         * doc/posix-functions/fstatat.texi (fstatat):
22648         * doc/posix-functions/fstat.texi (fstat):
22649         Move general 'struct stat' stuff to sys_stat.texi,
22650         leaving behind a pointer.
22651         * doc/posix-headers/sys_stat.texi (sys/stat.h):
22652         Merge duplicate info about 'struct stat' problems into here.
22653         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
22654         and suggest partial workarounds.
22656         same-inode: port to OpenVMS
22657         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
22658         three st_ino values.
22660 2011-12-30  Pádraig Brady  <P@draigBrady.com>
22662         canonicalize: fix references to stat() and lstat()
22663         * lib/canonicalize.c (canonicalize_filename_mode):
22664         Ensure references always resolve to a replacement
22665         function if required (even via a macro).
22667 2011-12-30  Jim Meyering  <meyering@redhat.com>
22669         gitlog-to-changelog: remove a little duplication
22670         * build-aux/gitlog-to-changelog (main): Grep @lines once,
22671         rather than twice.
22673 2011-12-29  Pádraig Brady  <P@draigBrady.com>
22675         canonicalize: add support for not resolving symlinks
22676         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
22677         indicate we don't want to follow symlinks.  Also
22678         provide CAN_MODE_MASK to aid setting these existing
22679         mutually exclusive values.
22680         * lib/canonicalize.c (canonicalize_filename_mode):
22681         Extract the flags from can_mode parameter, which
22682         are currently just used to select between stat()
22683         and lstat().  Also ensure that mutually exclusive
22684         values are flagged immediately as invalid.
22685         * tests/test-canonicalize.c: Verify symlinks are
22686         not followed, and that invalid flag combinations
22687         are diagnosed.
22689 2011-12-25  Jim Meyering  <meyering@redhat.com>
22691         gitlog-to-changelog: do not clump multi-paragraph entries
22692         Identical header lines (date,name,email+coauthors) are suppressed,
22693         thus putting all entries with those same characteristics under
22694         a single header.  However, when a log entry consists of two or
22695         more paragraphs, it may not be clear where it starts and ends.
22696         This change makes it so that such an entry is always separated
22697         from others by a header line, even when that header would
22698         otherwise be suppressed.
22699         * build-aux/gitlog-to-changelog: Implement the above.
22700         Inspired by a related request from Stefano Lattarini in
22701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
22703 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22705         announce-gen: fix `cmd' typo in diagnostic
22706         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
22707         diagnostic: a missing '$' meant that the command was not output.
22709 2011-12-23  Jim Meyering  <meyering@redhat.com>
22711         test-framework-sh: distribute init.sh
22712         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
22713         Otherwise, "make -C gnulib-tests check" (at least in grep) would
22714         fail due to the lack of init.sh.
22716         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
22717         * modules/atexit-tests: Rather than listing tests/init.sh,
22718         now that there's a module for it, simply depend on that new module.
22719         * modules/closein-tests: Likewise.
22720         * modules/exclude-tests: Likewise.
22721         * modules/getcwd-tests: Likewise.
22722         * modules/perror-tests: Likewise.
22723         * modules/pread-tests: Likewise.
22724         * modules/pwrite-tests: Likewise.
22725         * modules/vc-list-files-tests: Likewise.
22726         * modules/verify-tests: Likewise.
22727         * modules/xalloc-die-tests: Likewise.
22728         * modules/xstrtoimax-tests: Likewise.
22729         * modules/xstrtol-tests: Likewise.
22730         * modules/xstrtoll-tests: Likewise.
22731         * modules/xstrtoumax-tests: Likewise.
22732         * modules/yesno-tests: Likewise.
22734 2011-12-22  Jim Meyering  <meyering@redhat.com>
22736         test-framework-sh: add minimal tests of init.sh's compare function
22737         * modules/test-framework-sh-tests: New file.
22738         * tests/test-init.sh: New file.
22740         test-framework-sh: new module
22741         * modules/test-framework-sh: New file.
22742         * MODULES.html.sh (Support for maintaining and releasing projects):
22743         List it.
22745         init.sh: do not emit simulated diff output to stderr
22746         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
22748 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
22750         .gitignore: ignore gnulib.dvi and regex.info
22751         * doc/.gitignore:add gnulib.dvi and regex.info
22753 2011-12-22  Jim Meyering  <meyering@redhat.com>
22755         init.sh: correct previous change
22756         * tests/init.sh (compare): My previous change was wrong.
22757         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
22759         init.sh: avoid unwarranted test failure when using "set -e"
22760         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
22761         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
22762         a use like "compare exp out" would get evoke an unconditional failure.
22764 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
22766         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
22767         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
22768         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
22769         autoreconf that did not.
22770         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
22771         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
22773 2011-12-17  Jim Meyering  <meyering@redhat.com>
22775         bootstrap: remove some now-unneeded code
22776         This script arose back when gnulib-tool was young.
22777         Since then, it has seen improvements that render much of this
22778         script unnecessary.  In particular, it can now make symlinks
22779         to the files it uses.  Also, I no longer see as much value in
22780         marking files as read-only via comments.
22781         If you relied on the symlink-creation feature of the preceding
22782         version of this script, you can get most of that functionality
22783         by adding the --symlink option to the definition of
22784         gnulib_tool_option_extras in your bootstrap.conf file.
22785         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
22786         Run autopoint and libtoolize *before* gnulib-tool.
22787         After it, run an abbreviated autoreconf, rather than a loop around
22788         all tools.
22789         (slirp, bt_mark_as_generated): Remove functions.
22791 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22793         ftoastr: fix typo
22794         * lib/ftoastr.h: Fix misspelling in comment.
22796 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
22798         * top/README-release: fix punctuation.
22800 2011-12-17  Jim Meyering  <meyering@redhat.com>
22802         bootstrap: correct the recent buildreq change
22803         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
22804         had no effect.
22805         * build-aux/bootstrap (buildreq): Bracket each search term with
22806         "*...*", so that the shell "case" statement works as intended.
22807         Add comments.
22809 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
22811         build: let bootstrap resort to wget when downloading .po files
22812         * build-aux/bootstrap (download_po_files): Fallback to wget when
22813         downloading the .po files via rsync fails.  This is necessary to
22814         bootstrap from behind a strict firewall.
22816 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22818         stdint: don't assume C++11 when compiling with g++
22819         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
22820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
22821         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
22822         work also in C++ before C++11, as that improperly inhibits
22823         generating a substitute stdint.h for that case.
22825 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22827         alloca: protect comment from gnulib-tool
22828         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
22829         that gnulib-tool doesn't think it's a license, and munge it to
22830         say "GCC version 3".
22832 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
22834         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
22835         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
22836         $(abs_top_builddir) instead of $(top_builddir).
22838 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
22840         strftime-tests: also test nanoseconds
22841         * tests/test-strftime.c (T): Add a test of %N.
22843 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
22845         inttypes, stdint: add C++11 support
22846         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
22847         when including inttypes.h and stdint.h.  Support this change to
22848         the standard.
22849         * doc/posix-headers/inttypes.texi (inttypes.h):
22850         * doc/posix-headers/stdint.texi (stdint.h): Document this.
22851         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
22852         Define if not defined already, for the benefit of pre-C++11 hosts.
22853         Define the standard format macros (e.g., PRId8) always.
22854         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
22855         Likewise, if __cpluspus.  Define the standard constant and limit
22856         macros (e.g., INT8_C, INT8_MAX) always.
22857         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
22858         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
22859         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
22860         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
22861         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
22862         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
22863         Likewise.
22865 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
22867         nonblocking tests: Fix test failure on Linux/PPC.
22868         Suggested by Prerna Saxena in
22869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
22870         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
22871         Set to 1100000.
22873 2011-12-12  Jim Meyering  <meyering@redhat.com>
22875         argmatch: don't hard-code `' when listing valid option arguments
22876         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
22877         use the quote function to add quotes.  Use fputs rather than
22878         fprintf for the format string with no format directive.
22880 2011-12-07  Eric Blake  <eblake@redhat.com>
22882         bootstrap: detect tools required by gnulib-tool
22883         * build-aux/bootstrap (buildreq): Provide minimum implicit
22884         dependencies.
22885         * DEPENDENCIES: Mention patch as a prereq.
22887 2011-12-04  Bruno Haible  <bruno@clisp.org>
22889         sethostname: Port to Windows platforms.
22890         * lib/sethostname.c: Provide an alternate implementation for Windows
22891         platforms.
22892         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
22893         (main): Skip the test if sethostname() fails with EPERM. On Windows
22894         platforms, don't check the result of gethostname().
22896 2011-12-04  Bruno Haible  <bruno@clisp.org>
22897             Jim Meyering  <meyering@redhat.com>
22899         tests: Avoid spurious error message on platforms without mktemp program.
22900         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
22902 2011-12-04  Bruno Haible  <bruno@clisp.org>
22904         sethostname: Fix documentation.
22905         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
22906         "not fixed" section.
22908 2011-12-03  Bruno Haible  <bruno@clisp.org>
22910         gnulib-tool: Verify that the License field is present and non-empty.
22911         * gnulib-tool (func_get_license_raw): New function, extracted from
22912         func_get_license.
22913         (func_get_license): Use it. Warn if the module is not a test module and
22914         has no license.
22915         Suggested by Jim Meyering.
22917 2011-12-03  Bruno Haible  <bruno@clisp.org>
22919         sethostname tests: Fix link error on mingw.
22920         * tests/test-sethostname1.c: New file, extracted from
22921         tests/test-sethostname.c.
22922         * tests/test-sethostname2.c: New file, extracted from
22923         tests/test-sethostname.c.
22924         * tests/test-sethostname.c: Remove file.
22925         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
22926         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
22927         (Depends-on): Add gethostname.
22928         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
22929         Link the latter with $(GETHOSTNAME_LIB).
22931         sethostname tests: Fix compilation error on mingw.
22932         * tests/test-sethostname.c: Don't include <sys/types.h>.
22933         (geteuid): Use a dummy value without uid_t.
22934         * modules/sethostname-tests (Depends-on): Remove sys_types.
22936         sethostname tests: Avoid a gcc warning.
22937         * tests/test-sethostname.c (main): Remove an unused variable.
22939         Tweak last commit.
22940         * modules/sethostname-tests (Files): Sort by decreasing importance.
22941         (configure.ac): Check for geteuid.
22942         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
22943         the test when there's nothing to test. Drop an unnecessary cast.
22944         Improve an error message. Verify that the final sethostname() call
22945         succeeds.
22947 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
22949         Add a test suite for the sethostname module.
22950         * modules/sethostname-tests: New file.  A test program
22951         for the sethostname module.
22952         * tests/test-sethostname.c: Likewise.
22954 2011-12-03  Bruno Haible  <bruno@clisp.org>
22956         Tweak last commit.
22957         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
22958         Fix preprocessor directives indentation. Fix typos.
22959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
22960         * modules/unistd (Makefile): Likewise.
22962 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
22964         Integrate the sethostname module into unistd.
22965         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
22966         into the unistd.h header.
22967         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
22968         preprocessor directives.
22969         * modules/unistd: Setup the Makefile substitutions of the
22970         SETHOSTNAME preprocessor directives.
22972 2011-12-03  Bruno Haible  <bruno@clisp.org>
22974         Tweak last commit.
22975         * lib/sethostname.c: Don't include <string.h>.
22976         (sethostname): No need to copy the argument string to the stack. Don't
22977         call clearerr. Preserve errno when fprintf failed.
22978         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
22979         Don't invoke AC_REPLACE_FUNCS.
22980         * modules/sethostname (Link): Remove empty section.
22981         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
22982         failure problem.
22984 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
22986         New module 'sethostname'.
22987         * lib/sethostname.c (sethostname): New file.  Provide sethostname
22988         for systems that lack it.
22989         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
22990         sethostname declaration and function.
22991         * modules/sethostname: New file.  Define the sethostname module.
22993 2011-12-03  Bruno Haible  <bruno@clisp.org>
22995         Tweak last commit.
22996         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
22998 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23000         Split the HOST_NAME_MAX detection into a separate m4 macro.
23001         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
23002         macro so it can be used by the pending sethostname module.
23004 2011-12-03  Bruno Haible  <bruno@clisp.org>
23006         Fix module descriptions syntax.
23007         * modules/argv-iter (License): Fix syntax.
23008         * modules/di-set (License): Likewise.
23009         * modules/ino-map (License): Likewise.
23010         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
23012 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
23014         stdalign: port to Clang 3.0
23015         Problem reported by Simon Josefsson in
23016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
23017         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
23018         which has <stdalign.h> but which does not define alignof.
23019         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
23021 2011-12-01  Eric Blake  <eblake@redhat.com>
23023         mktempd: silence dd usage
23024         * build-aux/mktempd (rand_bytes): Silence dd.
23026 2011-11-30  Simon Josefsson  <simon@josefsson.org>
23028         manywarnings: Don't mention gcc version in docstring.
23029         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
23030         Jim Meyering <meyering@redhat.com>.
23032 2011-11-30  Jim Meyering  <meyering@redhat.com>
23034         hash: mark a few floating point constants with "f" suffix
23035         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
23036         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
23037         floating point constants with "f", since they're destined to be
23038         saved/used as "float"s.
23040 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
23042         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
23043         * tests/test-float.c (test_long_double): Correct and re-enable the
23044         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
23046 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
23048         Avoid subtracting two pointers that don't point into the same block.
23049         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
23050         only pointers into the same memory block are subtracted. We cannot
23051         assume that sizeof (ptrdiff_t) == sizeof (void *).
23053 2011-11-29  Eric Blake  <eblake@redhat.com>
23055         maint.mk: add syntax check for use of compare from init.sh
23056         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
23057         moved here from coreutils.
23059         manywarnings: drop -Wunsuffixed-float-constants
23060         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
23061         '1.0D', which is the only way to silence this warning for 'double'.
23063 2011-11-29  Jim Meyering  <meyering@redhat.com>
23065         hash: mark compute_bucket_size with the pure attribute
23066         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
23068         quotearg, propername: correct pragma guard expression
23069         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
23070         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
23072 2011-11-28  Jim Meyering  <meyering@redhat.com>
23074         propername: do not mark proper_name with the const attribute
23075         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
23076         since it examines data pointed to by its parameter.
23077         * lib/propername.c (proper_name): Instead, add a pragma to suppress
23078         the suggestion from -Wsuggest-attribute=const.
23080         propername: mark one more function as const
23081         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
23083 2011-11-27  Jim Meyering  <meyering@redhat.com>
23085         mark functions with const and pure attributes
23087         Mark functions per suggestions from gcc-4.6 when using these options:
23088         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
23089         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
23090         Follow these guidelines: when possible, apply the attribute to
23091         an extern declaration, not to its definition.  Apply it to the
23092         definition only when the definition is static.
23093         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
23094         * lib/argv-iter.h (argv_iter_n_args): Likewise.
23095         * lib/base64.h (isbase64): Likewise.
23096         * lib/basename-lgpl.c (last_component, base_len): Likewise.
23097         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
23098         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
23099         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
23100         (c_tolower, c_toupper): Likewise.
23101         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
23102         * lib/chdir-long.c (find_non_slash): Likewise.
23103         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
23104         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
23105         * lib/file-type.h (file_type): Likewise.
23106         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
23107         * lib/filevercmp.c (verrevcmp): Likewise.
23108         * lib/freadahead.h (freadahead): Likewise.
23109         * lib/fts.c (fts_maxarglen): Likewise.
23110         * lib/hash-pjw.h (hash_pjw): Likewise.
23111         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
23112         * lib/hash.c (is_prime, next_prime): Likewise.
23113         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
23114         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
23115         (hash_table_ok, hash_get_first, hash_string): Likewise.
23116         (compute_bucket_size): Likewise.
23117         * lib/i-ring.h (i_ring_empty): Likewise.
23118         * lib/isnan.c (isnanl): Likewise.
23119         * lib/math.h (isnanl, rpl_isnanl): Likewise.
23120         * lib/memcasecmp.h (memcasecmp): Likewise.
23121         * lib/memchr2.h (memchr2): Likewise.
23122         * lib/memcmp2.h (memcmp2): Likewise.
23123         * lib/parse-datetime.y (lookup_zone): Likewise.
23124         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
23125         [!WINDOWS_SOCKETS]: Likewise.
23126         * lib/strnlen1.h (strnlen1): Likewise.
23127         * lib/uniwidth.in.h (uc_width): Likewise.
23128         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
23129         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
23130         (quoting_options_from_style): Add a comment.
23131         * lib/propername.h (proper_name): Add a comment.
23133 2011-11-27  Bruno Haible  <bruno@clisp.org>
23135         Remove unused macros from !_LIBC code in glibc-borrowed files.
23136         * lib/fnmatch.c (STRCOLL): Remove macro.
23137         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
23138         * lib/glob.c (__stat, __readdir64): Remove macros.
23139         * lib/tempname.c (__open64, __xstat64): Remove macros.
23140         Suggested by Paul Eggert.
23142 2011-11-27  Bruno Haible  <bruno@clisp.org>
23144         getcwd: Fix link error on MSVC 9.
23145         * modules/getcwd (Depends-on): Add readdir, rewinddir.
23147 2011-11-27  Bruno Haible  <bruno@clisp.org>
23149         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
23150         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
23151         HAVE_OPENDIR is 0.
23152         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
23153         HAVE_CLOSEDIR is 0.
23154         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
23155         is 0.
23156         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
23158 2011-11-27  Bruno Haible  <bruno@clisp.org>
23160         getcwd: Fix bug from 2011-08-17.
23161         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
23162         platforms that need it.
23163         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
23164         code of 4 to be a failure, not a success. This ensures that
23165         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
23167 2011-11-27  Bruno Haible  <bruno@clisp.org>
23169         binary-io tests: Avoid test failure on mingw when libtool is used.
23170         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
23171         Don't verify the size of t-bin-out1.tmp here.
23172         * tests/test-binary-io.sh: Verify it here.
23173         Reported by Simon Josefsson.
23175 2011-11-26  Bruno Haible  <bruno@clisp.org>
23177         Fix conflict between two instantiations of module 'unistd'.
23178         * gnulib-tool (func_emit_autoconf_snippet): Substitute
23179         ${include_guard_prefix} also in the autoconf snippet.
23180         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
23181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
23182         GNULIB_UNISTD_H_GETOPT.
23183         * modules/getopt-posix (configure.ac): Set the
23184         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
23185         * modules/getopt-gnu (configure.ac): Likewise.
23186         * modules/unistd (Makefile.am): Change the substitution value of
23187         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
23188         Reported by Simon Josefsson.
23190 2011-11-25  Bruno Haible  <bruno@clisp.org>
23192         pagealign_alloc: Doc and comments.
23193         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
23194         module.
23195         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
23197 2011-11-25  Jim Meyering  <meyering@redhat.com>
23199         test-update-copyright.sh: avoid false-positive failure
23200         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
23201         around false positive failure on Cygwin/Windows.  The latter was
23202         matching erroneously-created files with names like
23203         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
23205 2011-11-25  Simon Josefsson  <simon@josefsson.org>
23207         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
23208         * m4/valgrind-tests.m4: Check that the parameters that will be
23209         used works, not just a subset of them.  Reported by Bruno Haible
23210         <bruno@clisp.org>.
23212 2011-11-24  Jim Meyering  <meyering@redhat.com>
23214         test-stdalign.c: comment out long double tests
23215         * tests/test-stdalign.c: Don't try to reduce alignment of long double
23216         variables.  That provokes errors like this from gcc-4.7.0 20111124:
23217         error: '_Alignas' specifiers cannot reduce alignment of \
23218         'static_longdouble_alignas'.
23220 2011-11-22  Jim Meyering  <meyering@redhat.com>
23222         init.sh: make "compare /dev/null FILE" output more readable
23223         * tests/init.sh (compare_): Document the preferred order of arguments.
23224         (emit_diff_u_header_): New function.
23225         (compare_dev_null_): Emit a simulated diff, rather than just the
23226         contents of the unexpected file.  Suggestion from Bruno Haible.
23228 2011-11-21  Jim Meyering  <meyering@redhat.com>
23229             Eric Blake  <eblake@redhat.com>
23231         init.sh: work around OSF/1 5.1's mishandling of /dev/null
23232         * tests/init.sh: Make our compare function slightly more portable.
23233         Reported by Bruno Haible in
23234         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
23236 2011-11-21  Simon Josefsson  <simon@josefsson.org>
23238         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
23239         before using it, in code that ends up in config.h.
23241 2011-11-20  Bruno Haible  <bruno@clisp.org>
23243         getcwd: Work around getcwd bug on AIX 5..7.
23244         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
23245         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
23246         Use a different value for gl_cv_func_getcwd_path_max. Move the
23247         definition of HAVE_PARTLY_WORKING_GETCWD from here...
23248         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
23249         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
23250         Define HAVE_MINIMALLY_WORKING_GETCWD.
23251         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
23252         where it is not even minimally working, that is, on AIX.
23253         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
23254         m4/getcwd-path-max.m4.
23255         (main): Update exit code computation.
23256         * doc/posix-functions/getcwd.texi: Mention list of platforms where
23257         getcwd does not handle long file names.
23259 2011-11-20  Bruno Haible  <bruno@clisp.org>
23261         getcwd: Fix bug from 2009-09-10.
23262         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
23263         like "no".
23265 2011-11-20  Simon Josefsson  <simon@josefsson.org>
23267         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
23269 2011-11-20  Bruno Haible  <bruno@clisp.org>
23271         fma tests: Avoid shadowing local variables.
23272         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
23273         expected.
23275 2011-11-20  Bruno Haible  <bruno@clisp.org>
23277         copysignf tests: Fix.
23278         * tests/test-copysignf.c: Fix signature check.
23280 2011-11-20  Bruno Haible  <bruno@clisp.org>
23282         fma: Remove unused code.
23283         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
23284         unused macros.
23286 2011-11-20  Bruno Haible  <bruno@clisp.org>
23288         sethostname: Fix doc about AIX.
23289         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
23290         sethostname; it has it.
23292         sethostname: Mention more portability problems.
23293         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
23294         problem.
23295         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23297 2011-11-19  Bruno Haible  <bruno@clisp.org>
23299         Depend on module fcntl-h when AT_FDCWD is used.
23300         * modules/utimens (Depends-on): Add fcntl-h.
23301         * modules/areadlinkat (Depends-on): Likewise.
23302         * modules/areadlinkat-with-size (Depends-on): Likewise.
23303         * modules/faccessat (Depends-on): Likewise.
23304         * modules/fchmodat (Depends-on): Likewise.
23305         * modules/fchownat (Depends-on): Likewise.
23306         * modules/getcwd (Depends-on): Likewise.
23307         * modules/mkdirat (Depends-on): Likewise.
23308         * modules/mkfifoat (Depends-on): Likewise.
23309         * modules/readlinkat (Depends-on): Likewise.
23310         * modules/symlinkat (Depends-on): Likewise.
23311         * modules/dup2-tests (Depends-on): Likewise.
23312         * modules/fdutimensat-tests (Depends-on): Likewise.
23313         * modules/futimens-tests (Depends-on): Likewise.
23315 2011-11-19  Bruno Haible  <bruno@clisp.org>
23317         euidaccess: Update a comment.
23318         * lib/euidaccess.c: Update comment about platforms with faccessat.
23320 2011-11-19  Bruno Haible  <bruno@clisp.org>
23322         openat: Fix file list.
23323         * modules/openat (Files): Remove lib/at-func.c.
23325 2011-11-19  Bruno Haible  <bruno@clisp.org>
23327         fstatat: Simplify.
23328         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
23329         gnulib should define rpl_fstatat, there is a
23330         "#define fstatat rpl_fstatat" in <sys/stat.h>.
23332 2011-11-19  Bruno Haible  <bruno@clisp.org>
23334         Ensure 'inline' can be used in tests/test-utimens-common.h.
23335         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
23336         * modules/futimens-tests (configure.ac): Likewise.
23337         * modules/utimens-tests (configure.ac): Likewise.
23338         * modules/utimensat-tests (configure.ac): Likewise.
23340 2011-11-19  Simon Josefsson  <simon@josefsson.org>
23342         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
23343         not hash_insert0.
23344         (hash_insert_if_absent): Doc fix.
23346 2011-11-19  Simon Josefsson  <simon@josefsson.org>
23348         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
23350 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23352         test-getcwd: disambiguate exit status
23353         * tests/test-getcwd.c (test_long_name): Return 0..7.
23354         (main): Exit with an unambiguous exit status.  The old
23355         code yielded a mysterious mixture of two failure codes.
23357         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
23358         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
23359         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
23360         rpl_fstatat or fstatat.  This should fix the other problem
23361         reported by Kai Habel in
23362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
23363         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
23364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
23365         and I reproduced it on a Solaris 8 host we still have in production.
23367 2011-11-18  Jim Meyering  <meyering@redhat.com>
23369         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
23370         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
23371         Add a sentence to the comment.
23372         (hash_insert0): New function that simply calls hash_insert_if_absent.
23373         * lib/hash.h (hash_insert_if_absent): Declare it.
23374         (hash_insert0): Add deprecation attribute.
23375         (_GL_ATTRIBUTE_DEPRECATED): Define.
23376         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
23377         not hash_insert0.
23378         * NEWS: Mention it, even though it's not really an incompatible change.
23380 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
23382         openat: avoid compilation failure due to lack of <errno.h> inclusion
23383         * lib/openat.c: Include <errno.h>.
23385 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23387         * modules/getcwd (Depends-on): Add fdopendir.
23388         This fixes one of the two problems reported by Kai Habel in
23389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
23391         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
23392         stdalign problem reported by Ian Beckwith in
23393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
23394         * modules/crypto/gc-arcfour (Depends-on):
23395         Depend conditionally on crypto/arcfour.
23396         * modules/crypto/gc-arctwo (Depends-on):
23397         Depend conditionally on crypto/arctwo.
23398         * modules/crypto/gc-des (Depends-on):
23399         Depend conditionally on crypto/des.
23400         * modules/crypto/gc-hmac-md5 (Depends-on):
23401         Depend conditionally on crypto/hmac-md5.
23402         * modules/crypto/gc-hmac-sha1 (Depends-on):
23403         Depend conditionally on crypto/hmac-sha1.
23404         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
23405         * modules/crypto/gc-md4 (Depends-on):
23406         Depend conditionally on crypto/md4.
23407         * modules/crypto/gc-md5 (Depends-on):
23408         Depend conditionally on crypto/md5.
23409         * modules/crypto/gc-rijndael (Depends-on):
23410         Depend conditionally on crypto/rijndael.
23411         * modules/crypto/gc-sha1 (Depends-on):
23412         Depend conditionally on crypto/sha1.
23413         * modules/crypto/gc-arcfour:
23414         * modules/crypto/gc-arctwo:
23415         * modules/crypto/gc-des:
23416         * modules/crypto/gc-hmac-md5:
23417         * modules/crypto/gc-hmac-sha1:
23418         * modules/crypto/gc-md2:
23419         * modules/crypto/gc-md4:
23420         * modules/crypto/gc-md5:
23421         * modules/crypto/gc-rijndael:
23422         * modules/crypto/gc-sha1:
23423         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
23424         now that the conditional dependencies do the work for us.
23426 2011-11-17  Jim Meyering  <meyering@redhat.com>
23428         tests: factor st_ctime-comparison out of two headers
23429         * tests/test-utimens-common.h (ctime_compare): Define.
23430         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
23431         * tests/test-lutimens.h (test_lutimens): Likewise.
23432         * tests/test-utimens.h (test_utimens): Likewise.
23434         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
23435         Invoke the test program via an init.sh-using wrapper.
23436         * tests/test-getcwd.sh: New file.
23437         * modules/getcwd-tests (Files): Add it.
23438         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
23440 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
23442         gitlog-to-changelog: support multi-author commits.
23443         The FSF cares about keeping track of all authors of patches to its
23444         projects, but Git doesn't provide obvious support for multi-author
23445         changesets. Consensus seems to be forming around the use of extra
23446         Signed-off-by inspired lines in the log message formatted as
23447         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
23448         multi-author commits between version control systems.
23449         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
23450         log message and output in standard ChangeLog multi-author format.
23451         Reported by Peter Rosin <peda@lysator.liu.se>
23453 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23454             Bruno Haible  <bruno@clisp.org>
23456         Fix some modules' file list.
23457         * modules/fstatat (Files): Add m4/lstat.m4.
23458         * modules/openat (Files): Likewise.
23459         * modules/unlinkat (Files): Likewise.
23461 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
23463         maint.mk: fix tight-scope.mk generation in VPATH builds.
23464         * top/maint.mk (tight-scope.mk): Make sure to prefix file
23465         reference with $(srcdir) so that the file is found correctly even
23466         when running `make syntax-check' in a VPATH build.
23468 2011-11-13  Bruno Haible  <bruno@clisp.org>
23469             Jim Meyering  <meyering@redhat.com>
23471         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
23472         * tests/init.sh (compare): Remove "No differences encountered" or
23473         synonymous output from the 'diff' program.
23475 2011-11-13  Bruno Haible  <bruno@clisp.org>
23477         Makefile: Tweak indentation.
23478         * Makefile: Use tab as first character in every line that contains rule
23479         commands.
23481 2011-11-13  Bruno Haible  <bruno@clisp.org>
23483         Syntax check for copyright statements.
23484         * check-copyright: New file.
23485         * Makefile (sc_check_copyright): New rule.
23487 2011-11-13  Simon Josefsson  <simon@josefsson.org>
23489         * build-aux/git-version-gen: Add --prefix to configure the tag
23490         match string.
23492 2011-11-13  Simon Josefsson  <simon@josefsson.org>
23494         * build-aux/git-version-gen: Add --help and --version.
23496 2011-11-12  Jim Meyering  <meyering@redhat.com>
23498         revamp the other test-exclude?.sh scripts to use init.sh, too
23499         * tests/test-exclude1.sh: Use init.sh.
23500         * tests/test-exclude2.sh: Likewise.
23501         * tests/test-exclude3.sh: Likewise.
23502         * tests/test-exclude4.sh: Likewise.
23503         * tests/test-exclude5.sh: Likewise.
23504         * tests/test-exclude6.sh: Likewise.
23505         * tests/test-exclude7.sh: Likewise.
23506         * tests/test-exclude8.sh: Likewise.
23507         * modules/exclude-tests (Files): List init.sh.
23509         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
23510         These shell scripts ignored failure of the binary test-exclude,
23511         so making the latter return 77 didn't cause them to be skipped.
23512         * tests/test-exclude5.sh: Exit with test-exclude's error status
23513         when that program fails.  Revamp to use init.sh.
23514         * tests/test-exclude2.sh: Likewise.
23516         test-exclude: fix a typo
23517         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
23519 2011-11-11  Bruno Haible  <bruno@clisp.org>
23521         obstack: Fix compilation error on MSVC 9.
23522         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
23524 2011-11-11  Jim Meyering  <meyering@redhat.com>
23526         test-exclude: skip tests rather than failing on deficient systems
23527         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
23528         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
23529         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
23530         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
23532 2011-11-10  Bruno Haible  <bruno@clisp.org>
23534         ptsname_r test: Avoid gcc warning on glibc systems.
23535         * tests/test-ptsname_r.c (null_ptr): New function.
23536         (test_errors): Use it.
23538 2011-11-10  Bruno Haible  <bruno@clisp.org>
23540         ptsname_r: Avoid compilation error on OSF/1 5.1.
23541         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
23542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
23543         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
23544         function is not declared or incompatibly declared.
23545         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
23546         * modules/ptsname_r (Depends-on, configure.ac): Update.
23547         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
23549 2011-11-10  Bruno Haible  <bruno@clisp.org>
23551         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
23552         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
23553         When cross-compiling, guess yes on all platforms except AIX.
23554         Reported by Ludovic Courtès <ludo@gnu.org>.
23556 2011-11-09  Bruno Haible  <bruno@clisp.org>
23558         ptsname_r tests: Fix bugs.
23559         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
23560         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
23562 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23564         fstatat: work with cross-compilation
23565         Problem reported by Ludovic Courtès in
23566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
23567         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
23568         "cross-compiling" and assume the bug is present.  Replace
23569         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
23570         an inverted sense, to be more conservative about our assumptions.
23571         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
23573 2011-11-09  Bruno Haible  <bruno@clisp.org>
23575         Improve MODULES.html output.
23576         * modules/mkfifoat (Description): Use the word "function".
23577         * modules/readlinkat (Description): Likewise.
23578         * modules/symlinkat (Description): Likewise.
23580 2011-11-09  Eric Blake  <eblake@redhat.com>
23582         ptsname_r-tests: new test module
23583         * modules/ptsname_r-tests: New module.
23584         * tests/test-ptsname_r.c: New file.
23586         ptsname_r: new module
23587         * modules/ptsname_r: New module.
23588         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
23589         * lib/ptsname.c (__ptsname_r): Split...
23590         * lib/ptsname_r.c: ...into new file.
23591         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
23592         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
23593         * modules/stdlib (Makefile.am): Substitute witnesses.
23594         * lib/stdlib.in.h (ptsname_r): Declare it.
23595         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
23596         * MODULES.html.sh (Misc): Likewise.
23597         * modules/ptsname (Depends-on): Alter dependency.
23598         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
23600 2011-11-09  Jim Meyering  <meyering@redhat.com>
23602         announce-gen: be more concise when there's only one URL+tarball
23603         * build-aux/announce-gen (get_tool_versions): When you distribute
23604         only one type of tarball, combine the first two "Here are..."
23605         sections and make the key-checking grammar independent of
23606         how many tarballs there are.
23608 2011-11-09  Eric Blake  <eblake@redhat.com>
23610         openpty: provide a stub on mingw
23611         * lib/pty.in.h (includes): Provide forward declarations.
23612         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
23614         raise: fix mingw handling of SIGPIPE
23615         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
23617 2011-11-08  Bruno Haible  <bruno@clisp.org>
23619         More conditional dependencies.
23620         * modules/faccessat (Depends-on): Add conditions.
23621         * modules/fchmodat (Depends-on): Likewise.
23622         * modules/fchownat (Depends-on): Likewise.
23623         * modules/fstatat (Depends-on): Likewise.
23624         * modules/mkfifoat (Depends-on): Likewise.
23625         * modules/readlinkat (Depends-on): Likewise.
23626         * modules/symlinkat (Depends-on): Likewise.
23627         * modules/unlinkat (Depends-on): Likewise.
23628         * modules/utimensat (Depends-on): Likewise.
23629         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
23630         * modules/linkat (Depends-on): Refine the conditions.
23631         * modules/renameat (Depends-on): Likewise.
23633 2011-11-08  Bruno Haible  <bruno@clisp.org>
23635         faccessat: Move AC_LIBOBJ invocation to module description.
23636         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
23637         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
23638         invocation from here...
23639         * modules/faccessat (configure.ac): ... to here. Invoke
23640         gl_PREREQ_FACCESSAT.
23642 2011-11-08  Bruno Haible  <bruno@clisp.org>
23644         faccessat: Simplify autoconf macro.
23645         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
23646         gl_FUNC_EUIDACCESS.
23648 2011-11-08  Bruno Haible  <bruno@clisp.org>
23650         renameat: Fix dependencies.
23651         * modules/renameat (Depends-on): Add stdbool.
23653 2011-11-08  Bruno Haible  <bruno@clisp.org>
23655         mkfifoat: Fix module description.
23656         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
23657         not gl_UNISTD_MODULE_INDICATOR.
23659 2011-11-08  Bruno Haible  <bruno@clisp.org>
23661         fstatat: Remove unused dependency.
23662         * modules/fstatat (Depends-on): Remove fstat.
23664 2011-11-08  Simon Josefsson  <simon@josefsson.org>
23666         GNUmakefile: behave when Makefile is missing.
23667         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
23669 2011-11-08  Bruno Haible  <bruno@clisp.org>
23671         openat: Conditionalize dependencies.
23672         * lib/openat.c: Reduce the scope of some #includes.
23673         * modules/openat (Depends-on): Add conditions.
23675 2011-11-07  Jim Meyering  <meyering@redhat.com>
23677         maint.mk: extract GPG key ID without using a temporary file
23678         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
23679         without using a temporary file.  Based on a suggestion from Werner Koch
23680         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
23682 2011-11-07  Eric Blake  <eblake@redhat.com>
23684         grantpt: fix typo
23685         * lib/stdlib.in.h (grantpt): Check correct function.
23687         maint.mk: silence new syntax check
23688         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
23690 2011-11-06  Bruno Haible  <bruno@clisp.org>
23692         Doc about floating-point and math API.
23693         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
23694         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
23696 2011-11-06  Bruno Haible  <bruno@clisp.org>
23698         stdalign tests: Skip the test when compiled by Sun C.
23699         * tests/test-stdalign.c (main): Skip the test on Sun C.
23701 2011-11-06  Bruno Haible  <bruno@clisp.org>
23703         ansi-c++-opt: Complete the 2011-06-05 change.
23704         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
23705         does not support namespaces, set the variable to "no", not to ":".
23707 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23709         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
23711 2011-11-06  Bruno Haible  <bruno@clisp.org>
23713         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
23714         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
23715         (minus_zerol) [HP-UX]: New macro.
23716         (unary_minus) [HP-UX]: New function.
23717         (copysignl) [HP-UX]: Use unary_minus function.
23719 2011-11-06  Bruno Haible  <bruno@clisp.org>
23721         ldexp, ldexpf, ldexpl: Enhance tests.
23722         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
23723         and tests/test-ldexpl.c.
23724         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
23725         LDEXP, MIN_EXP, MAX_EXP): New macros.
23726         Include test-ldexp.h.
23727         (main): Just call test_function.
23728         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
23729         infinity.h, nan.h.
23730         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23731         MAX_EXP): New macros.
23732         Include test-ldexp.h.
23733         (x, y): Remove variables.
23734         (main): Just call test_function.
23735         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
23736         infinity.h, nan.h.
23737         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23738         MAX_EXP): New macros.
23739         Include test-ldexp.h.
23740         (x, y): Remove variables.
23741         (main): Just call test_function.
23742         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
23743         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
23744         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23745         (Depends-on): Add isnand-nolibm, signbit, float.
23746         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
23747         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23748         (Depends-on): Add isnanf-nolibm, signbit, float.
23750 2011-11-06  Bruno Haible  <bruno@clisp.org>
23752         math tests: Cosmetics.
23753         * tests/test-math-c++.cc: Reorder declarations.
23755 2011-11-05  Bruno Haible  <bruno@clisp.org>
23757         fma*: Simplify test.
23758         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
23759         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
23761         Tests for module 'fmal'.
23762         * modules/fmal-tests: New file.
23763         * tests/test-fmal1.c: New file.
23764         * tests/test-fmal2.c: New file.
23766         New module 'fmal'.
23767         * lib/math.in.h (fmal): New declaration.
23768         * lib/fmal.c: New file.
23769         * m4/fmal.m4: New file.
23770         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
23771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
23772         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
23773         REPLACE_FMAL.
23774         * modules/fmal: New file.
23775         * doc/posix-functions/fmal.texi: Mention the new module and the various
23776         bugs.
23778         Tests for module 'fmaf'.
23779         * modules/fmaf-tests: New file.
23780         * tests/test-fmaf1.c: New file.
23781         * tests/test-fmaf2.c: New file.
23783         New module 'fmaf'.
23784         * lib/math.in.h (fmaf): New declaration.
23785         * lib/fmaf.c: New file.
23786         * m4/fmaf.m4: New file.
23787         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
23788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
23789         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
23790         REPLACE_FMAF.
23791         * modules/fmaf: New file.
23792         * doc/posix-functions/fmaf.texi: Mention the new module and the various
23793         bugs.
23795         Tests for module 'fma'.
23796         * modules/fma-tests: New file.
23797         * tests/test-fma1.c: New file.
23798         * tests/test-fma1.h: New file.
23799         * tests/test-fma2.c: New file.
23800         * tests/test-fma2.h: New file.
23802         New module 'fma'.
23803         * lib/math.in.h (fma): New declaration.
23804         * lib/fma.c: New file.
23805         * m4/fma.m4: New file.
23806         * m4/fegetround.m4: New file.
23807         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
23808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
23809         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
23810         REPLACE_FMA.
23811         * modules/fma: New file.
23812         * doc/posix-functions/fma.texi: Mention the new module and the various
23813         bugs.
23815         Extend gl_MATHFUNC.
23816         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
23817         Support 'void' as argument type.
23818         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
23820 2011-11-05  Jim Meyering  <meyering@redhat.com>
23822         maint.mk: also prohibit inclusion of dirent.h without use
23823         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
23825 2011-11-05  Bruno Haible  <bruno@clisp.org>
23827         ldexpl tests: Avoid test failure on MSVC 9.
23828         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
23829         value. Needed in order to enforce the conversion from a value greater
23830         than LDBL_MAX to Infinity.
23832 2011-11-05  Bruno Haible  <bruno@clisp.org>
23834         New modules 'at-internal', 'openat-h', split off from module 'openat'.
23835         * modules/at-internal: New file, extracted from modules/openat.
23836         * modules/openat-h: New file.
23837         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
23838         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
23839         * modules/openat (Description): Add reference to POSIX function.
23840         (Files): Remove lib/openat.h, lib/openat-proc.c.
23841         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
23842         intprops, unistd.
23843         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
23844         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
23845         gl_FCNTL_MODULE_INDICATOR.
23846         (Include): Remove unistd.h, openat.h.
23847         * modules/areadlinkat (Files): Add lib/at-func.c.
23848         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23849         openat-die, openat-h, save-cwd.
23850         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
23851         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23852         openat-die, openat-h, save-cwd, unistd.
23853         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
23854         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23855         openat-h, save-cwd. Remove fcntl-h, openat.
23856         * modules/fchmodat (Files): Remove lib/openat.h.
23857         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23858         openat, stdbool, unistd.
23859         * modules/fchownat (Files): Remove lib/openat.h.
23860         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23861         openat, stdbool, sys_stat.
23862         * modules/fdopendir (Files): Remove lib/openat-priv.h,
23863         lib/openat-proc.c.
23864         (Depends-on): Add at-internal.
23865         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
23866         * modules/fstatat (Files): Remove lib/openat.h.
23867         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
23868         stdbool, unistd.
23869         * modules/fts (Depends-on): Add openat-h.
23870         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
23871         openat.
23872         * modules/mkdirat (Files): Remove lib/openat.h.
23873         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23874         openat, stdbool, sys_stat.
23875         * modules/mkfifoat (Files): Add lib/at-func.c.
23876         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23877         openat-h, save-cwd. Remove fcntl-h, openat.
23878         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
23879         * modules/readlinkat (Files): Add lib/at-func.c.
23880         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23881         openat-h, save-cwd. Remove fcntl-h, openat.
23882         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
23883         openat.
23884         * modules/selinux-at (Files): Add lib/at-func.c.
23885         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23886         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
23887         * modules/symlinkat (Files): Add lib/at-func.c.
23888         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23889         openat-h, save-cwd. Remove fcntl-h, openat.
23890         * modules/unlinkat (Files): Remove lib/openat.h.
23891         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
23892         stdbool.
23893         * modules/utimensat (Files): Add lib/at-func.c.
23894         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
23895         openat-die, openat-h, save-cwd.
23896         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
23897         * modules/fdutimensat-tests (Depends-on): Add openat.
23898         * modules/fstatat-tests (Depends-on): Add openat-h.
23899         * modules/readlinkat-tests (Depends-on): Add openat.
23900         * modules/symlinkat-tests (Depends-on): Add openat.
23902 2011-11-05  Bruno Haible  <bruno@clisp.org>
23904         openat: Include <stdbool.h>.
23905         * lib/openat.c: Include <stdbool.h>.
23907 2011-11-04  Bruno Haible  <bruno@clisp.org>
23909         fchownat, renameat, unlinkat: Fix dependencies.
23910         * modules/fchownat (Depends-on): Add fstatat.
23911         * modules/renameat (Depends-on): Likewise.
23912         * modules/unlinkat (Depends-on): Likewise.
23914 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23916         openat: remove direct dependency on dirent
23917         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
23918         and hasn't been needed ever since fdopendir was split into its own
23919         module on 2009-08-31.
23920         * modules/openat (Depends-on): Remove dirent.
23922 2011-11-04  Bruno Haible  <bruno@clisp.org>
23924         renameat: Optimize code size.
23925         * modules/renameat (configure.ac): Don't compile at-func2.c if
23926         REPLACE_RENAMEAT is 1.
23928 2011-11-04  Bruno Haible  <bruno@clisp.org>
23930         openat tests: Fix file list.
23931         * modules/openat-tests (Files): Add tests/test-open.h.
23933 2011-11-04  Bruno Haible  <bruno@clisp.org>
23935         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
23936         * modules/fchmodat (Depends-on): Add openat-die.
23937         * modules/fchownat (Depends-on): Likewise.
23938         * modules/linkat (Depends-on): Likewise.
23939         * modules/renameat (Depends-on): Likewise.
23940         * modules/openat (Depends-on): Add dirent.
23942 2011-11-04  Jim Meyering  <meyering@redhat.com>
23944         at-func*.c: fix comments
23945         * lib/at-func2.c: Correct/improve first-line comment.
23946         * lib/at-func.c: Correct grammar in first-line comment.
23948 2011-11-04  Bruno Haible  <bruno@clisp.org>
23950         New module 'mkdirat', split off from module 'openat'.
23951         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
23952         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
23953         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
23954         * modules/mkdirat: New file, extracted from modules/openat.
23955         * modules/openat (Files): Remove lib/mkdirat.c.
23956         (Depends-on): Remove mkdir.
23957         (configure.ac): Remove AC_LIBOBJ of mkdirat.
23958         (Include): Remove <sys/stat.h>.
23959         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
23960         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
23961         tests/test-mkdir.h.
23962         (Depends-on): Remove ignore-value.
23963         (Makefile.am): Remove rules for test-mkdirat.
23964         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
23965         of module 'openat'.
23966         * NEWS: Mention the change.
23968 2011-11-04  Bruno Haible  <bruno@clisp.org>
23970         closedir: Avoid warning on mingw.
23971         * lib/closedir.c: Include <unistd.h>.
23973 2011-11-04  Bruno Haible  <bruno@clisp.org>
23975         New module 'fstatat', split off from module 'openat'.
23976         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
23977         defined.
23978         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
23979         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
23980         gl_FUNC_FSTATAT.
23981         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
23982         * modules/fstatat: New file, extracted from modules/openat.
23983         * modules/openat (Files): Remove lib/fstatat.c.
23984         (Depends-on): Remove lstat.
23985         (configure.ac): Remove AC_LIBOBJ of fstatat.
23986         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
23987         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
23988         tests/test-lstat.h, tests/test-stat.h.
23989         (Depends-on): Remove getcwd-lgpl.
23990         (Makefile.am): Remove rules for test-fstatat.
23991         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
23992         of module 'openat'.
23993         * NEWS: Mention the change.
23994         * modules/getcwd (Depends-on): Add fstatat.
23995         * modules/linkat (Depends-on): Likewise.
23996         * modules/mkfifoat-tests (Depends-on): Likewise.
23997         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
23999 2011-11-03  Bruno Haible  <bruno@clisp.org>
24001         New module 'unlinkat', split off from module 'openat'.
24002         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
24003         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
24004         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
24005         * modules/unlinkat: New file, extracted from modules/openat. Correct
24006         the dependency conditions.
24007         * modules/openat (Files): Remove lib/unlinkat.c.
24008         (Depends-on): Remove rmdir, unlink.
24009         (configure.ac): Remove AC_LIBOBJ of unlinkat.
24010         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
24011         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
24012         tests/test-rmdir.h, tests/test-unlink.h.
24013         (Depends-on): Remove unlinkdir.
24014         (Makefile.am): Remove rules for test-unlinkat.
24015         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
24016         of module 'openat'.
24017         * NEWS: Mention the change.
24018         * modules/linkat-tests (Depends-on): Add unlinkat.
24019         * modules/mkfifoat-tests (Depends-on): Likewise.
24020         * modules/readlinkat-tests (Depends-on): Likewise.
24022 2011-11-02  Bruno Haible  <bruno@clisp.org>
24024         New module 'fchmodat', split off from module 'openat'.
24025         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
24026         defined.
24027         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
24028         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
24029         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
24030         * modules/fchmodat: New file, extracted from modules/openat.
24031         * modules/openat (Files): Remove lib/fchmodat.c.
24032         (configure.ac): Remove AC_LIBOBJ of fchmodat.
24033         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
24034         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
24035         (Makefile.am): Remove rules for test-fchmodat.
24036         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
24037         of module 'openat'.
24038         * NEWS: Mention the change.
24040 2011-11-02  Jim Meyering  <meyering@redhat.com>
24042         putenv: indent #definition of "environ" to placate cppi
24043         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
24045         gitlog-to-changelog: provide a ChangeLog-repair mechanism
24046         Git logs are often treated as immutable, because editing them
24047         changes the SHA1 checksums of all descendants.  Thus, errors in
24048         git logs tend to stay there forever.  However, when we generate
24049         a ChangeLog file -- typically for distribution -- from that git log,
24050         we can actually make corrections in the generated file.  The key
24051         lies in recording in machine-readable/applicable form the desired
24052         corrections.  See --help for description and an example.
24053         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
24054         (usage): Describe it; alphabetize option descriptions.
24055         (main): Honor the new option, carefully.
24057 2011-11-01  Jim Meyering  <meyering@redhat.com>
24059         gitlog-to-changelog: avoid an infloop
24060         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
24061         that ends up being empty.
24063 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24065         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
24066         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
24067         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
24068         contains (possibly-quoted) backslashes.  This should avoid
24069         all-too-common shell bugs if COMPLICATED contains backslashes in
24070         the "wrong" places.  Reported by David Evans in
24071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
24072         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
24073         because we want ASCII ranges.  Is there some reason we don't use
24074         the C locale everywhere in this script?
24075         (func_module, top level): Avoid unwanted pathname expansion when
24076         $repo_url_prefix or $repo_url_suffix_repl contain shell
24077         metacharacters like '?' and '*'.
24079 2011-11-01  Bruno Haible  <bruno@clisp.org>
24081         fchownat: Improve description.
24082         * modules/fchownat (Description): Add link to function.
24084 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24086         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
24087         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
24088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
24089         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
24091 2011-11-01  Bruno Haible  <bruno@clisp.org>
24093         alignof: Avoid collision with stdalign module.
24094         * lib/alignof.h (alignof): Remove macro.
24095         * NEWS: Mention the change.
24096         Reported by Paul Eggert.
24098 2011-11-01  Bruno Haible  <bruno@clisp.org>
24100         New module 'fchownat', split off from module 'openat'.
24101         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
24102         defined.
24103         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
24104         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
24105         invoke gl_FUNC_FCHOWNAT.
24106         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
24107         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
24108         * modules/fchownat: New file, extracted from modules/openat.
24109         * modules/openat (Files): Remove lib/fchownat.c.
24110         (Depends-on): Remove lchown.
24111         (configure.ac): Remove AC_LIBOBJ of fchownat.
24112         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
24113         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
24114         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
24115         (Depends-on): Remove mgetgroups, usleep, stat-time.
24116         (configure.ac): Remove test for getegid.
24117         (Makefile.am): Remove rules for test-fchownat.
24118         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
24119         of module 'openat'.
24120         * NEWS: Mention the change.
24122 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
24124         stdalign: port better to MSVC and to Sun C 5.11
24125         This fixes some of the problems reported by Bruno Haible in
24126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
24127         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
24128         shortcomings of MSVC and of Sun C 5.11.
24129         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
24130         around __declspec arg.
24131         * modules/stdalign-tests (Files): Add tests/macros.h.
24132         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
24133         Include macros.h, for ASSERT.
24134         (DECLARE_ALIGNED): Remove.
24135         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
24136         to catch bug), and to 1 if not (simplifies the rest of the code).
24137         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
24138         (CHECK_AUTO): Remove.
24139         (CHECK_ALIGNED): Check only the alignment of the static vars,
24140         since auto var alignment isn't supported by Sun C 5.11.
24141         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
24142         ASSERT failures are easier to diagnose.
24144 2011-10-31  Bruno Haible  <bruno@clisp.org>
24146         doc about some IRIX 5.3 problems.
24147         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
24148         on IRIX 5.3.
24149         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
24150         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
24151         5.3.
24152         * doc/posix-functions/grantpt.texi: Likewise.
24153         * doc/posix-functions/unlockpt.texi: Likewise.
24154         * doc/posix-functions/lgamma.texi: Likewise.
24155         * doc/posix-functions/nextafter.texi: Likewise.
24156         * doc/posix-functions/remainder.texi: Likewise.
24157         * doc/posix-functions/select.texi: Mention misplaced declaration on
24158         IRIX 5.3.
24159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24161 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
24163         gitlog-to-changelog: fix git-log invocation.
24164         git-log mishandles date strings before 1970-01-01 UTC, and there is
24165         no use to specify --since=1970-01-01 by default anyway.
24166         * build-aux/gitlog-to-changelog: By default, when no --since option
24167         was given, do not specify explicit --since option to git-log.
24169 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
24171         gitlog-to-changelog: new option --append-dot.
24172         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
24173         first non-blank line of each commit message terminated with a dot.
24175 2011-10-30  Bruno Haible  <bruno@clisp.org>
24177         ffsl, ffsll: Avoid compilation error due to 'restrict'.
24178         * lib/ffsl.h: Include <config.h>.
24179         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
24181 2011-10-30  Jim Meyering  <meyering@redhat.com>
24183         GNUmakefile: reenable "make syntax-check" for most projects
24184         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
24185         build-aux variable", "syntax-check" would do nothing but succeed with
24186         the "No version control files detected..." diagnostic (unless you
24187         happened to override _build-aux via cfg.mk).
24188         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
24189         to precede inclusion of maint.mk.  Otherwise, these variables would
24190         be used undefined in any project that does not override the default.
24192 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
24194         gitlog-to-changelog: treat a message with only blank lines as empty.
24195         * build-aux/gitlog-to-changelog: Move the code that removes leading and
24196         trailing blank lines before the code that issues a warning about an
24197         empty commit message.
24199 2011-10-30  Jim Meyering  <meyering@redhat.com>
24201         test-parse-datetime.c: avoid new DST-related false positive test failure
24202         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
24203         based on the time/date we'll convert, not the current time.
24204         Otherwise, the moment we cross a DST boundary like today's in
24205         Europe, (CEST to CET), that offset ends up being one hour off.
24207 2011-10-27  Bruno Haible  <bruno@clisp.org>
24209         fstat: Tweak documentation.
24210         * modules/fstat (Description): More precise description.
24212 2011-10-27  Bruno Haible  <bruno@clisp.org>
24214         Update documentation regarding 'largefile' module.
24215         * doc/posix-functions/fstat.texi: Tweak wording.
24216         * doc/posix-functions/opendir.texi: Mention that the module fixes the
24217         problems with huge directories and/or small ino_t types.
24218         * doc/posix-functions/readdir.texi: Likewise.
24219         * doc/posix-functions/rewinddir.texi: Likewise.
24221 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
24223         maint.mk: don't maintain a second build-aux variable.
24224         * maint.mk (build_aux): Removed.  The maintainer-makefile module
24225         depends on GNUmakefile, which already maintains a cfg.mk
24226         overridable $(_build-aux) for projects with a non-standard
24227         build-aux directory location, although without the $(srcdir)
24228         prefix.  Use that variable consistently instead of introducing a
24229         second one.  Adjust all call sites.
24231 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24233         Add stdalign module and use it in other modules.
24234         This is based on a previous proposal by Bruno Haible
24235         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
24237         stdalign: new module
24238         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
24239         * modules/stdalign: New files.
24240         * MODULES.html.sh (c1x_core_properties): Add stdalign.
24241         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
24243         stdalign-tests: new module
24244         * modules/stdalign-tests, tests/test-stdalign.c: New files.
24246         argp: use stdalign
24247         * lib/argp-parse.c: Include <stdalign.h>.
24248         (alignof): Remove.
24249         * modules/argp (Depends-on): Add stdalign.
24251         crypto libraries: use stdalign
24252         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
24253         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
24254         Do not include <stdlib.h> twice, in md4.c.
24255         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
24256         because we are accessing a pointer's bit-pattern, not a size.
24257         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
24258         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
24259         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
24260         * modules/crypto/sha512: Likewise.
24262         sys_socket: use stdalign, not alignof
24263         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
24264         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
24266 2011-10-27  Bruno Haible  <bruno@clisp.org>
24268         raise test: Avoid a test failure on Linux/MIPS.
24269         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
24270         because 99 is a valid signal on Linux/MIPS.
24272 2011-10-27  Bruno Haible  <bruno@clisp.org>
24274         nonblocking tests: Fix test failure on Linux/MIPS.
24275         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
24276         Set to 270000.
24278 2011-10-27  Bruno Haible  <bruno@clisp.org>
24280         utimensat: Work around problem on Linux/hppa.
24281         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
24282         values.
24283         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
24285 2011-10-25  Jim Meyering  <meyering@redhat.com>
24287         maint.mk: fix a bug in sc_prohibit_stddef_without_use
24288         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
24289         after symbols like NULL, size_t, etc.
24290         Reported by Alfred M. Szmidt.
24292         maint.mk: exempt ENODATA from a syntax-check rule
24293         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
24294         from the sc_prohibit_always-defined_macros syntax-check rule.
24295         Add a comment.  See this for more details:
24296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
24298 2011-10-23  Jim Meyering  <meyering@redhat.com>
24300         fts: close parent dir FD before returning from post-traversal fts_read
24301         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
24302         unlink A, even though an FD open on A remained.  This is suboptimal
24303         (holding a file descriptor open longer than needed), but otherwise not
24304         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
24305         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
24306         that represents a real problem: it causes the removal of A to fail
24307         with e.g., "rm: cannot remove `A': Device or resource busy"
24309         fts visits each directory twice and keeps a cache (fts_fd_ring) of
24310         directory file descriptors.  After completing the final, FTS_DP,
24311         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
24312         cache, but then proceeded to add a new FD to it via the subsequent
24313         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
24314         final file descriptor would be closed only via fts_close's call to
24315         fd_ring_clear.  Now, it is usually closed earlier, via the final
24316         FTS_DP-returning fts_read call.
24317         * lib/fts.c (restore_initial_cwd): New function, converted from
24318         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
24319         Update callers.
24320         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
24321         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
24323 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
24324             Bruno Haible  <bruno@clisp.org>
24325             Jim Meyering  <jim@meyering.net>
24327         readme-release: improve safety of release prep instructions.
24328         * README-release: Don't git pull all branches when only master
24329         is needed for the release process.
24330         Run make maintainer-clean before changing trees and merging.
24331         Don't try to run ./configure right after git pull in case files
24332         that influence the bootstrap process have changed, move the
24333         ./configure step to after running ./bootstrap.
24334         Don't bootstrap "one last time"... it's the first time!
24336 2011-10-22  Bruno Haible  <bruno@clisp.org>
24338         errno, strerror-override: Support for MSVC 10.
24339         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
24340         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
24341         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
24342         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
24343         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
24344         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
24345         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
24346         Assign values compatible with MSVC 10.
24347         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
24348         New macros.
24349         (GNULIB_defined_EWINSOCK): New macro.
24350         * lib/strerror-override.c (strerror_override): Update accordingly.
24351         * lib/strerror-override.h: Likewise.
24352         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
24353         longer equal to the corresponding errno value.
24354         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24356 2011-10-22  Bruno Haible  <bruno@clisp.org>
24358         perror: Recognize when test program crashes.
24359         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
24360         strerror, set gl_cv_func_perror_works to no.
24361         Reported by Daniel Richard G. <skunk@iskunk.org>.
24363         perror: Fix indentation.
24364         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
24366 2011-10-22  Bruno Haible  <bruno@clisp.org>
24368         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
24369         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
24370         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
24371         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
24372         functions, not as a macro.
24373         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
24374         macros.
24375         (isfinite, isinf, isnan, signbit): Check overloaded functions and
24376         absence of macro.
24377         Suggested by Eric Blake.
24378         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24380 2011-10-21  Bruno Haible  <bruno@clisp.org>
24382         relocatable-prog-wrapper: Don't leave object files behind.
24383         * build-aux/install-reloc: Re-synchronize list of .o files to be
24384         removed with list of compilation units.
24386 2011-10-20  Bruno Haible  <bruno@clisp.org>
24388         openpty, posix_openpt: Remove code duplication.
24389         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
24390         * lib/openpty.c: Include <stdlib.h>.
24391         (openpty): Use posix_openpt on all platforms except IRIX.
24392         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
24394 2011-10-20  Bruno Haible  <bruno@clisp.org>
24396         unlockpt: Detect invalid argument.
24397         * lib/unlockpt.c: Include <fcntl.h>.
24398         (unlockpt): Check whether fd is valid, using fcntl().
24399         * modules/unlockpt (Depends-on): Add fcntl-h.
24401 2011-10-20  Bruno Haible  <bruno@clisp.org>
24403         openpty: Avoid compilation error on AIX 6.1.
24404         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
24406 2011-10-20  Bruno Haible  <bruno@clisp.org>
24408         posix_openpt: Support for OpenBSD.
24409         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
24410         (posix_openpt) [OpenBSD]: New code.
24411         * lib/grantpt.c: Include <fcntl.h>.
24412         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
24413         * modules/grantpt (Depends-on): Add fcntl-h.
24415 2011-10-20  Bruno Haible  <bruno@clisp.org>
24417         posix_openpt test: Coding style.
24418         * tests/test-posix_openpt.c: Use GNU coding style.
24420 2011-10-20  Bruno Haible  <bruno@clisp.org>
24422         grantpt: Support --avoid=pt_chown.
24423         * modules/grantpt (Files): Add lib/pty-private.h.
24425 2011-10-20  Bruno Haible  <bruno@clisp.org>
24427         posix_openpt: Fix autoconf macro.
24428         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
24429         unneeded check for _getpty.
24431 2011-10-20  Bruno Haible  <bruno@clisp.org>
24433         openpty: Update comments.
24434         * lib/openpty.c: Add comments about Minix.
24436 2011-10-19  Eric Blake  <eblake@redhat.com>
24438         openpty: relax license
24439         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
24441         pt_chown: use configmake to simplify build
24442         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
24444         ptsname and others: relax license
24445         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
24446         * modules/unlockpt (License): Likewise.
24447         * modules/pt_chown (License): Likewise.
24448         * modules/ptsname (License): Likewise.
24449         * modules/ttyname_r (License): Likewise.
24451 2011-10-19  Jim Meyering  <meyering@redhat.com>
24453         posix_openpt: remove spurious #endif
24454         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
24456 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
24458         maint.mk: Respect $(build_aux) in web-manual rule.
24459         * top/maint.mk (web-manual): Find gen-announce script in user's
24460         $(build_aux) directory instead of hard-coding 'build-aux'.
24462 2011-10-19  Bruno Haible  <bruno@clisp.org>
24464         posix_openpt: Fix compilation error.
24465         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
24466         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
24467         Mention the openpty module as an alternative.
24469 2011-10-19  Bruno Haible  <bruno@clisp.org>
24471         Support for old NeXTstep 3.3 frexp().
24472         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
24473         execution time of the test to 5 seconds.
24474         Reported by Daniel Richard G. <skunk@iskunk.org>.
24476 2011-10-19  Bruno Haible  <bruno@clisp.org>
24478         Support for old NeXTstep 3.3 sed.
24479         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
24480         part, use /.../, not \|...|. Escape periods in the header file name.
24481         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
24482         Reported by Daniel Richard G. <skunk@iskunk.org>.
24484 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24486         Support for old NeXTstep 3.3 gcc.
24487         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
24488         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
24489         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
24490         * lib/spawn.in.h (_Restrict_arr_): Likewise.
24491         * lib/regex.h (_Restrict_arr_): Likewise.
24492         * lib/regex_internal.h (re_token_t): Likewise.
24493         * lib/regexec.c (check_node_accept_bytes): Likewise.
24494         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
24496 2011-10-18  Eric Blake  <eblake@redhat.com>
24498         posix_openpt: new module
24499         * modules/posix_openpt: New module.
24500         * m4/posix_openpt.m4: New file.
24501         * lib/posix_openpt.c: Likewise.
24502         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
24503         (gl_STDLIB_H_DEFAULTS): Set defaults.
24504         * modules/stdlib (Makefile.am): Substitute macros.
24505         * lib/stdlib.in.h (posix_openpt): Declare.
24506         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
24507         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
24508         * modules/posix_openpt-tests: New test module.
24509         * tests/test-posix_openpt.c: New test.
24511 2011-10-15  Bruno Haible  <bruno@clisp.org>
24513         xstrtoll: Fix compilation failure.
24514         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
24515         from lib/strtol.c.
24516         * doc/posix-headers/limits.texi: Mention missing numerical limits on
24517         some platforms.
24518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24520 2011-10-15  Bruno Haible  <bruno@clisp.org>
24522         vasnprintf: Optimize bit search operation.
24523         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
24524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
24525         gl_DOUBLE_EXPONENT_LOCATION.
24526         * modules/vasnprintf (Files): Add m4/exponentd.m4.
24527         * modules/unistdio/u8-vasnprintf (Files): Likewise.
24528         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
24529         * modules/unistdio/u16-vasnprintf (Files): Likewise.
24530         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
24531         * modules/unistdio/u32-vasnprintf (Files): Likewise.
24532         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
24533         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
24534         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
24536 2011-10-15  Bruno Haible  <bruno@clisp.org>
24538         vasnprintf: Fix comments.
24539         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
24541 2011-10-14  Bruno Haible  <bruno@clisp.org>
24543         Tests for module 'integer_length_ll'.
24544         * modules/integer_length_ll-tests: New file.
24545         * tests/test-integer_length_ll.c: New file.
24547         New module 'integer_length_ll'.
24548         * lib/integer_length_ll.c: New file.
24549         * modules/integer_length_ll: New file.
24551 2011-10-14  Bruno Haible  <bruno@clisp.org>
24553         Tests for module 'integer_length_l'.
24554         * modules/integer_length_l-tests: New file.
24555         * tests/test-integer_length_l.c: New file.
24557         New module 'integer_length_l'.
24558         * lib/integer_length_l.c: New file.
24559         * modules/integer_length_l: New file.
24561 2011-10-14  Bruno Haible  <bruno@clisp.org>
24563         Tests for module 'integer_length'.
24564         * modules/integer_length-tests: New file.
24565         * tests/test-integer_length.c: New file.
24567         New module 'integer_length'.
24568         * lib/integer_length.h: New file.
24569         * lib/integer_length.c: New file.
24570         * modules/integer_length: New file.
24572 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24574         popen: Fix dependency conditions.
24575         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
24577 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24579         perror: Fix autoconf test.
24580         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
24581         <stdlib.h> and <string.h>.
24583 2011-10-14  Bruno Haible  <bruno@clisp.org>
24585         ffsl: Optimize on 64-bit platforms.
24586         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
24587         unrolling.
24589 2011-10-13  Bruno Haible  <bruno@clisp.org>
24591         ffsl: Optimize on 32-bit platforms.
24592         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
24593         use ffs() without a loop.
24595         ffsl, ffsll: Optimize for GCC.
24596         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
24597         * lib/ffsl.c (GCC_BUILTIN): New macro.
24598         * lib/ffsll.c (GCC_BUILTIN): Likewise.
24600 2011-10-13  Bruno Haible  <bruno@clisp.org>
24602         ffs, bcopy, memset: Support symbol renaming via config.h.
24603         * lib/ffs.c: Include <config.h>.
24604         * lib/bcopy.c: Likewise.
24605         * lib/memset.c: Likewise.
24607 2011-10-10  Bruno Haible  <bruno@clisp.org>
24609         atanl: Simplify for platforms where 'long double' == 'double'.
24610         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24611         alternative implementation.
24612         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24613         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24614         * modules/atanl (Depends-on): Add atan. Update conditions.
24616 2011-10-10  Bruno Haible  <bruno@clisp.org>
24618         acosl: Simplify for platforms where 'long double' == 'double'.
24619         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24620         alternative implementation.
24621         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24622         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24623         * modules/acosl (Depends-on): Add acos. Update conditions.
24625 2011-10-10  Bruno Haible  <bruno@clisp.org>
24627         asinl: Simplify for platforms where 'long double' == 'double'.
24628         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24629         alternative implementation.
24630         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24631         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24632         * modules/asinl (Depends-on): Add asin. Update conditions.
24634 2011-10-10  Bruno Haible  <bruno@clisp.org>
24636         tanl: Simplify for platforms where 'long double' == 'double'.
24637         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24638         implementation.
24639         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24640         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24641         * modules/tanl (Depends-on): Add tan. Update conditions.
24642         (configure.ac): Don't compile trigl.c if
24643         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24645 2011-10-10  Bruno Haible  <bruno@clisp.org>
24647         cosl: Simplify for platforms where 'long double' == 'double'.
24648         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24649         implementation.
24650         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24651         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24652         * modules/cosl (Depends-on): Add cos. Update conditions.
24653         (configure.ac): Don't compile sincosl.c and trigl.c if
24654         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24656 2011-10-10  Bruno Haible  <bruno@clisp.org>
24658         sinl: Simplify for platforms where 'long double' == 'double'.
24659         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24660         implementation.
24661         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24662         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24663         * modules/sinl (Depends-on): Add sin. Update conditions.
24664         (configure.ac): Don't compile sincosl.c and trigl.c if
24665         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24667 2011-10-10  Bruno Haible  <bruno@clisp.org>
24669         logl: Simplify for platforms where 'long double' == 'double'.
24670         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24671         implementation.
24672         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24673         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24674         * modules/logl (Depends-on): Add log. Update conditions.
24676 2011-10-10  Bruno Haible  <bruno@clisp.org>
24678         expl: Simplify for platforms where 'long double' == 'double'.
24679         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24680         implementation.
24681         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24682         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24683         * modules/expl (Depends-on): Add exp. Update conditions.
24685 2011-10-10  Bruno Haible  <bruno@clisp.org>
24687         sqrtl: Simplify for platforms where 'long double' == 'double'.
24688         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24689         alternative implementation.
24690         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24691         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24692         * modules/sqrtl (Depends-on): Update conditions.
24694 2011-10-10  Bruno Haible  <bruno@clisp.org>
24696         ldexpl: Simplify for platforms where 'long double' == 'double'.
24697         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24698         alternative implementation.
24699         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24700         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24701         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
24703 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
24705         ffsll: set correct witness
24706         * modules/ffsll (configure.ac): Fix typo.
24708 2011-10-10  Bruno Haible  <bruno@clisp.org>
24710         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
24711         * lib/printf-frexpl.c: Include <config.h>.
24712         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24713         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
24714         second time.
24715         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
24716         gl_LONG_DOUBLE_VS_DOUBLE.
24717         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
24718         conditions.
24720 2011-10-10  Bruno Haible  <bruno@clisp.org>
24722         frexpl: Simplify for platforms where 'long double' == 'double'.
24723         * lib/frexpl.c: Include <config.h>.
24724         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24725         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24726         time.
24727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24728         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24729         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
24730         * modules/frexpl (Depends-on): Add frexp. Update conditions.
24731         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
24732         conditions.
24734 2011-10-10  Jim Meyering  <meyering@redhat.com>
24736         test-renameat: don't leave behind a temporary file
24737         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
24738           ERROR: files left in build directory after distclean:
24739           ./gltests/test-renameat.too
24740           make[1]: *** [distcleancheck] Error 1
24741         Reported by Tom G. Christensen.
24743 2011-10-09  Bruno Haible  <bruno@clisp.org>
24745         rint: Determine RINT_LIBM correctly on AIX 7.
24746         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
24747         directly, not only through a function pointer. Also accept an optional
24748         4th argument with extra code.
24749         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
24750         rintf() call by gcc when optimizing.
24752         mathfunc.m4: Refactor.
24753         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
24754         m4 variable.
24756 2011-10-09  Bruno Haible  <bruno@clisp.org>
24758         rintl: Simplify for platforms where 'long double' == 'double'.
24759         * lib/rintl.c: Include <config.h>.
24760         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24761         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24762         time.
24763         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24764         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24765         * modules/rintl (Depends-on): Add rint. Update conditions.
24767 2011-10-09  Bruno Haible  <bruno@clisp.org>
24769         roundl: Simplify for platforms where 'long double' == 'double'.
24770         * lib/roundl.c: Include <config.h>.
24771         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24772         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24773         time.
24774         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24775         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24776         * modules/roundl (Depends-on): Add round. Update conditions.
24778 2011-10-09  Bruno Haible  <bruno@clisp.org>
24780         truncl: Simplify for platforms where 'long double' == 'double'.
24781         * lib/truncl.c: Include <config.h>.
24782         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24783         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24784         time.
24785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24786         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24787         * modules/truncl (Depends-on): Add trunc. Update conditions.
24789 2011-10-09  Bruno Haible  <bruno@clisp.org>
24791         ceill: Simplify for platforms where 'long double' == 'double'.
24792         * lib/ceill.c: Include <config.h>.
24793         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24794         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24795         time.
24796         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24797         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24798         * modules/ceill (Depends-on): Add ceil. Update conditions.
24800 2011-10-09  Bruno Haible  <bruno@clisp.org>
24802         floorl: Simplify for platforms where 'long double' == 'double'.
24803         * lib/floorl.c: Include <config.h>.
24804         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24805         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24806         time.
24807         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24808         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24809         * modules/floorl (Depends-on): Add floor. Update conditions.
24811 2011-10-09  Bruno Haible  <bruno@clisp.org>
24813         rint: Fix ordering constraints.
24814         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
24815         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
24816         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
24818 2011-10-09  Bruno Haible  <bruno@clisp.org>
24820         copysignl: Simplify for platforms where 'long double' == 'double'.
24821         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24822         alternative.
24823         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24824         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24825         * modules/copysignl (Depends-on): Add copysign. Update conditions.
24827 2011-10-09  Bruno Haible  <bruno@clisp.org>
24829         Tests for module 'rintl'.
24830         * modules/rintl-tests: New file.
24831         * tests/test-rintl.c: New file.
24833         New module 'rintl'.
24834         * lib/math.in.h (rintl): New declaration.
24835         * lib/rintl.c: New file.
24836         * m4/rintl.m4: New file.
24837         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
24838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
24839         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
24840         * modules/rintl: New file.
24841         * tests/test-math-c++.cc: Check the declaration of rintl.
24842         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24843         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
24844         * doc/posix-functions/rintl.texi: Mention the new module.
24846 2011-10-09  Bruno Haible  <bruno@clisp.org>
24848         Tests for module 'rintf'.
24849         * modules/rintf-tests: New file.
24850         * tests/test-rintf.c: New file.
24852         New module 'rintf'.
24853         * lib/math.in.h (rintf): New declaration.
24854         * lib/rintf.c: New file.
24855         * m4/rintf.m4: New file.
24856         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
24857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
24858         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
24859         * modules/rintf: New file.
24860         * tests/test-math-c++.cc: Check the declaration of rintf.
24861         * doc/posix-functions/rintf.texi: Mention the new module.
24863 2011-10-09  Bruno Haible  <bruno@clisp.org>
24865         rint: Support for MSVC.
24866         * lib/math.in.h (rint): New declaration.
24867         * lib/rint.c: New file.
24868         * m4/rint.m4: New file.
24869         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
24870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
24871         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
24872         * modules/rint (Description): Fix.
24873         (Files): Add lib/rint.c, m4/rint.m4.
24874         (Depends-on): Add math.
24875         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
24876         gl_MATH_MODULE_INDICATOR.
24877         * tests/test-math-c++.cc: Check the declaration of rint.
24878         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24879         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
24880         * doc/posix-functions/rint.texi: Mention the replacement provided by
24881         the module.
24883         rint tests: More tests.
24884         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
24885         minus-zero.h, infinity.h, nan.h.
24886         (main): Skip the test if the current rounding mode is not standard. Add
24887         tests for negative numbers, minus zero, infinity, NaN.
24888         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
24889         tests/nan.h.
24890         (Depends-on): Add isnand-nolibm.
24892 2011-10-09  Bruno Haible  <bruno@clisp.org>
24894         Tests for module 'copysignl'.
24895         * modules/copysignl-tests: New file.
24896         * tests/test-copysignl.c: New file.
24898         New module 'copysignl'.
24899         * lib/math.in.h (copysignl): New declaration.
24900         * lib/copysignl.c: New file.
24901         * m4/copysignl.m4: New file.
24902         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
24903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
24904         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
24905         HAVE_COPYSIGNL.
24906         * modules/copysignl: New file.
24907         * tests/test-math-c++.cc: Check the declaration of copysignl.
24908         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24909         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
24910         * doc/posix-functions/copysignl.texi: Mention the new module.
24912 2011-10-09  Bruno Haible  <bruno@clisp.org>
24914         Tests for module 'copysignf'.
24915         * modules/copysignf-tests: New file.
24916         * tests/test-copysignf.c: New file.
24918         New module 'copysignf'.
24919         * lib/math.in.h (copysignf): New declaration.
24920         * lib/copysignf.c: New file.
24921         * m4/copysignf.m4: New file.
24922         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
24923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
24924         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
24925         HAVE_COPYSIGNF.
24926         * modules/copysignf: New file.
24927         * tests/test-math-c++.cc: Check the declaration of copysignf.
24928         * doc/posix-functions/copysignf.texi: Mention the new module.
24930 2011-10-09  Bruno Haible  <bruno@clisp.org>
24932         Ensure that HAVE_* variables are set to 1 before they are set to 0.
24933         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
24934         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
24935         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
24936         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
24937         gl_SIGNAL_H_DEFAULTS.
24939 2011-10-09  Bruno Haible  <bruno@clisp.org>
24941         poll: Make macro safer.
24942         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
24943         ac_cv_header_poll_h is not set.
24945 2011-10-09  Bruno Haible  <bruno@clisp.org>
24947         copysign: Provide replacement.
24948         * lib/math.in.h (copysign): New declaration.
24949         * lib/copysign.c: New file.
24950         * m4/copysign.m4: New file.
24951         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
24952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
24953         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
24954         HAVE_COPYSIGN.
24955         * modules/copysign (Description): Clarify.
24956         (Files): Add lib/copysign.c, m4/copysign.m4.
24957         (Depends-on): Add math, signbit.
24958         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
24959         gl_MATH_MODULE_INDICATOR.
24960         * tests/test-math-c++.cc: Check the declaration of copysign.
24961         * doc/posix-functions/copysign.texi: Mention the effects of the module
24962         on Minix and MSVC.
24964 2011-10-09  Bruno Haible  <bruno@clisp.org>
24966         isinf: Ensure macro on AIX 5.1.
24967         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
24968         macro.
24969         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
24971 2011-10-09  Bruno Haible  <bruno@clisp.org>
24973         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
24974         * modules/snprintf-posix-tests (configure.ac): Require
24975         gl_LONG_DOUBLE_VS_DOUBLE.
24976         * modules/sprintf-posix-tests (configure.ac): Likewise.
24977         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
24978         * modules/vasprintf-posix-tests (configure.ac): Likewise.
24979         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
24980         * modules/vsprintf-posix-tests (configure.ac): Likewise.
24981         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
24982         tests on platforms where 'long double' is the same as 'double'.
24983         * tests/test-sprintf-posix.h (test_function): Likewise.
24984         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24985         * tests/test-vasprintf-posix.c (test_function): Likewise.
24987         *printf: Fix for platforms where 'long double' == 'double'.
24988         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
24989         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
24990         * modules/dprintf-posix (Files): Add m4/math_h.m4.
24991         * modules/fprintf-posix (Files): Likewise.
24992         * modules/obstack-printf-posix (Files): Likewise.
24993         * modules/snprintf-posix (Files): Likewise.
24994         * modules/sprintf-posix (Files): Likewise.
24995         * modules/vasnprintf (Files): Likewise.
24996         * modules/vasnprintf-posix (Files): Likewise.
24997         * modules/vasprintf-posix (Files): Likewise.
24998         * modules/vdprintf-posix (Files): Likewise.
24999         * modules/vfprintf-posix (Files): Likewise.
25000         * modules/vsnprintf-posix (Files): Likewise.
25001         * modules/vsprintf-posix (Files): Likewise.
25002         * modules/unistdio/u8-vasnprintf (Files): Likewise.
25003         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
25004         * modules/unistdio/u16-vasnprintf (Files): Likewise.
25005         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
25006         * modules/unistdio/u32-vasnprintf (Files): Likewise.
25007         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
25008         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
25010         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
25011         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
25012         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25013         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
25014         'long double'.
25015         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
25017         isinf: Fix for platforms where 'long double' == 'double'.
25018         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
25019         Don't blindly assume 80-bit 'long double'.
25021         isfinite: Fix for platforms where 'long double' == 'double'.
25022         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
25023         Don't blindly assume 80-bit 'long double'.
25025         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
25026         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
25027         * modules/isfinite-tests (configure.ac): Require
25028         gl_LONG_DOUBLE_VS_DOUBLE.
25029         * modules/isinf-tests (configure.ac): Likewise.
25030         * modules/isnan-tests (configure.ac): Likewise.
25031         * modules/isnanl-tests (configure.ac): Likewise.
25032         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
25033         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
25034         tests on platforms where 'long double' is the same as 'double'.
25035         * tests/test-isinf.c (test_isinfl): Likewise.
25036         * tests/test-isnan.c (test_long_double): Likewise.
25037         * tests/test-isnanl.h (main): Likewise.
25039 2011-10-08  Bruno Haible  <bruno@clisp.org>
25041         Tests for module 'tanhf'.
25042         * modules/tanhf-tests: New file.
25043         * tests/test-tanhf.c: New file.
25045         New module 'tanhf'.
25046         * lib/math.in.h (tanhf): New declaration.
25047         * lib/tanhf.c: New file.
25048         * m4/tanhf.m4: New file.
25049         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
25050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
25051         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
25052         * modules/tanhf: New file.
25053         * tests/test-math-c++.cc: Check the declaration of tanhf.
25054         * doc/posix-functions/tanhf.texi: Mention the new module.
25056         tanh: Use a .m4 file.
25057         * m4/tanh.m4: New file.
25058         * modules/tanh (Files): Add it.
25059         (configure.ac): Just invoke gl_FUNC_TANH.
25061 2011-10-08  Bruno Haible  <bruno@clisp.org>
25063         Tests for module 'coshf'.
25064         * modules/coshf-tests: New file.
25065         * tests/test-coshf.c: New file.
25067         New module 'coshf'.
25068         * lib/math.in.h (coshf): New declaration.
25069         * lib/coshf.c: New file.
25070         * m4/coshf.m4: New file.
25071         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
25072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
25073         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
25074         * modules/coshf: New file.
25075         * tests/test-math-c++.cc: Check the declaration of coshf.
25076         * doc/posix-functions/coshf.texi: Mention the new module.
25078         cosh: Use a .m4 file.
25079         * m4/cosh.m4: New file.
25080         * modules/cosh (Files): Add it.
25081         (configure.ac): Just invoke gl_FUNC_COSH.
25083 2011-10-08  Bruno Haible  <bruno@clisp.org>
25085         Tests for module 'sinhf'.
25086         * modules/sinhf-tests: New file.
25087         * tests/test-sinhf.c: New file.
25089         New module 'sinhf'.
25090         * lib/math.in.h (sinhf): New declaration.
25091         * lib/sinhf.c: New file.
25092         * m4/sinhf.m4: New file.
25093         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
25094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
25095         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
25096         * modules/sinhf: New file.
25097         * tests/test-math-c++.cc: Check the declaration of sinhf.
25098         * doc/posix-functions/sinhf.texi: Mention the new module.
25100         sinh: Use a .m4 file.
25101         * m4/sinh.m4: New file.
25102         * modules/sinh (Files): Add it.
25103         (configure.ac): Just invoke gl_FUNC_SINH.
25105 2011-10-08  Bruno Haible  <bruno@clisp.org>
25107         Tests for module 'atan2f'.
25108         * modules/atan2f-tests: New file.
25109         * tests/test-atan2f.c: New file.
25111         New module 'atan2f'.
25112         * lib/math.in.h (atan2f): New declaration.
25113         * lib/atan2f.c: New file.
25114         * m4/atan2f.m4: New file.
25115         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
25116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
25117         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
25118         * modules/atan2f: New file.
25119         * tests/test-math-c++.cc: Check the declaration of atan2f.
25120         * doc/posix-functions/atan2f.texi: Mention the new module.
25122         atan2: Use a .m4 file.
25123         * m4/atan2.m4: New file.
25124         * modules/atan2 (Files): Add it.
25125         (configure.ac): Just invoke gl_FUNC_ATAN2.
25127 2011-10-08  Bruno Haible  <bruno@clisp.org>
25129         Tests for module 'atanf'.
25130         * modules/atanf-tests: New file.
25131         * tests/test-atanf.c: New file.
25133         New module 'atanf'.
25134         * lib/math.in.h (atanf): New declaration.
25135         * lib/atanf.c: New file.
25136         * m4/atanf.m4: New file.
25137         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
25138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
25139         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
25140         * modules/atanf: New file.
25141         * tests/test-math-c++.cc: Check the declaration of atanf.
25142         * doc/posix-functions/atanf.texi: Mention the new module.
25144         atan: Use a .m4 file.
25145         * m4/atan.m4: New file.
25146         * modules/atan (Files): Add it.
25147         (configure.ac): Just invoke gl_FUNC_ATAN.
25149 2011-10-08  Bruno Haible  <bruno@clisp.org>
25151         Tests for module 'acosf'.
25152         * modules/acosf-tests: New file.
25153         * tests/test-acosf.c: New file.
25155         New module 'acosf'.
25156         * lib/math.in.h (acosf): New declaration.
25157         * lib/acosf.c: New file.
25158         * m4/acosf.m4: New file.
25159         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
25160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
25161         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
25162         * modules/acosf: New file.
25163         * tests/test-math-c++.cc: Check the declaration of acosf.
25164         * doc/posix-functions/acosf.texi: Mention the new module.
25166         acos: Use a .m4 file.
25167         * m4/acos.m4: New file.
25168         * modules/acos (Files): Add it.
25169         (configure.ac): Just invoke gl_FUNC_ACOS.
25171 2011-10-08  Bruno Haible  <bruno@clisp.org>
25173         Tests for module 'asinf'.
25174         * modules/asinf-tests: New file.
25175         * tests/test-asinf.c: New file.
25177         New module 'asinf'.
25178         * lib/math.in.h (asinf): New declaration.
25179         * lib/asinf.c: New file.
25180         * m4/asinf.m4: New file.
25181         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
25182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
25183         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
25184         * modules/asinf: New file.
25185         * tests/test-math-c++.cc: Check the declaration of asinf.
25186         * doc/posix-functions/asinf.texi: Mention the new module.
25188         asin: Use a .m4 file.
25189         * m4/asin.m4: New file.
25190         * modules/asin (Files): Add it.
25191         (configure.ac): Just invoke gl_FUNC_ASIN.
25193 2011-10-08  Bruno Haible  <bruno@clisp.org>
25195         Tests for module 'tanf'.
25196         * modules/tanf-tests: New file.
25197         * tests/test-tanf.c: New file.
25199         New module 'tanf'.
25200         * lib/math.in.h (tanf): New declaration.
25201         * lib/tanf.c: New file.
25202         * m4/tanf.m4: New file.
25203         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
25204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
25205         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
25206         * modules/tanf: New file.
25207         * tests/test-math-c++.cc: Check the declaration of tanf.
25208         * doc/posix-functions/tanf.texi: Mention the new module.
25210         tan: Use a .m4 file.
25211         * m4/tan.m4: New file.
25212         * modules/tan (Files): Add it.
25213         (configure.ac): Just invoke gl_FUNC_TAN.
25215 2011-10-08  Bruno Haible  <bruno@clisp.org>
25217         Tests for module 'cosf'.
25218         * modules/cosf-tests: New file.
25219         * tests/test-cosf.c: New file.
25221         New module 'cosf'.
25222         * lib/math.in.h (cosf): New declaration.
25223         * lib/cosf.c: New file.
25224         * m4/cosf.m4: New file.
25225         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
25226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
25227         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
25228         * modules/cosf: New file.
25229         * tests/test-math-c++.cc: Check the declaration of cosf.
25230         * doc/posix-functions/cosf.texi: Mention the new module.
25232         cos: Use a .m4 file.
25233         * m4/cos.m4: New file.
25234         * modules/cos (Files): Add it.
25235         (configure.ac): Just invoke gl_FUNC_COS.
25237 2011-10-08  Bruno Haible  <bruno@clisp.org>
25239         Tests for module 'sinf'.
25240         * modules/sinf-tests: New file.
25241         * tests/test-sinf.c: New file.
25243         New module 'sinf'.
25244         * lib/math.in.h (sinf): New declaration.
25245         * lib/sinf.c: New file.
25246         * m4/sinf.m4: New file.
25247         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
25248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
25249         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
25250         * modules/sinf: New file.
25251         * tests/test-math-c++.cc: Check the declaration of sinf.
25252         * doc/posix-functions/sinf.texi: Mention the new module.
25254         sin: Use a .m4 file.
25255         * m4/sin.m4: New file.
25256         * modules/sin (Files): Add it.
25257         (configure.ac): Just invoke gl_FUNC_SIN.
25259 2011-10-08  Bruno Haible  <bruno@clisp.org>
25261         Tests for module 'powf'.
25262         * modules/powf-tests: New file.
25263         * tests/test-powf.c: New file.
25265         New module 'powf'.
25266         * lib/math.in.h (powf): New declaration.
25267         * lib/powf.c: New file.
25268         * m4/powf.m4: New file.
25269         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
25270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
25271         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
25272         * modules/powf: New file.
25273         * tests/test-math-c++.cc: Check the declaration of powf.
25274         * doc/posix-functions/powf.texi: Mention the new module.
25276         pow: Use a .m4 file.
25277         * m4/pow.m4: New file.
25278         * modules/pow (Files): Add it.
25279         (configure.ac): Just invoke gl_FUNC_POW.
25281 2011-10-08  Bruno Haible  <bruno@clisp.org>
25283         Tests for module 'log10f'.
25284         * modules/log10f-tests: New file.
25285         * tests/test-log10f.c: New file.
25287         New module 'log10f'.
25288         * lib/math.in.h (log10f): New declaration.
25289         * lib/log10f.c: New file.
25290         * m4/log10f.m4: New file.
25291         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
25292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
25293         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
25294         * modules/log10f: New file.
25295         * tests/test-math-c++.cc: Check the declaration of log10f.
25296         * doc/posix-functions/log10f.texi: Mention the new module.
25298         log10: Use a .m4 file.
25299         * m4/log10.m4: New file.
25300         * modules/log10 (Files): Add it.
25301         (configure.ac): Just invoke gl_FUNC_LOG10.
25303 2011-10-08  Bruno Haible  <bruno@clisp.org>
25305         Tests for module 'logf'.
25306         * modules/logf-tests: New file.
25307         * tests/test-logf.c: New file.
25309         New module 'logf'.
25310         * lib/math.in.h (logf): New declaration.
25311         * lib/logf.c: New file.
25312         * m4/logf.m4: New file.
25313         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
25314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
25315         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
25316         * modules/logf: New file.
25317         * tests/test-math-c++.cc: Check the declaration of logf.
25318         * doc/posix-functions/logf.texi: Mention the new module.
25320         log: Use a .m4 file.
25321         * m4/log.m4: New file.
25322         * modules/log (Files): Add it.
25323         (configure.ac): Just invoke gl_FUNC_LOG.
25325 2011-10-08  Bruno Haible  <bruno@clisp.org>
25327         Tests for module 'expf'.
25328         * modules/expf-tests: New file.
25329         * tests/test-expf.c: New file.
25331         New module 'expf'.
25332         * lib/math.in.h (expf): New declaration.
25333         * lib/expf.c: New file.
25334         * m4/expf.m4: New file.
25335         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
25336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
25337         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
25338         * modules/expf: New file.
25339         * tests/test-math-c++.cc: Check the declaration of expf.
25340         * doc/posix-functions/expf.texi: Mention the new module.
25342         exp: Use a .m4 file.
25343         * m4/exp.m4: New file.
25344         * modules/exp (Files): Add it.
25345         (configure.ac): Just invoke gl_FUNC_EXP.
25347 2011-10-08  Bruno Haible  <bruno@clisp.org>
25349         Tests for module 'sqrtf'.
25350         * modules/sqrtf-tests: New file.
25351         * tests/test-sqrtf.c: New file.
25353         New module 'sqrtf'.
25354         * lib/math.in.h (sqrtf): New declaration.
25355         * lib/sqrtf.c: New file.
25356         * m4/sqrtf.m4: New file.
25357         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
25358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
25359         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
25360         * modules/sqrtf: New file.
25361         * tests/test-math-c++.cc: Check the declaration of sqrtf.
25362         * doc/posix-functions/sqrtf.texi: Mention the new module.
25364 2011-10-08  Bruno Haible  <bruno@clisp.org>
25366         Tests: Avoid link failures w.r.t. libintl.
25367         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
25368         $(LIBINTL).
25369         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
25370         $(LIBINTL).
25371         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
25372         against $(LIBINTL).
25373         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
25374         $(LIBINTL).
25375         * modules/openat-tests (Makefile.am): Link test-fchmodat against
25376         $(LIBINTL).
25377         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
25379 2011-10-08  Bruno Haible  <bruno@clisp.org>
25381         pow tests: Defeat compiler optimizations.
25382         * tests/test-pow.c (main): Assign arguments to x and y before use.
25384 2011-10-08  Bruno Haible  <bruno@clisp.org>
25386         gnulib-tool: Improve last commit.
25387         * gnulib-tool (func_modules_transitive_closure): Simplify code.
25388         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
25389         ignore dependencies that are not among the modules list.
25391 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
25393         gnulib-tool: don't follow dependencies to avoided modules
25394         This fixes a bug that is related to the previous one.
25395         * gnulib-tool (func_modules_transitive_closure)
25396         (func_emit_autoconf_snippets):
25397         Check whether a dependency is acceptable before using it.
25398         (--extract-dependencies): Report an error if --avoid is also used,
25399         since this combination of options is not yet supported.
25401         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
25402         Problem reported by Peter Dyballa in
25403         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
25404         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
25405         when echoing "$condition".
25407 2011-10-07  Bruno Haible  <bruno@clisp.org>
25409         Fix documentation about math functions on MacOS X.
25410         * doc/posix-functions/exp2.texi: Don't say the function is missing on
25411         MacOS X 10.5.
25412         * doc/posix-functions/fdim.texi: Likewise.
25413         * doc/posix-functions/feclearexcept.texi: Likewise.
25414         * doc/posix-functions/fegetenv.texi: Likewise.
25415         * doc/posix-functions/fegetround.texi: Likewise.
25416         * doc/posix-functions/feholdexcept.texi: Likewise.
25417         * doc/posix-functions/feraiseexcept.texi: Likewise.
25418         * doc/posix-functions/fesetenv.texi: Likewise.
25419         * doc/posix-functions/fesetround.texi: Likewise.
25420         * doc/posix-functions/fetestexcept.texi: Likewise.
25421         * doc/posix-functions/feupdateenv.texi: Likewise.
25422         * doc/posix-functions/fmax.texi: Likewise.
25423         * doc/posix-functions/fmin.texi: Likewise.
25424         * doc/posix-functions/log2.texi: Likewise.
25425         * doc/posix-functions/modff.texi: Likewise.
25426         * doc/posix-functions/nan.texi: Likewise.
25427         * doc/posix-functions/nanf.texi: Likewise.
25428         * doc/posix-functions/nextafterf.texi: Likewise.
25429         * doc/posix-functions/remquo.texi: Likewise.
25431 2011-10-07  Bruno Haible  <bruno@clisp.org>
25433         modff: Drop assumption about library that defines modff.
25434         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
25435         AC_CHECK_FUNCS.
25436         * modules/modff (Files): Add m4/mathfunc.m4.
25438 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
25440         raise tests: Avoid a GCC warning.
25441         * tests/test-raise.c (handler): Use _Noreturn.
25443 2011-10-07  Bruno Haible  <bruno@clisp.org>
25445         Tests for module 'ldexpf'.
25446         * modules/ldexpf-tests: New file.
25447         * tests/test-ldexpf.c: New file.
25449         New module 'ldexpf'.
25450         * lib/math.in.h (ldexpf): New declaration.
25451         * lib/ldexpf.c: New file.
25452         * m4/ldexpf.m4: New file.
25453         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
25454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
25455         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
25456         * modules/ldexpf: New file.
25457         * tests/test-math-c++.cc: Check the declaration of ldexpf.
25458         * doc/posix-functions/ldexpf.texi: Mention the new module.
25460 2011-10-06  Bruno Haible  <bruno@clisp.org>
25462         frexpf: Work around problems on IRIX and mingw.
25463         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
25464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
25465         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
25466         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
25467         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
25468         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
25469         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
25471 2011-10-06  Bruno Haible  <bruno@clisp.org>
25473         fabsf: Drop assumption about library that defines fabsf.
25474         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
25475         AC_CHECK_FUNCS.
25476         * modules/fabsf (Files): Add m4/mathfunc.m4.
25478 2011-10-06  Bruno Haible  <bruno@clisp.org>
25480         frexpf: Drop assumption about library that defines frexpf.
25481         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
25482         'int *', 'float *', 'long double *', 'float', 'long double'.
25483         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
25484         AC_CHECK_FUNCS.
25485         * modules/frexpf (Files): Add m4/mathfunc.m4.
25487         Tests for module 'frexpf'.
25488         * modules/frexpf-tests: New file.
25489         * tests/test-frexpf.c: New file.
25491         New module 'frexpf'.
25492         * lib/math.in.h (frexpf): New declaration.
25493         * lib/frexpf.c: New file.
25494         * m4/frexpf.m4: New file.
25495         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
25496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
25497         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
25498         * modules/frexpf: New file.
25499         * tests/test-math-c++.cc: Check the declaration of frexpf.
25500         * doc/posix-functions/frexpf.texi: Mention the new module.
25502 2011-10-06  Bruno Haible  <bruno@clisp.org>
25504         math: Sort function declarations of math.in.h.
25505         * lib/math.in.h (frexp, logb): Move declarations.
25507 2011-10-05  Bruno Haible  <bruno@clisp.org>
25509         Tests for module 'modff'.
25510         * modules/modff-tests: New file.
25511         * tests/test-modff.c: New file.
25513         New module 'modff'.
25514         * lib/math.in.h (modff): New declaration.
25515         * lib/modff.c: New file.
25516         * m4/modff.m4: New file.
25517         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
25518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
25519         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
25520         * modules/modff: New file.
25521         * tests/test-math-c++.cc: Check the declaration of modff.
25522         * doc/posix-functions/modff.texi: Mention the new module.
25524         modf tests: Make test sharper.
25525         * tests/test-modf.c (main): Strengthen upper bound.
25527         modf: Use a .m4 file.
25528         * m4/modf.m4: New file.
25529         * modules/modf (Files): Add it.
25530         (configure.ac): Just invoke gl_FUNC_MODF.
25532 2011-10-05  Bruno Haible  <bruno@clisp.org>
25534         Tests for module 'fmodf'.
25535         * modules/fmodf-tests: New file.
25536         * tests/test-fmodf.c: New file.
25538         New module 'fmodf'.
25539         * lib/math.in.h (fmodf): New declaration.
25540         * lib/fmodf.c: New file.
25541         * m4/fmodf.m4: New file.
25542         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
25543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
25544         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
25545         * modules/fmodf: New file.
25546         * tests/test-math-c++.cc: Check the declaration of fmodf.
25547         * doc/posix-functions/fmodf.texi: Mention the new module.
25549         fmod: Use a .m4 file.
25550         * m4/fmod.m4: New file.
25551         * modules/fmod (Files): Add it.
25552         (configure.ac): Just invoke gl_FUNC_FMOD.
25554 2011-10-05  Bruno Haible  <bruno@clisp.org>
25556         Tests for module 'fabsf'.
25557         * modules/fabsf-tests: New file.
25558         * tests/test-fabsf.c: New file.
25560         New module 'fabsf'.
25561         * lib/math.in.h (fabsf): New declaration.
25562         * lib/fabsf.c: New file.
25563         * m4/fabsf.m4: New file.
25564         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
25565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
25566         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
25567         * modules/fabsf: New file.
25568         * tests/test-math-c++.cc: Check the declaration of fabsf.
25569         * doc/posix-functions/fabsf.texi: Mention the new module.
25571         fabs: Use a .m4 file.
25572         * m4/fabs.m4: New file.
25573         * modules/fabs (Files): Add it.
25574         (configure.ac): Just invoke gl_FUNC_FABS.
25576 2011-10-05  Jim Meyering  <meyering@redhat.com>
25578         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
25579         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
25580         ls -lL regression introduced in coreutils-8.12, it does so at the
25581         cost of an additional stat call in the common case.  Besides, now
25582         that the kernel change that prompted commit 95f7c57f has been reverted
25583         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
25584         we have no use for commit 95f7c57f, "file-has-acl: use
25585         acl_extended_file_nofollow if available".
25587 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
25589         file-has-acl: revert unintended change in behavior of ls -L
25590         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
25591         derived from...
25592         (file_has_acl): ...code here.  Call it.
25593         This problem was introduced with 2011-07-22 commit 95f7c57f,
25594         "file-has-acl: use acl_extended_file_nofollow if available".
25595         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
25597 2011-10-03  Bruno Haible  <bruno@clisp.org>
25599         poll: Avoid link errors on MSVC.
25600         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
25601         * modules/poll (Depends-on): Add sockets.
25602         (Link): New section.
25603         * NEWS: Mention the change.
25604         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
25605         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
25606         $(LIB_POLL) instead of $(LIBSOCKET).
25608 2011-10-03  Bruno Haible  <bruno@clisp.org>
25610         sys_select tests: Fix link error on MSVC 9.
25611         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
25612         with $(LIB_SELECT) instead of $(LIBSOCKET).
25614 2011-10-03  Bruno Haible  <bruno@clisp.org>
25616         sys_select: Fix compilation error on mingw.
25617         * lib/sys_select.in.h: On native Windows, include <io.h>.
25619 2011-10-03  Bruno Haible  <bruno@clisp.org>
25621         wmemset: Support for MSVC.
25622         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
25623         whether wmemset() exists.
25625 2011-10-03  Bruno Haible  <bruno@clisp.org>
25627         wmemmove: Support for MSVC.
25628         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
25629         whether wmemmove() exists.
25631 2011-10-03  Bruno Haible  <bruno@clisp.org>
25633         wmemcpy: Support for MSVC.
25634         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
25635         whether wmemcpy() exists.
25637 2011-10-03  Bruno Haible  <bruno@clisp.org>
25639         wmemcmp: Support for MSVC.
25640         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
25641         whether wmemcmp() exists.
25643 2011-10-03  Bruno Haible  <bruno@clisp.org>
25645         wmemchr: Support for MSVC.
25646         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
25647         whether wmemchr() exists.
25649 2011-10-03  Bruno Haible  <bruno@clisp.org>
25651         glthread/*, strsignal: Support for MSVC.
25652         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
25653         including <winsock.h> on MSVC 9.
25654         * lib/glthread/lock.h: Likewise.
25655         * lib/glthread/thread.h: Likewise.
25656         * lib/glthread/tls.h: Likewise.
25657         * lib/glthread/yield.h: Likewise.
25658         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
25659         if HAVE_UNISTD_H is false.
25660         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
25662 2011-10-03  Bruno Haible  <bruno@clisp.org>
25664         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
25665         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
25666         Set to 100000.
25668 2011-10-03  Bruno Haible  <bruno@clisp.org>
25670         acl: Fix specification.
25671         * lib/file-has-acl.c (file_has_acl): Fix specification.
25673 2011-10-03  Bruno Haible  <bruno@clisp.org>
25675         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
25676         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
25677         (compute_curr_prefix, shared_library_fullname,
25678         find_shared_library_fullname, get_shared_library_fullname, relocate):
25679         Use it together with PIC && INSTALLDIR.
25680         Reported by <jojelino@gmail.com>
25681         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
25683 2011-10-01  Jim Meyering  <meyering@redhat.com>
25685         maint.mk: adjust a release-related rule not to require use of gzip
25686         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
25687         Instead, check each file in $(DIST_ARCHIVES).  This is better for
25688         projects that build only .tar.xz files.  Also fix an erroneous test.
25690         test-linkat: don't leave behind a temporary file
25691         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
25692         Otherwise, coreutils' "make distcheck" would fail with this:
25693           Only in /c/cu/tests/torture/coreutils/test/\
25694             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
25695           make[2]: *** [my-distcheck] Error 1
25697         float, math: add omitted file
25698         * lib/itold.c: Add file, required for yesterday's float change.
25700 2011-10-01  Bruno Haible  <bruno@clisp.org>
25702         isinf: Fix for OpenBSD/x86.
25703         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
25704         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
25705         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
25707 2011-10-01  Bruno Haible  <bruno@clisp.org>
25709         isfinite: Fix syntax error in configure test.
25710         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
25712         isfinite: Fix typo.
25713         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
25714         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
25716 2011-10-01  Bruno Haible  <bruno@clisp.org>
25718         nonblocking tests: Fix test failure on Linux/IA-64.
25719         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
25720         Set to 270000.
25722 2011-10-01  Bruno Haible  <bruno@clisp.org>
25724         mkfifoat tests: Fix a test failure on mingw.
25725         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
25726         with error ENOSYS.
25728 2011-09-30  Bruno Haible  <bruno@clisp.org>
25730         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
25731         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
25732         'long double'. Set REPLACE_ITOLD.
25733         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
25734         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
25735         * lib/itold.c: New file.
25736         * modules/float (Files): Add lib/itold.c.
25737         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
25738         (Makefile.am): Substitute REPLACE_ITOLD.
25739         * modules/math (Depends-on): Add float.
25740         (Makefile.am): Substitute REPLACE_ITOLD.
25741         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
25742         * doc/posix-headers/math.texi: Likewise.
25743         * doc/posix-functions/logl.texi: Likewise.
25745 2011-09-30  Bruno Haible  <bruno@clisp.org>
25747         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
25748         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
25749         Set to 140000.
25751 2011-09-30  Bruno Haible  <bruno@clisp.org>
25753         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
25754         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
25755         invocation, say "right after AC_PROG_CC_STDC", not "right after
25756         AC_PROG_CC".
25757         Reported by Gary V. Vaughan <gary@gnu.org>.
25759 2011-09-30  Bruno Haible  <bruno@clisp.org>
25761         Centralize C99 requirement.
25762         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
25763         * modules/stdarg (configure.ac-early): Invoke it instead of
25764         AC_PROG_CC_STDC.
25765         Reported by Gary V. Vaughan and Paul Eggert.
25767 2011-09-29  Bruno Haible  <bruno@clisp.org>
25769         float: Fix LDBL_MAX value on Linux/PowerPC.
25770         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
25771         on Linux/PowerPC.
25772         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
25773         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
25774         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
25775         platform.
25776         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
25778 2011-09-29  Bruno Haible  <bruno@clisp.org>
25780         doc: Improve doc about gl_EARLY.
25781         * doc/gnulib-tool.texi (Initial import): Mention where to place an
25782         AC_PROG_CC_STDC invocation.
25783         Reported by Gary V. Vaughan <gary@gnu.org>.
25785 2011-09-28  Bruno Haible  <bruno@clisp.org>
25787         fgetc, fputc, fread, fwrite tests: Fix link error.
25788         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
25789         on non-MSVC platforms.
25790         * tests/test-fputc.c (main): Likewise.
25791         * tests/test-fread.c (main): Likewise.
25792         * tests/test-fwrite.c (main): Likewise.
25793         Reported by Jim Meyering.
25795 2011-09-27  Bruno Haible  <bruno@clisp.org>
25797         fputc, fwrite tests: Avoid test failure on MSVC.
25798         * tests/test-fgetc.c: Include msvc-inval.h.
25799         (main): Invoke gl_msvc_inval_ensure_handler.
25800         * tests/test-fputc.c: Include msvc-inval.h.
25801         (main): Invoke gl_msvc_inval_ensure_handler.
25802         * tests/test-fread.c: Include msvc-inval.h.
25803         (main): Invoke gl_msvc_inval_ensure_handler.
25804         * tests/test-fwrite.c: Include msvc-inval.h.
25805         (main): Invoke gl_msvc_inval_ensure_handler.
25806         * modules/fgetc-tests (Depends-on): Add msvc-inval.
25807         * modules/fputc-tests (Depends-on): Likewise.
25808         * modules/fread-tests (Depends-on): Likewise.
25809         * modules/fwrite-tests (Depends-on): Likewise.
25811 2011-09-27  Bruno Haible  <bruno@clisp.org>
25813         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
25814         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
25815         (raise): Remove older, duplicated declaration.
25816         (_gl_raise_SIGPIPE): New declaration.
25817         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
25818         (rpl_raise): Remove function.
25819         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
25820         a gnulib-defined SIGPIPE here.
25821         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
25822         'sigprocmask' has detected missing signal-blocking and the module
25823         'sigpipe' is enabled.
25824         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25826 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
25828         base64-tests: avoid memory leak
25829         * tests/test-base64.c (main): Plug memory leak.
25831         base32: new module
25832         * modules/base32: New module.
25833         * lib/base32.c: New file.
25834         * lib/base32.h: Likewise.
25835         * m4/base32.m4: Likewise.
25836         * modules/base32-tests: New test.
25837         * tests/test-base32.c: Likewise.
25838         * MODULES.html.sh (Misc): Mention it.
25840 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25842         gnulib: use more-standard license notice wording
25843         * gnulib-tool (func_emit_copyright_notice): When emitting a
25844         license notice into a file, use the standard wording as suggested
25845         by the current information for GNU maintainers, except say "file"
25846         rather than "program".  The new wording gives a license version
25847         number, which addresses an issue raised by Glenn Morris in
25848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
25849         * m4/onceonly.m4: Use that same wording here, too.
25851         dup2: minor simplification
25852         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
25853         as lib/dup2.c no longer uses 'inline'.
25855 2011-09-25  Bruno Haible  <bruno@clisp.org>
25857         strings: Fix compilation error on MSVC.
25858         * lib/strings.in.h: Include <stddef.h> for size_t.
25860 2011-09-25  Bruno Haible  <bruno@clisp.org>
25862         fflush et al.: Document limitation on MSVC.
25863         * doc/posix-functions/fflush.texi: Document possible crash in handling
25864         mode other than DEFAULT_HANDLING.
25865         * doc/posix-functions/fgetc.texi: Likewise.
25866         * doc/posix-functions/fputc.texi: Likewise.
25867         * doc/posix-functions/fread.texi: Likewise.
25868         * doc/posix-functions/fwrite.texi: Likewise.
25870 2011-09-25  Bruno Haible  <bruno@clisp.org>
25872         msvc-inval: Allow three invalid parameter handling modes.
25873         * lib/msvc-inval.h: Don't include <stdlib.h> here.
25874         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
25875         macros.
25876         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
25877         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
25878         SANE_LIBRARY_HANDLING as a no-op.
25879         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
25880         <stdlib.h>.
25881         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
25883 2011-09-25  Bruno Haible  <bruno@clisp.org>
25885         msvc-inval: Make handler multithread-safe.
25886         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
25887         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
25888         declarations.
25889         (gl_msvc_inval_current): New declaration.
25890         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
25891         Operate on the structure returned by gl_msvc_inval_current().
25892         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
25893         Remove varaiables.
25894         (tls_index, tls_initialized): New variables.
25895         (not_per_thread): New variable.
25896         (gl_msvc_inval_current): New function.
25897         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
25898         returned by gl_msvc_inval_current().
25900 2011-09-25  Bruno Haible  <bruno@clisp.org>
25902         msvc-inval: Install handler globally.
25903         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
25904         !_MSC_VER.
25905         (gl_msvc_invalid_parameter_handler): Remove declaration.
25906         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
25907         declarations.
25908         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
25909         Install the handler globally, don't uninstall it.
25910         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
25911         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
25912         currently valid, call RaiseException instead.
25913         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
25914         for !_MSC_VER.
25916 2011-09-25  Bruno Haible  <bruno@clisp.org>
25918         strerror_r-posix: Fix for MSVC 9.
25919         * lib/strerror_r.c (local_snprintf): New function.
25920         (snprintf): Define to local_snprintf, not to _snprintf.
25922 2011-09-25  Bruno Haible  <bruno@clisp.org>
25924         ftruncate: Support for MSVC 9.
25925         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
25926         (chsize_nothrow): New function.
25927         (chsize): Redefine as a macro.
25928         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
25929         * modules/ftruncate (Depends-on): Add msvc-inval.
25931 2011-09-25  Bruno Haible  <bruno@clisp.org>
25933         New module 'fstat'.
25934         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
25935         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
25936         * lib/fchdir.c (rpl_fstat): Remove function.
25937         * m4/fstat.m4: New file.
25938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
25939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
25940         declared.
25941         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
25942         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
25943         * modules/fstat: New file.
25944         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
25945         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
25946         is set.
25947         * doc/posix-functions/fstat.texi: Mention the new module and the
25948         problem on MSVC.
25949         * NEWS: Mention the change.
25950         * modules/acl (Depends-on): Add fstat.
25951         * modules/chdir-safer (Depends-on): Likewise.
25952         * modules/chown (Depends-on): Likewise.
25953         * modules/copy-file (Depends-on): Likewise.
25954         * modules/fchdir (Depends-on): Likewise.
25955         * modules/fdopendir (Depends-on): Likewise.
25956         * modules/fopen (Depends-on): Likewise.
25957         * modules/fts (Depends-on): Likewise.
25958         * modules/getcwd (Depends-on): Likewise.
25959         * modules/isapipe (Depends-on): Likewise.
25960         * modules/linkat (Depends-on): Likewise.
25961         * modules/lseek (Depends-on): Likewise.
25962         * modules/mkdir-p (Depends-on): Likewise.
25963         * modules/open (Depends-on): Likewise.
25964         * modules/openat (Depends-on): Likewise.
25965         * modules/read-file (Depends-on): Likewise.
25966         * modules/renameat (Depends-on): Likewise.
25967         * modules/utimens (Depends-on): Likewise.
25969 2011-09-25  Bruno Haible  <bruno@clisp.org>
25971         linkat: Fix compilation on MSVC 9.
25972         * lib/linkat.c: Don't include <stdint.h>.
25974 2011-09-25  Bruno Haible  <bruno@clisp.org>
25976         fclose: Support for MSVC 9.
25977         * lib/fclose.c: Include msvc-inval.h.
25978         (fclose_nothrow): New function.
25979         (rpl_fclose): Use it.
25980         * modules/fclose (Depends-on): Add msvc-inval.
25981         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
25983 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25985         dup2: minor simplifications
25986         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
25987         that it's a performance win.
25988         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
25989         ! defined __CYGWIN__)" to "ifdef F_GETFL".
25991 2011-09-24  Jim Meyering  <meyering@redhat.com>
25993         test-futimens: avoid a warning from gcc -Wshadow
25994         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
25995         to avoid a shadowing warning.
25997 2011-09-24  Bruno Haible  <bruno@clisp.org>
25999         fdopen: Support for MSVC 9.
26000         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
26001         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
26002         * lib/fdopen.c: Include msvc-inval.h.
26003         (fdopen_nothrow): New function.
26004         (rpl_fdopen): Use it.
26005         * modules/fdopen (Depends-on): Add msvc-inval.
26006         * modules/fclose-tests (Depends-on): Add fdopen.
26007         * modules/fflush-tests (Depends-on): Likewise.
26008         * modules/fgetc-tests (Depends-on): Likewise.
26009         * modules/fputc-tests (Depends-on): Likewise.
26010         * modules/fread-tests (Depends-on): Likewise.
26011         * modules/freopen-tests (Depends-on): Likewise.
26012         * modules/fseeko-tests (Depends-on): Likewise.
26013         * modules/ftello-tests (Depends-on): Likewise.
26014         * modules/fwrite-tests  (Depends-on): Likewise.
26015         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
26017 2011-09-24  Bruno Haible  <bruno@clisp.org>
26019         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
26020         * modules/fgetc-tests (Depends-on): Add unistd.
26021         * modules/fputc-tests (Depends-on): Likewise.
26022         * modules/fread-tests (Depends-on): Likewise.
26023         * modules/fwrite-tests (Depends-on): Likewise.
26025 2011-09-24  Bruno Haible  <bruno@clisp.org>
26027         dup: Simplify autoconf test.
26028         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
26029         on gl_MSVC_INVAL's result.
26031 2011-09-24  Bruno Haible  <bruno@clisp.org>
26033         Tests for function fwrite().
26034         * modules/fwrite-tests: New file.
26035         * tests/test-fwrite.c: New file.
26036         * modules/stdio-tests (Depends-on): Add fwrite-tests.
26038         Tests for function fread().
26039         * modules/fread-tests: New file.
26040         * tests/test-fread.c: New file.
26041         * modules/stdio-tests (Depends-on): Add fread-tests.
26043         Activate fputc tests.
26044         * modules/stdio-tests (Depends-on): Add fputc-tests.
26046         Enhance fgetc, fputc tests.
26047         * tests/test-fgetc.c (main): Also test the stream's error indicator.
26048         * tests/test-fputc.c (main): Likewise.
26050 2011-09-24  Bruno Haible  <bruno@clisp.org>
26052         write: Support for MSVC 9.
26053         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
26054         is not 1.
26055         * lib/write.c (write_nothrow): New function.
26056         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
26057         not 1. Use write_nothrow.
26058         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
26059         invalid parameter handler.
26060         (gl_PREREQ_WRITE): New macro.
26061         * modules/write (Depends-on): Add msvc-inval.
26062         (configure.ac): Invoke gl_PREREQ_WRITE.
26063         * doc/posix-functions/write.texi: Mention the problem on MSVC.
26065 2011-09-24  Bruno Haible  <bruno@clisp.org>
26067         read: Fix last commit.
26068         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
26070 2011-09-24  Bruno Haible  <bruno@clisp.org>
26072         dup2: Fix last commit.
26073         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
26074         (rpl_dup2): Disable fcntl workaround on native Windows.
26076         sigprocmask: Make code safer.
26077         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
26078         section that changes macro definitions for this compilation unit.
26080 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26082         dup2: clarify by coalescing Windows-specific material
26083         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
26084         "msvc-nothrow.h"' to the Windows-specific section, so that the
26085         Emacs source need not contain these include files.
26086         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
26087         Windows-specific fixes into this function rather than just the
26088         nothrow fix, as this shortens and clarifies the code.  Always
26089         define as a function, as that's a bit cleaner than having it be
26090         sometimes a function and sometimes a macro.
26091         (rpl_dup2): Move the Windows-specific stuff out of here and into
26092         ms_windows_dup2.  Don't protect the Haiku-related fix with
26093         "#if !defined __linux__", as the same code also works around
26094         a Linux kernel bug, and it doesn't add any system calls on any
26095         platform.  Add comment about FreeBSD 6.1.
26097         sigprocmask: move #include directive
26098         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
26099         Windows-specific section, so that the Emacs source need not
26100         contain msvc-inval.h.
26102 2011-09-23  Bruno Haible  <bruno@clisp.org>
26104         read: Support for MSVC 9.
26105         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
26106         is not 1.
26107         * lib/read.c (read_nothrow): New function.
26108         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
26109         read_nothrow.
26110         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
26111         invalid parameter handler.
26112         (gl_PREREQ_READ): New macro.
26113         * modules/read (Depends-on): Add msvc-inval.
26114         (configure.ac): Invoke gl_PREREQ_READ.
26115         * doc/posix-functions/read.texi: Mention the problem on MSVC.
26117 2011-09-23  Bruno Haible  <bruno@clisp.org>
26119         close: Support for MSVC 9.
26120         * lib/close.c: Include <errno.h>, msvc-inval.h.
26121         (close_nothrow): New function.
26122         (rpl_close): Use it.
26123         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
26124         invalid parameter handler.
26125         * modules/close (Depends-on): Add msvc-inval.
26126         * modules/dup2-tests (Depends-on): Add close.
26127         * modules/dup3-tests (Depends-on): Likewise.
26128         * modules/fcntl-tests (Depends-on): Likewise.
26129         * modules/spawn-pipe-tests (Depends-on): Likewise.
26130         * modules/unistd-safer-tests (Depends-on): Likewise.
26131         * doc/posix-functions/close.texi: Mention the problem on MSVC.
26133 2011-09-23  Bruno Haible  <bruno@clisp.org>
26135         New module 'dup'.
26136         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
26137         Allow replacement.
26138         * lib/dup.c: New file.
26139         * lib/fchdir.c (rpl_dup): Remove function.
26140         * m4/dup.m4: New file.
26141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
26142         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
26143         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
26144         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
26145         * modules/dup: New file.
26146         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
26147         'dup' module is in use.
26148         * modules/fdopendir (Depends-on): Add dup.
26149         * modules/fdutimensat-tests (Depends-on): Likewise.
26150         * modules/fts (Depends-on): Likewise.
26151         * modules/futimens-tests (Depends-on): Likewise.
26152         * modules/posix_spawnp-tests (Depends-on): Likewise.
26153         * modules/unistd-safer-tests (Depends-on): Likewise.
26154         * modules/utimens-tests (Depends-on): Likewise.
26155         * doc/posix-functions/dup.texi: Mention the new module and the problem
26156         on MSVC.
26158 2011-09-23  Bruno Haible  <bruno@clisp.org>
26160         getdtablesize: Support for MSVC 9.
26161         * lib/getdtablesize.c: Include msvc-inval.h.
26162         (_setmaxstdio_nothrow): New function.
26163         (_setmaxstdio): Redefine it.
26164         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
26165         * modules/getdtablesize (Depends-on): Add msvc-inval.
26166         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
26168 2011-09-23  Bruno Haible  <bruno@clisp.org>
26170         signal-h: Rename from signal.
26171         * modules/signal-h: Renamed from modules/signal.
26172         * modules/pthread_sigmask (Depends-on): Update.
26173         * modules/raise (Depends-on): Likewise.
26174         * modules/sigaction (Depends-on): Likewise.
26175         * modules/sigpipe (Depends-on): Likewise.
26176         * modules/sigprocmask (Depends-on): Likewise.
26177         * modules/sys_select (Depends-on): Likewise.
26178         * modules/signal-h-tests: Renamed from modules/signal-tests.
26179         (Files, Depends-on, Makefile.am): Update.
26180         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
26181         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
26182         (Files, Makefile.am): Update.
26183         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
26184         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
26185         * modules/signal: New placeholder file.
26186         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
26187         * doc/posix-headers/signal.texi: Update.
26188         * NEWS: Mention the change.
26190 2011-09-23  Bruno Haible  <bruno@clisp.org>
26192         sigprocmask: Avoid crashes through signal() on MSVC 9.
26193         * lib/sigprocmask.c: Include msvc-inval.h.
26194         (signal_nothrow): New function.
26195         (signal): Redefine it.
26196         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
26197         * modules/sigprocmask (Depends-on): Add msvc-inval.
26198         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
26200 2011-09-23  Bruno Haible  <bruno@clisp.org>
26202         Tests for module 'raise'.
26203         * modules/raise-tests: New file.
26204         * tests/test-raise.c: New file.
26206         raise: Support for MSVC.
26207         * lib/signal.in.h (raise): New declaration.
26208         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
26209         for native Windows platforms.
26210         * m4/raise.m4: New file.
26211         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
26212         HAVE_RAISE, REPLACE_RAISE.
26213         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
26214         REPLACE_RAISE.
26215         * modules/raise (Status, Notice): Remove fields.
26216         (Files): Add m4/raise.m4.
26217         (Depends-on): Add signal, msvc-inval.
26218         (configure.ac): Use the common idioms.
26219         (Maintainer): Add me.
26220         * tests/test-signal-c++.cc: Check the signature of raise.
26221         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
26223 2011-09-23  Bruno Haible  <bruno@clisp.org>
26225         pipe2: Fix compilation on pre-C99 compilers.
26226         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
26228 2011-09-23  Bruno Haible  <bruno@clisp.org>
26230         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
26231         * lib/msvc-nothrow.h: New file.
26232         * lib/msvc-nothrow.c: New file.
26233         * m4/msvc-nothrow.m4: New file.
26234         * modules/msvc-nothrow: New file.
26235         * lib/dup2.c: Include msvc-nothrow.h.
26236         (rpl_dup2): No need to protect _get_osfhandle call here.
26237         * lib/accept4.c: Include msvc-nothrow.h.
26238         * lib/error.c: Likewise.
26239         * lib/fcntl.c: Likewise.
26240         * lib/lseek.c: Likewise.
26241         * lib/nonblocking.c: Likewise.
26242         * lib/poll.c: Likewise.
26243         * lib/read.c: Likewise.
26244         * lib/select.c: Likewise.
26245         * lib/sockets.h: Likewise.
26246         * lib/sockets.c: Likewise.
26247         * lib/stdio-read.c: Likewise.
26248         * lib/stdio-write.c: Likewise.
26249         * lib/write.c: Likewise.
26250         * lib/w32sock.h: Likewise.
26251         * lib/w32spawn.h: Likewise.
26252         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
26253         * lib/fsync.c: Likewise.
26254         * lib/isapipe.c: Likewise.
26255         * modules/dup2 (Depends-on): Add msvc-nothrow.
26256         * modules/accept4 (Depends-on): Likewise.
26257         * modules/error (Depends-on): Likewise.
26258         * modules/fcntl (Depends-on): Likewise.
26259         * modules/lseek (Depends-on): Likewise.
26260         * modules/nonblocking (Depends-on): Likewise.
26261         * modules/poll (Depends-on): Likewise.
26262         * modules/read (Depends-on): Likewise.
26263         * modules/select (Depends-on): Likewise.
26264         * modules/sockets (Depends-on): Likewise.
26265         * modules/sigpipe (Depends-on): Likewise.
26266         * modules/write (Depends-on): Likewise.
26267         * modules/accept (Depends-on): Likewise.
26268         * modules/bind (Depends-on): Likewise.
26269         * modules/connect (Depends-on): Likewise.
26270         * modules/gethostname (Depends-on): Likewise.
26271         * modules/getpeername (Depends-on): Likewise.
26272         * modules/getsockname (Depends-on): Likewise.
26273         * modules/getsockopt (Depends-on): Likewise.
26274         * modules/ioctl (Depends-on): Likewise.
26275         * modules/listen (Depends-on): Likewise.
26276         * modules/recv (Depends-on): Likewise.
26277         * modules/recvfrom (Depends-on): Likewise.
26278         * modules/send (Depends-on): Likewise.
26279         * modules/sendto (Depends-on): Likewise.
26280         * modules/setsockopt (Depends-on): Likewise.
26281         * modules/shutdown (Depends-on): Likewise.
26282         * modules/socket (Depends-on): Likewise.
26283         * modules/execute (Depends-on): Likewise.
26284         * modules/spawn-pipe (Depends-on): Likewise.
26285         * modules/flock (Depends-on): Likewise.
26286         * modules/fsync (Depends-on): Likewise.
26287         * modules/isapipe (Depends-on): Likewise.
26288         * tests/test-cloexec.c: Include msvc-nothrow.h.
26289         * tests/test-dup-safer.c: Likewise.
26290         * tests/test-dup2.c: Likewise.
26291         * tests/test-dup3.c: Likewise.
26292         * tests/test-fcntl.c: Likewise.
26293         * tests/test-pipe.c: Likewise.
26294         * tests/test-pipe2.c: Likewise.
26295         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
26296         * modules/unistd-safer-tests (Depends-on): Likewise.
26297         * modules/dup2-tests (Depends-on): Likewise.
26298         * modules/dup3-tests (Depends-on): Likewise.
26299         * modules/fcntl-tests (Depends-on): Likewise.
26300         * modules/pipe-posix-tests (Depends-on): Likewise.
26301         * modules/pipe2-tests (Depends-on): Likewise.
26303 2011-09-23  Bruno Haible  <bruno@clisp.org>
26305         dup2: Make code more maintainable.
26306         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
26307         (rpl_dup2): Use it.
26308         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
26309         * modules/dup2 (configure.ac): Invoke it.
26310         Reported by Paul Eggert.
26312 2011-09-23  Bruno Haible  <bruno@clisp.org>
26314         msvc-inval: Fix compilation error.
26315         * lib/msvc-inval.h: Include <excpt.h>.
26317 2011-09-23  Bruno Haible  <bruno@clisp.org>
26319         mkdir: Tweak for MSVC 9.
26320         * lib/sys_stat.in.h: Update comments.
26321         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
26323         Tests for module 'chdir'.
26324         * modules/chdir-tests: New file.
26325         * tests/test-chdir.c: New file.
26327         New module 'chdir'.
26328         * modules/chdir: New file.
26329         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
26330         (chdir): New declaration.
26331         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
26332         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
26333         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
26334         * tests/test-unistd-c++.cc: Check signature of chdir.
26335         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
26336         * modules/chdir-long (Depends-on): Add chdir.
26337         * modules/fchdir (Depends-on): Likewise.
26338         * modules/rename (Depends-on): Likewise.
26339         * modules/savewd (Depends-on): Likewise.
26341         rmdir: Support for mingw, MSVC 9.
26342         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
26343         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
26345         getcwd: Tweak for MSVC 9.
26346         * lib/unistd.in.h: Update comments.
26347         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
26349 2011-09-22  Bruno Haible  <bruno@clisp.org>
26351         strerror_r-posix: Avoid a link error on MSVC.
26352         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
26353         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
26355 2011-09-22  Bruno Haible  <bruno@clisp.org>
26357         select: Avoid link errors on MSVC.
26358         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
26359         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
26360         * modules/pselect (Link): Likewise.
26361         * NEWS: Mention the change.
26362         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
26363         test-select-stdin against $(LIB_SELECT).
26364         * modules/pselect-tests (Makefile.am): Link test-pselect against
26365         $(LIB_SELECT).
26367 2011-09-22  Bruno Haible  <bruno@clisp.org>
26369         select: Avoid compilation error on MSVC.
26370         * lib/select.c: Don't include <stdbool.h>.
26372 2011-09-21  Bruno Haible  <bruno@clisp.org>
26374         Consolidate all uses of PATH_MAX in *.m4 files.
26375         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
26376         macros.
26377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
26378         and gl_PATHMAX_SNIPPET.
26379         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
26380         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26381         * modules/chdir-long (Files): Add m4/pathmax.m4.
26382         * modules/getcwd (Files): Likewise.
26384 2011-09-21  Bruno Haible  <bruno@clisp.org>
26386         ftruncate: Un-deprecate, concentrate on Win32 support.
26387         * modules/ftruncate (Status, Notice): Remove sections.
26388         (Depends-on): Add largefile.
26389         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
26390         non-mingw platforms.
26391         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
26392         include <io.h>.
26393         * modules/perror-tests (Depends-on): Add ftruncate.
26394         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
26395         'ftruncate' module.
26397 2011-09-21  Bruno Haible  <bruno@clisp.org>
26399         Add dependencies to new dirent related modules.
26400         * modules/opendir (Depends-on): Add closedir.
26401         * modules/getcwd (Depends-on): Add opendir, closedir.
26402         * modules/dirent-safer-tests (Depends-on): Likewise.
26403         * modules/fdopendir-tests (Depends-on): Likewise.
26404         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
26405         * modules/renameat-tests (Depends-on): Likewise.
26407 2011-09-21  Bruno Haible  <bruno@clisp.org>
26409         opendir: Avoid compilation error on mingw.
26410         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
26411         * modules/opendir (Depends-on): Add unistd.
26413 2011-09-21  Bruno Haible  <bruno@clisp.org>
26415         ftruncate tests: Avoid a test failure on mingw.
26416         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
26418 2011-09-21  Bruno Haible  <bruno@clisp.org>
26420         select tests: Avoid test failures on OSF/1 5.1 and mingw.
26421         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
26422         native Windows.
26424 2011-09-21  Bruno Haible  <bruno@clisp.org>
26426         New module 'fdopen'.
26427         * lib/stdio.in.h (fdopen): New declaration.
26428         * lib/fdopen.c: New file.
26429         * m4/fdopen.m4: New file.
26430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
26431         REPLACE_FDOPEN.
26432         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
26433         REPLACE_FDOPEN.
26434         * modules/fdopen: New file.
26435         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
26436         * tests/test-stdio-c++.cc: Check signature of fdopen.
26437         * doc/posix-functions/fdopen.texi: Mention the new module.
26439 2011-09-21  Bruno Haible  <bruno@clisp.org>
26441         unlockpt tests: Avoid test failure on NetBSD 5.1.
26442         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
26443         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
26445 2011-09-21  Bruno Haible  <bruno@clisp.org>
26447         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
26448         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
26449         * tests/test-getlogin_r.c (main): Likewise.
26451 2011-09-20  Bruno Haible  <bruno@clisp.org>
26453         time tests: Don't require pid_t.
26454         * doc/posix-headers/time.texi: Revert last change.
26455         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
26456         * tests/test-time.c: Comment out the check for pid_t.
26458 2011-09-20  Bruno Haible  <bruno@clisp.org>
26460         fsync tests: Avoid a test failure on mingw.
26461         * tests/test-fsync.c (main): Allow a failure with EIO.
26463 2011-09-20  Bruno Haible  <bruno@clisp.org>
26465         euidaccess: Update comments.
26466         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
26468 2011-09-20  Bruno Haible  <bruno@clisp.org>
26470         Ensure EBADF returns for socket functions on mingw.
26471         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
26472         descriptor is invalid.
26473         * lib/bind.c (rpl_bind): Likewise.
26474         * lib/connect.c (rpl_connect): Likewise.
26475         * lib/getpeername.c (rpl_getpeername): Likewise.
26476         * lib/getsockname.c (rpl_getsockname): Likewise.
26477         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26478         * lib/listen.c (rpl_listen): Likewise.
26479         * lib/recv.c (rpl_recv): Likewise.
26480         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26481         * lib/send.c (rpl_send): Likewise.
26482         * lib/sendto.c (rpl_sendto): Likewise.
26483         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26484         * lib/shutdown.c (rpl_shutdown): Likewise.
26486 2011-09-20  Bruno Haible  <bruno@clisp.org>
26488         select tests: EBADF tests.
26489         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
26490         test_bad_fd): New functions.
26491         (test_function): Invoke also test_bad_fd.
26493 2011-09-20  Bruno Haible  <bruno@clisp.org>
26495         Tests for module 'posix_spawn_file_actions_addopen.
26496         * modules/posix_spawn_file_actions_addopen-tests: New file.
26497         * tests/test-posix_spawn_file_actions_addopen.c: New file.
26499         Tests for module 'posix_spawn_file_actions_adddup2'.
26500         * modules/posix_spawn_file_actions_adddup2-tests: New file.
26501         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
26503         Tests for module 'posix_spawn_file_actions_addclose'.
26504         * modules/posix_spawn_file_actions_addclose-tests: New file.
26505         * tests/test-posix_spawn_file_actions_addclose.c: New file.
26507 2011-09-20  Bruno Haible  <bruno@clisp.org>
26509         Tests for module 'unlockpt'.
26510         * modules/unlockpt-tests: New file.
26511         * tests/test-unlockpt.c: New file.
26512         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
26514         Tests for module 'grantpt'.
26515         * modules/grantpt-tests: New file.
26516         * tests/test-grantpt.c: New file.
26517         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
26519 2011-09-20  Bruno Haible  <bruno@clisp.org>
26521         freopen tests: EBADF tests.
26522         * tests/test-freopen.c: Include errno.h, unistd.h.
26523         (main): Add tests for EBADF, commented out for the moment.
26525         fclose tests: EBADF tests.
26526         * tests/test-fclose.c (main): Add tests for EBADF.
26528         fflush tests: EBADF tests.
26529         * tests/test-fflush.c: Include errno.h, macros.h.
26530         (main): Add tests for EBADF.
26532         ftello tests: EBADF tests.
26533         * tests/test-ftello4.sh: New file.
26534         * tests/test-ftello4.c: New file.
26535         * modules/ftello-tests (Files): Add them.
26536         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
26538         fseeko tests: EBADF tests.
26539         * tests/test-fseeko4.sh: New file.
26540         * tests/test-fseeko4.c: New file.
26541         * modules/fseeko-tests (Files): Add them.
26542         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
26544         Tests for function fputc().
26545         * modules/fputc-tests: New file.
26546         * tests/test-fputc.c: New file.
26547         * modules/stdio-tests (Depends-on): Add fputc-tests.
26549         Tests for function fgetc().
26550         * modules/fgetc-tests: New file.
26551         * tests/test-fgetc.c: New file.
26552         * modules/stdio-tests (Depends-on): Add fgetc-tests.
26554         Tests for function fdopen().
26555         * modules/fdopen-tests: New file.
26556         * tests/test-fdopen.c: New file.
26557         * modules/stdio-tests (Depends-on): Add fdopen-tests.
26559         Tests for module 'vdprintf'.
26560         * modules/vdprintf-tests: New file.
26561         * tests/test-vdprintf.c: New file.
26563         Tests for module 'dprintf'.
26564         * modules/dprintf-tests: New file.
26565         * tests/test-dprintf.c: New file.
26567 2011-09-20  Bruno Haible  <bruno@clisp.org>
26569         Tests for module 'ioctl'.
26570         * modules/ioctl-tests: New file.
26571         * tests/test-ioctl.c: New file.
26573 2011-09-20  Bruno Haible  <bruno@clisp.org>
26575         fcntl tests: EBADF tests.
26576         * tests/test-fcntl.c (main): Add more tests for EBADF.
26578 2011-09-20  Bruno Haible  <bruno@clisp.org>
26580         utimensat tests: EBADF tests.
26581         * tests/test-utimensat.c (main): Add tests for EBADF.
26583         renameat tests: EBADF tests.
26584         * tests/test-renameat.c (main): Add tests for EBADF.
26586         mkfifoat tests: EBADF tests.
26587         * tests/test-mkfifoat.c (main): Add tests for EBADF.
26589         readlinkat tests: EBADF tests.
26590         * tests/test-readlinkat.c (main): Add tests for EBADF.
26592         symlinkat tests: EBADF tests.
26593         * tests/test-symlinkat.c (main): Add tests for EBADF.
26595         linkat tests: EBADF tests.
26596         * tests/test-linkat.c (main): Add tests for EBADF.
26598         Tests for module 'faccessat'.
26599         * modules/faccessat-tests: New file.
26600         * tests/test-faccessat.c: New file.
26602         fdopendir tests: EBADF tests.
26603         * tests/test-fdopendir.c (main): Add more tests for EBADF.
26605         openat tests: EBADF tests.
26606         * tests/test-fchownat.c (main): Add tests for EBADF.
26607         * tests/test-fstatat.c (main): Likewise.
26608         * tests/test-mkdirat.c (main): Likewise.
26609         * tests/test-openat.c (main): Likewise.
26610         * tests/test-unlinkat.c (main): Likewise.
26611         * tests/test-fchmodat.c: New file.
26612         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
26613         (Makefile.am): Also run 'test-fchmodat'.
26615 2011-09-20  Bruno Haible  <bruno@clisp.org>
26617         utimens, futimens, fdutimensat tests: EBADF tests.
26618         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
26620         Tests for function fstat().
26621         * modules/fstat-tests: New file.
26622         * tests/test-fstat.c: New file.
26623         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
26625 2011-09-20  Bruno Haible  <bruno@clisp.org>
26627         test-ttyname_r tests: EBADF tests.
26628         * tests/test-ttyname_r.c (main): Add tests for EBADF.
26630         Tests for module 'isatty'.
26631         * modules/isatty-tests: New file.
26632         * tests/test-isatty.c: New file.
26634         Tests for module 'write'.
26635         * modules/write-tests: New file.
26636         * tests/test-write.c: New file.
26638         Tests for module 'read'.
26639         * modules/read-tests: New file.
26640         * tests/test-read.c: New file.
26642         pwrite tests: EBADF tests.
26643         * tests/test-pwrite.c (main): Add tests for EBADF.
26645         pread tests: EBADF tests.
26646         * tests/test-pread.c (main): Add tests for EBADF.
26648         lseek tests: EBADF tests.
26649         * tests/test-lseek.c (main): Add more tests for EBADF.
26651         Tests for module 'ftruncate'.
26652         * modules/ftruncate-tests: New file.
26653         * tests/test-ftruncate.sh: New file.
26654         * tests/test-ftruncate.c: New file.
26656         fsync tests: EBADF tests.
26657         * tests/test-fsync.c (main): Add more tests for EBADF.
26659         fdatasync tests: EBADF tests.
26660         * tests/test-fdatasync.c (main): Add more tests for EBADF.
26662         Tests for module 'fchown'.
26663         * modules/fchown-tests: New file.
26664         * tests/test-fchown.c: New file.
26666         Tests for module 'fchmod'.
26667         * modules/fchmod-tests: New file.
26668         * tests/test-fchmod.c: New file.
26670         fchdir tests: EBADF tests.
26671         * tests/test-fchdir.c (main): Add more tests for EBADF.
26673         dup2 tests: EBADF tests.
26674         * tests/test-dup2.c (main): Add more tests for EBADF.
26676         Tests for module 'dup'.
26677         * modules/dup-tests: New file.
26678         * tests/test-dup.c: New file.
26680         Tests for module 'close'.
26681         * modules/close-tests: New file.
26682         * tests/test-close.c: New file.
26684 2011-09-20  Bruno Haible  <bruno@clisp.org>
26686         Tests for module 'shutdown'.
26687         * modules/shutdown-tests: New file.
26688         * tests/test-shutdown.c: New file.
26690         Tests for module 'setsockopt'.
26691         * modules/setsockopt-tests: New file.
26692         * tests/test-setsockopt.c: New file.
26694         Tests for module 'sendto'.
26695         * modules/sendto-tests: New file.
26696         * tests/test-sendto.c: New file.
26698         Tests for module 'send'.
26699         * modules/send-tests: New file.
26700         * tests/test-send.c: New file.
26702         Tests for module 'recvfrom'.
26703         * modules/recvfrom-tests: New file.
26704         * tests/test-recvfrom.c: New file.
26706         Tests for module 'recv'.
26707         * modules/recv-tests: New file.
26708         * tests/test-recv.c: New file.
26710         Tests for module 'listen'.
26711         * modules/listen-tests: New file.
26712         * tests/test-listen.c: New file.
26714         Tests for module 'getsockopt'.
26715         * modules/getsockopt-tests: New file.
26716         * tests/test-getsockopt.c: New file.
26718         Tests for module 'getsockname'.
26719         * modules/getsockname-tests: New file.
26720         * tests/test-getsockname.c: New file.
26722         Tests for module 'getpeername'.
26723         * modules/getpeername-tests: New file.
26724         * tests/test-getpeername.c: New file.
26726         Tests for module 'connect'.
26727         * modules/connect-tests: New file.
26728         * tests/test-connect.c: New file.
26730         Tests for module 'bind'.
26731         * modules/bind-tests: New file.
26732         * tests/test-bind.c: New file.
26734         accept4 tests: Fix for native Windows.
26735         * tests/test-accept4.c: Include sockets.h.
26736         (main): Invoke gl_sockets_startup.
26737         * modules/accept4-tests (Depends-on): Add sockets.
26739         accept tests: Fix for native Windows.
26740         * tests/test-accept.c: Include sockets.h.
26741         (main): Invoke gl_sockets_startup.
26742         * modules/accept-tests (Depends-on): Add sockets.
26744 2011-09-19  Bruno Haible  <bruno@clisp.org>
26746         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
26747         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
26748         do...while(0).
26749         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
26750         Suggested by Paul Eggert.
26752 2011-09-19  Bruno Haible  <bruno@clisp.org>
26754         sched: Ensure pid_t is defined.
26755         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
26756         not define pid_t.
26757         * lib/sched.in.h: Include <sys/types.h>.
26758         * doc/posix-headers/sched.texi: Mention the pid_t problem.
26759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26761 2011-09-19  Bruno Haible  <bruno@clisp.org>
26763         msvc-inval: Ensure the entire expansion is a single statement.
26764         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
26765         of braces.
26767 2011-09-19  Jim Meyering  <meyering@redhat.com>
26769         tests: use printf, not echo in init.sh's warn_ function
26770         * tests/init.sh (warn_): Use printf, not echo.  The latter would
26771         misbehave when given strings containing a backslash or starting
26772         with e.g., -n.  James Youngman suggested setting IFS.
26774 2011-09-19  Eric Blake  <eblake@redhat.com>
26776         futimens: enhance test
26777         * tests/test-futimens.h (test_futimens): Also check for EBADF on
26778         closed non-negative fd.
26780         date: accept 'hence' as opposite of 'ago'
26781         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
26782         * tests/test-parse-datetime.c (main): Enhance test.
26783         Suggested by Jesse Wilson.
26785 2011-09-19  Jim Meyering  <meyering@redhat.com>
26787         getcwd: don't fail in a deep directory on a system without openat
26788         Before this change, getcwd would fail when called from a directory
26789         of depth PATH_MAX / 3 or greater.  That was due to the fact that
26790         the non-openat implementation used "..", "../..", "../../..", etc.
26791         to access ancestor directories.  With too many, that string would
26792         be longer than PATH_MAX.
26793         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
26794         using gnulib's openat replacement.
26795         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
26796         we're using the replacement function.
26798 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
26800         maint.mk: avoid warnings from perl about missing files
26801         * top/maint.mk (def_sym_regex): Ignore files listed in
26802         $(gl_other_headers_) that do not exist, say because a project
26803         does not use a corresponding module.
26805 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
26807         stat: use pathmax.h only if needed
26808         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
26809         This is better for Emacs, which does not have a mingw port and
26810         therefore can avoid the pathmax module.
26812         utimens: remove dependency on dup2
26813         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
26814         to work around the Linux kernel bug.
26815         * modules/utimens (Depends-on): Remove dup2.
26817 2011-09-18  Bruno Haible  <bruno@clisp.org>
26819         inet_ntop, inet_pton: Look for it also in libresolv.
26820         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
26821         libnsl, search for it in libresolv.
26822         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26823         Needed on Solaris 7.
26825 2011-09-18  Bruno Haible  <bruno@clisp.org>
26827         accept, accept4 tests: Avoid link error on Solaris.
26828         * modules/accept-tests (Makefile.am): Link test-accept against
26829         $(LIBSOCKET).
26830         * modules/accept4-tests (Makefile.am): Link test-accept4 against
26831         $(LIBSOCKET).
26833         accept4: Avoid link error on Solaris.
26834         * modules/accept4 (Link): New section.
26836         socket functions: Avoid link errors on Solaris.
26837         * modules/accept (Depends-on): Add socketlib.
26838         (Link): New section.
26839         * modules/bind (Depends-on): Add socketlib.
26840         (Link): New section.
26841         * modules/connect (Depends-on): Add socketlib.
26842         (Link): New section.
26843         * modules/getpeername (Depends-on): Add socketlib.
26844         (Link): New section.
26845         * modules/getsockname (Depends-on): Add socketlib.
26846         (Link): New section.
26847         * modules/getsockopt (Depends-on): Add socketlib.
26848         (Link): New section.
26849         * modules/listen (Depends-on): Add socketlib.
26850         (Link): New section.
26851         * modules/recv (Depends-on): Add socketlib.
26852         (Link): New section.
26853         * modules/recvfrom (Depends-on): Add socketlib.
26854         (Link): New section.
26855         * modules/send (Depends-on): Add socketlib.
26856         (Link): New section.
26857         * modules/sendto (Depends-on): Add socketlib.
26858         (Link): New section.
26859         * modules/setsockopt (Depends-on): Add socketlib.
26860         (Link): New section.
26861         * modules/shutdown (Depends-on): Add socketlib.
26862         (Link): New section.
26863         * modules/socket (Depends-on): Add socketlib.
26864         (Link): New section.
26866 2011-09-18  Bruno Haible  <bruno@clisp.org>
26868         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
26869         * tests/test-ptsname.c (main): Terminate the test if it takes longer
26870         than 5 seconds.
26871         * modules/ptsname-tests (configure.ac): Test for alarm.
26873 2011-09-18  Bruno Haible  <bruno@clisp.org>
26875         posix_spawn_file_actions_add*: Fix module dependencies.
26876         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
26877         posix_spawn_file_actions_init.
26878         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
26879         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
26881 2011-09-18  Bruno Haible  <bruno@clisp.org>
26883         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
26884         * tests/test-rename.h (test_rename): Allow error code EEXIST.
26885         * tests/test-renameat.c (main): Likewise.
26887 2011-09-18  Bruno Haible  <bruno@clisp.org>
26889         Tests for module 'accept4'.
26890         * modules/accept4-tests: New file.
26891         * tests/test-accept4.c: New file.
26893 2011-09-18  Bruno Haible  <bruno@clisp.org>
26895         Tests for module 'accept'.
26896         * modules/accept-tests: New file.
26897         * tests/test-accept.c: New file.
26899 2011-09-18  Bruno Haible  <bruno@clisp.org>
26901         dup2: Support for MSVC.
26902         * lib/dup2.c: Include msvc-inval.h.
26903         (rpl_dup2): Handle invalid parameter notifications during dup2 and
26904         _get_osfhandle calls.
26905         * modules/dup2 (Depends-on): Add msvc-inval.
26906         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
26908         New module 'msvc-inval'.
26909         * lib/msvc-inval.h: New file.
26910         * lib/msvc-inval.c: New file.
26911         * m4/msvc-inval.m4: New file.
26912         * modules/msvc-inval: New file.
26914 2011-09-17  Bruno Haible  <bruno@clisp.org>
26916         Tests for module 'pclose'.
26917         * modules/pclose-tests: New file.
26919         New module 'pclose'.
26920         * lib/stdio.in.h (pclose): New declaration.
26921         * lib/pclose.c: New file.
26922         * m4/pclose.m4: New file.
26923         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
26924         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
26925         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
26926         * modules/pclose: New file.
26927         * modules/popen-tests (Depends-on): Add pclose.
26928         * modules/popen-safer-tests (Depends-on): Likewise.
26929         * doc/posix-functions/pclose.texi: Mention the new module.
26931 2011-09-17  Bruno Haible  <bruno@clisp.org>
26933         popen: Support for MSVC.
26934         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
26935         * lib/popen.c (popen): Provide alternate definition for native Windows.
26936         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
26937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
26938         * modules/popen (Depends-on, configure.ac): Update condition.
26939         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
26940         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
26941         fixed.
26943 2011-09-17  Bruno Haible  <bruno@clisp.org>
26945         isnanl, isnand, isnanf: Work around MSVC bug.
26946         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
26948 2011-09-17  Bruno Haible  <bruno@clisp.org>
26950         sys_socket tests: Fix recent mistake.
26951         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
26953 2011-09-17  Bruno Haible  <bruno@clisp.org>
26955         putenv: Support for MSVC.
26956         * modules/putenv (Depends-on): Add environ.
26957         * lib/putenv.c (environ): Disable declaration.
26958         * lib/unistd.in.h: Update comment.
26960 2011-09-17  Bruno Haible  <bruno@clisp.org>
26962         math: Avoid macro redefinition warnings on MSVC.
26963         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
26964         Undefine before redefining.
26966 2011-09-17  Bruno Haible  <bruno@clisp.org>
26968         doc: Mention functions which are declared as macros.
26969         * doc/posix-functions/*[fl].texi: Mention that some functions are
26970         defined as macros with arguments only.
26972 2011-09-17  Bruno Haible  <bruno@clisp.org>
26974         Add dependencies to new dirent related modules.
26975         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
26976         * modules/fts (Depends-on): Likewise.
26977         * modules/glob (Depends-on): Likewise.
26978         * modules/savedir (Depends-on): Likewise.
26979         * modules/scandir (Depends-on): Likewise.
26980         * modules/dirent-safer (Depends-on): Add opendir, closedir.
26981         * modules/fdopendir (Depends-on): Add opendir.
26983 2011-09-17  Bruno Haible  <bruno@clisp.org>
26985         inet_pton: Support for MSVC on Windows Vista or newer.
26986         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
26987         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
26988         HAVE_DECL_INET_PTON is defined.
26989         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
26990         On platforms with <winsock2.h>, test whether inet_pton is declared in
26991         <ws2tcpip.h>. If so, arrange to replace it.
26992         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
26993         REPLACE_INET_PTON.
26994         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
26995         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
26996         (Depends-on, configure.ac): Update condition.
26997         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
26999 2011-09-17  Bruno Haible  <bruno@clisp.org>
27001         inet_ntop: Support for MSVC on Windows Vista or newer.
27002         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
27003         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
27004         HAVE_DECL_INET_NTOP is defined.
27005         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
27006         On platforms with <winsock2.h>, test whether inet_ntop is declared in
27007         <ws2tcpip.h>. If so, arrange to replace it.
27008         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
27009         REPLACE_INET_NTOP.
27010         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
27011         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
27012         (Depends-on, configure.ac): Update condition.
27013         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
27015 2011-09-16  Eric Blake  <eblake@redhat.com>
27017         test-fsync: yet another enhancement
27018         * tests/test-fsync.c (main): Also test behavior on read-only text
27019         file.
27021 2011-09-16  Bruno Haible  <bruno@clisp.org>
27023         Enhance fsync, fdatasync tests.
27024         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
27025         * tests/test-fdatasync.c (main): Likewise.
27027 2011-09-16  Bruno Haible  <bruno@clisp.org>
27029         Support for MSVC compiler: Ensure mode_t gets defined.
27030         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
27031         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27032         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27033         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
27034         * tests/test-fcntl-h.c: Check that mode_t is defined.
27035         * tests/test-sys_stat.c: Likewise.
27036         * tests/test-sys_types.c: Likewise.
27037         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
27038         * doc/posix-headers/sys_stat.texi: Likewise.
27039         * doc/posix-headers/sys_types.texi: Likewise.
27041 2011-09-16  Bruno Haible  <bruno@clisp.org>
27043         sys_stat: Support for MSVC.
27044         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
27045         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
27046         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
27047         MSVC.
27049 2011-09-16  Bruno Haible  <bruno@clisp.org>
27051         Support for MSVC compiler: Ensure off_t gets defined.
27052         * lib/unistd.in.h: Include <sys/types.h>.
27053         * tests/test-fcntl-h.c: Check that off_t is defined.
27054         * tests/test-sys_stat.c: Likewise.
27055         * tests/test-sys_types.c: Likewise.
27057 2011-09-16  Eric Blake  <eblake@redhat.com>
27059         fdatasync: port to Solaris
27060         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
27061         * modules/fdatasync (Link): Document it.
27062         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
27064         fdatasync: port to MacOS X 10.7
27065         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
27066         declared.
27067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
27068         * modules/unistd (Makefile.am): Substitute it.
27069         * lib/unistd.in.h (fdatasync): Declare on MacOS.
27070         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
27072         fdatasync: minor improvements
27073         * modules/fdatasync (Depends-on): Add condition for fsync.
27074         * lib/fdatasync.c (fdatasync): Add comment.
27075         * tests/test-unistd-c++.cc: Test fdatasync.
27077         unistd: update refs to newer POSIX
27078         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
27079         Suggested by Bruno Haible.
27081         fdatasync: new module
27082         * modules/fsync (Description): Document difference to fdatasync.
27083         * modules/fdatasync: New module.
27084         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
27085         * lib/fdatasync.c (fdatasync): Likewise.
27086         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
27087         defaults.
27088         * modules/unistd (Makefile.am): Set witnesses.
27089         * lib/unistd.in.h (fdatasync): Declare.
27090         * MODULES.html.sh: Document it.
27091         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
27092         * modules/fdatasync-tests: New test.
27093         * tests/test-fdatasync.c: Likewise.
27095 2011-09-16  Eric Blake  <eblake@redhat.com>
27097         test-fsync: enhance tests
27098         * modules/fsync-tests (Depends-on): Add errno, for mingw.
27099         * tests/test-fsync.c (main): Enhance test.
27101 2011-09-15  Bruno Haible  <bruno@clisp.org>
27103         Support for MSVC compiler: Ensure ssize_t gets defined.
27104         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
27105         * doc/posix-headers/stdio.texi: Likewise.
27106         * modules/stdio (Depends-on): Add ssize_t.
27107         * modules/sys_socket (Depends-on): Likewise.
27108         * modules/sys_types (Depends-on): Likewise.
27109         * modules/sys_uio (Depends-on): Likewise.
27110         * modules/unistd (Depends-on): Likewise.
27111         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
27112         * tests/test-sys_types.c: Check that ssize_t is defined.
27114 2011-09-14  Bruno Haible  <bruno@clisp.org>
27116         Avoid using #, the m4 comment starter character, near brackets.
27117         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
27118         delimiter character in sed expressions.
27119         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
27120         Suggested by Eric Blake.
27122         Properly quote AC_CHECK_DECLS' 4th argument.
27123         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
27124         argument.
27125         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27126         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27127         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27128         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27129         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27130         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
27131         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
27132         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
27133         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
27134         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27135         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
27136         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27137         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27138         * m4/isinf.m4 (gl_ISINF): Likewise.
27139         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27140         * m4/readutmp.m4 (gl_READUTMP): Likewise.
27141         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27142         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
27145         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27146         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27147         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
27148         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27149         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27150         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
27152         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27154         Reported by Eric Blake.
27156         Properly quote AC_CHECK_DECL's 4th argument.
27157         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
27158         argument.
27159         * m4/argp.m4 (gl_ARGP): Likewise.
27160         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27161         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27162         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27163         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27164         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
27165         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
27166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
27167         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27168         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27169         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27170         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27171         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27172         Reported by Eric Blake.
27174 2011-09-14  Eric Blake  <eblake@redhat.com>
27176         opendir: avoid compile warning
27177         * lib/opendir.c (includes): Always include errno.h.
27178         Reported by Tatsuro MATSUOKA.
27180 2011-09-14  Jim Meyering  <meyering@redhat.com>
27182         maint.mk: sc_tight_scope: propagate failure from sub-make
27183         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
27184         Reported by Martin von Gagern.
27186 2011-09-13  Bruno Haible  <bruno@clisp.org>
27188         tempname: Support for MSVC.
27189         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
27190         MSVC.
27191         * modules/tempname (Depends-on): Add fcntl-h.
27193 2011-09-13  Bruno Haible  <bruno@clisp.org>
27195         sys_time: Support for MSVC.
27196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
27197         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
27198         include <winsock2.h>.
27199         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
27200         function declarations that collide with POSIX.
27201         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
27202         (Makefile.am): Substitute HAVE_WINSOCK2_H.
27204 2011-09-13  Bruno Haible  <bruno@clisp.org>
27206         stat: Support for MSVC.
27207         * lib/stat.c: Include pathmax.h.
27208         * modules/stat (Depends-on): Add pathmax.
27210         pathmax: Support for native Windows.
27211         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
27213 2011-09-12  Bruno Haible  <bruno@clisp.org>
27215         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
27216         * lib/dirent.in.h (struct dirent): New type.
27217         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
27218         DT_WHT): New macros.
27219         (DIR): New type.
27220         (opendir, closedir): Declare only if the module 'opendir' is enabled.
27221         (readdir, rewinddir): New declarations.
27222         * lib/dirent-private.h: New file.
27223         * lib/opendir.c: New file.
27224         * lib/readdir.c: New file.
27225         * lib/rewinddir.c: New file.
27226         * lib/closedir.c: New file.
27227         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
27228         * m4/opendir.m4: New file.
27229         * m4/readdir.m4: New file.
27230         * m4/rewinddir.m4: New file.
27231         * m4/closedir.m4: New file.
27232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
27233         REPLACE_CLOSEDIR here.
27234         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
27235         readdir, rewinddir are declared.
27236         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
27237         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
27238         HAVE_REWINDDIR, HAVE_CLOSEDIR.
27239         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
27240         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
27241         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
27242         * modules/opendir: New file.
27243         * modules/readdir: New file.
27244         * modules/rewinddir: New file.
27245         * modules/closedir: New file.
27246         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
27247         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
27248         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
27249         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
27250         * NEWS: Mention the 'fchdir' change.
27252 2011-09-11  Bruno Haible  <bruno@clisp.org>
27254         asm-underscore.m4: Support for MSVC.
27255         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
27256         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
27258 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
27260         Doc about crypt functions.
27261         * doc/posix-functions/crypt.texi: Expand range of glibc versions
27262         needing for _GNU_SOURCE to get crypt.
27263         * doc/posix-functions/encrypt.texi: Likewise.
27264         * doc/posix-functions/setkey.texi: Likewise.
27266 2011-09-11  Bruno Haible  <bruno@clisp.org>
27268         doc: Update regarding MSVC 9.
27269         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
27270         tested".
27271         * doc/posix-functions/*.texi: Update with info about MSVC 9.
27272         * doc/posix-headers/*.texi: Likewise.
27273         * doc/pastposix-functions/*.texi: Likewise.
27274         * doc/glibc-functions/*.texi: Likewise.
27275         * doc/glibc-headers/*.texi: Likewise.
27277 2011-09-11  Bruno Haible  <bruno@clisp.org>
27279         unistd et al.: Don't assume <unistd.h> exists.
27280         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
27281         does not exist.
27282         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
27283         exist. But include <stdlib.h>.
27284         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
27285         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
27286         symlink() does not exist.
27287         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
27288         include <io.h> instead.
27289         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
27290         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
27291         include <direct.h> instead.
27292         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
27293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27294         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
27295         <io.h> instead.
27296         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
27297         correctly if the system does not have hard links.
27298         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
27299         <direct.h> instead.
27300         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
27301         it when looking for function declarations.
27302         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
27303         <direct.h> and <io.h> instead.
27304         * doc/posix-headers/unistd.texi: More details about MSVC problem.
27306 2011-09-11  Bruno Haible  <bruno@clisp.org>
27308         strcase: Support for MSVC.
27309         * modules/strcase (Status, Notice): Remove obsoletion mark.
27310         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
27311         * doc/posix-functions/strncasecmp.texi: Likewise.
27313         strings: Don't assume <strings.h> exists.
27314         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
27315         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
27316         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
27317         * doc/posix-headers/strings.texi: Mention the MSVC problem.
27319 2011-09-11  Bruno Haible  <bruno@clisp.org>
27321         dirent: Don't assume <dirent.h> exists.
27322         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
27323         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
27324         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
27325         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
27327 2011-09-11  Bruno Haible  <bruno@clisp.org>
27329         Fix wint_t on MSVC.
27330         * lib/wchar.in.h (wint_t): On MSVC, override it.
27331         * lib/wctype.in.h (wint_t): Likewise.
27332         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
27333         MSVC.
27334         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
27335         * doc/posix-headers/wctype.texi: Likewise.
27337 2011-09-11  Bruno Haible  <bruno@clisp.org>
27339         sys_types: Fix typo.
27340         * lib/sys_types.in.h: Fix typo in comment.
27341         Reported by Paul Eggert.
27343         Support for MSVC compiler: Ensure size_t gets defined.
27344         * modules/strings (Depends-on): Add 'sys_types'.
27345         * modules/sys_uio (Depends-on): Likewise.
27346         * lib/sys_uio.in.h: Update comment.
27348         C++ tests for module 'sys_types'.
27349         * modules/sys_types-c++-tests: New file.
27350         * tests/test-sys_types-c++.cc: New file.
27352         Tests for module 'sys_types'.
27353         * modules/sys_types-tests: New file.
27354         * tests/test-sys_types.c: New file.
27356         New module 'sys_types'.
27357         * lib/sys_types.in.h: New file.
27358         * m4/sys_types_h.m4: New file.
27359         * modules/sys_types: New file.
27360         * doc/posix-headers/sys_types.texi: Mention the new module and the
27361         size_t problem on MSVC 9.
27363 2011-09-11  Bruno Haible  <bruno@clisp.org>
27365         Support for MSVC compiler: Avoid division by a literal 0.
27366         * lib/math.in.h (NAN): Define through a function call also on MSVC.
27367         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
27368         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
27369         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
27370         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
27371         * tests/infinity.h: New file.
27372         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
27373         on MSVC.
27374         * tests/test-ceilf1.c: Include infinity.h.
27375         (main): Use Infinityf.
27376         * tests/test-ceil1.c: Include infinity.h.
27377         (main): Use Infinityd.
27378         * tests/test-ceill.c: Include infinity.h.
27379         (main): Use Infinityl.
27380         * tests/test-dprintf-posix.c: Include infinity.h.
27381         (test_function): Use Infinityd.
27382         * tests/test-floorf1.c: Include infinity.h.
27383         (main): Use Infinityf.
27384         * tests/test-floor1.c: Include infinity.h.
27385         (main): Use Infinityd.
27386         * tests/test-floorl.c: Include infinity.h.
27387         (main): Use Infinityl.
27388         * tests/test-fprintf-posix.c: Include infinity.h.
27389         (test_function): Use Infinityd.
27390         * tests/test-frexp.c: Include infinity.h.
27391         (main): Use Infinityd.
27392         * tests/test-frexpl.c: Include infinity.h.
27393         (main): Use Infinityl.
27394         * tests/test-isfinite.c: Include infinity.h.
27395         (test_isfinitef): Use Infinityf.
27396         (test_isfinited): Use Infinityd.
27397         (test_isfinitel): Use Infinityl.
27398         * tests/test-isinf.c: Include infinity.h.
27399         (test_isinff): Use Infinityf.
27400         (test_isinfd): Use Infinityd.
27401         (test_isinfl): Use Infinityl.
27402         * tests/test-isnan.c: Include infinity.h.
27403         (test_float): Use Infinityf.
27404         (test_double): Use Infinityd.
27405         (test_long_double): Use Infinityl.
27406         * tests/test-isnanf.h: Include infinity.h.
27407         (main): Use Infinityf.
27408         * tests/test-isnand.h: Include infinity.h.
27409         (main): Use Infinityd.
27410         * tests/test-isnanl.h: Include infinity.h.
27411         (main): Use Infinityl.
27412         * tests/test-ldexpl.c: Include infinity.h.
27413         (main): Use Infinityl.
27414         * tests/test-printf-posix.h: Include infinity.h.
27415         (test_function): Use Infinityd.
27416         * tests/test-roundf1.c: Include infinity.h.
27417         (main): Use Infinityf.
27418         * tests/test-round1.c: Include infinity.h.
27419         (main): Use Infinityd.
27420         * tests/test-roundl.c: Include infinity.h.
27421         (main): Use Infinityl.
27422         * tests/test-signbit.c: Include infinity.h.
27423         (test_signbitf): Use Infinityf.
27424         (test_signbitd): Use Infinityd.
27425         (test_signbitl): Use Infinityl.
27426         * tests/test-snprintf-posix.h: Include infinity.h.
27427         (test_function): Use Infinityd, Infinityl.
27428         * tests/test-sprintf-posix.h: Include infinity.h.
27429         (test_function): Use Infinityd, Infinityl.
27430         * tests/test-truncf1.c: Include infinity.h.
27431         (main): Use Infinityf.
27432         * tests/test-trunc1.c: Include infinity.h.
27433         (main): Use Infinityd.
27434         * tests/test-truncl.c: Include infinity.h.
27435         (main): Use Infinityl.
27436         * tests/test-vasnprintf-posix.c: Include infinity.h.
27437         (test_function): Use Infinityd, Infinityl.
27438         * tests/test-vasprintf-posix.c: Include infinity.h.
27439         (test_function): Use Infinityd, Infinityl.
27440         * modules/ceilf-tests (Files): Add tests/infinity.h.
27441         * modules/ceil-tests (Files): Likewise.
27442         * modules/ceill-tests (Files): Likewise.
27443         * modules/dprintf-posix-tests (Files): Likewise.
27444         * modules/floorf-tests (Files): Likewise.
27445         * modules/floor-tests (Files): Likewise.
27446         * modules/floorl-tests (Files): Likewise.
27447         * modules/fprintf-posix-tests (Files): Likewise.
27448         * modules/frexp-tests (Files): Likewise.
27449         * modules/frexp-nolibm-tests (Files): Likewise.
27450         * modules/frexpl-tests (Files): Likewise.
27451         * modules/frexpl-nolibm-tests (Files): Likewise.
27452         * modules/isfinite-tests (Files): Likewise.
27453         * modules/isinf-tests (Files): Likewise.
27454         * modules/isnan-tests (Files): Likewise.
27455         * modules/isnanf-tests (Files): Likewise.
27456         * modules/isnanf-nolibm-tests (Files): Likewise.
27457         * modules/isnand-tests (Files): Likewise.
27458         * modules/isnand-nolibm-tests (Files): Likewise.
27459         * modules/isnanl-tests (Files): Likewise.
27460         * modules/isnanl-nolibm-tests (Files): Likewise.
27461         * modules/ldexpl-tests (Files): Likewise.
27462         * modules/printf-posix-tests (Files): Likewise.
27463         * modules/roundf-tests (Files): Likewise.
27464         * modules/round-tests (Files): Likewise.
27465         * modules/roundl-tests (Files): Likewise.
27466         * modules/signbit-tests (Files): Likewise.
27467         * modules/snprintf-posix-tests (Files): Likewise.
27468         * modules/sprintf-posix-tests (Files): Likewise.
27469         * modules/truncf-tests (Files): Likewise.
27470         * modules/trunc-tests (Files): Likewise.
27471         * modules/truncl-tests (Files): Likewise.
27472         * modules/vasnprintf-posix-tests (Files): Likewise.
27473         * modules/vasprintf-posix-tests (Files): Likewise.
27474         * modules/vdprintf-posix-tests (Files): Likewise.
27475         * modules/vfprintf-posix-tests (Files): Likewise.
27476         * modules/vprintf-posix-tests (Files): Likewise.
27477         * modules/vsnprintf-posix-tests (Files): Likewise.
27478         * modules/vsprintf-posix-tests (Files): Likewise.
27479         * modules/xprintf-posix-tests (Files): Likewise.
27481 2011-09-11  Bruno Haible  <bruno@clisp.org>
27483         Ensure pid_t gets defined.
27484         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
27485         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
27486         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27487         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27488         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27489         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
27490         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27491         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27492         * tests/test-fcntl-h.c: Check that pid_t is defined.
27493         * tests/test-sched.c: Likewise.
27494         * tests/test-termios.c: Likewise.
27495         * tests/test-time.c: Likewise.
27496         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
27497         * doc/posix-headers/signal.texi: Likewise.
27498         * doc/posix-headers/sys_types.texi: Likewise.
27499         * doc/posix-headers/time.texi: Likewise.
27501 2011-09-11  Bruno Haible  <bruno@clisp.org>
27503         acl: Fix compilation on Solaris 10 (older version).
27504         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
27505         of ACE_EVERYONE.
27506         * lib/set-mode-acl.c (qset_acl): Likewise.
27507         Reported by Christian Jullien <eligis@orange.fr>.
27509 2011-09-10  Bruno Haible  <bruno@clisp.org>
27511         iconv, unsetenv: Add support for MSVC compiler.
27512         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
27513         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
27515 2011-09-10  Bruno Haible  <bruno@clisp.org>
27517         *printf: Add support for MSVC compiler.
27518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
27519         handles the exception caused by the %n directive. When cross-compiling,
27520         guess no on native Windows.
27521         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27522         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
27523         emulate it through vsnprintf.
27524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
27525         * doc/posix-functions/dprintf.texi: Update documentation regarding
27526         MSVC 9.
27527         * doc/posix-functions/fprintf.texi: Likewise.
27528         * doc/posix-functions/printf.texi: Likewise.
27529         * doc/posix-functions/snprintf.texi: Likewise.
27530         * doc/posix-functions/sprintf.texi: Likewise.
27531         * doc/posix-functions/swprintf.texi: Likewise.
27532         * doc/posix-functions/vdprintf.texi: Likewise.
27533         * doc/posix-functions/vfprintf.texi: Likewise.
27534         * doc/posix-functions/vprintf.texi: Likewise.
27535         * doc/posix-functions/vsnprintf.texi: Likewise.
27536         * doc/posix-functions/vsprintf.texi: Likewise.
27537         * doc/glibc-functions/asprintf.texi: Likewise.
27538         * doc/glibc-functions/obstack_printf.texi: Likewise.
27539         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27540         * doc/glibc-functions/vasprintf.texi: Likewise.
27542 2011-09-10  Bruno Haible  <bruno@clisp.org>
27544         nocrash: Add support for native Windows.
27545         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
27547 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
27548             Bruno Haible  <bruno@clisp.org>
27550         absolute-header, include-next: Add support for MSVC compiler.
27551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
27552         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
27553         directory separator in #line directives.
27554         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
27555         recognize also backslash as directory separator in #line directives.
27557 2011-09-08  Jim Meyering  <meyering@redhat.com>
27559         maint.mk: mark the post-release commit log with "maint: " prefix
27560         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
27561         one-line commit-log summary.
27563 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
27564             Bruno Haible  <bruno@clisp.org>
27566         Doc about crypt functions.
27567         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
27568         systems.
27569         * doc/posix-functions/encrypt.texi: Likewise.
27570         * doc/posix-functions/setkey.texi: Likewise.
27572 2011-09-08  Simon Josefsson  <simon@josefsson.org>
27574         * lib/gc.h: Fix copyright header.
27576 2011-09-07  Bruno Haible  <bruno@clisp.org>
27578         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
27579         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
27580         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
27582 2011-09-07  Bruno Haible  <bruno@clisp.org>
27584         openat: Work around compilation error with OSF/1 5.1 DTK cc.
27585         * lib/fopen.c: Use different syntax for include of <stdio.h>.
27586         * lib/freopen.c: Likewise.
27587         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
27588         * lib/lstat.c: Likewise.
27589         * lib/stat.c: Likewise.
27590         * lib/open.c: Use different syntax for include of <fcntl.h>.
27591         * lib/openat.c: Include fcntl.h again, explicitly.
27593 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
27595         parse-datetime: document the newly accepted format
27596         * doc/parse-datetime.texi (Combined date and time of day items):
27597         New section.
27599 2011-09-06  Bruno Haible  <bruno@clisp.org>
27601         acl: Fix a test failure on newer Solaris 10 with ZFS.
27602         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
27603         ENOSYS as no ACL.
27604         Reported by Jim Meyering.
27606 2011-09-06  Bruno Haible  <bruno@clisp.org>
27608         acl: Update for AIX >= 5.3 with NFS.
27609         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
27610         ENOSYS as no ACL.
27612         acl: Fix a test failure on AIX >= 5.3 with NFS.
27613         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
27614         as no ACL.
27616 2011-09-06  Bruno Haible  <bruno@clisp.org>
27618         acl: Fix a test failure on IRIX 6.5 with NFS.
27619         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
27620         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
27621         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
27622         * lib/copy-acl.c (qcopy_acl): Likewise.
27624 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
27626         openat: port to AIX 7.1 with large files
27627         AIX 7.1 does a "#define openat open64at" if large files are in use,
27628         so we can't simply #undef openat.  Use the orig_openat trick (similar
27629         to orig_open in lib/open.c) to work around the problem.  Problem
27630         reported by Kevin Brott for GNU tar, in the thread containing
27631         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
27632         * lib/openat.c (__need_system_fcntl_h): Define first.
27633         Include <fcntl.h> and <sys/types.h> before undefining.
27634         (orig_openat) [HAVE_OPENAT]: New inline function.
27635         (openat) [HAVE_OPENAT]: Do not undef.
27636         (rpl_openat): Use orig_openat, not openat.
27638 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27639             Bruno Haible  <bruno@clisp.org>
27641         acl: Avoid errors on NonStop Kernel.
27642         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
27643         ENOTSUP errors.
27645 2011-09-05  Bruno Haible  <bruno@clisp.org>
27647         acl: Clean up Solaris code.
27648         * lib/acl-internal.h: Remove no-op #if.
27649         * lib/file-has-acl.c: Likewise.
27650         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
27651         * lib/copy-acl.c (qcopy_acl): Likewise.
27653 2011-09-05  Bruno Haible  <bruno@clisp.org>
27655         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
27656         binaries built on the original Solaris 10.
27657         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
27658         trivial.
27660 2011-09-05  Bruno Haible  <bruno@clisp.org>
27662         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
27663         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
27664         10.
27665         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
27666         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
27667         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
27668         instead of acl_get, facl_get, acl_set, facl_set.
27670 2011-09-05  Bruno Haible  <bruno@clisp.org>
27672         copy-file: Try unit tests on more file systems.
27673         * tests/test-copy-file-1.sh: New file.
27674         * tests/test-copy-file-2.sh: New file.
27675         * modules/copy-file-tests (Files): Add them.
27676         (Makefile.am): Add them to TESTS.
27678         acl: Try unit tests on more file systems.
27679         * tests/test-file-has-acl-1.sh: New file.
27680         * tests/test-file-has-acl-2.sh: New file.
27681         * tests/test-set-mode-acl-1.sh: New file.
27682         * tests/test-set-mode-acl-2.sh: New file.
27683         * tests/test-copy-acl-1.sh: New file.
27684         * tests/test-copy-acl-2.sh: New file.
27685         * modules/acl-tests (Files): Add them.
27686         (Makefile.am): Add them to TESTS.
27688 2011-09-04  Bruno Haible  <bruno@clisp.org>
27690         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
27691         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
27692         10.
27693         (OLD_ALLOW, OLD_DENY): New macros.
27694         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
27695         ACE_ACCESS_ALLOWED_ACE_TYPE.
27696         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
27697         ACE_ACCESS_DENIED_ACE_TYPE.
27698         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
27699         (NEW_ACE_EXECUTE): Fix value.
27700         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
27701         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
27702         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
27703         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
27704         NEW_ACE_SYNCHRONIZE): New macros.
27705         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
27706         instead of acl_fromtext, acl_set, facl_set.
27707         Fixes a coreutils/tests/cp/perm failure.
27709 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
27711         openat: test for fstatat (..., 0) bug
27712         Further testing with tar suggests that fstatat (..., 0)
27713         does not work in general, on AIX 7.1; see
27714         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
27715         So, give up entirely on AIX 7.1's fstatat, and fall back on our
27716         replacement fstatat (which is what older AIX releases were using
27717         anyway).
27718         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
27719         use is now changed to orig_fstatat.  This was probably the right
27720         thing to do anyway.
27721         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
27722         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
27723         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
27724         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
27725         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
27726         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
27727         if the bug is found.
27729         openat: test for fstatat (AT_FDCWD, ..., 0) bug
27730         This tests for another fstatat bug on AIX 7.1:
27731         fstatat (AT_FDCWD, ..., 0) does not work.  See
27732         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
27733         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
27734         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
27735         (rpl_fstatat): Adjust so that it works around either (or both)
27736         bugs if present.
27737         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
27739 2011-09-03  Karl Berry  <karl@gnu.org>
27741         * doc/regex.texi (Character Class Operators): Avoid literal ":"
27742         in index entries.
27744 2011-09-02  Bruno Haible  <bruno@clisp.org>
27746         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
27747         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
27748         values of AR, ARFLAGS, RANLIB.
27749         Reported by John W. Eaton <jwe@gnu.org> for Octave.
27751 2011-09-02  Bruno Haible  <bruno@clisp.org>
27753         Find 'ar' program that fits with --host argument.
27754         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
27756 2011-09-02  Bruno Haible  <bruno@clisp.org>
27758         tests: init.sh: Support any non-GNU diff.
27759         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
27760         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
27761         Solaris 8.
27763 2011-09-02  Bruno Haible  <bruno@clisp.org>
27765         tests: init.sh: work also with any non-GNU diff that supports -u
27766         * tests/init.sh: Relax check for diff -u support.
27767         Rather than checking for GNU diff via --version, simply check
27768         for support for -u itself.  Useful at least on OpenBSD 4.9,
27769         AIX 7.1, IRIX 6.5, and Solaris 10.
27771 2011-09-01  Bruno Haible  <bruno@clisp.org>
27773         strtoimax, strtoumax: Document problem on HP-UX 11.
27774         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
27775         * doc/posix-functions/strtoumax.texi: Likewise.
27777 2011-09-01  Bruno Haible  <bruno@clisp.org>
27779         strtoumax: Avoid link error on OSF/1 with DTK cc.
27780         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
27781         defined as a function.
27782         * modules/strtoumax (Depends-on, configure.ac): Test only whether
27783         strtoumax is defined, not whether it is declared.
27785 2011-09-01  Bruno Haible  <bruno@clisp.org>
27787         strtoimax: Avoid link error on OSF/1 with DTK cc.
27788         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
27789         defined as a function.
27790         * modules/strtoimax (Depends-on, configure.ac): Test only whether
27791         strtoimax is defined, not whether it is declared.
27793 2011-09-01  Bruno Haible  <bruno@clisp.org>
27795         imaxdiv: Avoid link error on OSF/1 with DTK cc.
27796         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
27797         as a function.
27798         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
27799         whether it is declared.
27801 2011-09-01  Bruno Haible  <bruno@clisp.org>
27803         imaxabs: Avoid link error on OSF/1 with DTK cc.
27804         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
27805         as a function.
27806         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
27807         whether it is declared.
27809 2011-09-01  Bruno Haible  <bruno@clisp.org>
27811         Tests for module 'strtoumax'.
27812         * modules/strtoumax-tests: New file.
27813         * tests/test-strtoumax.c: New file.
27815         Tests for module 'strtoimax'.
27816         * modules/strtoimax-tests: New file.
27817         * tests/test-strtoimax.c: New file.
27819         Tests for module 'imaxdiv'.
27820         * modules/imaxdiv-tests: New file.
27821         * tests/test-imaxdiv.c: New file.
27823         Tests for module 'imaxabs'.
27824         * modules/imaxabs-tests: New file.
27825         * tests/test-imaxabs.c: New file.
27827 2011-09-01  Bruno Haible  <bruno@clisp.org>
27829         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
27830         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
27831         pthread_create.
27833 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27835         openat: work around AIX 7.1 fstatat issue
27836         This should fix the problem that was not properly fixed
27837         in the previous change, dated 2011-08-30.
27838         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
27839         __need_system_stat_h defined.
27840         (orig_fstatat) [HAVE_FSTATAT]: New function.
27841         (rpl_fstatat): Go back to the old way of doing things,
27842         except call orig_fstatat instead of fstatat.
27843         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
27844         Remove unnecessary check whether fstatat fills in st_size etc.
27846 2011-09-01  Bruno Haible  <bruno@clisp.org>
27848         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
27849         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
27850         just include the system's header.
27852 2011-08-31  Jim Meyering  <meyering@redhat.com>
27854         tests: avoid spurious assertion failure in test-float.c on ppc64
27855         * tests/test-float.c (test_long_double): Comment out an assertion,
27856         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
27857         with gcc-4.4.4.
27859         maint: indent with spaces, not TABs
27860         I need to get in the habit of running gnulib's "make check".
27861         Both of these would have been caught.
27862         * m4/largefile.m4: Indent with spaces, not TABs.
27863         * lib/parse-datetime.y (iso_8601_time): Likewise.
27864         Spotted by Pádraig Brady.
27866         test-parse-datetime.c: accommodate a relatively strict gcc warning
27867         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
27868         to avoid a warning from gcc's -Werror=missing-declarations.
27869         Insert a few spaces-before-funcall-parenthesis.
27871 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
27873         parse-datetime: accept ISO 8601 date and time rep with "T" separator
27874         The parser now accepts ISO 8601 date-time strings with "T" as the
27875         separator.  It has long parsed dates like "2004-02-29 16:21:42"
27876         with a space between the date and time strings.  Now it also parses
27877         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
27878         variants like "2004-02-29T16:21:42.333-07:00"
27879         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
27880         of day representation using the 'T' separator character.
27881         * doc/parse-datetime.texi (General date syntax): replace use of
27882         deprecated --iso-8601 option with --rfc-3339 in example of date
27883         command output formats that can be parsed.
27884         * tests/test-parse-datetime.c (tm_diff): New function, taken from
27885         lib/parse-datetime.y.
27886         (gmt_offset): New function.
27887         (main): Add additional test cases to validate ISO8601 extended
27888         date and time of day parsing.
27890 2011-08-31  Bruno Haible  <bruno@clisp.org>
27892         freopen: Documentation.
27893         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
27894         name.
27895         Reported by Claudio Bley <claudio.bley@gmail.com>.
27897 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
27899         freopen: Don't crash if the filename argument is NULL.
27900         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
27901         NULL.
27903 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27905         openat: work around AIX 7.1 fstatat bug
27906         Problem reported by Kevin Brott for GNU tar, in the thread containing
27907         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
27908         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
27909         FSTATAT_ST_SIZE_ETC_BROKEN.
27910         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
27911         rpl_fstatat.
27912         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
27913         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
27914         AC_CHECK_FUNCS_ONCE for fstatat.
27915         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
27916         fchmodat, mkdirat, openat and unlinkat.
27918 2011-08-30  Bruno Haible  <bruno@clisp.org>
27920         Avoid endless recursions if config.h includes some header files.
27921         * lib/fopen.c (__need_FILE): Define already before including config.h.
27922         * lib/freopen.c (__need_FILE): Likewise.
27923         * lib/open.c (__need_system_fcntl_h): Likewise.
27924         * lib/stat.c (__need_system_sys_stat_h): Likewise.
27925         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
27926         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27928 2011-08-25  Karl Berry  <karl@gnu.org>
27930         * config/srclist.txt (ylwrap): new try.
27931         * build-aux/ylwrap: new file.
27933 2011-08-23  Bruno Haible  <bruno@clisp.org>
27935         tmpdir: Use a good default directory on native Windows.
27936         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
27937         (P_tmpdir): Default to _P_tmpdir on native Windows.
27938         (path_search): On native Windows, try the value returned by GetTempPath
27939         before trying P_tmpdir.
27940         * modules/tmpdir (Depends-on): Add pathmax.
27941         Suggested by John Darrington <john@darrington.wattle.id.au>.
27943 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
27945         doc: fix typo in README-release
27946         * top/README-release: Capitalize first word of a sentence.
27948 2011-08-19  Jim Meyering  <meyering@redhat.com>
27950         fts: do not exhaust memory when processing million-entry directories
27951         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
27952         directory would require about 256*N bytes of memory.  Thus, it was
27953         easy to construct a directory too large to be processed by any of
27954         those tools.  With this change, fts' maximum memory utilization is
27955         now limited to around 30MB.
27956         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
27957         (fts_read): When we've processed the final entry (i.e., when
27958         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
27959         using the parent entry to read any remaining entries.  Dispatch
27960         depending on what fts_build returns:
27961         - NULL+stop, aka failure: stop
27962         - NULL otherwise: move up in the dir hierarchy
27963         - non-NULL: handle this new entry
27964         (fts_build): Declare and use new local, continue_readdir.
27965         Prepare to be called from fts_read, when the entries
27966         from a partially-read directory have just been exhausted.
27967         In that case, we'll skip the opendir and instead use the parent's
27968         fts_dirp and derive dir_fd from that.
27969         Finally, in the readdir loop, if we read max_entries entries,
27970         exit the loop ensuring *not* to call closedir.  This is required
27971         so that fts_dirp can be reused on a subsequent call.
27972         Prompted by Ben England's report of memory exhaustion in find
27973         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
27975         maint: fts: move decl of `dp' down into while loop; split a long line
27976         * lib/fts.c (fts_build): No semantic change.
27978         fts: add/use new struct member, fts_dirp
27979         We are about to use this to manage any directory with
27980         too many entries to read all of them into memory at once.
27981         To do that, we'll need to save the DIR* pointer in each
27982         affected FTSENT struct.
27983         * lib/fts_.h: Include <dirent.h>.
27984         (struct FTSENT) [fts_dirp]: New member.
27985         * lib/fts.c (closedir_and_clear): Define.
27986         Use it in place of closedir so that we are sure to
27987         clear the new fts_dirp member when done with it.
27988         (fts_alloc): Initialize the new member.
27989         (fts_lfree): Free, if needed.
27991         maint: fts: give __opendir2 a new parameter and rename
27992         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
27993         than surreptitiously using sole caller's "dir_fd".
27994         (fts_opendir): Rename from __opendir2.
27996         maint: fts.c: remove __opendir2's now-unused parameter, oflag
27997         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
27999         maint: fts.c: correct off-by-one indentation
28000         * lib/fts.c (fts_build): Correct indentation, change style
28001         of a couple of block comments, and bracing style.
28003         maint: fts.c: move __opendir2 #define "up" out of function body
28004         * lib/fts.c (__opendir2): Move "up".  No semantic change.
28006         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
28007         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
28008         out for a long time and besides was useful only on BSD systems.
28010 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28012         regex: port to Stratus OpenVOS
28013         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
28014         define to empty, rather than attempting nonportable optimizations.
28015         Problem reported by Paul Green in:
28016         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
28017         and fix suggested by Eric Blake in:
28018         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
28020 2011-08-17  Eric Blake  <eblake@redhat.com>
28022         getcwd: fix test failures on mingw
28023         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
28024         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
28025         test if long directory cannot be created, and allow mingw errno.
28027         getcwd-lgpl: fix m4 to match relaxed test for BSD
28028         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
28029         (gl_FUNC_GETCWD_SIGNATURE): New macro.
28030         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
28031         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
28032         signature problem.
28034         getcwd: fix compilation on mingw64
28035         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
28036         getcwd.
28037         Reported by Marc-André Lureau.
28039         pipe2: silence compiler warning
28040         * lib/pipe2.c (pipe2): Hide label if it is not used.
28042 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
28044         relocatable-prog: fix link error
28045         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
28046         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
28047         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
28048         into modules/relocatable-lib without noticing that
28049         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
28050         also needs to build relocatable.c.
28052 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28054         getaddrinfo: fix sh typo in gai_strerrorA decl checking
28055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
28056         shell code: it contained a 'break' that was not in a loop.
28057         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
28058         via a shell-language loop; this may have been true in old Autoconf
28059         versions, but it's not true in Autoconf 2.68.  I found this bug
28060         when testing coreutils git on Solaris 8, whose shell complains
28061         about the syntax error.
28063 2011-08-12  Simon Josefsson  <simon@josefsson.org>
28065         * lib/base64.c: Fix comment to reference RFC 4648.
28066         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
28067         <gvtulder@gmail.com>.
28069 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28071         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
28073         po/Makefile.in.in: fix make -q problem
28074         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
28075         rule, since there's no file named 'check-macro-version' and its
28076         use as a file breaks make -q.
28077         (all): Don't depend on check-macro-version.
28078         (CHECK_MACRO_VERSION): New macro.
28079         (stamp-po): Use it.
28081         configmake: fix make -q problem
28082         * modules/configmake (configmake.h): Update configmake.h's time stamp
28083         even if the file does not change.  Otherwise, 'make -q' fails.
28084         Problem reported by Simon Josefsson in
28085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
28087 2011-08-11  Jim Meyering  <meyering@redhat.com>
28089         git-version-gen: correct the advice in a comment
28090         * build-aux/git-version-gen: Correct comment.
28091         Don't recommend to list .tarball-version in .gitignore.
28093 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28095         base64: fix off-by-one buffer size bug
28096         Problem and (trivial) fix reported by Gijs van Tulder in
28097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
28098         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
28099         * tests/test-base64.c (main): Catch the bug.
28101 2011-08-10  Eric Blake  <eblake@redhat.com>
28103         closein: correct comments
28104         * lib/closein.c (close_stdin): Improve comments.
28106 2011-08-09  Bruno Haible  <bruno@clisp.org>
28108         More tests for 'fseeko'.
28109         * tests/test-fseeko3.c: New file, from Eric Blake.
28110         * tests/test-fseeko3.sh: New file.
28111         * modules/fseeko-tests (Files): Add them.
28112         (TESTS): Add test-fseeko3.sh.
28113         (check_PROGRAMS): Add test-fseeko3.
28115 2011-08-09  Eric Blake  <eblake@redhat.com>
28117         fseeko: remove unneeded hack
28118         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
28120         fseeko: fix bug on glibc
28121         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
28122         Reported by John W. Eaton.
28124 2011-08-08  Bruno Haible  <bruno@clisp.org>
28126         unictype/base: Fix interoperability with preinstalled libunistring.
28127         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
28128         Reported by Simon Josefsson.
28130 2011-08-08  Bruno Haible  <bruno@clisp.org>
28132         iswblank: Detect declaration correctly.
28133         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
28134         AC_CHECK_DECLS invocation.
28136 2011-08-08  Bruno Haible  <bruno@clisp.org>
28138         tcgetsid: Detect declaration correctly.
28139         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
28140         AC_CHECK_DECLS invocation.
28141         Reported by Simon Josefsson.
28143 2011-08-08  Eric Blake  <eblake@redhat.com>
28145         largefile: fix typo that regressed large file support
28146         * modules/largefile (configure.ac-early): Fix section name.
28148 2011-08-06  Karl Berry  <karl@gnu.org>
28150         * MODULES.html.sh (func_all_files): _Noreturn is no longer
28151         a separate module.
28153 2011-08-05  Simon Josefsson  <simon@josefsson.org>
28155         openat: Fix warnings and commens when building unlinkat.c on Hurd.
28156         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
28157         get prototype for free.
28159 2011-08-04  Bruno Haible  <bruno@clisp.org>
28161         Tests for module 'pathmax'.
28162         * modules/pathmax-tests: New file.
28163         * tests/test-pathmax.c: New file.
28165         canonicalize-lgpl: Support larger filenames on the Hurd.
28166         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
28167         Reported by Paul Eggert.
28169         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
28170         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
28171         * lib/chdir-long.h: Include pathmax.h.
28172         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
28173         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
28174         (PATH_MAX): Remove code that is done by pathmax.h.
28175         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
28176         * lib/tmpfile.c: Add a comment.
28177         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
28178         * modules/chdir-long (Depends-on): Add pathmax.
28179         * modules/getcwd (Depends-on): Add pathmax.
28180         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
28181         is not defined.
28182         * doc/posix-headers/limits.texi: Mention the pathmax module.
28183         * NEWS: Mention the change.
28185 2011-08-02  Bruno Haible  <bruno@clisp.org>
28187         pthread_sigmask: Actually use results of gl_THREADLIB.
28188         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
28189         gl_THREADLIB, not gl_[]THREADLIB.
28190         Reported by Eric Blake.
28192 2011-08-02  Jim Meyering  <meyering@redhat.com>
28194         maint.mk: relax the default _gl_TS_function_match regexp
28195         * top/maint.mk (_gl_TS_function_match): Don't require at least one
28196         space between function name and "(" in an "extern" declaration.
28197         That would fail to match a decl with no space there: extern void foo();
28199 2011-07-31  Iain Nicol  <iain@thenicols.net>
28201         git-version-gen: document that EXTRA_DIST must include .version
28202         * build-aux/git-version-gen: In the how-to-use comment, document
28203         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
28204         will fail when run from an unpacked distribution tarball.
28206 2011-08-01  Bruno Haible  <bruno@clisp.org>
28208         wctype-h: Fix last change.
28209         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
28210         REPLACE_TOWLOWER to 0.
28211         Reported by Sam Steingold <sds@gnu.org>.
28213 2011-07-31  Bruno Haible  <bruno@clisp.org>
28215         frexpl: Update autoconf test.
28216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
28217         according to changes of 2011-06-20.
28219 2011-07-31  Bruno Haible  <bruno@clisp.org>
28221         sys_utsname: Add support for Minix.
28222         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
28223         <sys/utsname.h>.
28224         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28225         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
28227 2011-07-31  Bruno Haible  <bruno@clisp.org>
28229         strings: Add support for Minix.
28230         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
28231         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28232         * doc/posix-headers/strings.texi: Document the Minix problem.
28234 2011-07-31  Bruno Haible  <bruno@clisp.org>
28236         wctype-h: Add support for Minix.
28237         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
28238         REPLACE_TOWLOWER.
28239         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
28240         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
28241         REPLACE_ISWCNTRL.
28243 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
28245         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
28246         This is a performance improvement for 64-bit hosts: it causes the
28247         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
28249 2011-07-31  Bruno Haible  <bruno@clisp.org>
28251         stdioext: Add support for Minix.
28252         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
28253         * lib/fpurge.c (fpurge): Likewise.
28254         * lib/freadahead.c (freadahead): Likewise.
28255         * lib/freadable.c (freadable): Likewise.
28256         * lib/freading.c (freading): Likewise.
28257         * lib/freadptr.c (freadptr): Likewise.
28258         * lib/freadseek.c (freadptrinc): Likewise.
28259         * lib/fseeko.c (rpl_fseeko): Likewise.
28260         * lib/fseterr.c (fseterr): Likewise.
28261         * lib/fwritable.c (fwritable): Likewise.
28262         * lib/fwriting.c (fwriting): Likewise.
28263         * lib/fflush.c (clear_ungetc_buffer): Update comment.
28264         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
28266 2011-07-31  Bruno Haible  <bruno@clisp.org>
28268         errno: Port to Minix.
28269         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
28270         ECONNABORTED are defined.
28271         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
28272         GNULIB_defined_ECONNABORTED): New macros.
28273         * lib/strerror-override.h (strerror_override): Test also
28274         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
28275         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
28276         ECONNABORTED.
28277         * doc/posix-headers/errno.texi: Mention the Minix problem.
28279 2011-07-31  Bruno Haible  <bruno@clisp.org>
28281         Work around declaration collisions on Minix.
28282         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
28283         defined, set REPLACE_MBSINIT.
28284         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
28285         defined, set REPLACE_MBRTOWC.
28286         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
28287         set REPLACE_MBRLEN.
28288         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
28289         defined, set REPLACE_MBSRTOWCS.
28290         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
28291         defined, set REPLACE_WCRTOMB.
28292         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
28293         defined, set REPLACE_WCSRTOMBS.
28295 2011-07-31  Bruno Haible  <bruno@clisp.org>
28297         Add support for Minix with ACK compiler.
28298         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
28299         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
28300         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
28302 2011-07-31  Bruno Haible  <bruno@clisp.org>
28304         Documentation about Minix.
28305         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
28306         * doc/glibc-headers/*.texi: Likewise.
28307         * doc/posix-functions/*.texi: Likewise.
28308         * doc/glibc-functions/*.texi: Likewise.
28310 2011-07-31  Bruno Haible  <bruno@clisp.org>
28312         snippet/warn-on-use: Fix indentation.
28313         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
28315 2011-07-25  Jim Meyering  <meyering@redhat.com>
28317         tests: test-update-copyright.sh: remove unnecessary "rm" commands
28318         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
28319         commands.
28321 2011-07-27  Jim Meyering  <meyering@redhat.com>
28323         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
28324         * top/maint.mk (gl_extract_significant_defines_): Now that
28325         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
28326         gnulib/lib/signal.in.h, and now that we recommend to
28327         define-if-undefined those two symbols in application code,
28328         we must filter them out of the "significant" list.
28329         This avoids a "make syntax-check" failure in coreutils.
28331 2011-07-26  Eric Blake  <eblake@redhat.com>
28333         warnings: add comments about previous patch
28334         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
28335         * m4/include_next.m4: Likewise.
28336         * m4/warn-on-use.m4: Likewise.
28337         * m4/warnings.m4: Likewise, and simplify use.
28338         Suggested by Stefano Lattarini.
28340         include-next, warnings: support older autoconf
28341         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
28342         AS_VAR_PUSHDEF in a way that works with older autoconf.
28343         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
28344         Reported by Daniel P. Berrange.
28346 2011-07-25  Bruno Haible  <bruno@clisp.org>
28348         fseek, ftell: Fix doc.
28349         * doc/posix-functions/fseek.texi: Reword statement about
28350         AC_SYS_LARGEFILE.
28351         * doc/posix-functions/ftell.texi: Likewise.
28353 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28354             Bruno Haible  <bruno@clisp.org>
28356         Add dependencies to the 'largefile' module.
28357         * modules/fopen (Depends-on): Add 'largefile'.
28358         * modules/freopen (Depends-on): Likewise.
28359         * modules/fseeko (Depends-on): Likewise.
28360         * modules/ftello (Depends-on): Likewise.
28361         * modules/glob (Depends-on): Likewise.
28362         * modules/lseek (Depends-on): Likewise.
28363         * modules/lstat (Depends-on): Likewise.
28364         * modules/mkostemp (Depends-on): Likewise.
28365         * modules/mkostemps (Depends-on): Likewise.
28366         * modules/mkstemp (Depends-on): Likewise.
28367         * modules/mkstemps (Depends-on): Likewise.
28368         * modules/open (Depends-on): Likewise.
28369         * modules/openat (Depends-on): Likewise.
28370         * modules/pread (Depends-on): Likewise.
28371         * modules/pwrite (Depends-on): Likewise.
28372         * modules/scandir (Depends-on): Likewise.
28373         * modules/stat (Depends-on): Likewise.
28374         * modules/tmpfile (Depends-on): Likewise.
28375         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
28376         since the containing module now depends on the largefile module.
28377         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
28378         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
28379         off_t is fixed by gnulib.
28380         * doc/posix-functions/freopen.texi: Likewise.
28381         * doc/posix-functions/fseeko.texi: Likewise.
28382         * doc/posix-functions/fstatat.texi: Likewise.
28383         * doc/posix-functions/ftello.texi: Likewise.
28384         * doc/posix-functions/glob.texi: Likewise.
28385         * doc/posix-functions/lseek.texi: Likewise.
28386         * doc/posix-functions/lstat.texi: Likewise.
28387         * doc/posix-functions/mkstemp.texi: Likewise.
28388         * doc/posix-functions/open.texi: Likewise.
28389         * doc/posix-functions/openat.texi: Likewise.
28390         * doc/posix-functions/pread.texi: Likewise.
28391         * doc/posix-functions/pwrite.texi: Likewise.
28392         * doc/posix-functions/scandir.texi: Likewise.
28393         * doc/posix-functions/stat.texi: Likewise.
28394         * doc/posix-functions/tmpfile.texi: Likewise.
28395         * doc/glibc-functions/mkostemp.texi: Likewise.
28396         * doc/glibc-functions/mkostemps.texi: Likewise.
28397         * doc/glibc-functions/mkstemps.texi: Likewise.
28399 2011-07-25  Bruno Haible  <bruno@clisp.org>
28401         fcntl: Move AC_LIBOBJ invocation to module description.
28402         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
28403         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
28405         fcntl: Remove call-in from fchdir.m4.
28406         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
28407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
28409         dup3: Remove potential call-in from fchdir.m4.
28410         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
28411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
28413         dup2: Move AC_LIBOBJ invocation to module description.
28414         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
28415         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
28416         Don't invoke AC_LIBOBJ.
28417         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
28419         dup2: Remove call-in from fchdir.m4.
28420         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
28421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
28423         fclose: Move AC_LIBOBJ invocation to module description.
28424         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
28425         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
28426         to 1.
28427         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
28429         fclose: Remove call-in from close.m4.
28430         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
28431         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
28433         close: Move AC_LIBOBJ invocation to module description.
28434         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
28435         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
28436         1.
28437         * modules/close (configure.ac): Invoke AC_LIBOBJ.
28439         close: Remove call-in from fchdir.m4.
28440         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
28441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
28443         open: Move AC_LIBOBJ invocation to module description.
28444         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
28445         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
28446         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
28448         open: Remove call-in from fchdir.m4.
28449         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
28450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
28452         fchdir: Start to remove gl_REPLACE_* idiom.
28453         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
28454         (gl_FUNC_FCHDIR): Invoke it.
28456 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28458         * lib/ftell.c (ftell): Comment out cast.
28460         close: use gl_REPLACE_FCLOSE only if defined
28461         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
28462         is defined.  The close module doesn't depend on the fclose module
28463         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
28464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
28465         I reproduced the problem with "./gnulib-tool --test close sys_socket".
28467 2011-07-24  Jim Meyering  <meyering@redhat.com>
28469         test-select.h: avoid warning when using gcc's -Wmissing-declarations
28470         * tests/test-select.h (test_function): Declare as "static".
28472 2011-07-24  Bruno Haible  <bruno@clisp.org>
28474         doc: Mention the effects of AC_SYS_LARGEFILE.
28475         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
28476         on this function.
28477         * doc/posix-functions/aio_error.texi: Likewise.
28478         * doc/posix-functions/aio_fsync.texi: Likewise.
28479         * doc/posix-functions/aio_read.texi: Likewise.
28480         * doc/posix-functions/aio_return.texi: Likewise.
28481         * doc/posix-functions/aio_suspend.texi: Likewise.
28482         * doc/posix-functions/aio_write.texi: Likewise.
28483         * doc/posix-functions/fgetpos.texi: Likewise.
28484         * doc/posix-functions/fopen.texi: Likewise.
28485         * doc/posix-functions/freopen.texi: Likewise.
28486         * doc/posix-functions/fsetpos.texi: Likewise.
28487         * doc/posix-functions/fstatvfs.texi: Likewise.
28488         * doc/posix-functions/ftruncate.texi: Likewise.
28489         * doc/posix-functions/ftw.texi: Likewise.
28490         * doc/posix-functions/getrlimit.texi: Likewise.
28491         * doc/posix-functions/glob.texi: Likewise.
28492         * doc/posix-functions/lio_listio.texi: Likewise.
28493         * doc/posix-functions/lockf.texi: Likewise.
28494         * doc/posix-functions/mkstemp.texi: Likewise.
28495         * doc/posix-functions/mmap.texi: Likewise.
28496         * doc/posix-functions/nftw.texi: Likewise.
28497         * doc/posix-functions/openat.texi: Likewise.
28498         * doc/posix-functions/opendir.texi: Likewise.
28499         * doc/posix-functions/posix_fadvise.texi: Likewise.
28500         * doc/posix-functions/posix_fallocate.texi: Likewise.
28501         * doc/posix-functions/pread.texi: Likewise.
28502         * doc/posix-functions/pwrite.texi: Likewise.
28503         * doc/posix-functions/readdir.texi: Likewise.
28504         * doc/posix-functions/readdir_r.texi: Likewise.
28505         * doc/posix-functions/rewinddir.texi: Likewise.
28506         * doc/posix-functions/scandir.texi: Likewise.
28507         * doc/posix-functions/seekdir.texi: Likewise.
28508         * doc/posix-functions/setrlimit.texi: Likewise.
28509         * doc/posix-functions/statvfs.texi: Likewise.
28510         * doc/posix-functions/telldir.texi: Likewise.
28511         * doc/posix-functions/tmpfile.texi: Likewise.
28512         * doc/posix-functions/truncate.texi: Likewise.
28513         * doc/glibc-functions/fallocate.texi: Likewise.
28514         * doc/glibc-functions/fstatfs.texi: Likewise.
28515         * doc/glibc-functions/fts_children.texi: Likewise.
28516         * doc/glibc-functions/fts_read.texi: Likewise.
28517         * doc/glibc-functions/getdirentries.texi: Likewise.
28518         * doc/glibc-functions/mkostemp.texi: Likewise.
28519         * doc/glibc-functions/mkostemps.texi: Likewise.
28520         * doc/glibc-functions/mkstemps.texi: Likewise.
28521         * doc/glibc-functions/preadv.texi: Likewise.
28522         * doc/glibc-functions/pwritev.texi: Likewise.
28523         * doc/glibc-functions/sendfile.texi: Likewise.
28524         * doc/glibc-functions/statfs.texi: Likewise.
28526 2011-07-24  Bruno Haible  <bruno@clisp.org>
28528         doc: Fix typo.
28529         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
28531 2011-07-24  Bruno Haible  <bruno@clisp.org>
28533         doc: Mention fsusage.
28534         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
28536 2011-07-24  Bruno Haible  <bruno@clisp.org>
28538         doc: Mention new glibc headers and functions.
28539         * doc/glibc-headers/gshadow.texi: New file.
28540         * doc/glibc-functions/endsgent.texi: New file.
28541         * doc/glibc-functions/fgetsgent.texi: New file.
28542         * doc/glibc-functions/fgetsgent_r.texi: New file.
28543         * doc/glibc-functions/getsgent.texi: New file.
28544         * doc/glibc-functions/getsgent_r.texi: New file.
28545         * doc/glibc-functions/getsgnam.texi: New file.
28546         * doc/glibc-functions/getsgnam_r.texi: New file.
28547         * doc/glibc-functions/putsgent.texi: New file.
28548         * doc/glibc-functions/setsgent.texi: New file.
28549         * doc/glibc-functions/sgetsgent.texi: New file.
28550         * doc/glibc-functions/sgetsgent_r.texi: New file.
28551         * doc/glibc-functions/malloc_info.texi: New file.
28552         * doc/glibc-functions/preadv.texi: New file.
28553         * doc/glibc-functions/pwritev.texi: New file.
28554         * doc/glibc-functions/register_printf_modifier.texi: New file.
28555         * doc/glibc-functions/register_printf_specifier.texi: New file.
28556         * doc/glibc-functions/register_printf_type.texi: New file.
28557         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
28558         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
28559         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
28560         * doc/glibc-functions/pthread_getname_np.texi: New file.
28561         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
28562         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
28563         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
28564         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
28565         * doc/glibc-functions/pthread_setname_np.texi: New file.
28566         * doc/glibc-functions/pthread_sigqueue.texi: New file.
28567         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
28568         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
28569         * doc/glibc-functions/qsort_r.texi: New file.
28570         * doc/glibc-functions/quick_exit.texi: New file.
28571         * doc/glibc-functions/syncfs.texi: New file.
28572         * doc/gnulib.texi: Include them.
28573         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
28574         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
28575         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
28576         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
28577         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
28578         * doc/glibc-functions/execvpe.texi: Likewise.
28580 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
28582         ftell: don't include <unistd.h>
28583         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
28584         guaranteed to define off_t, and the ftell module depends on the
28585         stdio module.
28587         ftell: do not assume wraparound signed arithmetic
28588         * lib/ftell.c: Include <limits.h>.
28589         (ftell): Don't assume wraparound signed arithmetic.
28591 2011-07-24  Bruno Haible  <bruno@clisp.org>
28593         close: No longer depend on module 'fclose'.
28594         * modules/close (Depends-on): Remove fclose.
28595         * NEWS: Mention the change.
28596         Suggested by Sam Steingold <sds@gnu.org>.
28598 2011-07-24  Bruno Haible  <bruno@clisp.org>
28600         fsusage: Enable large volume support on AIX >= 5.2.
28601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
28602         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
28603         instead of STAT_STATVFS.
28604         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
28606         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
28607         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
28608         f_blocks field only on MacOS X.
28610         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
28611         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
28612         * modules/fsusage (Depends-on): Add largefile.
28614 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
28616         * README: Modernize discussion of signed integers.
28617         Assuming overflow wraparound is no longer safe.
28618         Mention ones' complement and signed magnitude.
28620 2011-07-22  Bruno Haible  <bruno@clisp.org>
28622         select tests, pselect tests: Refactor.
28623         * tests/test-select.h: New file, extracted from tests/test-select.c.
28624         (select_fn): New type.
28625         (test, do_select, do_select_nowait, do_select_wait, test_tty,
28626         test_connect_first, test_accept_first, test_pair, test_socket_pair,
28627         test_pipe): Add my_select argument.
28628         (test_function): Renamed from main. Add my_select argument.
28629         * tests/test-select.c: Move most code to tests/test-select.h. Include
28630         test-select.h.
28631         * modules/select-tests (Files): Add tests/test-select.h.
28632         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
28633         (my_select, main): New functions.
28634         * modules/pselect-tests (Files): Add tests/test-select.h,
28635         tests/macros.h, tests/signature.h.
28636         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
28637         (configure.ac): Check for <sys/wait.h>.
28639 2011-07-22  Bruno Haible  <bruno@clisp.org>
28641         sys_select tests: Check the signature of FD_*.
28642         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
28643         signature tests from here...
28644         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
28645         here.
28646         * modules/sys_select-tests (Files): Add tests/signature.h.
28648 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
28650         largefile: new module, replacing large-inode
28651         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
28652         * MODULES.html.sh: Add largefile, remove large-inode.
28653         * modules/largefile, m4/largefile.m4: New files.
28654         * modules/large-inode, m4/large-inode.m4: Remove.
28656         fsusage: port to MacOS X 10.7 with 4 TiB file systems
28657         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
28658         implementations that use only 32 bits to count blocks.
28659         On typical hosts with 1024-byte blocks, this fails with file
28660         systems as small as 4 TiB.  Problem reported by Herb Wartens
28661         <http://debbugs.gnu.org/9140> and this should also fix a similar
28662         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
28664         large-inode: New module
28665         * MODULES.html.sh: Add it.
28666         * modules/large-inode, m4/large-inode.m4: New files.
28668         extensions: Enable extensions on MacOS X 10.5 and later.
28669         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
28671 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
28673         file-has-acl: use acl_extended_file_nofollow if available
28674         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
28675         (acl_extended_file): New macro.
28676         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
28677         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
28679 2011-07-21  Bruno Haible  <bruno@clisp.org>
28681         Declare system functions in a way that works with C++.
28682         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
28683         declare fdopendir as extern "C".
28684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
28685         declare frexpl as extern "C".
28686         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
28687         declare gai_strerror as extern "C".
28688         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
28689         programs, declare gai_strerror as extern "C".
28690         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
28691         declare getlogin_r as extern "C".
28692         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
28693         as extern "C".
28694         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
28695         declare ldexpl as extern "C".
28696         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
28697         as extern "C".
28698         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
28699         program, declare getmntinfo as extern "C".
28700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
28701         stpncpy as extern "C".
28702         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
28703         program, declare __xpg_strerror_r as extern "C".
28704         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
28705         strndup as extern "C".
28706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
28707         declare memset and bzero as extern "C".
28708         Reported by Sam Steingold <sds@gnu.org>.
28710 2011-07-12  Jim Meyering  <meyering@redhat.com>
28712         maint.mk: prohibit inclusion of "verify.h" without use
28713         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
28715 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28717         timer-time: A new module to check for timer_settime()
28718         * m4/timer_time.m4: Check for the posix function.
28719         * modules/timer-time: Add the new module.
28720         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
28721         Mention it.
28723 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
28724             Bruno Haible  <bruno@clisp.org>
28726         pthread_sigmask: assume POSIX threads if --avoid=threadlib
28727         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
28728         not defined, assume POSIX threads and look for pthread_sigmask in
28729         $LIBS, without changing $CPPFLAGS.
28731 2011-07-19  Bruno Haible  <bruno@clisp.org>
28733         strstr: Update cross-compilation guess.
28734         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
28735         CPUs, guess no, in view of glibc
28736         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
28737         Suggested by Eric Blake. Reported by Reuben Thomas.
28739 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28741         getopt-gnu: suppress core dumps from detection code
28742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
28743         to suppress core dumps that may well occur on glibc systems.
28744         * modules/getopt-gnu: Depend on nocrash.
28746 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
28748         pthread_sigmask: ensure usleep is declared
28749         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
28750         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
28752 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28754         doc: Document NonStop portability issues.
28755         * doc/posix-functions/sigaction.texi (sigaction):
28756         * doc/posix-headers/signal.texi (signal.h):
28757         Document NonStop.  See Joachim Schmitz in
28758         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
28760 2011-07-15  Bruno Haible  <bruno@clisp.org>
28762         ffsl, ffsll: Avoid unportable behaviour.
28763         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
28765 2011-07-15  Bruno Haible  <bruno@clisp.org>
28767         ffs: More tests.
28768         * tests/test-ffs.c (NBITS): New macro.
28769         (main): Add more tests.
28770         * tests/test-ffsl.c (NBITS): New macro.
28771         (main): Add more tests.
28772         * tests/test-ffsll.c (NBITS): New macro.
28773         (main): Add more tests.
28775 2011-07-15  Eric Blake  <eblake@redhat.com>
28777         ffsl, ffsll: new modules
28778         * modules/ffsl: New file.
28779         * modules/ffsll: Likewise.
28780         * m4/ffsl.m4: Likewise.
28781         * m4/ffsll.m4: Likewise.
28782         * lib/ffsl.c: Likewise.
28783         * lib/ffsl.h: Likewise.
28784         * lib/ffsll.c: Likewise.
28785         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
28786         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
28787         * modules/string (Makefile.am): Substitute witnesses.
28788         * lib/strings.in.h (ffsl, ffsll): Declare.
28789         * modules/ffsl-tests: New test file.
28790         * modules/ffsll-tests: Likewise.
28791         * tests/test-ffsl.c: Likewise.
28792         * tests/test-ffsll.c: Likewise.
28793         * MODULES.html.sh (Integer arithmetic functions): Mention it.
28794         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
28795         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
28797         ffs: fix m4 prerequisite
28798         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
28800         ffs: avoid undefined behavior
28801         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
28802         * tests/test-ffs.c (naive, main): Avoid signed shifts.
28803         Reported by Bruno Haible.
28805 2011-07-12  Bruno Haible  <bruno@clisp.org>
28807         pthread_sigmask: Rely on module 'threadlib'.
28808         * modules/pthread_sigmask (Depends-on): Add threadlib.
28809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
28810         is defined.
28812 2011-07-12  Bruno Haible  <bruno@clisp.org>
28814         regex: Depend on module 'strcase'.
28815         * modules/regex (Depends-on): Add strcase, for strcasecmp().
28817 2011-07-12  Jim Meyering  <meyering@redhat.com>
28819         warn-on-use: fix typo in file name
28820         * modules/snippet/warn-on-use (Files): Correct file name:
28821         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
28823 2011-07-12  Bruno Haible  <bruno@clisp.org>
28825         strings: Document module.
28826         * doc/posix-headers/strings.texi: Mention module 'strings'.
28828 2011-07-12  Bruno Haible  <bruno@clisp.org>
28830         Rename module '_Noreturn' to 'snippet/_Noreturn'.
28831         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
28832         (Files, Makefile.am): Update.
28833         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
28834         * modules/stdlib (Depends-on): Update.
28836 2011-07-12  Bruno Haible  <bruno@clisp.org>
28838         * NEWS: Mention the changes.
28840         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
28841         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
28842         (Files, Makefile.am): Update.
28843         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
28844         * modules/arpa_inet (Depends-on): Update.
28845         * modules/ctype (Depends-on): Update.
28846         * modules/dirent (Depends-on): Update.
28847         * modules/fcntl-h (Depends-on): Update.
28848         * modules/glob (Depends-on): Update.
28849         * modules/iconv-h (Depends-on): Update.
28850         * modules/inttypes-incomplete (Depends-on): Update.
28851         * modules/langinfo (Depends-on): Update.
28852         * modules/locale (Depends-on): Update.
28853         * modules/math (Depends-on): Update.
28854         * modules/netdb (Depends-on): Update.
28855         * modules/poll-h (Depends-on): Update.
28856         * modules/pty (Depends-on): Update.
28857         * modules/search (Depends-on): Update.
28858         * modules/signal (Depends-on): Update.
28859         * modules/spawn (Depends-on): Update.
28860         * modules/stdio (Depends-on): Update.
28861         * modules/stdlib (Depends-on): Update.
28862         * modules/string (Depends-on): Update.
28863         * modules/strings (Depends-on): Update.
28864         * modules/sys_file (Depends-on): Update.
28865         * modules/sys_ioctl (Depends-on): Update.
28866         * modules/sys_select (Depends-on): Update.
28867         * modules/sys_socket (Depends-on): Update.
28868         * modules/sys_stat (Depends-on): Update.
28869         * modules/sys_time (Depends-on): Update.
28870         * modules/sys_times (Depends-on): Update.
28871         * modules/sys_utsname (Depends-on): Update.
28872         * modules/sys_wait (Depends-on): Update.
28873         * modules/termios (Depends-on): Update.
28874         * modules/time (Depends-on): Update.
28875         * modules/unistd (Depends-on): Update.
28876         * modules/wchar (Depends-on): Update.
28877         * modules/wctype-h (Depends-on): Update.
28878         * MODULES.html.sh (Support for building libraries and executables):
28879         Update.
28881         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
28882         * modules/snippet/unused-parameter: Renamed from
28883         modules/unused-parameter.
28884         (Files, Makefile.am): Update.
28885         * build-aux/snippet/unused-parameter.h: Renamed from
28886         build-aux/unused-parameter.h.
28887         * modules/selinux-h (Depends-on): Update.
28888         * modules/unistr/base (Depends-on): Update.
28889         * MODULES.html.sh (Core language properties): Update.
28891         Rename module 'link-warning' to 'snippet/link-warning'.
28892         * modules/snippet/link-warning: Renamed from modules/link-warning.
28893         (Files, Makefile.am): Update.
28894         * build-aux/snippet/link-warning.h: Renamed from
28895         build-aux/link-warning.h.
28896         * MODULES.html.sh (Support for building libraries and executables):
28897         Update.
28899         Rename module 'c++defs' to 'snippet/c++defs'.
28900         * modules/snippet/c++defs: Renamed from modules/c++defs.
28901         (Files, Makefile.am): Update.
28902         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
28903         * modules/arpa_inet (Depends-on): Update.
28904         * modules/ctype (Depends-on): Update.
28905         * modules/dirent (Depends-on): Update.
28906         * modules/fcntl-h (Depends-on): Update.
28907         * modules/glob (Depends-on): Update.
28908         * modules/iconv-h (Depends-on): Update.
28909         * modules/langinfo (Depends-on): Update.
28910         * modules/locale (Depends-on): Update.
28911         * modules/math (Depends-on): Update.
28912         * modules/netdb (Depends-on): Update.
28913         * modules/poll-h (Depends-on): Update.
28914         * modules/pty (Depends-on): Update.
28915         * modules/search (Depends-on): Update.
28916         * modules/signal (Depends-on): Update.
28917         * modules/spawn (Depends-on): Update.
28918         * modules/stdio (Depends-on): Update.
28919         * modules/stdlib (Depends-on): Update.
28920         * modules/string (Depends-on): Update.
28921         * modules/strings (Depends-on): Update.
28922         * modules/sys_ioctl (Depends-on): Update.
28923         * modules/sys_select (Depends-on): Update.
28924         * modules/sys_socket (Depends-on): Update.
28925         * modules/sys_stat (Depends-on): Update.
28926         * modules/sys_time (Depends-on): Update.
28927         * modules/sys_wait (Depends-on): Update.
28928         * modules/termios (Depends-on): Update.
28929         * modules/time (Depends-on): Update.
28930         * modules/unistd (Depends-on): Update.
28931         * modules/wchar (Depends-on): Update.
28932         * modules/wctype-h (Depends-on): Update.
28934         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
28935         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
28936         (Files, Makefile.am): Update.
28937         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
28938         * modules/argv-iter (Depends-on): Update.
28939         * modules/arpa_inet (Depends-on): Update.
28940         * modules/dirent (Depends-on): Update.
28941         * modules/fcntl-h (Depends-on): Update.
28942         * modules/fnmatch (Depends-on): Update.
28943         * modules/getopt-posix (Depends-on): Update.
28944         * modules/glob (Depends-on): Update.
28945         * modules/iconv-h (Depends-on): Update.
28946         * modules/inttypes-incomplete (Depends-on): Update.
28947         * modules/locale (Depends-on): Update.
28948         * modules/math (Depends-on): Update.
28949         * modules/netdb (Depends-on): Update.
28950         * modules/search (Depends-on): Update.
28951         * modules/signal (Depends-on): Update.
28952         * modules/spawn (Depends-on): Update.
28953         * modules/stdio (Depends-on): Update.
28954         * modules/stdlib (Depends-on): Update.
28955         * modules/string (Depends-on): Update.
28956         * modules/strings (Depends-on): Update.
28957         * modules/sys_socket (Depends-on): Update.
28958         * modules/sys_stat (Depends-on): Update.
28959         * modules/sys_time (Depends-on): Update.
28960         * modules/sys_times (Depends-on): Update.
28961         * modules/sys_utsname (Depends-on): Update.
28962         * modules/time (Depends-on): Update.
28963         * modules/unistd (Depends-on): Update.
28964         * modules/wchar (Depends-on): Update.
28965         * MODULES.html.sh (Support for building libraries and executables):
28966         Update.
28968 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
28970         Improvements on _Noreturn and related modules.
28972         modules/_Exit-tests: test _Noreturn too
28973         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
28974         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
28975         (main): Use them.
28977         stdnoreturn, stdnoreturn-tests: remove modules
28978         They're not needed here and a bit premature for use elsewhere.  See
28979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
28980         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
28981         * tests/test-stdnoreturn.c: Remove files.
28982         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
28983         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
28984         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
28985         and using noreturn.
28986         * modules/openat, modules/sigpipe-die, modules/xalloc:
28987         * modules/xmemdup0, modules/xstrtol:
28988         Remove dependency on stdnoreturn.
28990         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
28991         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
28992         Reparenthesize to avoid GCC warning.
28993         Support Microsoft's syntax.
28994         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
28996         _Noreturn-tests: remove module
28997         * modules/_Noreturn-tests: Remove.
28998         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
28999         * tests/test-_Noreturn.c: Remove.
29000         * tests/test-stdnoreturn.c: Merge from the old
29001         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
29003 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
29005         _Noreturn, stdnoreturn, and related modules.
29007         * top/maint.mk: Adjust to new noreturn support.
29008         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
29009         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
29011         xalloc: use stdnoreturn.h
29012         * lib/xalloc.h: Include <stdnoreturn.h>.
29013         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29014         * modules/xalloc (Depends-on): Add stdnoreturn.
29016         xstrtol: use stdnoreturn.h
29017         * lib/xstrtol.h: Include <stdnoreturn.h>.
29018         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29019         * modules/xstrtol (Depends-on): Add stdnoreturn.
29021         xmemdup0: use stdnoreturn.h
29022         * lib/xmemdup0.h: Include <stdnoreturn.h>.
29023         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29024         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
29026         sigpipe-die: use stdnoreturn.h
29027         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
29028         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29029         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
29031         openat: use stdnoreturn.h
29032         * lib/openat.h: Include <stdnoreturn.h>.
29033         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29034         * modules/openat (Depends-on): Add stdnoreturn.
29036         * lib/openat-die.c (openat_save_fail): Modernize comment.
29038         * lib/xalloc-die.c (xalloc_die): Modernize comment.
29040         * lib/glthread/thread.h: Modernize comment.
29042         obstack: use _Noreturn
29043         * lib/obstack.c (__attribute__): Remove macro.
29044         (print_and_abort): Use _Noreturn.
29046         c-stack: use _Noreturn
29047         * lib/c-stack.c (die, overflow_handler, segv_handler):
29048         Use _Noreturn rather than __attribute__((noreturn)).
29050         argmatch-tests, exclude_tests: use _Noreturn
29051         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
29052         Remove.
29053         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
29055         stdlib: use _Noreturn
29056         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
29057         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
29058         * modules/stdlib (Depends-on): Add _Noreturn.
29059         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
29061         stdnoreturn-tests: new module
29062         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
29064         stdnoreturn: new module
29065         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
29066         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
29068         _Noreturn-tests: new module
29069         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
29071         _Noreturn: new module
29072         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
29073         New section, mentioning it.
29074         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
29076         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
29078 2011-07-11  Eric Blake  <eblake@redhat.com>
29080         ffs: new module
29081         * modules/ffs: New file.
29082         * m4/ffs.m4: Likewise.
29083         * lib/ffs.c: Likewise.
29084         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
29085         * modules/strings (Makefile.am): Substitute witness.
29086         (Depends-on): Add c++defs.
29087         * lib/strings.in.h (ffs): Declare.
29088         * modules/ffs-tests: New test file.
29089         * tests/test-ffs.c: Test new module.
29090         * MODULES.html.sh (Integer arithmetic functions): Mention it.
29091         * doc/posix-functions/ffs.texi (ffs): Likewise.
29093         regex: avoid compiler warning
29094         * lib/regex.c (includes): Include <strings.h>, for use of
29095         strcasecmp in regcomp.c.
29096         Reported by Joachim Schmitz.
29098 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29100         stdint: respect system's intmax_t if INTMAX_MAX
29101         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
29102         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
29103         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
29104         long but int64_t is long long, and where we will clash with the
29105         system intmax_t if we override it.  See
29106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
29107         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
29108         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
29109         similarly for UINTMAX_C.
29111 2011-07-08  Bruno Haible  <bruno@clisp.org>
29113         pthread_sigmask tests: Avoid a compiler warning.
29114         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
29115         non-zero.
29117         sigprocmask tests: A better way to avoid a compiler warning.
29118         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
29119         (main): Complain if system() returns non-zero.
29120         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
29122 2011-07-08  Bruno Haible  <bruno@clisp.org>
29124         pthread_sigmask: Work around IRIX bug.
29125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
29126         bug.
29127         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
29128         there may be unblocked pending signals.
29129         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
29131 2011-07-08  Bruno Haible  <bruno@clisp.org>
29133         pthread_sigmask: Work around Cygwin bug.
29134         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
29135         bug.
29136         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
29137         the system's pthread_sigmask function.
29138         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
29140 2011-07-08  Bruno Haible  <bruno@clisp.org>
29142         pthread_sigmask: Work around bug in single-threaded implementation.
29143         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
29144         FreeBSD, HP-UX, Solaris bug.
29145         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
29146         * lib/pthread_sigmask.c: Include <stddef.h>.
29147         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
29148         the system's pthread_sigmask function.
29149         * modules/pthread_sigmask (configure.ac): Invoke
29150         gl_PREREQ_PTHREAD_SIGMASK.
29151         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
29152         HP-UX, Solaris.
29154 2011-07-08  Eric Blake  <eblake@redhat.com>
29156         test-sigprocmask: avoid compiler warning
29157         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
29158         * tests/test-sigprocmask.c (main): Use it to silence warning.
29159         Reported by Jim Meyering.
29161         test-snprintf: avoid compiler warning
29162         * tests/test-snprintf.c (main): Avoid shadowed declaration.
29163         * tests/test-vsnprintf.c (main): Likewise.
29164         Reported by Jim Meyering.
29166 2011-07-08  Bruno Haible  <bruno@clisp.org>
29168         Tests for module 'pthread_sigmask'.
29169         * modules/pthread_sigmask-tests: New file.
29170         * tests/test-pthread_sigmask1.c: New file, based on
29171         tests/test-sigprocmask.c.
29172         * tests/test-pthread_sigmask2.c: New file.
29174 2011-07-08  Jim Meyering  <meyering@redhat.com>
29176         test-getopt.h: avoid warning about an unused variable
29177         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
29179 2011-07-07  Jim Meyering  <meyering@redhat.com>
29181         maint: reduce list of files exempt from sc_prohibit_leading_TABs
29182         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
29183         now that it no longer contains leading TABs.
29184         Remove unused "url=FIXME" statement.
29186 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29188         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
29189         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29190         When gl_THREADLIB is not in use, assume that the POSIX sematics
29191         are desired.  This is better for Emacs, which uses POSIX semantics
29192         on GNUish and/or POSIXish platforms, and does not use threads at
29193         all otherwise.
29195         pthread_sigmask: fix typo when testing for libraries
29196         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29197         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
29199 2011-07-08  Eric Blake  <eblake@redhat.com>
29201         fts: introduce FTS_NOATIME
29202         * lib/fts_.h (FTS_NOATIME): New bit flag.
29203         (FTS_OPTIONMASK): Adjust.
29204         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
29205         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
29207 2011-07-08  Bruno Haible  <bruno@clisp.org>
29209         Tests for module 'thread'.
29210         * modules/thread-tests: New file.
29211         * tests/test-thread_self.c: New file.
29212         * tests/test-thread_create.cc: New file.
29214 2011-07-08  Bruno Haible  <bruno@clisp.org>
29216         thread: Avoid gcc warnings when using gl_thread_self().
29217         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
29218         'void *'.
29219         (gl_thread_self_pointer): Update.
29221 2011-07-07  Bruno Haible  <bruno@clisp.org>
29223         signal-c++-tests: Check declaration of pthread_sigmask.
29224         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
29225         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
29226         $(LIB_PTHREAD_SIGMASK).
29228 2011-07-07  Bruno Haible  <bruno@clisp.org>
29230         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
29231         * lib/signal.in.h (pthread_sigmask): Override if
29232         REPLACE_PTHREAD_SIGMASK is 1.
29233         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29234         REPLACE_PTHREAD_SIGMASK.
29235         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
29236         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
29237         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
29238         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
29239         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
29241 2011-07-07  Bruno Haible  <bruno@clisp.org>
29243         pthread_sigmask: Ensure declaration in <signal.h>.
29244         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
29245         include <pthread.h>.
29246         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
29247         problem.
29249 2011-07-07  Bruno Haible  <bruno@clisp.org>
29251         pthread_sigmask: Document the module.
29252         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
29254 2011-07-07  Bruno Haible  <bruno@clisp.org>
29256         pthread_sigmask: Follow gnulib conventions.
29257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
29258         gl_PTHREAD_SIGMASK.
29259         * modules/pthread_sigmask (configure.ac): Update.
29261 2011-07-07  Bruno Haible  <bruno@clisp.org>
29263         pthread_sigmask: Make declaration C++ safe.
29264         * lib/signal.in.h: In two special conditions, just do an #include_next.
29265         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
29266         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
29267         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29268         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
29269         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
29270         not REPLACE_PTHREAD_MASK.
29271         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
29272         not REPLACE_PTHREAD_MASK.
29273         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
29275 2011-07-07  Bruno Haible  <bruno@clisp.org>
29277         pthread_sigmask: Fix return value.
29278         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
29279         * lib/pthread_sigmask.c: New file.
29280         * modules/pthread_sigmask (Files): Add it.
29281         (configure.ac): Invoke AC_LIBOBJ.
29283 2011-07-07  Eric Blake  <eblake@redhat.com>
29285         getopt: more portable argv creation
29286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
29287         const, use char arrays rather than strings.
29288         Suggested by Paul Eggert.
29290 2011-07-07  Bruno Haible  <bruno@clisp.org>
29292         Tests for module 'sigprocmask'.
29293         * modules/sigprocmask-tests: New file.
29294         * tests/test-sigprocmask.c: New file.
29296 2011-07-07  Bruno Haible  <bruno@clisp.org>
29298         float tests: Tweak.
29299         * tests/test-float.c (main): Tweak skip message.
29301 2011-07-07  Eric Blake  <eblake@redhat.com>
29303         getopt: avoid compiler warning during configure
29304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
29305         assigning string literals to non-const pointer.
29307         getopt-gnu: avoid crash in glibc getopt
29308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
29309         * tests/test-getopt.h (test_getopt): Enhance test.
29310         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29311         * doc/posix-functions/getopt.texi (getopt): Document it.
29312         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29313         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29314         Likewise.
29316 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
29318         getopt: handle W; without long options in getopt [BZ #12922]
29319         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
29320         but no long options are defined, just return 'W'.
29322 2011-07-07  Bruno Haible  <bruno@clisp.org>
29324         Avoid literal tabs.
29325         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
29326         variable containing a tab instead of a literal tab.
29327         Reported by Jim Meyering.
29329 2011-07-07  Bruno Haible  <bruno@clisp.org>
29331         Comments.
29332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
29334 2011-07-06  Bruno Haible  <bruno@clisp.org>
29336         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
29337         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
29338         <winsock2.h>.
29339         (rpl_fd_isset, FD_ISSET): New definitions, copied from
29340         lib/sys_socket.in.h.
29341         (close, gethostname): Hide declarations from <winsock2.h>.
29342         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29343         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
29344         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
29345         (select): Don't override if gnulib's <sys/select.h> was already
29346         included.
29347         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29348         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29349         setsockopt, shutdown, select): Tweak indentation.
29351 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29353         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
29354         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
29355         in an application that does not use the sys_select module.
29357 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
29359         poll: do not return 0 on timeout=-1
29360         * lib/poll.c: Loop with yield if no events occurred.
29362 2011-07-06  Eric Blake  <eblake@redhat.com>
29364         pthread_sigmask: always replace when not using pthread
29365         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
29366         replacement when using some threading other than pthread.  Fix
29367         logic bug.
29369 2011-07-06  Bruno Haible  <bruno@clisp.org>
29371         Comments.
29372         * m4/printf.m4: Update comments about mingw.
29374 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29376         sys_select: define sigset_t more portably
29377         * lib/sys_select.in.h: Always include <sys/types.h>, since
29378         we now need sigset_t and mingw defines it there.
29379         Include <signal.h> before split inclusion guard, to avoid
29380         mishaps on Solaris, whose <signal.h> eventually includes us.
29381         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
29382         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
29383         which come from ...
29384         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
29385         gl_CHECK_TYPE_SIGSET_T.
29386         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
29387         does the real work.
29388         * modules/sys_select (Depends-on): Add 'signal'.
29390         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
29391         Suggested by Bruno Haible.
29393         pselect: Use pthread_sigmask, not sigprocmask.
29394         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
29395         multithreaded apps better than sigprocmask does.
29396         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
29397         sigprocmask directly.
29399 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29401         * lib/pselect.c (pselect): Use plain name, without "rpl_".
29402         Don't #undef,  since we don't need any underlying pselect.
29403         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
29404         (Depends-on): Add select.
29405         (Link): Add $(LIBSOCKET).
29406         These changes suggested by Bruno Haible.
29408         pselect: document better
29409         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
29410         * doc/posix-functions/pselect.texi (pselect): Document new module.
29412         pthread_sigmask: new module
29413         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
29414         * doc/posix-functions/pthread_sigmask.texi: Document new module.
29415         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
29416         This is done only as a macro; I don't know how well that'll
29417         work for C++.  Move <sys/types.h> include before the include_next,
29418         to avoid mishap on Solaris.
29419         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
29420         * modules/signal (Makefile.am): Substitute the check's results.
29421         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
29423         test-pselect: new module
29424         * modules/pselect-tests, tests/test-pselect.c: New files.
29425         * tests/test-select.c, tests/test-sys_select-c++.cc:
29426         If TEST_PSELECT is defined, test pselect instead of testing select.
29428         * tests/test-sys_select.c (sigset_t): Test for it, too.
29429         Suggested by Bruno Haible.
29431 2011-07-05  Eric Blake  <eblake@redhat.com>
29433         snprintf: guarantee %1$d, for libintl
29434         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
29435         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29436         * doc/posix-functions/snprintf.texi (snprintf): Update.
29437         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29438         * tests/test-snprintf.c (main): Enhance test.
29439         * tests/test-vsnprintf.c (main): Likewise.
29441 2011-07-05  Jim Meyering  <meyering@redhat.com>
29443         maint: exempt stdio-read.c and stdio-write.c from the cppi check
29444         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
29445         per Bruno's request, to accommodate this idiom (no space after "#")
29446         even when the function is inside an #if block:
29447         char *
29448         gets (char *s)
29449         #undef gets
29450         {
29451           ...
29452         }
29454 2011-07-04  Jim Meyering  <meyering@redhat.com>
29456         maint: indent with spaces, not TABs, and add a rule to check this
29457         * tests/test-userspec.c: Indent with spaces, not TABs.
29458         * tests/test-argp.c: Likewise.
29459         * tests/test-c-stack2.sh: Likewise.
29460         * tests/test-parse-duration.sh: Likewise
29461         * m4/strtod.m4: Likewise.
29462         * m4/alloca.m4: Likewise.
29463         * m4/pselect.m4: Likewise.
29464         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
29466 2011-07-03  Jim Meyering  <meyering@redhat.com>
29468         maint.mk: correct omissions in prohibit_argmatch_without_use check
29469         This rule would mistakenly report that argmatch.h is included without
29470         use even when both the argmatch and invalid_arg macro were used.
29471         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
29472         of argmatch and invalid_arg.
29474 2011-07-03  Bruno Haible  <bruno@clisp.org>
29476         Comments about EINTR.
29477         * lib/safe-read.h: Explain the purpose of this module.
29478         * lib/safe-write.h: Likewise.
29479         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
29480         module.
29481         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
29482         module.
29483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29485 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29487         xnanosleep: Rewrite to use new dtotimespec module.
29488         It has the conversion code that used to be in xnanosleep.
29489         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
29490         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
29491         (TIME_T_MAX): Remove.
29492         (xnanosleep): Rewrite in terms of dtotimespec.
29493         * modules/xnanosleep (Depends-on): Add dtotimespec.
29494         Remove intprops, stdbool.
29496         timespec-add, timespec-sub: new modules
29497         * lib/timespec.h (timespec_add, timespec_sub): New decls.
29498         * lib/timespec-add.c, lib/timespec-sub.c:
29499         * modules/timespec-add, modules/timespec-sub: New files.
29501         dtotimespec: new module
29502         * lib/timespec.h (dtotimespec): New decl.
29503         * lib/dtotimespec.c, modules/dtotimespec: New files.
29505         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
29507         pselect: new module
29508         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
29509         (pselect): New decls.
29510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
29511         since the standard pselect decl uses 'restrict'.
29512         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
29513         HAVE_PSELECT, REPLACE_PSELECT.
29514         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
29515         HAVE_PSELECT, REPLACE_PSELECT.
29516         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
29518         sys_select: don't depend on sys_socket
29519         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
29520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
29521         This fix works on GNU and GNU-like platforms, but has not been tested
29522         on native Windows.
29523         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
29524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
29525         gl_HEADER_SYS_SOCKET.
29526         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
29527         gl_PREREQ_SYS_H_WINSOCK2.
29529 2011-06-29  Eric Blake  <eblake@redhat.com>
29531         pipe2: fix C89 compile problem
29532         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
29533         Reported by Bruno Haible.
29535         pipe, pipe2: don't corrupt fd on error
29536         * lib/pipe.c (pipe): Leave fd unchanged on error.
29537         * lib/pipe2.c (pipe2): Likewise.
29538         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
29539         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29541 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
29543         mmap-anon: do not use regular expressions inadvertently
29544         * m4/mmap-anon.m4: Remove trailing period from strings sought
29545         in the output.
29547 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
29549         nanosleep: fix integer overflow problem
29550         * lib/nanosleep.c (my_usleep): Don't assume signed integer
29551         arithmetic wraps around on overflow.
29553         nanosleep: simplify carrying
29554         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
29555         first call to the underyling nanosleep, not for the last one.
29556         This doesn't fix any bugs, but it simplifies the computation of
29557         the remaining delay.  Found while auditing integer overflow issues.
29559         dup2: remove test for existence of fcntl
29560         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
29561         "#if HAVE_FCNTL", in the configure-time test program.
29562         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
29563         and therefore speeds up "configure" a bit.  Found while
29564         adding the dup2 module to Emacs.
29566 2011-06-24  Eric Blake  <eblake@redhat.com>
29568         maint.mk: enhance useless header checks
29569         * top/maint.mk (_sc_header_without_use): Check both include
29570         styles.
29571         (sc_prohibit_assert_without_use)
29572         (sc_prohibit_close_stream_without_use)
29573         (sc_prohibit_getopt_without_use)
29574         (sc_prohibit_quotearg_without_use)
29575         (sc_prohibit_quote_without_use)
29576         (sc_prohibit_long_options_without_use)
29577         (sc_prohibit_inttostr_without_use)
29578         (sc_prohibit_ignore_value_without_use)
29579         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
29580         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
29581         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
29582         (sc_prohibit_hash_pjw_without_use)
29583         (sc_prohibit_safe_read_without_use)
29584         (sc_prohibit_argmatch_without_use)
29585         (sc_prohibit_canonicalize_without_use)
29586         (sc_prohibit_root_dev_ino_without_use)
29587         (sc_prohibit_openat_without_use)
29588         (sc_prohibit_c_ctype_without_use)
29589         (sc_prohibit_signal_without_use)
29590         (sc_prohibit_stdio--_without_use)
29591         (sc_prohibit_stdio-safer_without_use)
29592         (sc_prohibit_strings_without_use)
29593         (sc_prohibit_intprops_without_use)
29594         (sc_prohibit_stddef_without_use)
29595         (sc_prohibit_xfreopen_without_use): Update clients.
29597 2011-06-24  Jim Meyering  <meyering@redhat.com>
29599         syntax-check: keep one maint.mk rule in sync with its header
29600         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
29601         of the bug Eric has just fixed, with today's commit 25e4c2ec.
29602         I prefer to avoid temporary files here, so use <(...), but that
29603         is not supported by /bin/sh, so...
29604         (SHELL): Define to /bin/bash.
29606 2011-06-24  Eric Blake  <eblake@redhat.com>
29608         maint.mk: update sc_prohibit_intprops_without_use
29609         * top/maint.mk (_intprops_names): Match recent changes.
29611 2011-06-24  Bruno Haible  <bruno@clisp.org>
29613         strerror-override: No-op tweak.
29614         * lib/strerror-override.h (strerror_override): Reorder conditions,
29615         for consistency with lib/strerror-override.c.
29617 2011-06-23  Eric Blake  <eblake@redhat.com>
29619         maint.mk: test further PATH_MAX issues
29620         * top/maint.mk (sc_prohibit_path_max_array): Rename...
29621         (sc_prohibit_path_max_allocation): ...and also test alloca.
29622         Suggested by Jim Meyering.
29624 2011-06-22  Eric Blake  <eblake@redhat.com>
29626         maint.mk: add syntax-check to avoid char[PATH_MAX]
29627         * top/maint.mk (sc_prohibit_path_max_array): New rule.
29629         stat: be robust to PATH_MAX definition
29630         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
29631         * modules/stat (Depends-on): Add verify.
29633         link: work around IRIX bug
29634         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
29635         * lib/link.c (rpl_link): Work around it.
29636         * tests/test-link.h (test_link): Enhance test.
29637         * doc/posix-functions/link.texi (link): Document the bug.
29639         getopt: silence clang warning
29640         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
29641         dereference.
29642         Reported by Gustavo Martin Domato.
29644 2011-06-22  Jim Meyering  <meyering@redhat.com>
29646         bootstrap: do not insert a blank line into each .gitignore file
29647         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
29649 2011-06-21  Eric Blake  <eblake@redhat.com>
29651         perror: test for output mismatch
29652         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
29653         perror on IRIX.
29655         strerror_r: fix OpenBSD behavior on out-of-range
29656         * lib/strerror_r.c (strerror_r): Always use maximal string.
29657         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
29659         strerror_r: fix OpenBSD behavior on 0
29660         * lib/strerror-override.c (strerror_override): Also override 0
29661         when needed.
29662         * lib/strerror-override.h (strerror_override): Likewise.
29663         * lib/strerror.c (strerror): Simplify, now that 0 override is done
29664         earlier.
29665         * lib/strerror_r.c (strerror_r): Likewise.
29666         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
29667         behavior...
29668         (gl_FUNC_STRERROR_0): ...into new macro.
29669         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
29670         is overridden.
29671         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
29672         * modules/strerror-override (Files): Add strerror.m4.
29673         (configure.ac): Also provide override for 0 when needed.
29674         * doc/posix-functions/strerror.texi (strerror): Document this.
29675         * doc/posix-functions/perror.texi (perror): Likewise.
29677         perror: adjust array size
29678         * modules/perror (Depends-on): Add strerror-override.
29679         * lib/perror.c (perror): Use it to avoid magic number.
29681         strerror-override: reduce size
29682         * lib/strerror-override.c (strerror_override): Use fewer lines.
29684 2011-06-20  Bruno Haible  <bruno@clisp.org>
29686         pathmax: Ensure correct value for PATH_MAX on HP-UX.
29687         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
29689 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29691         alloca: port to compilers that can optimize like GCC 4.6.0
29692         * lib/alloca.c (find_stack_direction): New signature, taken from
29693         Autoconf git.  This works with GCC 4.6.0.  This code should never
29694         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
29695         be used with other compilers that optimize as well as GCC 4.6.0 does.
29696         (alloca): Adjust to new signature.
29697         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
29698         New macro, which patches Autoconf in a similar way.
29700         c-stack: stop worrying about stack direction
29701         * lib/c-stack.c (find_stack_direction): Remove.
29702         (segv_handler): Don't worry about stack direction growth, as it's
29703         too much of a pain to configure this correctly, given how compilers
29704         are optimizing-away our stack-growth detection code.  Instead, assume
29705         that any access to just before or just after the stack is OK.
29706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
29707         Don't require AC_FUNC_ALLOCA; no longer needed.
29709 2011-06-20  Eric Blake  <eblake@redhat.com>
29711         test-stat: don't allocate PATH_MAX bytes
29712         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
29713         PATH_MAX-sized buffer.
29714         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
29715         * modules/stat-tests (Depends-on): Likewise.
29716         * tests/test-fstatat.c (includes): Drop pathmax.h.
29717         * tests/test-stat.c (includes): Likewise.
29718         Reported by Bruno Haible.
29720 2011-06-20  Bruno Haible  <bruno@clisp.org>
29722         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
29723         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
29724         * lib/float.c: New file.
29725         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
29726         REPLACE_FLOAT_LDBL.
29727         * modules/float (Files): Add lib/float.c.
29728         (configure.ac): Invoke AC_LIBOBJ.
29729         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
29731 2011-06-20  Bruno Haible  <bruno@clisp.org>
29733         Tests for module 'float'.
29734         * modules/float-tests: New file.
29735         * tests/test-float.c: New file.
29737 2011-06-19  Bruno Haible  <bruno@clisp.org>
29739         isinf: Coding style.
29740         * lib/isinf.c: Use GNU coding style.
29742 2011-06-19  Bruno Haible  <bruno@clisp.org>
29744         linkat test: Avoid test failure on AIX 7.1.
29745         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
29746         * tests/test-link.h (test_link): Likewise.
29748 2011-06-19  Bruno Haible  <bruno@clisp.org>
29750         pread test: Avoid test failure on OpenBSD 4.9.
29751         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
29753 2011-06-19  Bruno Haible  <bruno@clisp.org>
29755         sprintf-posix: Fix test failure on AIX 7.1.
29756         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
29757         * doc/posix-functions/dprintf.texi: Mention limited precision problem
29758         on AIX.
29759         * doc/posix-functions/fprintf.texi: Likewise.
29760         * doc/posix-functions/printf.texi: Likewise.
29761         * doc/posix-functions/snprintf.texi: Likewise.
29762         * doc/posix-functions/sprintf.texi: Likewise.
29763         * doc/posix-functions/vdprintf.texi: Likewise.
29764         * doc/posix-functions/vfprintf.texi: Likewise.
29765         * doc/posix-functions/vprintf.texi: Likewise.
29766         * doc/posix-functions/vsnprintf.texi: Likewise.
29767         * doc/posix-functions/vsprintf.texi: Likewise.
29769 2011-06-19  Bruno Haible  <bruno@clisp.org>
29771         roundl-ieee: Fix test failure on AIX 7.1.
29772         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
29773         * doc/posix-functions/roundl.texi: Mention problem with negative
29774         arguments.
29776 2011-06-19  Bruno Haible  <bruno@clisp.org>
29778         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29779         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
29780         * doc/posix-functions/round.texi: Mention problem with negative
29781         arguments.
29782         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
29784 2011-06-19  Bruno Haible  <bruno@clisp.org>
29786         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
29788         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
29789         * doc/posix-functions/roundf.texi: Mention problem with negative
29790         arguments.
29791         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
29793 2011-06-19  Bruno Haible  <bruno@clisp.org>
29795         ceilf-ieee: Work around bug on MacOS X 10.5.
29796         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
29798         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
29799         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
29800         IEEE compliant, avoid compiler optimizations.
29801         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
29802         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29803         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
29804         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29805         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29806         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29807         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29808         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29809         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29810         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
29812 2011-06-19  Bruno Haible  <bruno@clisp.org>
29814         ceilf-ieee: Work around bug on AIX 7.1.
29815         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
29816         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
29818 2011-06-19  Bruno Haible  <bruno@clisp.org>
29820         ceil-ieee: Work around bug on AIX 7.1.
29821         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
29822         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
29824 2011-06-18  Bruno Haible  <bruno@clisp.org>
29826         fsync test: Avoid test failure on MacOS X and AIX.
29827         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
29828         EINVAL.
29830 2011-06-18  Bruno Haible  <bruno@clisp.org>
29832         openat, fdopendir tests: Fix link errors.
29833         * modules/openat-tests (Depends-on): Add progname.
29834         * modules/fdopendir-tests (Depends-on): Likewise.
29835         * tests/test-fchownat.c: Include progname.h.
29836         (main): Call set_program_name.
29837         * tests/test-fstatat.c: Include progname.h.
29838         (main): Call set_program_name.
29839         * tests/test-mkdirat.c: Include progname.h.
29840         (main): Call set_program_name.
29841         * tests/test-openat.c: Include progname.h.
29842         (main): Call set_program_name.
29843         * tests/test-unlinkat.c: Include progname.h.
29844         (main): Call set_program_name.
29845         * tests/test-fdopendir.c: Include progname.h.
29846         (main): Call set_program_name.
29848 2011-06-18  Bruno Haible  <bruno@clisp.org>
29850         Doc update.
29851         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
29852         HP-UX.
29853         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
29855 2011-06-18  Bruno Haible  <bruno@clisp.org>
29857         getcwd tests: Avoid compilation error on HP-UX 11.31.
29858         * modules/getcwd-tests (Depends-on): Add pathmax.
29859         * tests/test-getcwd.c: Include pathmax.h.
29861 2011-06-18  Bruno Haible  <bruno@clisp.org>
29863         isfinite, isinf: Fix link error on AIX 6 and 7.
29864         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
29865         needed, also test the macro with a 'float' argument.
29866         * m4/isinf.m4 (gl_ISINF): Likewise.
29868 2011-06-18  Bruno Haible  <bruno@clisp.org>
29870         getloadavg: Don't clobber LIBS. Regression from previous commit.
29871         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
29872         AC_CHECK_LIB from here...
29873         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
29874         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
29875         gl_func_getloadavg_done.
29876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29878 2011-06-18  Bruno Haible  <bruno@clisp.org>
29880         clean-temp: Improve documentation.
29881         * lib/clean-temp.h: Explain better how to use this module.
29882         Reported by John Darrington <john@darrington.wattle.id.au>.
29884 2011-06-17  Bruno Haible  <bruno@clisp.org>
29886         pread, pwrite: Avoid cc warning on AIX.
29887         * lib/unistd.in.h (pread): Undefine before defining as a macro.
29888         (pwrite): Likewise.
29890 2011-06-17  Bruno Haible  <bruno@clisp.org>
29892         spawn-pipe tests: Fix link error.
29893         * tests/test-spawn-pipe-child.c: Undefine fprintf.
29894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29896 2011-06-17  Bruno Haible  <bruno@clisp.org>
29898         Tests: Remove unnecessary dependency.
29899         * modules/canonicalize-tests (Depends-on): Remove progname.
29900         * modules/chown-tests (Depends-on): Likewise.
29901         * modules/dirname-tests (Depends-on): Likewise.
29902         * modules/fdopendir-tests (Depends-on): Likewise.
29903         * modules/fdutimensat-tests (Depends-on): Likewise.
29904         * modules/hash-tests (Depends-on): Likewise.
29905         * modules/lchown-tests (Depends-on): Likewise.
29906         * modules/linkat-tests (Depends-on): Likewise.
29907         * modules/renameat-tests (Depends-on): Likewise.
29908         * modules/spawn-pipe-tests (Depends-on): Likewise.
29909         * modules/utimensat-tests (Depends-on): Likewise.
29911 2011-06-17  Bruno Haible  <bruno@clisp.org>
29913         spawn-pipe tests: Fix link error.
29914         * tests/test-spawn-pipe-child.c: Undefine fflush.
29916 2011-06-17  Bruno Haible  <bruno@clisp.org>
29918         Fix tests link errors.
29919         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
29920         * modules/chown-tests (Makefile.am): Don't link test-chown with
29921         LIBINTL.
29922         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
29923         LIBINTL.
29924         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
29925         LIBINTL.
29926         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
29927         LIBINTL.
29929 2011-06-16  Bruno Haible  <bruno@clisp.org>
29931         crypto/gc-sha1: Fix recent regression.
29932         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
29933         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
29935         crypto/gc-md5: Fix recent regression.
29936         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
29938         crypto/gc-md4: Fix recent regression.
29939         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
29940         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
29942         crypto/gc-arctwo: Fix recent regression.
29943         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
29944         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
29946         crypto/gc-rijndael: Fix recent regression.
29947         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
29948         (configure.ac): Invoke AC_LIBOBJ here.
29949         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
29950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29952         crypto/gc-hmac-sha1: Fix recent regression.
29953         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
29954         (configure.ac): Invoke AC_LIBOBJ here.
29955         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
29956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29958         crypto/gc-hmac-md5: Fix recent regression.
29959         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
29960         (configure.ac): Invoke AC_LIBOBJ here.
29961         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
29962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29964         crypto/gc-des: Fix recent regression.
29965         * modules/crypto/gc-des (Files): Remove m4/des.m4.
29966         (configure.ac): Invoke AC_LIBOBJ here.
29967         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
29968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29970         crypto/gc-arcfour: Fix recent regression.
29971         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
29972         (configure.ac): Invoke AC_LIBOBJ here.
29973         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
29974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29976 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
29978         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
29979         After the 2011-05-21 change, this macro requires
29980         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
29981         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29983 2011-06-16  Bruno Haible  <bruno@clisp.org>
29985         fprintftime: Move AC_LIBOBJ invocations to module description.
29986         * m4/fprintftime.m4: Remove file.
29987         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
29988         (configure.ac): Remove gl_FPRINTFTIME call.
29989         (Makefile.am): Augment lib_SOURCES.
29990         Reported by Jim Meyering.
29992 2011-06-16  Bruno Haible  <bruno@clisp.org>
29994         tmpfile-safer: Finish 2011-05-23 commit.
29995         * m4/stdio-safer.m4: Really remove file.
29996         Reported by Jim Meyering.
29998 2011-06-16  Bruno Haible  <bruno@clisp.org>
30000         syntax-check: Fix typo.
30001         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
30002         printf-posix.m4.
30003         Reported by Jim Meyering.
30005 2011-06-13  Jim Meyering  <meyering@redhat.com>
30007         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
30008         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
30010 2011-05-23  Bruno Haible  <bruno@clisp.org>
30012         yesno: Move AC_LIBOBJ invocations to module description.
30013         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
30014         * modules/yesno (Makefile.am): Augment lib_SOURCES.
30016 2011-05-23  Bruno Haible  <bruno@clisp.org>
30018         xstrtol: Move AC_LIBOBJ invocations to module description.
30019         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
30020         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
30022 2011-05-23  Bruno Haible  <bruno@clisp.org>
30024         xstrtold: Move AC_LIBOBJ invocations to module description.
30025         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
30026         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
30028 2011-05-23  Bruno Haible  <bruno@clisp.org>
30030         xstrtod: Move AC_LIBOBJ invocations to module description.
30031         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
30032         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
30034 2011-05-23  Bruno Haible  <bruno@clisp.org>
30036         xnanosleep: Move AC_LIBOBJ invocations to module description.
30037         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
30038         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
30040 2011-05-23  Bruno Haible  <bruno@clisp.org>
30042         xgetcwd: Move AC_LIBOBJ invocations to module description.
30043         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
30044         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
30046 2011-05-23  Bruno Haible  <bruno@clisp.org>
30048         xalloc: Move AC_LIBOBJ invocations to module description.
30049         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
30050         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
30052 2011-05-23  Bruno Haible  <bruno@clisp.org>
30054         write-any-file: Move AC_LIBOBJ invocations to module description.
30055         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
30056         invocation.
30057         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
30059 2011-05-23  Bruno Haible  <bruno@clisp.org>
30061         utimens: Move AC_LIBOBJ invocations to module description.
30062         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
30063         * modules/utimens (Makefile.am): Augment lib_SOURCES.
30065 2011-05-23  Bruno Haible  <bruno@clisp.org>
30067         utimecmp: Move AC_LIBOBJ invocations to module description.
30068         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
30069         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
30071 2011-05-23  Bruno Haible  <bruno@clisp.org>
30073         userspec: Move AC_LIBOBJ invocations to module description.
30074         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
30075         * modules/userspec (Makefile.am): Augment lib_SOURCES.
30077 2011-05-23  Bruno Haible  <bruno@clisp.org>
30079         unlinkdir: Move AC_LIBOBJ invocations to module description.
30080         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
30081         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
30083 2011-05-23  Bruno Haible  <bruno@clisp.org>
30085         unistd-safer: Move AC_LIBOBJ invocations to module description.
30086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
30087         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
30089 2011-05-23  Bruno Haible  <bruno@clisp.org>
30091         tempname: Move AC_LIBOBJ invocations to module description.
30092         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
30093         * modules/tempname (Makefile.am): Augment lib_SOURCES.
30095 2011-05-23  Bruno Haible  <bruno@clisp.org>
30097         strftime: Move AC_LIBOBJ invocations to module description.
30098         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
30099         * modules/strftime (Makefile.am): Augment lib_SOURCES.
30101 2011-05-23  Bruno Haible  <bruno@clisp.org>
30103         stdlib-safer: Move AC_LIBOBJ invocations to module description.
30104         * m4/stdlib-safer.m4: Remove file.
30105         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
30106         (configure.ac): Remove gl_STDLIB_SAFER call.
30107         (Makefile.am): Augment lib_SOURCES.
30109 2011-05-23  Bruno Haible  <bruno@clisp.org>
30111         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
30112         * m4/stdio-safer.m4: Remove file.
30113         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
30114         (configure.ac): Remove gl_TMPFILE_SAFER call.
30115         (Makefile.am): Augment lib_SOURCES.
30117 2011-05-23  Bruno Haible  <bruno@clisp.org>
30119         popen-safer: Move AC_LIBOBJ invocations to module description.
30120         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
30121         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
30122         (configure.ac): Remove gl_POPEN_SAFER call.
30123         (Makefile.am): Augment lib_SOURCES.
30125 2011-05-23  Bruno Haible  <bruno@clisp.org>
30127         freopen-safer: Move AC_LIBOBJ invocations to module description.
30128         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
30129         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
30130         (configure.ac): Remove gl_FREOPEN_SAFER call.
30131         (Makefile.am): Augment lib_SOURCES.
30133 2011-05-23  Bruno Haible  <bruno@clisp.org>
30135         fopen-safer: Move AC_LIBOBJ invocations to module description.
30136         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
30137         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
30138         (configure.ac): Remove gl_FOPEN_SAFER call.
30139         (Makefile.am): Augment lib_SOURCES.
30141 2011-05-23  Bruno Haible  <bruno@clisp.org>
30143         crypto/sha512: Move AC_LIBOBJ invocations to module description.
30144         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
30145         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
30147 2011-05-23  Bruno Haible  <bruno@clisp.org>
30149         crypto/sha256: Move AC_LIBOBJ invocations to module description.
30150         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
30151         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
30153 2011-05-23  Bruno Haible  <bruno@clisp.org>
30155         crypto/sha1: Move AC_LIBOBJ invocations to module description.
30156         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
30157         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
30159 2011-05-23  Bruno Haible  <bruno@clisp.org>
30161         settime: Move AC_LIBOBJ invocations to module description.
30162         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
30163         * modules/settime (Makefile.am): Augment lib_SOURCES.
30165 2011-05-23  Bruno Haible  <bruno@clisp.org>
30167         savedir: Move AC_LIBOBJ invocations to module description.
30168         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
30169         * modules/savedir (Makefile.am): Augment lib_SOURCES.
30171 2011-05-23  Bruno Haible  <bruno@clisp.org>
30173         save-cwd: Move AC_LIBOBJ invocations to module description.
30174         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
30175         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
30177 2011-05-23  Bruno Haible  <bruno@clisp.org>
30179         same: Move AC_LIBOBJ invocations to module description.
30180         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
30181         * modules/same (Makefile.am): Augment lib_SOURCES.
30183 2011-05-23  Bruno Haible  <bruno@clisp.org>
30185         safe-write: Move AC_LIBOBJ invocations to module description.
30186         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
30187         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
30188         instead of gl_SAFE_WRITE.
30189         (Makefile.am): Augment lib_SOURCES.
30191 2011-05-23  Bruno Haible  <bruno@clisp.org>
30193         safe-read: Move AC_LIBOBJ invocations to module description.
30194         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
30195         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
30196         of gl_SAFE_READ.
30197         (Makefile.am): Augment lib_SOURCES.
30199 2011-05-23  Bruno Haible  <bruno@clisp.org>
30201         safe-alloc: Move AC_LIBOBJ invocations to module description.
30202         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
30203         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
30205 2011-05-23  Bruno Haible  <bruno@clisp.org>
30207         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
30208         * m4/rijndael.m4: Remove file.
30209         * modules/crypto/rijndael (Files): Remove it.
30210         (configure.ac): Remove gl_RIJNDAEL call.
30211         (Makefile.am): Augment lib_SOURCES.
30213 2011-05-23  Bruno Haible  <bruno@clisp.org>
30215         readtokens: Move AC_LIBOBJ invocations to module description.
30216         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
30217         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
30219 2011-05-23  Bruno Haible  <bruno@clisp.org>
30221         read-file: Move AC_LIBOBJ invocations to module description.
30222         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
30223         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
30224         of gl_FUNC_READ_FILE.
30225         (Makefile.am): Augment lib_SOURCES.
30227 2011-05-23  Bruno Haible  <bruno@clisp.org>
30229         quotearg: Move AC_LIBOBJ invocations to module description.
30230         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
30231         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
30233 2011-05-23  Bruno Haible  <bruno@clisp.org>
30235         quote: Move AC_LIBOBJ invocations to module description.
30236         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
30237         * modules/quote (Makefile.am): Augment lib_SOURCES.
30239 2011-05-23  Bruno Haible  <bruno@clisp.org>
30241         posixver: Move AC_LIBOBJ invocations to module description.
30242         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
30243         * modules/posixver (Makefile.am): Augment lib_SOURCES.
30245 2011-05-23  Bruno Haible  <bruno@clisp.org>
30247         posixtm: Move AC_LIBOBJ invocations to module description.
30248         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
30249         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
30251 2011-05-23  Bruno Haible  <bruno@clisp.org>
30253         physmem: Move AC_LIBOBJ invocations to module description.
30254         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
30255         * modules/physmem (Makefile.am): Augment lib_SOURCES.
30257 2011-05-23  Bruno Haible  <bruno@clisp.org>
30259         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
30260         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
30261         invocation.
30262         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
30264 2011-05-23  Bruno Haible  <bruno@clisp.org>
30266         mpsort: Move AC_LIBOBJ invocations to module description.
30267         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
30268         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
30270 2011-05-23  Bruno Haible  <bruno@clisp.org>
30272         modechange: Move AC_LIBOBJ invocations to module description.
30273         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
30274         * modules/modechange (Makefile.am): Augment lib_SOURCES.
30276 2011-05-23  Bruno Haible  <bruno@clisp.org>
30278         mkdir-p: Move AC_LIBOBJ invocations to module description.
30279         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
30280         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
30282 2011-05-23  Bruno Haible  <bruno@clisp.org>
30284         mkancesdirs: Move AC_LIBOBJ invocations to module description.
30285         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
30286         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
30288 2011-05-23  Bruno Haible  <bruno@clisp.org>
30290         mgetgroups: Move AC_LIBOBJ invocations to module description.
30291         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
30292         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
30294 2011-05-23  Bruno Haible  <bruno@clisp.org>
30296         memxor: Move AC_LIBOBJ invocations to module description.
30297         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
30298         * modules/memxor (Makefile.am): Augment lib_SOURCES.
30300 2011-05-23  Bruno Haible  <bruno@clisp.org>
30302         memcoll: Move AC_LIBOBJ invocations to module description.
30303         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
30304         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
30306 2011-05-23  Bruno Haible  <bruno@clisp.org>
30308         memcasecmp: Move AC_LIBOBJ invocations to module description.
30309         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
30310         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
30312 2011-05-23  Bruno Haible  <bruno@clisp.org>
30314         crypto/md5: Move AC_LIBOBJ invocations to module description.
30315         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
30316         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
30318 2011-05-23  Bruno Haible  <bruno@clisp.org>
30320         crypto/md4: Move AC_LIBOBJ invocations to module description.
30321         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
30322         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
30324 2011-05-23  Bruno Haible  <bruno@clisp.org>
30326         crypto/md2: Move AC_LIBOBJ invocations to module description.
30327         * m4/md2.m4: Remove file.
30328         * modules/crypto/md2 (Files): Remove it.
30329         (configure.ac): Remove gl_MD2 call.
30330         (Makefile.am): Augment lib_SOURCES.
30332 2011-05-23  Bruno Haible  <bruno@clisp.org>
30334         long-options: Move AC_LIBOBJ invocations to module description.
30335         * m4/long-options.m4: Remove file.
30336         * modules/long-options (Files): Remove it.
30337         (configure.ac): Remove gl_LONG_OPTIONS call.
30338         (Makefile.am): Augment lib_SOURCES.
30340 2011-05-23  Bruno Haible  <bruno@clisp.org>
30342         i-ring: Move AC_LIBOBJ invocations to module description.
30343         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
30344         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
30346 2011-05-23  Bruno Haible  <bruno@clisp.org>
30348         idcache: Move AC_LIBOBJ invocations to module description.
30349         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
30350         * modules/idcache (Makefile.am): Augment lib_SOURCES.
30352 2011-05-23  Bruno Haible  <bruno@clisp.org>
30354         human: Move AC_LIBOBJ invocations to module description.
30355         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
30356         * modules/human (Makefile.am): Augment lib_SOURCES.
30358 2011-05-23  Bruno Haible  <bruno@clisp.org>
30360         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
30361         * m4/hmac-sha1.m4: Remove file.
30362         * modules/crypto/hmac-sha1 (Files): Remove it.
30363         (configure.ac): Remove gl_HMAC_SHA1 call.
30364         (Makefile.am): Augment lib_SOURCES.
30366 2011-05-23  Bruno Haible  <bruno@clisp.org>
30368         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
30369         * m4/hmac-md5.m4: Remove file.
30370         * modules/crypto/hmac-md5 (Files): Remove it.
30371         (configure.ac): Remove gl_HMAC_MD5 call.
30372         (Makefile.am): Augment lib_SOURCES.
30374 2011-05-23  Bruno Haible  <bruno@clisp.org>
30376         hash: Move AC_LIBOBJ invocations to module description.
30377         * m4/hash.m4: Remove file.
30378         * modules/hash (Files): Remove it.
30379         (configure.ac): Remove gl_HASH call.
30380         (Makefile.am): Augment lib_SOURCES.
30382 2011-05-23  Bruno Haible  <bruno@clisp.org>
30384         hard-locale: Move AC_LIBOBJ invocations to module description.
30385         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
30386         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
30388 2011-05-23  Bruno Haible  <bruno@clisp.org>
30390         getugroups: Move AC_LIBOBJ invocations to module description.
30391         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
30392         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
30394 2011-05-23  Bruno Haible  <bruno@clisp.org>
30396         gettime: Move AC_LIBOBJ invocations to module description.
30397         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
30398         * modules/gettime (Makefile.am): Augment lib_SOURCES.
30400 2011-05-23  Bruno Haible  <bruno@clisp.org>
30402         getndelim2: Move AC_LIBOBJ invocations to module description.
30403         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
30404         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
30406 2011-05-23  Bruno Haible  <bruno@clisp.org>
30408         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
30409         * m4/gc-pbkdf2-sha1.m4: Remove file.
30410         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
30411         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
30412         (Makefile.am): Augment lib_SOURCES.
30414 2011-05-23  Bruno Haible  <bruno@clisp.org>
30416         fts: Move AC_LIBOBJ invocations to module description.
30417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
30418         * modules/fts (configure.ac): ... to here.
30420 2011-05-23  Bruno Haible  <bruno@clisp.org>
30422         file-type: Move AC_LIBOBJ invocations to module description.
30423         * m4/file-type.m4: Remove file.
30424         * modules/file-type (Files): Remove it.
30425         (configure.ac): Remove gl_FILE_TYPE call.
30426         (Makefile.am): Augment lib_SOURCES.
30428 2011-05-23  Bruno Haible  <bruno@clisp.org>
30430         filenamecat*: Respect rules for use of AC_LIBOBJ.
30431         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
30432         Remove AC_LIBOBJ invocation.
30433         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
30434         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
30436 2011-05-23  Bruno Haible  <bruno@clisp.org>
30438         filemode: Move AC_LIBOBJ invocations to module description.
30439         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
30440         * modules/filemode (Makefile.am): Augment lib_SOURCES.
30442 2011-05-23  Bruno Haible  <bruno@clisp.org>
30444         openat-safer: Move AC_LIBOBJ invocations to module description.
30445         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
30446         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
30448 2011-05-23  Bruno Haible  <bruno@clisp.org>
30450         fcntl-safer: Move AC_LIBOBJ invocations to module description.
30451         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
30452         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
30454 2011-05-23  Bruno Haible  <bruno@clisp.org>
30456         exclude: Move AC_LIBOBJ invocations to module description.
30457         * m4/exclude.m4: Remove file.
30458         * modules/exclude (Files): Remove it.
30459         (configure.ac): Remove gl_EXCLUDE call.
30460         (Makefile.am): Augment lib_SOURCES.
30462 2011-05-23  Bruno Haible  <bruno@clisp.org>
30464         dirname*: Respect rules for use of AC_LIBOBJ.
30465         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
30466         invocations.
30467         * modules/dirname (Makefile.am): Augment lib_SOURCES.
30468         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
30470 2011-05-23  Bruno Haible  <bruno@clisp.org>
30472         dirent-safer: Move AC_LIBOBJ invocations to module description.
30473         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
30474         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
30476 2011-05-23  Bruno Haible  <bruno@clisp.org>
30478         crypto/des: Move AC_LIBOBJ invocations to module description.
30479         * m4/des.m4: Remove file.
30480         * modules/crypto/des (Files): Remove it.
30481         (configure.ac): Remove gl_DES call.
30482         (Makefile.am): Augment lib_SOURCES.
30484 2011-05-23  Bruno Haible  <bruno@clisp.org>
30486         cycle-check: Move AC_LIBOBJ invocations to module description.
30487         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
30488         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
30490 2011-05-23  Bruno Haible  <bruno@clisp.org>
30492         c-strtold: Move AC_LIBOBJ invocations to module description.
30493         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
30494         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
30496 2011-05-23  Bruno Haible  <bruno@clisp.org>
30498         c-strtod: Move AC_LIBOBJ invocations to module description.
30499         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
30500         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
30502 2011-05-23  Bruno Haible  <bruno@clisp.org>
30504         crc: Move AC_LIBOBJ invocations to module description.
30505         * m4/crc.m4: Remove file.
30506         * modules/crc (Files): Remove it.
30507         (configure.ac): Remove gl_CRC call.
30508         (Makefile.am): Augment lib_SOURCES.
30510 2011-05-23  Bruno Haible  <bruno@clisp.org>
30512         close-stream: Move AC_LIBOBJ invocations to module description.
30513         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
30514         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
30516 2011-05-23  Bruno Haible  <bruno@clisp.org>
30518         closeout: Move AC_LIBOBJ invocations to module description.
30519         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
30520         * modules/closeout (Makefile.am): Augment lib_SOURCES.
30522 2011-05-23  Bruno Haible  <bruno@clisp.org>
30524         closein: Move AC_LIBOBJ invocations to module description.
30525         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
30526         * modules/closein (Makefile.am): Augment lib_SOURCES.
30528 2011-05-23  Bruno Haible  <bruno@clisp.org>
30530         cloexec: Move AC_LIBOBJ invocations to module description.
30531         * m4/cloexec.m4: Remove file.
30532         * modules/cloexec (Files): Remove it.
30533         (configure.ac): Remove gl_CLOEXEC call.
30534         (Makefile.am): Augment lib_SOURCES.
30536 2011-05-23  Bruno Haible  <bruno@clisp.org>
30538         check-version: Move AC_LIBOBJ invocations to module description.
30539         * m4/check-version.m4: Remove file.
30540         * modules/check-version (Files): Remove it.
30541         (configure.ac): Remove gl_CHECK_VERSION call.
30542         (Makefile.am): Augment lib_SOURCES.
30544 2011-05-23  Bruno Haible  <bruno@clisp.org>
30546         chdir-safer: Move AC_LIBOBJ invocations to module description.
30547         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
30548         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
30550 2011-05-23  Bruno Haible  <bruno@clisp.org>
30552         canonicalize: Move AC_LIBOBJ invocations to module description.
30553         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
30554         AC_LIBOBJ invocation.
30555         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
30557 2011-05-23  Bruno Haible  <bruno@clisp.org>
30559         canon-host: Move AC_LIBOBJ invocations to module description.
30560         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
30561         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
30562         instead of gl_CANON_HOST.
30563         (Makefile.am): Augment lib_SOURCES.
30565 2011-05-23  Bruno Haible  <bruno@clisp.org>
30567         backupfile: Move AC_LIBOBJ invocations to module description.
30568         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
30569         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
30571 2011-05-23  Bruno Haible  <bruno@clisp.org>
30573         argmatch: Move AC_LIBOBJ invocations to module description.
30574         * m4/argmatch.m4: Remove file.
30575         * modules/argmatch (Files): Remove it.
30576         (configure.ac): Remove gl_ARGMATCH call.
30577         (Makefile.am): Augment lib_SOURCES.
30579 2011-05-23  Bruno Haible  <bruno@clisp.org>
30581         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
30582         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
30583         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
30585 2011-05-23  Bruno Haible  <bruno@clisp.org>
30587         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
30588         * m4/arcfour.m4: Remove file.
30589         * modules/crypto/arcfour (Files): Remove it.
30590         (configure.ac): Remove gl_ARCFOUR call.
30591         (Makefile.am): Augment lib_SOURCES.
30593 2011-05-22  Bruno Haible  <bruno@clisp.org>
30595         write: Move AC_LIBOBJ invocations to module description.
30596         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
30597         * modules/write (configure.ac): ... to here.
30599 2011-05-22  Bruno Haible  <bruno@clisp.org>
30601         wmemset: Move AC_LIBOBJ invocations to module description.
30602         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
30603         here...
30604         * modules/wmemset (configure.ac): ... to here.
30606 2011-05-22  Bruno Haible  <bruno@clisp.org>
30608         wmemmove: Move AC_LIBOBJ invocations to module description.
30609         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
30610         here...
30611         * modules/wmemmove (configure.ac): ... to here.
30613 2011-05-22  Bruno Haible  <bruno@clisp.org>
30615         wmemcpy: Move AC_LIBOBJ invocations to module description.
30616         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
30617         here...
30618         * modules/wmemcpy (configure.ac): ... to here.
30620 2011-05-22  Bruno Haible  <bruno@clisp.org>
30622         wmemcmp: Move AC_LIBOBJ invocations to module description.
30623         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
30624         here...
30625         * modules/wmemcmp (configure.ac): ... to here.
30627 2011-05-22  Bruno Haible  <bruno@clisp.org>
30629         wmemchr: Move AC_LIBOBJ invocations to module description.
30630         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
30631         here...
30632         * modules/wmemchr (configure.ac): ... to here.
30634 2011-05-22  Bruno Haible  <bruno@clisp.org>
30636         wcswidth: Move AC_LIBOBJ invocations to module description.
30637         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
30638         here...
30639         * modules/wcswidth (configure.ac): ... to here.
30641 2011-05-22  Bruno Haible  <bruno@clisp.org>
30643         wcwidth: Respect rules for use of AC_LIBOBJ.
30644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
30645         invocation from here...
30646         * modules/wcwidth (configure.ac): ... to here.
30647         (Depends-on): Update conditions.
30649 2011-05-22  Bruno Haible  <bruno@clisp.org>
30651         wctype: Move AC_LIBOBJ invocations to module description.
30652         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
30653         invocation from here...
30654         * modules/wctype (configure.ac): ... to here.
30655         (Depends-on): Update conditions.
30657 2011-05-22  Bruno Haible  <bruno@clisp.org>
30659         wctrans: Move AC_LIBOBJ invocations to module description.
30660         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
30661         invocation from here...
30662         * modules/wctrans (configure.ac): ... to here.
30664 2011-05-22  Bruno Haible  <bruno@clisp.org>
30666         wctomb: Move AC_LIBOBJ invocations to module description.
30667         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
30668         invocations from here...
30669         * modules/wctomb (configure.ac): ... to here.
30671 2011-05-22  Bruno Haible  <bruno@clisp.org>
30673         wctob: Move AC_LIBOBJ invocations to module description.
30674         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
30675         gl_PREREQ_WCTOB invocations from here...
30676         * modules/wctob (configure.ac): ... to here.
30677         (Depends-on): Update conditions.
30679 2011-05-22  Bruno Haible  <bruno@clisp.org>
30681         wcsxfrm: Move AC_LIBOBJ invocations to module description.
30682         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
30683         here...
30684         * modules/wcsxfrm (configure.ac): ... to here.
30686 2011-05-22  Bruno Haible  <bruno@clisp.org>
30688         wcstok: Move AC_LIBOBJ invocations to module description.
30689         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
30690         * modules/wcstok (configure.ac): ... to here.
30692 2011-05-22  Bruno Haible  <bruno@clisp.org>
30694         wcsstr: Move AC_LIBOBJ invocations to module description.
30695         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
30696         * modules/wcsstr (configure.ac): ... to here.
30698 2011-05-22  Bruno Haible  <bruno@clisp.org>
30700         wcsspn: Move AC_LIBOBJ invocations to module description.
30701         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
30702         * modules/wcsspn (configure.ac): ... to here.
30704 2011-05-22  Bruno Haible  <bruno@clisp.org>
30706         wcsrtombs: Move AC_LIBOBJ invocations to module description.
30707         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
30708         gl_PREREQ_WCSRTOMBS invocations from here...
30709         * modules/wcsrtombs (configure.ac): ... to here.
30711 2011-05-22  Bruno Haible  <bruno@clisp.org>
30713         wcsrchr: Move AC_LIBOBJ invocations to module description.
30714         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
30715         here...
30716         * modules/wcsrchr (configure.ac): ... to here.
30718 2011-05-22  Bruno Haible  <bruno@clisp.org>
30720         wcspbrk: Move AC_LIBOBJ invocations to module description.
30721         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
30722         here...
30723         * modules/wcspbrk (configure.ac): ... to here.
30725 2011-05-22  Bruno Haible  <bruno@clisp.org>
30727         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
30728         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
30729         gl_PREREQ_WCSNRTOMBS invocations from here...
30730         * modules/wcsnrtombs (configure.ac): ... to here.
30732 2011-05-22  Bruno Haible  <bruno@clisp.org>
30734         wcsnlen: Move AC_LIBOBJ invocations to module description.
30735         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
30736         here...
30737         * modules/wcsnlen (configure.ac): ... to here.
30739 2011-05-22  Bruno Haible  <bruno@clisp.org>
30741         wcsncpy: Move AC_LIBOBJ invocations to module description.
30742         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
30743         here...
30744         * modules/wcsncpy (configure.ac): ... to here.
30746 2011-05-22  Bruno Haible  <bruno@clisp.org>
30748         wcsncmp: Move AC_LIBOBJ invocations to module description.
30749         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
30750         here...
30751         * modules/wcsncmp (configure.ac): ... to here.
30753 2011-05-22  Bruno Haible  <bruno@clisp.org>
30755         wcsncat: Move AC_LIBOBJ invocations to module description.
30756         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
30757         here...
30758         * modules/wcsncat (configure.ac): ... to here.
30760 2011-05-22  Bruno Haible  <bruno@clisp.org>
30762         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
30763         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
30764         from here...
30765         * modules/wcsncasecmp (configure.ac): ... to here.
30767 2011-05-22  Bruno Haible  <bruno@clisp.org>
30769         wcslen: Move AC_LIBOBJ invocations to module description.
30770         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
30771         * modules/wcslen (configure.ac): ... to here.
30773 2011-05-22  Bruno Haible  <bruno@clisp.org>
30775         wcsdup: Move AC_LIBOBJ invocations to module description.
30776         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
30777         * modules/wcsdup (configure.ac): ... to here.
30779 2011-05-22  Bruno Haible  <bruno@clisp.org>
30781         wcscspn: Move AC_LIBOBJ invocations to module description.
30782         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
30783         here...
30784         * modules/wcscspn (configure.ac): ... to here.
30786 2011-05-22  Bruno Haible  <bruno@clisp.org>
30788         wcscpy: Move AC_LIBOBJ invocations to module description.
30789         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
30790         * modules/wcscpy (configure.ac): ... to here.
30792 2011-05-22  Bruno Haible  <bruno@clisp.org>
30794         wcscoll: Move AC_LIBOBJ invocations to module description.
30795         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
30796         here...
30797         * modules/wcscoll (configure.ac): ... to here.
30799 2011-05-22  Bruno Haible  <bruno@clisp.org>
30801         wcscmp: Move AC_LIBOBJ invocations to module description.
30802         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
30803         * modules/wcscmp (configure.ac): ... to here.
30805 2011-05-22  Bruno Haible  <bruno@clisp.org>
30807         wcschr: Move AC_LIBOBJ invocations to module description.
30808         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
30809         * modules/wcschr (configure.ac): ... to here.
30811 2011-05-22  Bruno Haible  <bruno@clisp.org>
30813         wcscat: Move AC_LIBOBJ invocations to module description.
30814         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
30815         * modules/wcscat (configure.ac): ... to here.
30817 2011-05-22  Bruno Haible  <bruno@clisp.org>
30819         wcscasecmp: Move AC_LIBOBJ invocations to module description.
30820         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
30821         here...
30822         * modules/wcscasecmp (configure.ac): ... to here.
30824 2011-05-22  Bruno Haible  <bruno@clisp.org>
30826         wcrtomb: Move AC_LIBOBJ invocations to module description.
30827         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
30828         invocations from here...
30829         * modules/wcrtomb (configure.ac): ... to here.
30831 2011-05-22  Bruno Haible  <bruno@clisp.org>
30833         wcpncpy: Move AC_LIBOBJ invocations to module description.
30834         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
30835         here...
30836         * modules/wcpncpy (configure.ac): ... to here.
30838 2011-05-22  Bruno Haible  <bruno@clisp.org>
30840         wcpcpy: Move AC_LIBOBJ invocations to module description.
30841         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
30842         * modules/wcpcpy (configure.ac): ... to here.
30844 2011-05-22  Bruno Haible  <bruno@clisp.org>
30846         waitpid: Move AC_LIBOBJ invocations to module description.
30847         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
30848         invocation from here...
30849         * modules/waitpid (configure.ac): ... to here.
30851 2011-05-22  Bruno Haible  <bruno@clisp.org>
30853         utimensat: Move AC_LIBOBJ invocations to module description.
30854         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
30855         here...
30856         * modules/utimensat (configure.ac): ... to here.
30858 2011-05-22  Bruno Haible  <bruno@clisp.org>
30860         usleep: Move AC_LIBOBJ invocations to module description.
30861         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
30862         here...
30863         * modules/usleep (configure.ac): ... to here.
30865 2011-05-22  Bruno Haible  <bruno@clisp.org>
30867         unlockpt: Move AC_LIBOBJ invocations to module description.
30868         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
30869         gl_PREREQ_UNLOCKPT invocations from here...
30870         * modules/unlockpt (configure.ac): ... to here.
30872 2011-05-22  Bruno Haible  <bruno@clisp.org>
30874         unlink: Respect rules for use of AC_LIBOBJ.
30875         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
30876         * modules/unlink (configure.ac): ... to here.
30878 2011-05-22  Bruno Haible  <bruno@clisp.org>
30880         uname: Move AC_LIBOBJ invocations to module description.
30881         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
30882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
30883         here...
30884         * modules/uname (configure.ac): ... to here.
30886 2011-05-22  Bruno Haible  <bruno@clisp.org>
30888         ttyname_r: Move AC_LIBOBJ invocations to module description.
30889         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
30890         gl_PREREQ_TTYNAME_R invocations from here...
30891         * modules/ttyname_r (configure.ac): ... to here.
30893 2011-05-22  Bruno Haible  <bruno@clisp.org>
30895         tsearch: Move AC_LIBOBJ invocations to module description.
30896         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
30897         invocations from here...
30898         * modules/tsearch (configure.ac): ... to here.
30900 2011-05-22  Bruno Haible  <bruno@clisp.org>
30902         towctrans: Move AC_LIBOBJ invocations to module description.
30903         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
30904         AC_LIBOBJ invocation from here...
30905         * modules/towctrans (configure.ac): ... to here.
30907 2011-05-22  Bruno Haible  <bruno@clisp.org>
30909         tmpfile: Move AC_LIBOBJ invocations to module description.
30910         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
30911         invocations from here...
30912         * modules/tmpfile (configure.ac): ... to here.
30914 2011-05-22  Bruno Haible  <bruno@clisp.org>
30916         times: Move AC_LIBOBJ invocations to module description.
30917         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
30918         * modules/times (configure.ac): ... to here.
30920 2011-05-22  Bruno Haible  <bruno@clisp.org>
30922         time_r: Move AC_LIBOBJ invocations to module description.
30923         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
30924         invocations from here...
30925         * modules/time_r (configure.ac): ... to here.
30927 2011-05-22  Bruno Haible  <bruno@clisp.org>
30929         timegm: Move AC_LIBOBJ invocations to module description.
30930         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
30931         invocations from here...
30932         * modules/timegm (configure.ac): ... to here.
30934 2011-05-22  Bruno Haible  <bruno@clisp.org>
30936         tcgetsid: Move AC_LIBOBJ invocations to module description.
30937         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
30938         and gl_PREREQ_TCGETSID invocations from here...
30939         * modules/tcgetsid (configure.ac): ... to here.
30940         (Depends-on): Update conditions.
30942 2011-05-22  Bruno Haible  <bruno@clisp.org>
30944         symlinkat: Move AC_LIBOBJ invocations to module description.
30945         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
30946         here...
30947         * modules/symlinkat (configure.ac): ... to here.
30949 2011-05-22  Bruno Haible  <bruno@clisp.org>
30951         symlink: Move AC_LIBOBJ invocations to module description.
30952         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
30953         here...
30954         * modules/symlink (configure.ac): ... to here.
30956 2011-05-22  Bruno Haible  <bruno@clisp.org>
30958         strverscmp: Move AC_LIBOBJ invocations to module description.
30959         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
30960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
30961         from here...
30962         * modules/strverscmp (configure.ac): ... to here.
30964 2011-05-22  Bruno Haible  <bruno@clisp.org>
30966         strtok_r: Move AC_LIBOBJ invocations to module description.
30967         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
30968         and gl_PREREQ_STRTOK_R invocations from here...
30969         * modules/strtok_r (configure.ac): ... to here.
30970         (Depends-on): Update conditions.
30972 2011-05-22  Bruno Haible  <bruno@clisp.org>
30974         strtoumax: Move AC_LIBOBJ invocations to module description.
30975         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
30976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
30977         from here...
30978         * modules/strtoumax (configure.ac): ... to here.
30980 2011-05-22  Bruno Haible  <bruno@clisp.org>
30982         strtoimax: Move AC_LIBOBJ invocations to module description.
30983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
30984         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
30985         from here...
30986         * modules/strtoimax (configure.ac): ... to here.
30988 2011-05-22  Bruno Haible  <bruno@clisp.org>
30990         strtoull: Move AC_LIBOBJ invocations to module description.
30991         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
30992         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
30993         from here...
30994         * modules/strtoull (configure.ac): ... to here.
30996 2011-05-22  Bruno Haible  <bruno@clisp.org>
30998         strtoll: Move AC_LIBOBJ invocations to module description.
30999         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
31000         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
31001         here...
31002         * modules/strtoll (configure.ac): ... to here.
31004 2011-05-22  Bruno Haible  <bruno@clisp.org>
31006         strtoul: Move AC_LIBOBJ invocations to module description.
31007         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
31008         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
31009         * modules/strtoul (configure.ac): ... to here.
31011 2011-05-22  Bruno Haible  <bruno@clisp.org>
31013         strtol: Move AC_LIBOBJ invocations to module description.
31014         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
31015         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
31016         * modules/strtol (configure.ac): ... to here.
31018 2011-05-22  Bruno Haible  <bruno@clisp.org>
31020         strtod: Move AC_LIBOBJ invocations to module description.
31021         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
31022         invocations from here...
31023         * modules/strtod (configure.ac): ... to here.
31025 2011-05-22  Bruno Haible  <bruno@clisp.org>
31027         strstr*: Move AC_LIBOBJ invocations to module description.
31028         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
31029         invocations from here...
31030         * modules/strstr-simple (configure.ac): ... to here.
31031         * modules/strstr (configure.ac): ... and here.
31033 2011-05-22  Bruno Haible  <bruno@clisp.org>
31035         strsignal: Move AC_LIBOBJ invocations to module description.
31036         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
31037         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
31038         * modules/strsignal (configure.ac): ... to here.
31039         (Depends-on): Update conditions.
31041 2011-05-22  Bruno Haible  <bruno@clisp.org>
31043         strsep: Move AC_LIBOBJ invocations to module description.
31044         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
31045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
31046         here...
31047         * modules/strsep (configure.ac): ... to here.
31049 2011-05-22  Bruno Haible  <bruno@clisp.org>
31051         strptime: Move AC_LIBOBJ invocations to module description.
31052         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
31053         gl_PREREQ_STRPTIME invocations from here...
31054         * modules/strptime (configure.ac): ... to here.
31056 2011-05-22  Bruno Haible  <bruno@clisp.org>
31058         strpbrk: Move AC_LIBOBJ invocations to module description.
31059         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
31060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
31061         here...
31062         * modules/strpbrk (configure.ac): ... to here.
31064 2011-05-22  Bruno Haible  <bruno@clisp.org>
31066         strnlen: Move AC_LIBOBJ invocations to module description.
31067         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
31068         invocations from here...
31069         * modules/strnlen (configure.ac): ... to here.
31071 2011-05-22  Bruno Haible  <bruno@clisp.org>
31073         strndup: Move AC_LIBOBJ invocations to module description.
31074         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
31075         invocations from here...
31076         * modules/strndup (configure.ac): ... to here.
31077         (Depends-on): Update conditions.
31079 2011-05-22  Bruno Haible  <bruno@clisp.org>
31081         strncat: Move AC_LIBOBJ invocations to module description.
31082         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
31083         invocations from here...
31084         * modules/strncat (configure.ac): ... to here.
31086 2011-05-22  Bruno Haible  <bruno@clisp.org>
31088         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
31089         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
31090         invocations from here...
31091         * modules/strdup (configure.ac): ... to here.
31092         * modules/strdup-posix (configure.ac): ... and here.
31094 2011-05-22  Bruno Haible  <bruno@clisp.org>
31096         strcspn: Move AC_LIBOBJ invocations to module description.
31097         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
31098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
31099         here...
31100         * modules/strcspn (configure.ac): ... to here.
31102 2011-05-22  Bruno Haible  <bruno@clisp.org>
31104         strchrnul: Move AC_LIBOBJ invocations to module description.
31105         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
31106         gl_PREREQ_STRCHRNUL invocations from here...
31107         * modules/strchrnul (configure.ac): ... to here.
31109 2011-05-22  Bruno Haible  <bruno@clisp.org>
31111         strcasestr*: Move AC_LIBOBJ invocations to module description.
31112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
31113         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
31114         * modules/strcasestr-simple (configure.ac): ... to here.
31115         * modules/strcasestr (configure.ac): ... and here.
31117 2011-05-22  Bruno Haible  <bruno@clisp.org>
31119         strcase: Move AC_LIBOBJ invocations to module description.
31120         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
31121         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
31122         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
31123         gl_PREREQ_STRNCASECMP invocations from here...
31124         * modules/strcase (configure.ac): ... to here.
31126 2011-05-22  Bruno Haible  <bruno@clisp.org>
31128         stpncpy: Move AC_LIBOBJ invocations to module description.
31129         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
31130         here...
31131         * modules/stpncpy (configure.ac): ... to here.
31133 2011-05-22  Bruno Haible  <bruno@clisp.org>
31135         stpcpy: Move AC_LIBOBJ invocations to module description.
31136         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
31137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
31138         here...
31139         * modules/stpcpy (configure.ac): ... to here.
31141 2011-05-21  Bruno Haible  <bruno@clisp.org>
31143         stat: Move AC_LIBOBJ invocations to module description.
31144         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
31145         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
31146         here...
31147         * modules/stat (configure.ac): ... to here.
31149 2011-05-21  Bruno Haible  <bruno@clisp.org>
31151         sleep: Move AC_LIBOBJ invocations to module description.
31152         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
31153         * modules/sleep (configure.ac): ... to here.
31155 2011-05-21  Bruno Haible  <bruno@clisp.org>
31157         signbit: Move AC_LIBOBJ invocations to module description.
31158         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
31159         * modules/signbit (configure.ac): ... to here.
31161 2011-05-21  Bruno Haible  <bruno@clisp.org>
31163         sigprocmask: Move AC_LIBOBJ invocations to module description.
31164         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
31165         gl_PREREQ_SIGPROMASK invocations from here...
31166         * modules/sigprocmask (configure.ac): ... to here.
31168 2011-05-21  Bruno Haible  <bruno@clisp.org>
31170         sigaction: Move AC_LIBOBJ invocations to module description.
31171         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
31172         gl_PREREQ_SIGACTION invocations from here...
31173         * modules/sigaction (configure.ac): ... to here.
31175 2011-05-21  Bruno Haible  <bruno@clisp.org>
31177         sig2str: Move AC_LIBOBJ invocations to module description.
31178         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
31179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
31180         here...
31181         * modules/sig2str (configure.ac): ... to here.
31183 2011-05-21  Bruno Haible  <bruno@clisp.org>
31185         setlocale: Move AC_LIBOBJ invocations to module description.
31186         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
31187         gl_PREREQ_SETLOCALE invocations from here...
31188         * modules/setlocale (configure.ac): ... to here.
31190 2011-05-21  Bruno Haible  <bruno@clisp.org>
31192         unsetenv: Move AC_LIBOBJ invocations to module description.
31193         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
31194         and gl_PREREQ_UNSETENV invocations from here...
31195         * modules/unsetenv (configure.ac): ... to here.
31196         (Depends-on): Update.
31198 2011-05-21  Bruno Haible  <bruno@clisp.org>
31200         setenv: Move AC_LIBOBJ invocations to module description.
31201         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
31202         here...
31203         * modules/setenv (configure.ac): ... to here.
31205 2011-05-21  Bruno Haible  <bruno@clisp.org>
31207         selinux-h: Move AC_LIBOBJ invocations to module description.
31208         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
31209         AC_LIBOBJ invocation from here...
31210         * modules/selinux-h (configure.ac): ... to here.
31212 2011-05-21  Bruno Haible  <bruno@clisp.org>
31214         select: Respect rules for use of AC_LIBOBJ.
31215         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
31216         here...
31217         * modules/select (configure.ac): ... to here.
31219 2011-05-21  Bruno Haible  <bruno@clisp.org>
31221         scandir: Move AC_LIBOBJ invocations to module description.
31222         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
31223         invocations from here...
31224         * modules/scandir (configure.ac): ... to here.
31226 2011-05-21  Bruno Haible  <bruno@clisp.org>
31228         rpmatch: Move AC_LIBOBJ invocations to module description.
31229         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
31230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
31231         here...
31232         * modules/rpmatch (configure.ac): ... to here.
31234 2011-05-21  Bruno Haible  <bruno@clisp.org>
31236         rmdir: Respect rules for use of AC_LIBOBJ.
31237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
31238         * modules/rmdir (configure.ac): ... to here.
31240 2011-05-21  Bruno Haible  <bruno@clisp.org>
31242         renameat: Move AC_LIBOBJ invocations to module description.
31243         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
31244         here...
31245         * modules/renameat (configure.ac): ... to here.
31247 2011-05-21  Bruno Haible  <bruno@clisp.org>
31249         rename: Respect rules for use of AC_LIBOBJ.
31250         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
31251         here...
31252         * modules/rename (configure.ac): ... to here.
31254 2011-05-21  Bruno Haible  <bruno@clisp.org>
31256         remove: Move AC_LIBOBJ invocations to module description.
31257         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
31258         here...
31259         * modules/remove (configure.ac): ... to here.
31261 2011-05-21  Bruno Haible  <bruno@clisp.org>
31263         relocatable-lib: Move AC_LIBOBJ invocations to module description.
31264         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
31265         macro.
31266         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
31267         * modules/relocatable-lib (configure.ac): ... to here.
31268         * modules/relocatable-prog-wrapper (configure.ac): Invoke
31269         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
31271 2011-05-21  Bruno Haible  <bruno@clisp.org>
31273         relocatable-prog: Move AC_LIBOBJ invocations to module description.
31274         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
31275         here...
31276         * modules/relocatable-prog (configure.ac): ... to here.
31278 2011-05-21  Bruno Haible  <bruno@clisp.org>
31280         regex: Move AC_LIBOBJ invocations to module description.
31281         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
31282         invocations from here...
31283         * modules/regex (configure.ac): ... to here.
31285 2011-05-21  Bruno Haible  <bruno@clisp.org>
31287         realloc-*: Move AC_LIBOBJ invocations to module description.
31288         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
31289         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
31290         AC_LIBOBJ invocations from here...
31291         * modules/realloc-gnu (configure.ac): ... to here.
31292         * modules/realloc-posix (configure.ac): ... and here.
31294 2011-05-21  Bruno Haible  <bruno@clisp.org>
31296         readutmp: Move AC_LIBOBJ invocations to module description.
31297         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
31298         * modules/readutmp (configure.ac): ... to here.
31300 2011-05-21  Bruno Haible  <bruno@clisp.org>
31302         readlinkat: Move AC_LIBOBJ invocations to module description.
31303         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
31304         here...
31305         * modules/readlinkat (configure.ac): ... to here.
31307 2011-05-21  Bruno Haible  <bruno@clisp.org>
31309         readlink: Move AC_LIBOBJ invocations to module description.
31310         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
31311         gl_PREREQ_READLINK invocations from here...
31312         * modules/readlink (configure.ac): ... to here.
31314 2011-05-21  Bruno Haible  <bruno@clisp.org>
31316         readline: Move AC_LIBOBJ invocations to module description.
31317         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
31318         gl_PREREQ_READLINE invocations from here...
31319         * modules/readline (configure.ac): ... to here.
31321 2011-05-21  Bruno Haible  <bruno@clisp.org>
31323         read: Move AC_LIBOBJ invocations to module description.
31324         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
31325         * modules/read (configure.ac): ... to here.
31327 2011-05-21  Bruno Haible  <bruno@clisp.org>
31329         rawmemchr: Move AC_LIBOBJ invocations to module description.
31330         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
31331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
31332         from here...
31333         * modules/rawmemchr (configure.ac): ... to here.
31335 2011-05-21  Bruno Haible  <bruno@clisp.org>
31337         random_r: Move AC_LIBOBJ invocations to module description.
31338         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
31339         gl_PREREQ_RANDOM_R invocations from here...
31340         * modules/random_r (configure.ac): ... to here.
31342 2011-05-21  Bruno Haible  <bruno@clisp.org>
31344         pwrite: Move AC_LIBOBJ invocations to module description.
31345         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
31346         * modules/pwrite (configure.ac): ... to here.
31348 2011-05-21  Bruno Haible  <bruno@clisp.org>
31350         putenv: Move AC_LIBOBJ invocations to module description.
31351         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
31352         * modules/putenv (configure.ac): ... to here.
31354 2011-05-21  Bruno Haible  <bruno@clisp.org>
31356         login_tty: Move AC_LIBOBJ invocations to module description.
31357         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
31358         * modules/login_tty (configure.ac): ... to here.
31360 2011-05-21  Bruno Haible  <bruno@clisp.org>
31362         openpty: Move AC_LIBOBJ invocations to module description.
31363         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
31364         * modules/openpty (configure.ac): ... to here.
31366 2011-05-21  Bruno Haible  <bruno@clisp.org>
31368         forkpty: Move AC_LIBOBJ invocations to module description.
31369         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
31370         * modules/forkpty (configure.ac): ... to here.
31372 2011-05-21  Bruno Haible  <bruno@clisp.org>
31374         ptsname: Move AC_LIBOBJ invocations to module description.
31375         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
31376         invocations from here...
31377         * modules/ptsname (configure.ac): ... to here.
31379 2011-05-21  Bruno Haible  <bruno@clisp.org>
31381         pread: Move AC_LIBOBJ invocations to module description.
31382         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
31383         * modules/pread (configure.ac): ... to here.
31385 2011-05-21  Bruno Haible  <bruno@clisp.org>
31387         posix_spawn*: Move AC_LIBOBJ invocations to module description.
31388         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
31389         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
31390         * modules/posix_spawn (configure.ac): ... to here.
31391         * modules/posix_spawnp (configure.ac): ... and here.
31393 2011-05-21  Bruno Haible  <bruno@clisp.org>
31395         popen: Move AC_LIBOBJ invocations to module description.
31396         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
31397         invocations from here...
31398         * modules/popen (configure.ac): ... to here.
31400 2011-05-21  Bruno Haible  <bruno@clisp.org>
31402         poll: Move AC_LIBOBJ invocations to module description.
31403         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
31404         invocations from here...
31405         * modules/poll (configure.ac): ... to here.
31407 2011-05-21  Bruno Haible  <bruno@clisp.org>
31409         pipe-posix: Move AC_LIBOBJ invocations to module description.
31410         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
31411         * modules/pipe-posix (configure.ac): ... to here.
31413 2011-05-21  Bruno Haible  <bruno@clisp.org>
31415         openat: Respect rules for use of AC_LIBOBJ.
31416         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
31417         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
31418         * modules/openat (configure.ac): ... to here.
31420 2011-05-21  Bruno Haible  <bruno@clisp.org>
31422         obstack-printf*: Move AC_LIBOBJ invocations to module description.
31423         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
31424         invocation from here...
31425         * modules/obstack-printf (configure.ac): ... to here.
31426         * modules/obstack-printf-posix (configure.ac): ... and here.
31428 2011-05-21  Bruno Haible  <bruno@clisp.org>
31430         nl_langinfo: Move AC_LIBOBJ invocations to module description.
31431         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
31432         from here...
31433         * modules/nl_langinfo (configure.ac): ... to here.
31435 2011-05-21  Bruno Haible  <bruno@clisp.org>
31437         nanosleep: Move AC_LIBOBJ invocations to module description.
31438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
31439         gl_PREREQ_NANOSLEEP invocations from here...
31440         * modules/nanosleep (configure.ac): ... to here.
31442 2011-05-21  Bruno Haible  <bruno@clisp.org>
31444         mountlist: Move AC_LIBOBJ invocations to module description.
31445         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
31446         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
31447         * modules/mountlist (configure.ac): ... to here.
31449 2011-05-21  Bruno Haible  <bruno@clisp.org>
31451         mktime: Respect rules for use of AC_LIBOBJ.
31452         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
31453         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
31454         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
31455         (gl_FUNC_MKTIME_INTERNAL): ... and here...
31456         * modules/mktime (configure.ac): ... to here.
31457         * modules/mktime-internal (configure.ac): ... and here.
31458         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
31460 2011-05-21  Bruno Haible  <bruno@clisp.org>
31462         mkstemps: Move AC_LIBOBJ invocations to module description.
31463         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
31464         here...
31465         * modules/mkstemps (configure.ac): ... to here.
31467 2011-05-21  Bruno Haible  <bruno@clisp.org>
31469         mkstemp: Move AC_LIBOBJ invocations to module description.
31470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
31471         gl_PREREQ_MKSTEMP invocations from here...
31472         * modules/mkstemp (configure.ac): ... to here.
31474 2011-05-21  Bruno Haible  <bruno@clisp.org>
31476         mkostemps: Move AC_LIBOBJ invocations to module description.
31477         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
31478         here...
31479         * modules/mkostemps (configure.ac): ... to here.
31481 2011-05-21  Bruno Haible  <bruno@clisp.org>
31483         mkostemp: Move AC_LIBOBJ invocations to module description.
31484         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
31485         gl_PREREQ_MKOSTEMP invocations from here...
31486         * modules/mkostemp (configure.ac): ... to here.
31488 2011-05-21  Bruno Haible  <bruno@clisp.org>
31490         mknod: Move AC_LIBOBJ invocations to module description.
31491         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
31492         * modules/mknod (configure.ac): ... to here.
31494 2011-05-21  Bruno Haible  <bruno@clisp.org>
31496         mkfifoat: Move AC_LIBOBJ invocations to module description.
31497         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
31498         here...
31499         * modules/mkfifoat (configure.ac): ... to here.
31501 2011-05-21  Bruno Haible  <bruno@clisp.org>
31503         mkfifo: Respect rules for use of AC_LIBOBJ.
31504         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
31505         here...
31506         * modules/mkfifo (configure.ac): ... to here.
31508 2011-05-21  Bruno Haible  <bruno@clisp.org>
31510         mkdtemp: Move AC_LIBOBJ invocations to module description.
31511         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
31512         invocations from here...
31513         * modules/mkdtemp (configure.ac): ... to here.
31515 2011-05-21  Bruno Haible  <bruno@clisp.org>
31517         mkdir: Move AC_LIBOBJ invocations to module description.
31518         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
31519         * modules/mkdir (configure.ac): ... to here.
31521 2011-05-21  Bruno Haible  <bruno@clisp.org>
31523         memset: Move AC_LIBOBJ invocations to module description.
31524         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
31525         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
31526         here...
31527         * modules/memset (configure.ac): ... to here.
31529 2011-05-21  Bruno Haible  <bruno@clisp.org>
31531         memrchr: Move AC_LIBOBJ invocations to module description.
31532         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
31533         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
31534         here...
31535         * modules/memrchr (configure.ac): ... to here.
31537 2011-05-21  Bruno Haible  <bruno@clisp.org>
31539         mempcpy: Move AC_LIBOBJ invocations to module description.
31540         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
31541         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
31542         here...
31543         * modules/mempcpy (configure.ac): ... to here.
31545 2011-05-21  Bruno Haible  <bruno@clisp.org>
31547         memmove: Move AC_LIBOBJ invocations to module description.
31548         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
31549         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
31550         here...
31551         * modules/memmove (configure.ac): ... to here.
31553 2011-05-21  Bruno Haible  <bruno@clisp.org>
31555         memmem*: Move AC_LIBOBJ invocations to module description.
31556         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
31557         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
31558         here...
31559         (gl_FUNC_MEMMEM): ... and here...
31560         * modules/memmem-simple (configure.ac): ... to here.
31561         * modules/memmem (configure.ac): ... and here.
31563 2011-05-21  Bruno Haible  <bruno@clisp.org>
31565         memcpy: Move AC_LIBOBJ invocations to module description.
31566         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
31567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
31568         here...
31569         * modules/memcpy (configure.ac): ... to here.
31571 2011-05-21  Bruno Haible  <bruno@clisp.org>
31573         memcmp: Simplify autoconf macro.
31574         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
31575         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
31576         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
31578 2011-05-21  Bruno Haible  <bruno@clisp.org>
31580         memcmp: Move AC_LIBOBJ invocations to module description.
31581         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
31582         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
31583         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
31584         * modules/memcmp (configure.ac): ... to here.
31585         (Depends-on): Update conditions.
31587 2011-05-21  Bruno Haible  <bruno@clisp.org>
31589         memchr: Respect rules for use of AC_LIBOBJ.
31590         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
31591         invocations from here...
31592         * modules/memchr (configure.ac): ... to here.
31594 2011-05-21  Bruno Haible  <bruno@clisp.org>
31596         mbtowc: Move AC_LIBOBJ invocations to module description.
31597         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
31598         invocations from here...
31599         * modules/mbtowc (configure.ac): ... to here.
31601 2011-05-21  Bruno Haible  <bruno@clisp.org>
31603         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
31604         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
31605         gl_PREREQ_MBSRTOWCS invocations from here...
31606         * modules/mbsrtowcs (configure.ac): ... to here.
31608 2011-05-21  Bruno Haible  <bruno@clisp.org>
31610         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
31611         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
31612         gl_PREREQ_MBSNRTOWCS invocations from here...
31613         * modules/mbsnrtowcs (configure.ac): ... to here.
31615 2011-05-21  Bruno Haible  <bruno@clisp.org>
31617         mbsinit: Move AC_LIBOBJ invocations to module description.
31618         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
31619         invocations from here...
31620         * modules/mbsinit (configure.ac): ... to here.
31622 2011-05-21  Bruno Haible  <bruno@clisp.org>
31624         mbrlen: Move AC_LIBOBJ invocations to module description.
31625         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
31626         invocations from here...
31627         * modules/mbrlen (configure.ac): ... to here.
31629 2011-05-21  Bruno Haible  <bruno@clisp.org>
31631         mbrtowc: Respect rules for use of AC_LIBOBJ.
31632         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
31633         invocations from here...
31634         * modules/mbrtowc (configure.ac): ... to here.
31636 2011-05-21  Bruno Haible  <bruno@clisp.org>
31638         malloc-*: Move AC_LIBOBJ invocations to module description.
31639         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
31640         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
31641         AC_LIBOBJ invocations from here...
31642         * modules/malloc-gnu (configure.ac): ... to here.
31643         * modules/malloc-posix (configure.ac): ... and here.
31645 2011-05-21  Bruno Haible  <bruno@clisp.org>
31647         lstat, openat: Respect rules for use of AC_LIBOBJ.
31648         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
31649         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
31650         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
31651         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
31652         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
31653         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
31654         here.
31655         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
31657 2011-05-21  Bruno Haible  <bruno@clisp.org>
31659         lseek: Move AC_LIBOBJ invocations to module description.
31660         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
31661         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
31662         * modules/lseek (configure.ac): ... to here.
31664 2011-05-21  Bruno Haible  <bruno@clisp.org>
31666         linkat: Move AC_LIBOBJ invocations to module description.
31667         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
31668         here...
31669         * modules/linkat (configure.ac): ... to here.
31671 2011-05-21  Bruno Haible  <bruno@clisp.org>
31673         link: Respect rules for use of AC_LIBOBJ.
31674         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
31675         * modules/link (configure.ac): ... to here.
31677 2011-05-21  Bruno Haible  <bruno@clisp.org>
31679         lchown: Move AC_LIBOBJ invocations to module description.
31680         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
31681         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
31682         * modules/lchown (configure.ac): ... to here.
31684 2011-05-21  Bruno Haible  <bruno@clisp.org>
31686         iswctype: Move AC_LIBOBJ invocations to module description.
31687         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
31688         here...
31689         * modules/iswctype (configure.ac): ... to here.
31691 2011-05-21  Bruno Haible  <bruno@clisp.org>
31693         iswblank: Move AC_LIBOBJ invocations to module description.
31694         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
31695         here...
31696         * modules/iswblank (configure.ac): ... to here.
31698 2011-05-21  Bruno Haible  <bruno@clisp.org>
31700         atanl: Move AC_LIBOBJ invocations to module description.
31701         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
31702         * modules/atanl (configure.ac): ... to here.
31704 2011-05-21  Bruno Haible  <bruno@clisp.org>
31706         acosl: Move AC_LIBOBJ invocations to module description.
31707         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
31708         * modules/acosl (configure.ac): ... to here.
31710 2011-05-21  Bruno Haible  <bruno@clisp.org>
31712         asinl: Respect rules for use of AC_LIBOBJ.
31713         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
31714         * modules/asinl (configure.ac): ... to here.
31716 2011-05-21  Bruno Haible  <bruno@clisp.org>
31718         tanl: Move AC_LIBOBJ invocations to module description.
31719         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
31720         * modules/tanl (configure.ac): ... to here.
31722 2011-05-21  Bruno Haible  <bruno@clisp.org>
31724         cosl: Move AC_LIBOBJ invocations to module description.
31725         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
31726         * modules/cosl (configure.ac): ... to here.
31728 2011-05-21  Bruno Haible  <bruno@clisp.org>
31730         sinl: Move AC_LIBOBJ invocations to module description.
31731         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
31732         * modules/sinl (configure.ac): ... to here.
31734 2011-05-21  Bruno Haible  <bruno@clisp.org>
31736         logl: Move AC_LIBOBJ invocations to module description.
31737         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
31738         * modules/logl (configure.ac): ... to here.
31740 2011-05-21  Bruno Haible  <bruno@clisp.org>
31742         expl: Move AC_LIBOBJ invocations to module description.
31743         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
31744         * modules/expl (configure.ac): ... to here.
31746 2011-05-21  Bruno Haible  <bruno@clisp.org>
31748         roundl: Move AC_LIBOBJ invocations to module description.
31749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
31750         * modules/roundl (configure.ac): ... to here.
31752 2011-05-21  Bruno Haible  <bruno@clisp.org>
31754         round: Move AC_LIBOBJ invocations to module description.
31755         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
31756         * modules/round (configure.ac): ... to here.
31758 2011-05-21  Bruno Haible  <bruno@clisp.org>
31760         roundf: Move AC_LIBOBJ invocations to module description.
31761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
31762         * modules/roundf (configure.ac): ... to here.
31764 2011-05-21  Bruno Haible  <bruno@clisp.org>
31766         truncl: Move AC_LIBOBJ invocations to module description.
31767         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
31768         * modules/truncl (configure.ac): ... to here.
31770 2011-05-21  Bruno Haible  <bruno@clisp.org>
31772         trunc: Move AC_LIBOBJ invocations to module description.
31773         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
31774         * modules/trunc (configure.ac): ... to here.
31776 2011-05-21  Bruno Haible  <bruno@clisp.org>
31778         truncf: Move AC_LIBOBJ invocations to module description.
31779         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
31780         * modules/truncf (configure.ac): ... to here.
31782 2011-05-21  Bruno Haible  <bruno@clisp.org>
31784         ceill: Move AC_LIBOBJ invocations to module description.
31785         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
31786         * modules/ceill (configure.ac): ... to here.
31788 2011-05-21  Bruno Haible  <bruno@clisp.org>
31790         ceil: Move AC_LIBOBJ invocations to module description.
31791         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
31792         * modules/ceil (configure.ac): ... to here.
31794 2011-05-21  Bruno Haible  <bruno@clisp.org>
31796         ceilf: Move AC_LIBOBJ invocations to module description.
31797         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
31798         * modules/ceilf (configure.ac): ... to here.
31800 2011-05-21  Bruno Haible  <bruno@clisp.org>
31802         floorl: Respect rules for use of AC_LIBOBJ.
31803         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
31804         * modules/floorl (configure.ac): ... to here.
31806 2011-05-21  Bruno Haible  <bruno@clisp.org>
31808         floor: Respect rules for use of AC_LIBOBJ.
31809         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
31810         * modules/floor (configure.ac): ... to here.
31812 2011-05-21  Bruno Haible  <bruno@clisp.org>
31814         floorf: Move AC_LIBOBJ invocations to module description.
31815         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
31816         * modules/floorf (configure.ac): ... to here.
31818 2011-05-20  Bruno Haible  <bruno@clisp.org>
31820         sqrtl: Respect rules for use of AC_LIBOBJ.
31821         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
31822         * modules/sqrtl (configure.ac): ... to here.
31824 2011-05-20  Bruno Haible  <bruno@clisp.org>
31826         ldexpl: Respect rules for use of AC_LIBOBJ.
31827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
31828         * modules/ldexpl (configure.ac): ... to here.
31830 2011-05-20  Bruno Haible  <bruno@clisp.org>
31832         frexpl*: Respect rules for use of AC_LIBOBJ.
31833         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
31834         invocation from here...
31835         * modules/frexpl (configure.ac): ... to here.
31836         * modules/frexpl-nolibm (configure.ac): ... and here.
31838 2011-05-20  Bruno Haible  <bruno@clisp.org>
31840         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
31841         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
31842         invocation from here...
31843         * modules/frexp (configure.ac): ... to here.
31844         * modules/frexp-nolibm (configure.ac): ... and here.
31846 2011-05-20  Bruno Haible  <bruno@clisp.org>
31848         isnan: Respect rules for use of AC_LIBOBJ.
31849         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
31850         invocations here.
31851         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
31852         REPLACE_ISNAN.
31853         * modules/isnand (configure.ac): Likewise.
31854         * modules/isnanl (configure.ac): Likewise.
31856 2011-05-20  Bruno Haible  <bruno@clisp.org>
31858         isnanl*: Respect rules for use of AC_LIBOBJ.
31859         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
31860         invocation from here...
31861         * modules/isnanl (configure.ac): ... to here.
31862         * modules/isnanl-nolibm (configure.ac): ... and here.
31864 2011-05-20  Bruno Haible  <bruno@clisp.org>
31866         isnand*: Move AC_LIBOBJ invocations to module description.
31867         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
31868         invocation from here...
31869         * modules/isnand (configure.ac): ... to here.
31870         * modules/isnand-nolibm (configure.ac): ... and here.
31872 2011-05-20  Bruno Haible  <bruno@clisp.org>
31874         isnanf*: Move AC_LIBOBJ invocations to module description.
31875         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
31876         invocation from here...
31877         * modules/isnanf (configure.ac): ... to here.
31878         * modules/isnanf-nolibm (configure.ac): ... and here.
31880 2011-05-20  Bruno Haible  <bruno@clisp.org>
31882         isnan*: Separate the AC_LIBOBJ invocations.
31883         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
31884         AC_LIBOBJ invocation.
31885         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
31886         here.
31887         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
31888         AC_LIBOBJ invocation.
31889         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
31890         here.
31891         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
31892         AC_LIBOBJ invocation.
31893         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
31894         here.
31895         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
31897 2011-05-08  Bruno Haible  <bruno@clisp.org>
31899         isinf: Move AC_LIBOBJ invocations to module description.
31900         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
31901         * modules/isinf (configure.ac): ... to here.
31903 2011-05-08  Bruno Haible  <bruno@clisp.org>
31905         isfinite: Move AC_LIBOBJ invocations to module description.
31906         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
31907         * modules/isfinite (configure.ac): ... to here.
31909 2011-05-08  Bruno Haible  <bruno@clisp.org>
31911         isblank: Move AC_LIBOBJ invocations to module description.
31912         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
31913         here...
31914         * modules/isblank (configure.ac): ... to here.
31916 2011-05-08  Bruno Haible  <bruno@clisp.org>
31918         isapipe: Move AC_LIBOBJ invocations to module description.
31919         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
31920         gl_PREREQ_ISAPIPE invocations from here...
31921         * modules/isapipe (configure.ac): ... to here.
31922         (Depends-on): Update condition.
31924 2011-05-08  Bruno Haible  <bruno@clisp.org>
31926         ioctl: Move AC_LIBOBJ invocations to module description.
31927         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
31928         invocations from here...
31929         * modules/ioctl (configure.ac): ... to here.
31930         (Depends-on): Update condition.
31932 2011-05-08  Bruno Haible  <bruno@clisp.org>
31934         imaxdiv: Move AC_LIBOBJ invocations to module description.
31935         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
31936         invocations from here...
31937         * modules/imaxdiv (configure.ac): ... to here.
31939 2011-05-08  Bruno Haible  <bruno@clisp.org>
31941         imaxabs: Move AC_LIBOBJ invocations to module description.
31942         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
31943         invocations from here...
31944         * modules/imaxabs (configure.ac): ... to here.
31946 2011-05-08  Bruno Haible  <bruno@clisp.org>
31948         getaddrinfo: Move AC_LIBOBJ invocations to module description.
31949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
31950         AC_LIBOBJ invocations from here...
31951         * modules/getaddrinfo (configure.ac): ... to here.
31952         (Depends-on): Add conditions.
31954 2011-05-08  Bruno Haible  <bruno@clisp.org>
31956         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
31957         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
31958         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
31959         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
31960         (gl_PREREQ_INET_PTON): ... from here.
31961         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
31962         gl_PREREQ_INET_PTON here.
31963         (Depends-on): Update condition.
31965 2011-05-08  Bruno Haible  <bruno@clisp.org>
31967         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
31968         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
31969         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
31970         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
31971         (gl_PREREQ_INET_NTOP): ... from here.
31972         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
31973         gl_PREREQ_INET_NTOP here.
31974         (Depends-on): Update condition.
31976 2011-05-08  Bruno Haible  <bruno@clisp.org>
31978         iconv_open: Move AC_LIBOBJ invocations to module description.
31979         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
31980         AC_LIBOBJ invocations from here...
31981         * modules/iconv_open (configure.ac): ... to here.
31983 2011-05-08  Bruno Haible  <bruno@clisp.org>
31985         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
31986         If module 'iconv_open' is among the main modules and module
31987         'iconv_open-utf' is among the tests dependencies, then
31988         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
31989         return the special iconv_t values. Therefore iconv() and iconv_close()
31990         must support these special iconv_t values, already in lib, not only in
31991         tests.
31992         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
31993         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
31994         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
31995         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
31996         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
31997         (Depends-on): Add the dependencies of iconv_open-utf.
31998         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
31999         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
32000         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
32002 2011-05-08  Bruno Haible  <bruno@clisp.org>
32004         group-member: Move AC_LIBOBJ invocations to module description.
32005         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
32006         gl_PREREQ_GROUP_MEMBER invocations from here...
32007         * modules/group-member (configure.ac): ... to here.
32009 2011-05-08  Bruno Haible  <bruno@clisp.org>
32011         grantpt: Move AC_LIBOBJ invocations to module description.
32012         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
32013         invocations from here...
32014         * modules/grantpt (configure.ac): ... to here.
32016 2011-05-08  Bruno Haible  <bruno@clisp.org>
32018         glob: Move AC_LIBOBJ invocations to module description.
32019         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
32020         from here...
32021         * modules/glob (configure.ac): ... to here.
32023 2011-05-08  Bruno Haible  <bruno@clisp.org>
32025         getusershell: Move AC_LIBOBJ invocations to module description.
32026         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
32027         Move AC_LIBOBJ invocation from here...
32028         * modules/getusershell (configure.ac): ... to here.
32029         (Depends-on): Update condition.
32031 2011-05-08  Bruno Haible  <bruno@clisp.org>
32033         gettimeofday: Move AC_LIBOBJ invocations to module description.
32034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
32035         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
32036         gl_PREREQ_GETTIMEOFDAY invocations from here...
32037         * modules/gettimeofday (configure.ac): ... to here.
32039 2011-05-08  Bruno Haible  <bruno@clisp.org>
32041         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
32042         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
32043         just gl_FUNC_TZSET.
32044         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
32045         (gl_FUNC_TZSET_CLOBBER): Remove actions.
32046         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
32047         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
32049 2011-05-08  Bruno Haible  <bruno@clisp.org>
32051         getsubopt: Move AC_LIBOBJ invocations to module description.
32052         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
32053         gl_PREREQ_GETSUBOPT invocations from here...
32054         * modules/getsubopt (configure.ac): ... to here.
32056 2011-05-08  Bruno Haible  <bruno@clisp.org>
32058         getpass-gnu: Move AC_LIBOBJ invocations to module description.
32059         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
32060         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
32061         * modules/getpass-gnu (configure.ac): ... to here.
32063 2011-05-08  Bruno Haible  <bruno@clisp.org>
32065         getpass: Move AC_LIBOBJ invocations to module description.
32066         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
32067         gl_PREREQ_GETPASS invocations from here...
32068         * modules/getpass (configure.ac): ... to here.
32070 2011-05-08  Bruno Haible  <bruno@clisp.org>
32072         getpagesize: Move AC_LIBOBJ invocations to module description.
32073         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
32074         from here...
32075         * modules/getpagesize (configure.ac): ... to here.
32077 2011-05-08  Bruno Haible  <bruno@clisp.org>
32079         getopt: Move AC_LIBOBJ invocations to module description.
32080         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
32081         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
32082         invocations from here...
32083         * modules/getopt-gnu (configure.ac): ... to here.
32084         * modules/getopt-posix (configure.ac): ... and here.
32085         (Depends-on): Update condition.
32087 2011-05-08  Bruno Haible  <bruno@clisp.org>
32089         getopt, argp: Respect rules for use of AC_LIBOBJ.
32090         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
32091         (gl_REPLACE_GETOPT_ALWAYS): New macro.
32092         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
32093         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
32095 2011-05-08  Bruno Haible  <bruno@clisp.org>
32097         getlogin_r: Move AC_LIBOBJ invocations to module description.
32098         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
32099         gl_PREREQ_GETLOGIN_R invocations from here...
32100         * modules/getlogin_r (configure.ac): ... to here.
32102 2011-05-08  Bruno Haible  <bruno@clisp.org>
32104         getlogin: Move AC_LIBOBJ invocations to module description.
32105         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
32106         here...
32107         * modules/getlogin (configure.ac): ... to here.
32109 2011-05-08  Bruno Haible  <bruno@clisp.org>
32111         getloadavg: Move AC_LIBOBJ invocations to module description.
32112         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
32113         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
32114         * modules/getloadavg (configure.ac): ... to here.
32116 2011-05-08  Bruno Haible  <bruno@clisp.org>
32118         gethrxtime: Move AC_LIBOBJ invocations to module description.
32119         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
32120         LIB_GETHRXTIME from here...
32121         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
32122         invocations from here...
32123         * modules/gethrxtime (configure.ac): ... to here.
32125 2011-05-08  Bruno Haible  <bruno@clisp.org>
32127         gethostname: Move AC_LIBOBJ invocations to module description.
32128         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
32129         gl_PREREQ_GETHOSTNAME invocations from here...
32130         * modules/gethostname (configure.ac): ... to here.
32132 2011-05-08  Bruno Haible  <bruno@clisp.org>
32134         getgroups: Move AC_LIBOBJ invocations to module description.
32135         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
32136         here...
32137         * modules/getgroups (configure.ac): ... to here.
32139 2011-05-08  Bruno Haible  <bruno@clisp.org>
32141         getdtablesize: Move AC_LIBOBJ invocations to module description.
32142         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
32143         invocation from here...
32144         * modules/getdtablesize (configure.ac): ... to here.
32146 2011-05-08  Bruno Haible  <bruno@clisp.org>
32148         getdomainname: Move AC_LIBOBJ invocations to module description.
32149         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
32150         gl_PREREQ_GETDOMAINNAME invocations from here...
32151         * modules/getdomainname (configure.ac): ... to here.
32153 2011-05-08  Bruno Haible  <bruno@clisp.org>
32155         getline: Move AC_LIBOBJ invocations to module description.
32156         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
32157         invocations from here...
32158         * modules/getline (configure.ac): ... to here.
32160 2011-05-08  Bruno Haible  <bruno@clisp.org>
32162         getline: Simplify.
32163         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
32164         It's already handled through the module dependency.
32166 2011-05-08  Bruno Haible  <bruno@clisp.org>
32168         getdelim: Move AC_LIBOBJ invocations to module description.
32169         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
32170         and gl_PREREQ_GETDELIM invocations from here...
32171         * modules/getdelim (configure.ac): ... to here.
32172         (Depends-on): Fix condition.
32174 2011-05-08  Bruno Haible  <bruno@clisp.org>
32176         getcwd: Move AC_LIBOBJ invocations to module description.
32177         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
32178         invocations from here...
32179         * modules/getcwd (configure.ac): ... to here.
32181 2011-05-08  Bruno Haible  <bruno@clisp.org>
32183         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
32184         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
32185         here...
32186         * modules/getcwd-lgpl (configure.ac): ... to here.
32188 2011-05-07  Bruno Haible  <bruno@clisp.org>
32190         crypto/gc: Move AC_LIBOBJ invocations to module description.
32191         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
32192         * modules/crypto/gc (configure.ac): ... to here.
32194 2011-05-07  Bruno Haible  <bruno@clisp.org>
32196         fwriting: Move AC_LIBOBJ invocations to module description.
32197         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
32198         here...
32199         * modules/fwriting (configure.ac): ... to here.
32201 2011-05-07  Bruno Haible  <bruno@clisp.org>
32203         fwritable: Move AC_LIBOBJ invocations to module description.
32204         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
32205         here...
32206         * modules/fwritable (configure.ac): ... to here.
32208 2011-05-07  Bruno Haible  <bruno@clisp.org>
32210         futimens: Move AC_LIBOBJ invocations to module description.
32211         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
32212         here...
32213         * modules/futimens (configure.ac): ... to here.
32215 2011-05-07  Bruno Haible  <bruno@clisp.org>
32217         ftruncate: Move AC_LIBOBJ invocations to module description.
32218         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
32219         gl_PREREQ_FTRUNCATE invocations from here...
32220         * modules/ftruncate (configure.ac): ... to here.
32222 2011-05-07  Bruno Haible  <bruno@clisp.org>
32224         fsync: Move AC_LIBOBJ invocations to module description.
32225         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
32226         invocations from here...
32227         * modules/fsync (configure.ac): ... to here.
32229 2011-05-07  Bruno Haible  <bruno@clisp.org>
32231         fsusage: Move AC_LIBOBJ invocations to module description.
32232         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
32233         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
32234         * modules/fsusage (configure.ac): ... to here.
32236 2011-05-07  Bruno Haible  <bruno@clisp.org>
32238         freopen: Move AC_LIBOBJ invocations to module description.
32239         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
32240         invocations from here...
32241         * modules/freopen (configure.ac): ... to here.
32243 2011-05-07  Bruno Haible  <bruno@clisp.org>
32245         free: Move AC_LIBOBJ invocations to module description.
32246         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
32247         invocations from here...
32248         * modules/free (configure.ac): ... to here.
32250 2011-05-07  Bruno Haible  <bruno@clisp.org>
32252         freadable: Move AC_LIBOBJ invocations to module description.
32253         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
32254         here...
32255         * modules/freadable (configure.ac): ... to here.
32257 2011-05-07  Bruno Haible  <bruno@clisp.org>
32259         fpurge: Move AC_LIBOBJ invocations to module description.
32260         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
32261         invocations from here...
32262         * modules/fpurge (configure.ac): ... to here.
32264 2011-05-07  Bruno Haible  <bruno@clisp.org>
32266         fpending: Move AC_LIBOBJ invocations to module description.
32267         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
32268         gl_FUNC_FPENDING.
32269         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
32270         invocations from here...
32271         * modules/fpending (configure.ac): ... to here.
32273 2011-05-07  Bruno Haible  <bruno@clisp.org>
32275         fopen: Move AC_LIBOBJ invocations to module description.
32276         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
32277         invocations from here...
32278         * modules/fopen (configure.ac): ... to here.
32280 2011-05-07  Bruno Haible  <bruno@clisp.org>
32282         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
32283         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
32284         gl_FUNC_FNMATCH_POSIX.
32285         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
32286         invocations from here...
32287         * modules/fnmatch (configure.ac): ... to here.
32288         * modules/fnmatch-gnu (configure.ac): ... and here.
32290 2011-05-07  Bruno Haible  <bruno@clisp.org>
32292         flock: Move AC_LIBOBJ invocations to module description.
32293         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
32294         invocations from here...
32295         * modules/flock (configure.ac): ... to here.
32297 2011-05-07  Bruno Haible  <bruno@clisp.org>
32299         fileblocks: Move AC_LIBOBJ invocations to module description.
32300         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
32301         gl_PREREQ_FILEBLOCKS invocations from here...
32302         * modules/fileblocks (configure.ac): ... to here.
32304 2011-05-06  Bruno Haible  <bruno@clisp.org>
32306         fflush: Move AC_LIBOBJ invocations to module description.
32307         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
32308         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
32309         invocations from here...
32310         * modules/fflush (configure.ac): ... to here.
32312 2011-05-06  Bruno Haible  <bruno@clisp.org>
32314         fdopendir: Move AC_LIBOBJ invocations to module description.
32315         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
32316         here...
32317         * modules/fdopendir (configure.ac): ... to here.
32318         (Depends-on): Improve conditions.
32320 2011-05-06  Bruno Haible  <bruno@clisp.org>
32322         _Exit: Move AC_LIBOBJ invocations to module description.
32323         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
32324         invocations from here...
32325         * modules/_Exit (configure.ac): ... to here.
32327 2011-05-21  Bruno Haible  <bruno@clisp.org>
32329         euidaccess: Respect rules for use of AC_LIBOBJ.
32330         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
32331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
32332         from here...
32333         * modules/euidaccess (configure.ac): ... to here.
32335 2011-05-06  Bruno Haible  <bruno@clisp.org>
32337         error: Move AC_LIBOBJ invocations to module description.
32338         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
32339         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
32340         invocations from here...
32341         * modules/error (configure.ac): ... to here.
32343 2011-05-06  Bruno Haible  <bruno@clisp.org>
32345         duplocale: Move AC_LIBOBJ invocations to module description.
32346         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
32347         gl_PREREQ_DUPLOCALE invocations from here...
32348         * modules/duplocale (configure.ac): ... to here.
32350 2011-05-05  Bruno Haible  <bruno@clisp.org>
32352         dirfd: Move AC_LIBOBJ invocations to module description.
32353         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
32354         gl_FUNC_DIRFD.
32355         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
32356         here...
32357         * modules/dirfd (configure.ac): ... to here.
32358         (Depends-on): Fix condition.
32360 2011-05-05  Bruno Haible  <bruno@clisp.org>
32362         chown: Respect rules for use of AC_LIBOBJ.
32363         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
32364         * modules/chown (configure.ac): ... to here.
32366 2011-05-05  Bruno Haible  <bruno@clisp.org>
32368         chdir-long: Move AC_LIBOBJ invocations to module description.
32369         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
32370         gl_PREREQ_CHDIR_LONG invocations from here...
32371         * modules/chdir-long (configure.ac): ... to here.
32373 2011-05-05  Bruno Haible  <bruno@clisp.org>
32375         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
32376         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
32377         from here...
32378         * modules/canonicalize-lgpl (configure.ac): ... to here.
32380 2011-05-05  Bruno Haible  <bruno@clisp.org>
32382         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
32383         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
32384         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
32385         REPLACE_CALLOC.
32386         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
32387         * modules/calloc-gnu (configure.ac): Likewise.
32389 2011-05-05  Bruno Haible  <bruno@clisp.org>
32391         btowc: Move AC_LIBOBJ invocations to module description.
32392         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
32393         invocations from here...
32394         * modules/btowc (configure.ac): ... to here.
32396 2011-05-21  Bruno Haible  <bruno@clisp.org>
32398         atexit: Move AC_LIBOBJ invocations to module description.
32399         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
32400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
32401         here...
32402         * modules/atexit (configure.ac): ... to here.
32404 2011-05-05  Bruno Haible  <bruno@clisp.org>
32406         atoll: Move AC_LIBOBJ invocations to module description.
32407         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
32408         invocations from here...
32409         * modules/atoll (configure.ac): ... to here.
32411 2011-05-05  Bruno Haible  <bruno@clisp.org>
32413         argz: Move AC_LIBOBJ invocations to module description.
32414         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
32415         * modules/argz (configure.ac): ... to here.
32417 2011-05-05  Bruno Haible  <bruno@clisp.org>
32419         alphasort: Move AC_LIBOBJ invocations to module description.
32420         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
32421         gl_PREREQ_ALPHASORT invocations from here...
32422         * modules/alphasort (configure.ac): ... to here.
32424 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32426         verify: new macro verify_expr; verify_true deprecated
32427         * NEWS: Mention this.
32428         * doc/verify.texi (Compile-time Assertions): Document this.
32429         * lib/verify.h (verify_true): Deprecate.
32430         (verify_expr): New macro.
32431         * tests/test-verify.c (function): Test verify_expr.
32433 2011-06-14  Jim Meyering  <meyering@redhat.com>
32435         init.sh: give more portable redirection-related advice in a comment
32436         * tests/init.sh (stderr_fileno_): Update the advice in comments.
32437         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
32438         for lots of discussion.  Stefano Lattarini suggested the solution
32439         of putting "9>&2" after the command.  Reported by Bruno Haible.
32441 2011-06-13  Bruno Haible  <bruno@clisp.org>
32443         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
32444         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
32445         'none'.
32447 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32449         ftoastr: use strtof only if HAVE_STRTOF
32450         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
32451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
32452         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
32453         * modules/ftoastr (configure.ac): Check for strtof.
32455 2011-06-13  Bruno Haible  <bruno@clisp.org>
32457         gnulib-tool: Addendum to 2011-06-08 commit.
32458         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
32459         and --witness-c-macro have been given, augment AM_CPPFLAGS.
32461 2011-06-13  Bruno Haible  <bruno@clisp.org>
32463         fseeko: Provide a non-inline replacement of fseek().
32464         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
32465         * modules/fseeko (Depends-on): Add fseek.
32466         * modules/fseek (License): Change to LGPLv2+.
32468 2011-06-13  Bruno Haible  <bruno@clisp.org>
32470         ftello: Provide a non-inline replacement of ftell().
32471         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
32472         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
32473         not have ftello() (such as on mingw).
32474         * modules/ftello (Depends-on): Add ftell.
32475         * modules/ftell (License): Change to LGPLv2+.
32477 2011-05-07  Bruno Haible  <bruno@clisp.org>
32479         ftell: Move AC_LIBOBJ invocations to module description.
32480         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
32481         * modules/ftell (configure.ac): ... to here.
32483 2011-05-07  Bruno Haible  <bruno@clisp.org>
32485         ftello: Respect rules for use of AC_LIBOBJ.
32486         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
32487         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
32488         here...
32489         * modules/ftello (configure.ac): ... to here.
32491 2011-05-07  Bruno Haible  <bruno@clisp.org>
32493         fseeko: Simplify.
32494         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
32495         (gl_FUNC_FSEEKO): Inline it here.
32497 2011-05-07  Bruno Haible  <bruno@clisp.org>
32499         fseek: Move AC_LIBOBJ invocations to module description.
32500         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
32501         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
32502         * modules/fseek (configure.ac): ... to here.
32504 2011-05-07  Bruno Haible  <bruno@clisp.org>
32506         fseek: Respect rules for use of AC_LIBOBJ.
32507         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
32508         here...
32509         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
32511 2011-05-07  Bruno Haible  <bruno@clisp.org>
32513         fseeko: Respect rules for use of AC_LIBOBJ.
32514         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
32515         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
32516         here...
32517         * modules/fseeko (configure.ac): ... to here.
32519 2011-06-13  Bruno Haible  <bruno@clisp.org>
32521         gnulib-tool: Allow comments in the 'Depends-on' section.
32522         * doc/gnulib.texi (Module description): Mention comment syntax in the
32523         Depends-on section.
32524         * gnulib-tool (func_get_dependencies): Filter out comment lines.
32526 2011-06-13  Bruno Haible  <bruno@clisp.org>
32528         file-set.h: guard __attibute__ use, now that it's not always defined
32529         * lib/file-set.h (record_file): Use __attribute__ only with compiler
32530         versions that support it.  This fixes a coreutils build failure with
32531         the vendor cc on HP-UX 11.31.
32533 2011-06-12  Bruno Haible  <bruno@clisp.org>
32535         acl: Add support for HP-UX >= 11.11 JFS ACLs.
32536         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
32537         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
32538         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
32539         (acl, aclsort): New declarations.
32540         (aclv_nontrivial): New declaration.
32541         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
32542         (file_has_acl): Read also the second kind of HP-UX ACLs.
32543         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
32544         kind of HP-UX ACLs if the first kind fails.
32545         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
32546         second kind of HP-UX ACLs.
32547         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
32548         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
32549         agree.
32550         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
32551         hpuxjfs.
32552         Handle hpuxjfs.
32553         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
32554         hpuxjfs.
32555         Handle hpuxjfs.
32556         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
32557         (func_test_same_acls): Use both lsacl and getacl.
32558         Handle hpuxjfs.
32559         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
32560         (func_test_same_acls): Use both lsacl and getacl.
32561         Handle hpuxjfs.
32563 2011-06-12  Bruno Haible  <bruno@clisp.org>
32565         acl: Complete the 2010-08-10 fix.
32566         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
32567         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
32568         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
32569         explicitly.
32570         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
32571         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
32573 2011-06-12  Bruno Haible  <bruno@clisp.org>
32575         spawn-pipe tests: Comments.
32576         * tests/test-spawn-pipe-child.c (main): Update comment.
32577         Reported by James Youngman <jay@gnu.org>.
32579 2011-06-11  James Youngman  <jay@gnu.org>
32581         New module 'stat-size'.
32582         * modules/stat-size: New module.  Provides macros for accessing
32583         file size information in instances of struct stat.  Depends on the
32584         fileblocks module because it calls st_blocks.
32585         * lib/stat-size.h: New file, adapted from coreutils' system.h.
32586         * doc/gnulib.texi: Include stat-size.texi.
32587         * doc/stat-size.texi: Documentation for this module.
32588         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
32589         * m4/fileblocks.m4: Mention that stat-size depends on the call to
32590         AC_STRUCT_ST_BLOCKS.
32592 2011-06-09  Bruno Haible  <bruno@clisp.org>
32594         thread: Support pthreads-win32.
32595         * lib/glthread/thread.h (gl_thread_self): Define differently on
32596         pthreads-win32.
32597         (gl_null_thread): New declaration.
32598         (gl_thread_self_pointer): New macro.
32599         * lib/glthread/thread.c (gl_null_thread): New constant.
32600         * tests/test-lock.c: Use gl_thread_self_pointer instead of
32601         gl_thread_self.
32602         * tests/test-tls.c: Likewise.
32603         Suggested by Paul Eggert. Reported by Eric Blake.
32605 2011-06-09  Bruno Haible  <bruno@clisp.org>
32607         thread: Fix confusion between NULL and 0.
32608         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
32609         Reported by Paul Eggert.
32611 2011-06-09  Bruno Haible  <bruno@clisp.org>
32613         spawn-pipe tests: Avoid test failure on HP-UX 11.
32614         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
32615         is closed.
32617 2011-06-09  Bruno Haible  <bruno@clisp.org>
32619         acl tests: Fix compilation error on HP-UX 11.
32620         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
32622 2011-06-09  Bruno Haible  <bruno@clisp.org>
32624         rmdir: Avoid test failure on HP-UX 10.20.
32625         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
32626         EEXIST.
32628 2011-06-08  Eric Blake  <eblake@redhat.com>
32630         perror: fix test on mingw
32631         * modules/perror-tests (Depends-on): Add dup2.
32633         strerror_r-posix: fix on MacOS
32634         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
32635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
32636         logic bug.
32637         * lib/strerror_r.c (strerror_r): Fix the bug.
32638         * lib/strerror.c (strerror): Likewise.
32639         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
32640         problem.
32641         * doc/posix-functions/strerror.texi (strerror): Likewise.
32642         * doc/posix-functions/perror.texi (perror): Likewise.
32643         * tests/test-strerror.c (main): Enhance test.
32644         * tests/test-strerror_r.c (main): Likewise.
32646 2011-06-08  Bruno Haible  <bruno@clisp.org>
32648         gnulib-tool: Better isolation between different gnulib-tool invocations.
32649         * gnulib-tool: New option --witness-c-macro.
32650         (witness_c_macro): New variable.
32651         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
32652         AM_CPPFLAGS define it as a C macro.
32653         (func_emit_tests_Makefile_am): Likewise.
32654         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
32655         read it from there.
32656         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
32657         m4_define, not AC_DEFUN.
32658         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
32659         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
32660         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
32661         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
32662         s|...|...|, to substitute the values of the GNULIB_* module indicator
32663         variables.
32664         * modules/dirent (Makefile.am): Likewise.
32665         * modules/fcntl-h (Makefile.am): Likewise.
32666         * modules/iconv-h (Makefile.am): Likewise.
32667         * modules/langinfo (Makefile.am): Likewise.
32668         * modules/locale (Makefile.am): Likewise.
32669         * modules/math (Makefile.am): Likewise.
32670         * modules/netdb (Makefile.am): Likewise.
32671         * modules/poll-h (Makefile.am): Likewise.
32672         * modules/pty (Makefile.am): Likewise.
32673         * modules/search (Makefile.am): Likewise.
32674         * modules/signal (Makefile.am): Likewise.
32675         * modules/spawn (Makefile.am): Likewise.
32676         * modules/stdio (Makefile.am): Likewise.
32677         * modules/stdlib (Makefile.am): Likewise.
32678         * modules/string (Makefile.am): Likewise.
32679         * modules/sys_ioctl (Makefile.am): Likewise.
32680         * modules/sys_select (Makefile.am): Likewise.
32681         * modules/sys_socket (Makefile.am): Likewise.
32682         * modules/sys_stat (Makefile.am): Likewise.
32683         * modules/sys_times (Makefile.am): Likewise.
32684         * modules/sys_utsname (Makefile.am): Likewise.
32685         * modules/sys_wait (Makefile.am): Likewise.
32686         * modules/termios (Makefile.am): Likewise.
32687         * modules/time (Makefile.am): Likewise.
32688         * modules/unistd (Makefile.am): Likewise.
32689         * modules/wchar (Makefile.am): Likewise.
32691 2011-06-08  Eric Blake  <eblake@redhat.com>
32693         strerror: simplify replacement
32694         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
32695         * modules/strerror (configure.ac): No prereqs needed here...
32696         * modules/strerror-override (configure.ac): ...but this needs it.
32697         (Files): Add file for needed prereq macro.
32699 2011-06-08  Bruno Haible  <bruno@clisp.org>
32701         strerror_r-posix: Tweaks.
32702         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
32703         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
32704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
32705         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
32706         (gl_FUNC_STRERROR_R): ... to here.
32707         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
32709 2011-06-07  Eric Blake  <eblake@redhat.com>
32711         perror: document fixed bugs
32712         * doc/posix-functions/perror.texi (perror): Document recent
32713         patches.
32715 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32717         stat-time: get_stat_birthtime failure is better-defined
32718         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
32719         return a timestamp whose tv_sec and tv_nsec values are both -1.
32720         Previously, the spec said only that the tv_nsec value was negative.
32721         This upward-compatible change simplifies GNU tar a bit.
32723 2011-06-07  Eric Blake  <eblake@redhat.com>
32725         strerror_r-posix: work around cygwin 1.7.9
32726         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
32727         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
32728         bug without replacing strerror_r.
32729         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
32730         strerror_r is buggy, but without requiring strerror_r compilation.
32731         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
32733         test-perror: relax test to ignore cygwin bug
32734         * tests/test-perror2.c (main): Relax test on requiring detection
32735         of stream errors, and use unbuffered stream.
32736         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
32737         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
32738         * doc/posix-functions/fputc.texi (fputc): Likewise.
32739         * doc/posix-functions/fputs.texi (fputs): Likewise.
32740         * doc/posix-functions/fputws.texi (fputws): Likewise.
32741         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
32742         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
32743         * doc/posix-functions/getopt.texi (getopt): Likewise.
32744         * doc/posix-functions/perror.texi (perror): Likewise.
32745         * doc/posix-functions/printf.texi (printf): Likewise.
32746         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
32747         * doc/posix-functions/psignal.texi (psignal): Likewise.
32748         * doc/posix-functions/putc.texi (putc): Likewise.
32749         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
32750         Likewise.
32751         * doc/posix-functions/putchar.texi (putchar): Likewise.
32752         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
32753         Likewise.
32754         * doc/posix-functions/puts.texi (puts): Likewise.
32755         * doc/posix-functions/putwc.texi (putwc): Likewise.
32756         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32757         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32758         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32759         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
32760         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32761         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32762         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32763         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
32765 2011-05-22  Bruno Haible  <bruno@clisp.org>
32767         strerror: Move AC_LIBOBJ invocations to module description.
32768         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
32769         gl_PREREQ_STRERROR invocations from here...
32770         * modules/strerror (configure.ac): ... to here.
32772 2011-05-21  Bruno Haible  <bruno@clisp.org>
32774         perror: Use common idiom.
32775         * modules/perror (configure.ac): Reorder statements.
32777 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32779         tests: fix usage message in 'mktempd_'
32780         * tests/init.sh (mktempd_): In the usage message, use literal
32781         'mktempd_', not '$ME' (which is even undefined), as the name of
32782         the subroutine.
32784 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32786         tests init: new function 'fatal_', for hard errors
32787         Before this patch, the only way offered by tests/init.sh to
32788         properly signal a hard error was the `framework_failure_'
32789         function.  But the error message issued by that function,
32790         as its name would suggest, refers to a set-up failure in the
32791         testsuite, while hard errors can obviously also be due to
32792         other reasons.  The best way to fix this inconsistency is to
32793         introduce a new function with a more general error message.
32794         * tests/init.sh (fatal_): New function.
32796 2011-06-06  Eric Blake  <eblake@redhat.com>
32798         canonicalize-lgpl: use common idiom
32799         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
32800         over newer POSIX -Rf.
32801         Reported by Bruno Haible.
32803         canonicalize-lgpl: work around AIX realpath bug
32804         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
32805         * doc/posix-functions/realpath.texi (realpath): Document it.
32806         Reported by Bruno Haible.
32808         strerror: work around FreeBSD bug
32809         * lib/strerror.c (strerror): Special case 0.
32810         Reported by Bruno Haible.
32812         strerror-override: avoid bloating errno module
32813         * modules/errno (Files, configure.ac): Move replacement strings...
32814         * modules/strerror-override: ...to new module.
32815         * modules/strerror (Depends-on): Add strerror-override.
32816         * modules/strerror_r-posix (Depends-on): Likewise.
32817         * MODULES.html.sh: Document new module.
32818         Reported by Bruno Haible.
32820 2011-06-06  Bruno Haible  <bruno@clisp.org>
32822         spawn-pipe tests: Rename program.
32823         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
32824         * tests/test-spawn-pipe-child.c: Update comment.
32825         * tests/test-spawn-pipe.sh: Update.
32826         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
32828         spawn-pipe tests: Link the child program only against libc.
32829         * tests/test-spawn-pipe-child.c: New file, extracted from
32830         tests/test-spawn-pipe.c.
32831         (main): Expect only one argument.
32832         (is_open): New function, copied from tests/test-pipe.c.
32833         * tests/test-spawn-pipe.c: Don't include <errno.h>.
32834         (child_main): Remove function.
32835         (test_pipe): Pass only one argument to the child program.
32836         (main): Remove child process code. Expect the child program's name as
32837         first argument.
32838         * tests/test-spawn-pipe.sh: Pass the child program's name as first
32839         argument.
32840         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
32841         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
32842         test-spawn-pipe-child against no libraries.
32844 2011-06-06  Bruno Haible  <bruno@clisp.org>
32846         careadlinkat: Avoid mismatch between ssize_t and int.
32847         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
32848         * lib/careadlinkat.c (careadlinkatcwd): Define always.
32850 2011-06-06  Jim Meyering  <meyering@redhat.com>
32852         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
32853         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
32854         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
32856 2011-06-05  Bruno Haible  <bruno@clisp.org>
32858         ansi-c++-opt: Interoperability with libtool.
32859         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
32860         set the variable to "no", not to ":".
32861         * NEWS: Mention the change.
32863 2011-06-05  Bruno Haible  <bruno@clisp.org>
32865         acl: Fix test failure on AIX 7.
32866         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
32867         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
32869 2011-06-05  Bruno Haible  <bruno@clisp.org>
32871         pipe-filter-ii: Fix test failure on AIX and IRIX.
32872         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
32873         with EAGAIN, retry with a smaller buffer size.
32875 2011-06-05  Bruno Haible  <bruno@clisp.org>
32877         localename: Fix link dependencies.
32878         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
32879         * modules/localename-tests (Makefile.am): Link test-localename with
32880         $(LIBTHREAD).
32882 2011-06-05  Bruno Haible  <bruno@clisp.org>
32884         error: Avoid gcc warning.
32885         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
32887 2011-06-05  Bruno Haible  <bruno@clisp.org>
32889         unsetenv: Avoid gcc warning.
32890         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
32892 2011-06-05  Bruno Haible  <bruno@clisp.org>
32894         setenv: Avoid gcc warning.
32895         * lib/setenv.c (setenv): Provide declaration if system lacks it.
32897 2011-06-05  Bruno Haible  <bruno@clisp.org>
32899         sys_select: Ensure memset is declared also on AIX 7.
32900         * lib/sys_select.in.h: Include <string.h> also on AIX.
32901         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
32902         self-contained also on AIX 7.1.
32904 2011-06-04  Jim Meyering  <meyering@redhat.com>
32906         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
32907         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
32908         function name, "error".
32909         (_gl_translatable_diag_func_re): New configurable variable.
32911 2011-06-04  Bruno Haible  <bruno@clisp.org>
32913         getopt: Avoid gcc warning.
32914         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
32916 2011-06-04  Bruno Haible  <bruno@clisp.org>
32918         strerror_r: Fix comments.
32919         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
32920         commit.
32922 2011-06-04  Bruno Haible  <bruno@clisp.org>
32924         perror: Fix compilation error.
32925         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
32926         Undefine fprintf, not sprintf.
32927         * modules/perror (Depends-on): Remove intprops, verify.
32929 2011-06-04  Bruno Haible  <bruno@clisp.org>
32931         setlocale: Enable replacement on Cygwin 1.5.
32932         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
32933         Cygwin 1.5.x.
32934         * doc/posix-functions/setlocale.texi: Mention that the problem with the
32935         LC_CTYPE category also exists on Cygwin 1.5.x.
32937 2011-06-04  Bruno Haible  <bruno@clisp.org>
32939         strerror-override: Don't disable symbol renamings.
32940         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
32941         * lib/strerror-override.c: Include config.h.
32942         (strerror_override): Don't undefine.
32944 2011-06-03  Bruno Haible  <bruno@clisp.org>
32946         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
32947         * lib/localename.h: Update copyright header.
32948         * lib/localename.c: Likewise.
32949         * lib/relocatable.h: Likewise.
32950         * lib/relocatable.c: Likewise.
32952 2011-06-02  Bruno Haible  <bruno@clisp.org>
32954         doc: Fix a module name.
32955         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
32957 2011-06-02  Bruno Haible  <bruno@clisp.org>
32959         pipe2: Remove dependency on 'nonblocking' module.
32960         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
32961         O_NONBLOCK is defined by gnulib.
32962         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
32963         is zero.
32964         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
32965         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
32966         defined by gnulib.
32967         (get_nonblocking_flag): New function.
32968         (main): Test O_NONBLOCK flag only if it is nonzero.
32969         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
32971 2011-06-03  Jim Meyering  <meyering@redhat.com>
32973         maint: three new prohibit-header-without-use rules
32974         Prohibit use of cloexec.h, posixver.h, same.h without use.
32975         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
32976         (sc_prohibit_posixver_without_use): Likewise.
32977         (sc_prohibit_same_without_use): Likewise.
32979 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32981         allocator: 'die' routine is now given requested size
32982         * lib/allocator.h (struct allocator.die): New size arg.
32983         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
32984         If the actual problem is an ssize_t limitation, not a size_t or
32985         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
32987 2011-06-01  Eric Blake  <eblake@redhat.com>
32989         strerror: drop strerror_r dependency
32990         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
32991         * lib/strerror-override.c (strerror_override): ...to new file.
32992         * lib/strerror-override.h: Add prototype.
32993         * lib/strerror-impl.h: Delete.
32994         * lib/strerror.c (strerror): New implementation.
32995         * modules/errno (Files): Add new files.
32996         (configure.ac): Compile new file as appropriate.
32997         * modules/strerror (Files): Drop unused file.
32998         (Depends-on): Drop strerror_r-posix.
32999         * MODULES.html.sh: Document strerror_r-posix.
33000         Requested by Sam Steingold.
33002         perror: call strerror_r directly
33003         * modules/perror (Files): Drop strerror-impl.h.
33004         * lib/perror.c (perror): Use our own stack buffer, rather than
33005         calling a wrapper that uses static storage.
33006         * doc/posix-functions/perror.texi (perror): Document a limitation
33007         of our replacement.
33009         strerror_r: fix includes for FreeBSD
33010         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
33011         since we use abort on some platforms.
33012         Reported by Matthias Bolte.
33014 2011-05-31  Bruno Haible  <bruno@clisp.org>
33016         Fix link errors in tests: openat-die uses gettext-h.
33017         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
33018         against $(LIBINTL).
33019         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
33020         against $(LIBINTL).
33021         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
33022         $(LIBINTL).
33023         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
33024         against $(LIBINTL).
33025         * modules/linkat-tests (Makefile.am): Link test-linkat against
33026         $(LIBINTL).
33027         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
33028         $(LIBINTL).
33029         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
33030         against $(LIBINTL).
33031         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
33032         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
33033         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
33034         $(LIBINTL).
33035         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
33036         $(LIBINTL).
33037         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
33038         $(LIBINTL).
33039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33041 2011-05-31  Bruno Haible  <bruno@clisp.org>
33043         Fix link errors in tests: wait-process uses gettext-h.
33044         * modules/nonblocking-pipe-tests (Makefile.am): Set
33045         test_nonblocking_pipe_main_LDADD.
33046         * modules/nonblocking-socket-tests (Makefile.am): Link
33047         test-nonblocking-socket-main against $(LIBINTL).
33048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33050 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33052         assert-h: work around 'verify' incompatibility
33053         * lib/verify.h: Use @...@ directives, not ifdef.
33054         * modules/assert-h (assert.h): Implement the directives.
33055         (assert.h): Substitute the symbol-prefix more consistently.
33057 2011-05-29  Jim Meyering  <meyering@redhat.com>
33059         trim: remove three superfluous assignments
33060         * lib/trim.c (trim2): Remove three superfluous assignments
33061         and correct brace positioning.
33063 2011-05-29  Bruno Haible  <bruno@clisp.org>
33065         wctype-h: Avoid namespace pollution on Solaris 2.6.
33066         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
33067         identifiers.
33068         * doc/posix-headers/wctype.texi: Mention the problem.
33069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33071 2011-05-28  Jim Meyering  <meyering@redhat.com>
33073         parse-datetime.y: accommodate -Wstrict-overflow
33074         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
33075         placate -Wstrict-overflow.
33077         trim: avoid a warning from -O2 -Wstrict-overflow
33078         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
33080 2011-05-29  Bruno Haible  <bruno@clisp.org>
33082         gnulib-tool: Fix bug in yesterday's commit.
33083         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
33084         twice.
33086 2011-05-29  Bruno Haible  <bruno@clisp.org>
33088         Allow multiple gnulib generated include files to be combined.
33089         * gnulib-tool (func_compute_include_guard_prefix): New function.
33090         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
33091         ${gl_include_guard_prefix} references.
33092         (func_import, func_create_testdir): Invoke
33093         func_compute_include_guard_prefix.
33094         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
33095         * lib/ctype.in.h: Likewise.
33096         * lib/dirent.in.h: Likewise.
33097         * lib/errno.in.h: Likewise.
33098         * lib/fcntl.in.h: Likewise.
33099         * lib/float.in.h: Likewise.
33100         * lib/getopt.in.h: Likewise.
33101         * lib/iconv.in.h: Likewise.
33102         * lib/langinfo.in.h: Likewise.
33103         * lib/locale.in.h: Likewise.
33104         * lib/math.in.h: Likewise.
33105         * lib/netdb.in.h: Likewise.
33106         * lib/netinet_in.in.h: Likewise.
33107         * lib/poll.in.h: Likewise.
33108         * lib/pthread.in.h: Likewise.
33109         * lib/pty.in.h: Likewise.
33110         * lib/sched.in.h: Likewise.
33111         * lib/se-selinux.in.h: Likewise.
33112         * lib/search.in.h: Likewise.
33113         * lib/signal.in.h: Likewise.
33114         * lib/spawn.in.h: Likewise.
33115         * lib/stdarg.in.h: Likewise.
33116         * lib/stddef.in.h: Likewise.
33117         * lib/stdint.in.h: Likewise.
33118         * lib/stdio.in.h: Likewise.
33119         * lib/stdlib.in.h: Likewise.
33120         * lib/string.in.h: Likewise.
33121         * lib/strings.in.h: Likewise.
33122         * lib/sys_file.in.h: Likewise.
33123         * lib/sys_ioctl.in.h: Likewise.
33124         * lib/sys_select.in.h: Likewise.
33125         * lib/sys_socket.in.h: Likewise.
33126         * lib/sys_stat.in.h: Likewise.
33127         * lib/sys_time.in.h: Likewise.
33128         * lib/sys_times.in.h: Likewise.
33129         * lib/sys_uio.in.h: Likewise.
33130         * lib/sys_utsname.in.h: Likewise.
33131         * lib/sys_wait.in.h: Likewise.
33132         * lib/sysexits.in.h: Likewise.
33133         * lib/termios.in.h: Likewise.
33134         * lib/time.in.h: Likewise.
33135         * lib/unistd.in.h: Likewise.
33136         * lib/wchar.in.h: Likewise.
33137         * lib/wctype.in.h: Likewise.
33138         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
33139         * modules/ctype (Makefile.am): Likewise.
33140         * modules/dirent (Makefile.am): Likewise.
33141         * modules/errno (Makefile.am): Likewise.
33142         * modules/fcntl-h (Makefile.am): Likewise.
33143         * modules/float (Makefile.am): Likewise.
33144         * modules/getopt-posix (Makefile.am): Likewise.
33145         * modules/iconv-h (Makefile.am): Likewise.
33146         * modules/langinfo (Makefile.am): Likewise.
33147         * modules/locale (Makefile.am): Likewise.
33148         * modules/math (Makefile.am): Likewise.
33149         * modules/netdb (Makefile.am): Likewise.
33150         * modules/netinet_in (Makefile.am): Likewise.
33151         * modules/poll-h (Makefile.am): Likewise.
33152         * modules/pthread (Makefile.am): Likewise.
33153         * modules/pty (Makefile.am): Likewise.
33154         * modules/sched (Makefile.am): Likewise.
33155         * modules/search (Makefile.am): Likewise.
33156         * modules/selinux-h (Makefile.am): Likewise.
33157         * modules/signal (Makefile.am): Likewise.
33158         * modules/spawn (Makefile.am): Likewise.
33159         * modules/stdarg (Makefile.am): Likewise.
33160         * modules/stddef (Makefile.am): Likewise.
33161         * modules/stdint (Makefile.am): Likewise.
33162         * modules/stdio (Makefile.am): Likewise.
33163         * modules/stdlib (Makefile.am): Likewise.
33164         * modules/string (Makefile.am): Likewise.
33165         * modules/strings (Makefile.am): Likewise.
33166         * modules/sys_file (Makefile.am): Likewise.
33167         * modules/sys_ioctl (Makefile.am): Likewise.
33168         * modules/sys_select (Makefile.am): Likewise.
33169         * modules/sys_socket (Makefile.am): Likewise.
33170         * modules/sys_stat (Makefile.am): Likewise.
33171         * modules/sys_time (Makefile.am): Likewise.
33172         * modules/sys_times (Makefile.am): Likewise.
33173         * modules/sys_uio (Makefile.am): Likewise.
33174         * modules/sys_utsname (Makefile.am): Likewise.
33175         * modules/sys_wait (Makefile.am): Likewise.
33176         * modules/sysexits (Makefile.am): Likewise.
33177         * modules/termios (Makefile.am): Likewise.
33178         * modules/time (Makefile.am): Likewise.
33179         * modules/unistd (Makefile.am): Likewise.
33180         * modules/wchar (Makefile.am): Likewise.
33181         * modules/wctype-h (Makefile.am): Likewise.
33182         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
33184 2011-05-29  Bruno Haible  <bruno@clisp.org>
33186         assert-h: Allow multiple gnulib generated replacements to coexist.
33187         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
33189 2011-05-29  Bruno Haible  <bruno@clisp.org>
33191         argp: Allow coexistence with strerror_r-posix module.
33192         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
33193         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
33194         by gnulib's <string.h> replacement), assume it has the POSIX signature,
33195         not the glibc signature.
33197 2011-05-28  Bruno Haible  <bruno@clisp.org>
33199         gnulib-tool: Alternative structure of testdirs, similar to --import.
33200         * gnulib-tool: New option --single-configure.
33201         (func_usage): Document it.
33202         (single_configure): New variable.
33203         (func_modules_transitive_closure_separately,
33204         func_modules_transitive_closure_separately,
33205         func_determine_use_libtests, func_modules_add_dummy_separately,
33206         func_modules_to_filelist_separately): New functions, extracted from
33207         func_import.
33208         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
33209         (func_import): Use the new functions.
33210         (func_create_testdir): Set final_modules. Handle $single_configure =
33211         true case.
33213 2011-05-28  Bruno Haible  <bruno@clisp.org>
33215         getloadavg: Remove an unreliable safety check.
33216         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
33217         getloadavg.c is in place.
33218         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
33219         Reported by Sam Steingold <sds@gnu.org>.
33221 2011-05-28  Bruno Haible  <bruno@clisp.org>
33223         doc: Cleanup yet another file produced by texinfo.tex.
33224         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
33226 2011-05-28  Bruno Haible  <bruno@clisp.org>
33228         Finish the conditional dependencies mechanism.
33229         * gnulib-tool: New option --no-conditional-dependencies.
33230         (func_usage): Document it. Don't mark --conditional-dependencies as
33231         experimental.
33232         (cond_dependencies): The possible values can now be true, false, empty.
33233         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
33234         (func_import): Store setting in gnulib-cache.m4 and read it from there.
33235         * doc/gnulib-tool.texi (Conditional dependencies): New section.
33237 2011-05-28  Bruno Haible  <bruno@clisp.org>
33239         doc: Use a recent texinfo.tex.
33240         * doc/Makefile (tex_opts): New variable.
33241         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
33243 2011-05-28  Jim Meyering  <meyering@redhat.com>
33245         intprops.h: adjust comment to match code change
33246         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
33247         only once, it *may* have side effects.  Also fix an unrelated typo.
33248         (_GL_INT_SIGNED): Likewise.
33250 2011-05-26  Simon Josefsson  <simon@josefsson.org>
33252         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
33254 2011-05-26  Bruno Haible  <bruno@clisp.org>
33256         mbsrchr: Avoid collision with system function on Interix.
33257         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
33258         Reported by Markus Duft <mduft@gentoo.org>.
33260 2011-05-15  James Youngman  <jay@gnu.org>
33262         getopt: for ambiguous options, enumerate the possibilities.
33263         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
33264         the ambiguous options when an ambiguous prefix is given. This was
33265         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
33266         glibc change was
33267         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
33269 2011-05-25  Eric Blake  <eblake@redhat.com>
33271         getcwd: work around mingw bug
33272         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
33273         * doc/posix-functions/getcwd.texi (getcwd): Document it.
33274         Reported by Matthias Bolte.
33276 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
33278         test-intprops: disable -Wtype-limits diagnostics
33279         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
33280         diagnostics.  Otherwise, the integer overflow macros generate many
33281         diagnostics.  Reported by Jim Meyering in
33282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
33284         intprops: shorten, to pacify gcc -Woverlength-strings
33285         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
33286         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
33287         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
33288         likely to run afoul of C compiler limits for string constant lengths.
33289         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
33291 2011-05-24  Eric Blake  <eblake@redhat.com>
33293         docs: document recently fixed glibc printf bug
33294         * doc/posix-functions/fprintf.texi (fprintf): Document it.
33295         * doc/posix-functions/printf.texi (printf): Likewise.
33296         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33297         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33299         closein-tests: convert to init.sh
33300         * modules/closein-tests (Files): Add init.sh
33301         * tests/test-closein.sh Use it.
33303         yesno-tests: convert to init.sh
33304         * modules/yesno-tests (Files): Add init.sh.
33305         * tests/test-yesno.sh: Use it.
33307         atexit-tests: ensure reliable exit status
33308         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
33309         Reported by Bruno Haible.
33311 2011-05-24  Bruno Haible  <bruno@clisp.org>
33313         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
33314         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
33315         gl_PREREQ_STRERROR_R invocations from here...
33316         * modules/strerror_r-posix (configure.ac): ... to here.
33318 2011-05-24  Eric Blake  <eblake@redhat.com>
33320         strerror_r: fix missing header
33321         * lib/strerror_r.c: Avoid compiler warning about snprintf.
33323         strerror_r: fix AIX test failures
33324         * lib/strerror_r.c (strerror_r): Convert silent truncation to
33325         ERANGE failure.
33327         strerror_r: fix Solaris test failures
33328         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
33329         failures.
33330         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
33332         strerror_r: enforce POSIX recommendations
33333         * lib/strerror_r.c (safe_copy): New helper method.
33334         (strerror_r): Guarantee a non-empty string.
33335         * tests/test-strerror_r.c (main): Enhance tests to incorporate
33336         recent POSIX rulings and to match our strerror guarantees.
33337         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
33339 2011-05-24  Jim Meyering  <meyering@redhat.com>
33341         test-perror2.c: avoid warning about unused variable
33342         * tests/test-perror2.c (main): Remove declaration of unused "fp".
33344 2011-05-24  Eric Blake  <eblake@redhat.com>
33346         perror: avoid spurious test failure on HP-UX
33347         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
33349         tests: fix logic bug in init.sh
33350         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
33351         shell.
33353 2011-05-24  Jim Meyering  <meyering@redhat.com>
33355         utimensat: do not reference an out-of-scope buffer
33356         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
33357         declared in an inner scope, yet "times" would be dereferenced outside
33358         the scope in which "ts" was valid.
33359         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
33360         of ts[2] "out/up", so that the use of aliased "times" (via
33361         "times = ts;") does not end up referencing an out-of-scope "ts"
33363         opendir-safer.c: don't clobber errno; don't close negative FD
33364         * lib/opendir-safer.c (opendir_safer):
33365         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
33366         file descriptor, and more importantly, don't clobber the
33367         offending errno value with EINVAL.  Before, upon failure
33368         of dup_safer, we would pass the negative file descriptor to
33369         fdopendir, which would clobber errno.
33371 2011-05-23  Bruno Haible  <bruno@clisp.org>
33373         idcache: Fix module description.
33374         * modules/idcache (Include): Set to "idcache.h".
33376 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
33378         gnulib-tool: fix portability problem with MacOS sed
33379         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
33380         before the "}".  Problem reported by Leo in
33381         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
33382         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
33383         sed_extract_condition1, sed_extract_condition2.
33385 2011-05-23  Bruno Haible  <bruno@clisp.org>
33387         hash: Simplify autoconf macro.
33388         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
33390 2011-05-23  Bruno Haible  <bruno@clisp.org>
33392         getugroups: Fix module description.
33393         * modules/getugroups (Include): Set to "getugroups.h".
33395 2011-05-23  Bruno Haible  <bruno@clisp.org>
33397         linkat: Simplify autoconf macro.
33398         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
33400 2011-05-23  Bruno Haible  <bruno@clisp.org>
33401             Eric Blake  <eblake@redhat.com>
33403         linkat, renameat: Update dependencies.
33404         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
33405         * modules/linkat (Depends-on): Likewise. Remove also readlink,
33406         symlinkat.
33408 2011-05-23  Jim Meyering  <meyering@redhat.com>
33410         maint.mk: more tight_scope improvements
33411         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
33412         (_gl_TS_headers): Define only in if-0'd block.
33413         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
33414         sometimes we must *not* use it.  Adjust uses accordingly.
33415         (sc_tight_scope): Use much simpler grep-based test to determine
33416         whether we skip this rule.
33418         maint.mk: generalize/improve the tight-scope rule
33419         * top/maint.mk: Emit a warning when the test is skipped.
33420         (_gl_TS_dir): Add $(srcdir)/ prefix.
33421         (_gl_TS_function_match): Simplify, rather than trying
33422         to enumerate common types.  Otherwise, it would fail to match an
33423         "extern unsigned char const *" declaration in idutils.
33424         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
33425         a way to support use of that type of macro.
33426         (_gl_TS_var_match): Simplify regexp.
33427         (_gl_TS_obj_files): New configurable variable.
33428         (_gl_TS_headers): Likewise.
33430 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
33432         verify: fix bug when gnulib <assert.h> is also included
33433         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
33434         is defined, not if _GL_STATIC_ASSERT_H is not defined.
33435         Perhaps there's a better way, but this fixes the immediate problem.
33436         Problem reported by Bruno Haible in
33437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
33439 2011-05-22  Bruno Haible  <bruno@clisp.org>
33441         xgetcwd: Simplify autoconf macro.
33442         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
33444 2011-05-22  Bruno Haible  <bruno@clisp.org>
33446         New module 'mktime-internal'.
33447         * modules/mktime-internal: New file.
33448         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
33449         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
33450         mktime_internal as a C macro if libc has __mktime_internal.
33451         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
33452         conditions.
33453         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
33455 2011-05-22  Bruno Haible  <bruno@clisp.org>
33457         timegm: Correct mktime replacement statements.
33458         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
33459         defining mktime as a C macro. This completes a 2009-07-28 commit.
33461 2011-05-22  Bruno Haible  <bruno@clisp.org>
33463         timegm: Simplify autoconf macro.
33464         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
33466 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33468         clock-time: change to LGPLv2+.
33469         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
33470         BSD-like but we have no mark for that; this is good enough for now.
33472 2011-05-21  Bruno Haible  <bruno@clisp.org>
33474         strerror_r: Fix comments.
33475         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
33477 2011-05-21  Bruno Haible  <bruno@clisp.org>
33479         relocatable-prog-wrapper: Fix possible link error.
33480         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
33481         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
33482         (gl_FUNC_SETENV): ... to here.
33483         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
33484         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
33486 2011-05-21  Bruno Haible  <bruno@clisp.org>
33488         relocatable-prog-wrapper: Assume strerror() exists.
33489         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
33490         m4/strerror.m4.
33491         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
33492         * lib/relocwrapper.c: Remove mention of strerror module.
33493         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
33494         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
33495         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
33496         C macro.
33498 2011-05-21  Bruno Haible  <bruno@clisp.org>
33500         select: Simplify replacement idiom.
33501         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
33502         Win32 platforms.
33503         * lib/sys_select.in.h (select): Simplify accordingly.
33504         * modules/select (Depends-on): Likewise.
33506 2011-05-21  Bruno Haible  <bruno@clisp.org>
33508         mkdir-p: Simplify autoconf macro.
33509         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
33510         gl_FUNC_LCHOWN.
33512 2011-05-21  Eric Blake  <eblake@redhat.com>
33514         strerror_r: avoid clobbering strerror on cygwin
33515         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
33516         fall back instead to sys_errlist.
33517         * modules/strerror (configure.ac): Add witness.
33518         * tests/test-strerror_r.c (main): Enhance test.
33519         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33520         * tests/test-perror2.c (main): Free memory before exit.
33522 2011-05-21  Bruno Haible  <bruno@clisp.org>
33524         mkdtemp: Use gnulib naming conventions.
33525         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
33526         * modules/mkdtemp (configure.ac): Update.
33528 2011-05-20  Eric Blake  <eblake@redhat.com>
33530         strerror_r: avoid corrupting errno on Solaris
33531         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
33532         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33534         strerror_r: avoid compiler warning
33535         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
33537         strerror_r: simplify AIX code
33538         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
33540         test-perror: avoid spurious failure on FreeBSD
33541         * modules/perror-tests (Depends-on): Add strerror, now that
33542         strerror_r no longer pulls it in.
33544 2011-05-20  Bruno Haible  <bruno@clisp.org>
33546         strerror_r-posix: Remove unused dependencies.
33547         * modules/strerror_r-posix (Depends-on): Remove strerror.
33548         Reported by Eric Blake.
33550 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33552         intprops: remove assumption about A|B representation
33553         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
33554         is a valid integer if both A and B are.  Although this is true for
33555         all known practical hosts, the C standard doesn't guarantee it,
33556         and the code need not assume it.  Also, this change may work around
33557         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
33558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
33560 2011-05-20  Eric Blake  <eblake@redhat.com>
33562         perror: work around FreeBSD bug
33563         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
33564         is broken.  Move AC_LIBOBJ...
33565         * modules/perror (configure.ac): Here.
33566         * doc/posix-functions/perror.texi (perror): Document this.
33567         * tests/test-perror2.c (main): Enhance test.
33569         test-perror: check for strerror interactions
33570         * tests/macros.h (STREQ): Add macro.
33571         * modules/perror-tests (Files): Add second test.
33572         * tests/test-perror2.c (main): New file.
33573         * doc/posix-functions/perror.texi (perror): Document glibc bug.
33575         test-perror: rewrite to use init script
33576         * modules/perror-tests (Files): Add init.sh.
33577         * tests/test-perror.sh: Use temporary directory.
33579 2011-05-20  Jim Meyering  <meyering@redhat.com>
33581         maint: replace misused "a" with "an"
33582         * doc/intprops.texi: "a integer"
33583         * doc/regex.texi: "a explanation"
33584         * lib/alignof.h: "a object"
33585         * lib/argmatch.h: "a explanation"
33586         * lib/argp-help.c: "a option" and "a OPTION_DOC"
33587         * lib/stdint.in.h: "a integer"
33588         * lib/userspec.c: "a owner"
33589         * doc/gnulib.texi: Fix "a idea", and reword.
33591 2011-05-19  Jim Meyering  <meyering@redhat.com>
33593         maint: correct misuse of "a" and "an"
33594         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
33595         * lib/argp-help.c: "an docum...": s/an/a/
33596         * lib/argp-parse.c: "An vector": s/An/A/
33597         * lib/execute.c: "an native": s/an/a/
33598         * lib/spawn-pipe.c: Likewise.
33599         * lib/gc.h: "an Gc_rc": s/an/a/
33600         * lib/unigbrk.in.h: "an grapheme": s/an/a/
33601         * lib/fts.c: "an stat.st_dev": s/an/a/
33603 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33605         intprops-tests: work around HP-UX 11.23 cc bug with constants
33606         * tests/test-intprops.c (VERIFY): New macro.
33607         (main): Use it, instead of verify, to work around the compiler bug; see
33608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33610         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
33611         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
33612         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
33613         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
33614         (_GL_REMAINDER_OVERFLOW): Use it.
33616         intprops-tests: revert unsigned part of previous change
33617         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
33618         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
33619         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
33620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
33622 2011-05-19  Bruno Haible  <bruno@clisp.org>
33624         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
33625         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
33626         strerror_r() returned without filling the buffer.
33627         Reported by Eric Blake.
33629 2011-05-19  Eric Blake  <eblake@redhat.com>
33631         strerror_r: guarantee unchanged errno
33632         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
33633         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
33634         failure.
33635         * tests/test-strerror_r.c (main): Enhance test.
33637 2011-05-19  Bruno Haible  <bruno@clisp.org>
33639         strerror_r: Reorder #if blocks.
33640         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
33641         for consistency with the previous commit.
33643 2011-05-19  Bruno Haible  <bruno@clisp.org>
33645         perror: Avoid clobbering the strerror buffer when possible.
33646         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
33647         * lib/strerror.c: Include it.
33648         * modules/strerror (Files): Add lib/strerror-impl.h.
33649         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
33650         (my_strerror): New function, defined through lib/strerror-impl.h.
33651         (perror): Use it instead of strerror.
33652         * modules/perror (Files): Add lib/strerror-impl.h.
33653         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
33655 2011-05-19  Eric Blake  <eblake@redhat.com>
33657         strerror_r: fix on newer cygwin
33658         * lib/strerror_r.c (strerror_r): Cygwin now has
33659         __xpg_strerror_r, use it.
33661 2011-05-19  Bruno Haible  <bruno@clisp.org>
33663         strerror_r: Avoid clobbering the strerror buffer when possible.
33664         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
33665         (sys_nerr, sys_errlist): New declarations.
33666         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
33667         HP-UX, native Win32, IRIX, and 32-bit Solaris.
33668         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
33670 2011-05-19  Bruno Haible  <bruno@clisp.org>
33672         strerror_r: Fix test failure on mingw.
33673         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
33674         EXTEND_STRERROR_R.
33675         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
33676         macros from errno.in.h instead.
33678 2011-05-19  Eric Blake  <eblake@redhat.com>
33680         strerror: relax test for Solaris
33681         * tests/test-strerror.c (main): Permit Solaris behavior.
33682         * tests/test-strerror_r.c (main): Likewise.
33684         strerror: enforce POSIX ruling on strerror(0)
33685         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
33686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
33687         * lib/strerror_r.c (rpl_strerror_r): Work around it.
33688         * doc/posix-functions/strerror.texi (strerror): Document it.
33689         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
33690         * tests/test-strerror.c (main): Strengthen test.
33691         * tests/test-strerror_r.c (main): Likewise.
33693 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33695         intprop-tests: port to older and more-pedantic compilers
33696         * modules/intprops-tests (Files): Add tests/macros.h.
33697         * tests/test-intprops.c: Include macros.h.
33698         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
33699         it's no longer documented to expand to an integer constant expression.
33700         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
33701         argument is floating point, as it's no longer documented to expand
33702         to an integer constant expression in that case.
33703         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
33704         compiler bugs reported by Bruno Haible.  See
33705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33706         (U0, U1): New constants, to work around the same bugs.  Also,
33707         in tests, use e.g., "(unsigned int) 39" rather than "39u".
33709         intprops: work around C compiler bugs
33710         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
33711         bug in Sun C 5.11 2010/08/13 and other compilers; see
33712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33714         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
33715         * doc/intprops.texi (Integer Type Determination): Fix
33716         documentation for TYPE_IS_INTEGER: it returns an constant
33717         expression, not an integer constant expression.  Fix doc for
33718         TYPE_SIGNED: it returns an integer constant expression only if its
33719         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
33720         hardly worth documented that way....)
33722 2011-05-18  Bruno Haible  <bruno@clisp.org>
33724         strerror_r: Avoid clobbering the strerror buffer when possible.
33725         * lib/strerror_r.c (strerror_r): Merge the three implementations.
33726         Handle gnulib defined errno values here. When strerror() returns NULL
33727         or an empty string, return EINVAL.
33728         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
33729         gnulib defined errno values here.
33730         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
33732 2011-05-18  Eric Blake  <eblake@redhat.com>
33734         fnmatch: avoid compiler warning
33735         * lib/fnmatch_loop.c (FCT): Use correct type.
33736         Reported by Matthias Bolte.
33738 2011-05-13  Jim Meyering  <meyering@redhat.com>
33740         maint.mk: three new prohibit_<HDR>_without_use rules
33741         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
33742         (sc_prohibit_stdio-safer_without_use): Likewise.
33743         (sc_prohibit_xfreopen_without_use): Likewise.
33745 2011-05-17  Jim Meyering  <meyering@redhat.com>
33747         announce-gen: fail if the NEWS delta is empty
33748         If there's nothing noteworthy in NEWS, then either you forgot
33749         or you shouldn't be releasing.
33750         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
33752 2011-05-17  Pádraig Brady  <P@draigBrady.com>
33754         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
33755         reserved symbols starting with double underscore from the check.
33757 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33759         intprops: add doc
33760         * doc/intprops.texi: New file, documenting intprops.
33761         * doc/gnulib.texi (Particular Modules): Include it.
33763         verify: add doc to gnulib manual and fix example
33764         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
33765         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
33766         (Compile-time Assertions): Fix example so it can't overflow.
33768 2011-05-17  Jim Meyering  <meyering@redhat.com>
33770         warnings.m4: don't usurp save_CPPFLAGS variable name
33771         * m4/warnings.m4: Prefix local temporary variable name with gl_.
33773         doc: fix typo
33774         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
33776 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33777             Bruno Haible  <bruno@clisp.org>
33779         doc: Tweak recent change.
33780         * README (Portability guidelines): Tweak new text.
33781         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
33782         Interix 6.1.
33784 2011-05-16  Eric Blake  <eblake@redhat.com>
33786         inttypes: avoid autoconf warning
33787         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
33788         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33790 2011-05-16  Sam Steingold  <sds@gnu.org>
33791         and Eric Blake  <eblake@redhat.com>
33793         vc-list-files: accept multiple directory operands
33794         * build-aux/vc-list-files: Iterate over all remaining operands.
33796 2011-05-16  Bruno Haible  <bruno@clisp.org>
33798         Fix confusion regarding deprecated modules.
33799         * modules/calloc (Status, Notice): Mark module as deprecated, not
33800         obsolete.
33801         * modules/fnmatch-posix (Status, Notice): Likewise.
33802         * modules/getdate (Status, Notice): Likewise.
33803         * modules/getopt (Status, Notice): Likewise.
33804         * modules/malloc (Status, Notice): Likewise.
33805         * modules/pipe (Status, Notice): Likewise.
33806         * modules/realloc (Status, Notice): Likewise.
33807         * modules/rename-dest-slash (Status, Notice): Likewise.
33808         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
33809         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
33810         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
33811         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
33812         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
33814 2011-05-16  Bruno Haible  <bruno@clisp.org>
33816         doc: List the target platforms.
33817         * doc/gnulib-intro.texi (Target Platforms): New section.
33818         * doc/gnulib.texi (Introduction): Update menu.
33819         * README (Portability guidelines): Refer to the new section. Update
33820         statement about oldest supported environment. Remove rationale why
33821         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
33822         unportable C89 function.
33823         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
33824         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
33826 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33828         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
33830 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33832         intprops-tests: new module
33833         * modules/intprops-tests, tests/test-intprops.c: New files.
33835         intprops: add safe, portable integer overflow checking
33836         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
33837         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
33838         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
33839         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
33840         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
33841         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
33842         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
33843         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
33844         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
33845         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
33846         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
33848 2011-05-12  James Youngman  <jay@gnu.org>
33850         Add a test for glibc's Bugzilla bug #12378.
33851         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
33852         doesn't allow the literal matching of a lone "[" (which is
33853         required by POSIX).
33854         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
33856 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
33858         Sync glibc change fixing Bugzilla bug #12378.
33859         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
33860         beginning and fall back to matching as normal character if the
33861         string ends before the matching ']' is found.  This is what POSIX
33862         requires.
33864 2011-05-13  Eric Blake  <eblake@redhat.com>
33866         getcwd-lgpl: relax test for FreeBSD
33867         * doc/posix-functions/getcwd.texi (getcwd): Document portability
33868         issue.
33869         * tests/test-getcwd-lgpl.c (main): Relax test.
33870         Reported by Matthias Bolte.
33872 2011-05-11  Eric Blake  <eblake@redhat.com>
33874         test-fflush: silence compiler warning
33875         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
33877 2011-05-11  Bruno Haible  <bruno@clisp.org>
33879         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
33880         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
33881         * modules/canonicalize (Depends-on): Add 'nocrash'.
33882         * modules/canonicalize-lgpl (Depends-on): Likewise.
33883         * doc/posix-functions/realpath.texi: Update platforms list.
33884         Reported by Ryan Schmidt <ryandesign@macports.org>.
33886 2011-05-11  Bruno Haible  <bruno@clisp.org>
33888         group-member: Declare function in <unistd.h>.
33889         * lib/unistd.in.h (group_member): New declaration.
33890         * lib/group-member.h: Remove file.
33891         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
33892         * tests/test-unistd-c++.cc: Check signature of group_member.
33893         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
33894         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
33895         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
33896         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
33897         HAVE_GROUP_MEMBER.
33898         * modules/group-member (Files): Remove lib/group-member.h.
33899         (Depends-on): Add unistd. Specify conditions.
33900         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33901         (Include): Change to <unistd.h>.
33902         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
33903         HAVE_GROUP_MEMBER.
33904         * NEWS: Mention the change.
33905         * lib/euidaccess.c: Don't include group-member.h.
33907 2011-05-11  Bruno Haible  <bruno@clisp.org>
33909         group-member: Document module.
33910         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
33911         module.
33913 2011-05-11  Bruno Haible  <bruno@clisp.org>
33915         fclose: Fix mistake earlier today.
33916         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
33918 2011-05-11  Eric Blake  <eblake@redhat.com>
33920         fclose: preserve fflush errors
33921         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
33922         Reported by Jim Meyering.
33924         bootstrap: support a prereq of 'rpcgen -' on RHEL5
33925         * build-aux/bootstrap (check_versions): When no specific version
33926         is required, merely check that the app produces an exit status
33927         that indicates its existence.
33929         maint.mk: drop redundant check
33930         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
33931         the same but better.
33933 2011-05-11  Bruno Haible  <bruno@clisp.org>
33935         fclose: Fix possible link error.
33936         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
33937         unregister_shadow_fd. Improve comments.
33938         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
33939         Eric Blake.
33941 2011-05-11  Jim Meyering  <meyering@redhat.com>
33943         maint.mk: improve "can not" detection and generalize rule name
33944         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
33945         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
33946         Use the same technique as in sc_prohibit_doubled_word, so that
33947         we recognize "can not" also when the words are separated by a newline.
33948         Suggested by Eric Blake.
33949         (perl_filename_lineno_text_): Define.  Factored out of...
33950         (prohibit_doubled_word_): ...here.  Use the new definition.
33951         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
33952         (prohibit_undesirable_word_seq_RE_): New overridable variable.
33953         (ignore_undesirable_word_sequence_RE_): New overridable variable.
33955 2011-05-10  Eric Blake  <eblake@redhat.com>
33957         fclose: avoid double close race when possible
33958         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
33959         all but WINDOWS_SOCKETS.
33961 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
33963         openat: correct new comment
33964         * lib/openat-proc.c (openat_proc_name): Correct the comment.
33966 2011-05-10  Jim Meyering  <meyering@redhat.com>
33968         openat: add comments
33969         * lib/openat-proc.c (openat_proc_name): Add comments,
33970         mostly from Eric Blake.
33972 2011-05-09  Eric Blake  <eblake@redhat.com>
33974         openat: reduce syscalls in first probe of /proc
33975         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
33976         be a directory.  Simplify the probe for .. bugs.
33977         * modules/openat (Depends-on): Drop same-inode.
33978         Reported by Bastien ROUCARIES.
33980 2011-05-09  Jim Meyering  <meyering@redhat.com>
33982         maint.mk: change semantics/name of tight_scope variables
33983         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
33984         Rename variables to align with semantics that make them more useful.
33986         maint.mk: tweak new rule's name not to impinge
33987         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
33988         (sc_tight_scope): Use new rule name rather than $@-0.
33990         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
33991         * top/maint.mk (sc_tight_scope): New rule.
33992         (sc_tight_scope-0): New rule, ifdef'd out.
33993         (_gl_TS_dir): Default.
33994         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
33995         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
33997 2011-05-09  Simon Josefsson  <simon@josefsson.org>
33999         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
34000         Haible <bruno@clisp.org>.
34002 2011-05-08  Bruno Haible  <bruno@clisp.org>
34004         Comments.
34005         * m4/isnanf.m4: Add comment.
34006         * m4/isnanl.m4: Likewise.
34008 2011-05-08  Bruno Haible  <bruno@clisp.org>
34010         glob: Remove obsolete macro.
34011         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
34013 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
34015         intprops: Sun C 5.11 supports __typeof__
34016         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
34017         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
34018         which is new.
34019         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
34021         intprops: switch to usual gnulib indenting and naming
34022         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
34023         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
34025         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
34027 2011-05-08  Jim Meyering  <meyering@redhat.com>
34029         maint.mk: suppress "Entering/Leaving directory" diag in announcement
34030         * top/maint.mk (release-prep): Use make's --no-print-directory
34031         option when generating the announcement.  This eliminates the
34032         pesky "make[2]: Entering/Leaving directory" diagnostics in the
34033         generated announcement template.
34035 2011-05-08  Bruno Haible  <bruno@clisp.org>
34037         tzset: Fix gettimeofday wrapper on Solaris 2.6.
34038         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
34039         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
34041 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34043         ignore-value, verify: Omit include files from lib_SOURCES.
34044         * modules/ignore-value, modules/verify (Makefile.am):
34045         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
34046         that leads Automake to duplicate use of am__objects_... variables
34047         in Makefile.in.  See
34048         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
34050 2011-05-07  Bruno Haible  <bruno@clisp.org>
34052         fclose: Simplify autoconf macro.
34053         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
34054         defined.
34056 2011-05-07  Bruno Haible  <bruno@clisp.org>
34058         canonicalize-lgpl: Fix autoconf macro ordering bug.
34059         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
34060         gl_STDLIB_H_DEFAULTS.
34062 2011-05-06  Eric Blake  <eblake@redhat.com>
34064         maintainer-makefile: make sc_po_check easier to tune
34065         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
34066         to probe for strings, such as an alternate location for gnulib.
34068         fclose: guarantee behavior on seekable stdin
34069         * modules/fclose (Depends-on): Add fflush.
34070         * doc/posix-functions/fclose.texi (fclose): Document this.
34071         * tests/test-fclose.c (main): Make test for this unconditional.
34073 2011-05-06  Bruno Haible  <bruno@clisp.org>
34075         fflush, fpurge: Relicense under LGPLv2+.
34076         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
34077         * modules/fpurge (License): Likewise.
34078         With permission from Eric Blake and Jim Meyering.
34079         Suggested by Eric Blake.
34081 2011-05-06  Karl Berry  <karl@gnu.org>
34083         * MODULES.html.sh (func_all_modules): remove exit.
34085 2011-05-06  Jim Meyering  <meyering@redhat.com>
34087         maint.mk: use info-gnu@ as the default only for a stable release
34088         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
34089         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
34090         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
34091         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
34093 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34095         assert-h: new module, which supports C1X-style static_assert
34096         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
34097         * lib/verify.h: Revamp so that this can be copied into assert.h,
34098         while retaining the ability to use it standalone as before.
34099         Rename private identifiers so as not to encroach on the
34100         standard C namespace, since this is now used by assert.h.
34101         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
34102         the old verify_true.
34103         (_GL_VERIFY_TRUE): New macro, with much of the contents of
34104         the old verify_true.  Use _GL_VERIFY_TYPE.
34105         (_GL_VERIFY): New macro, with much of the contents of the old verify.
34106         (static_assert): New macro, if _GL_STATIC_ASSERT_H
34107         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
34108         defined when this file is copied into the replacement assert.h.
34109         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
34110         and _Static_assert is not built in.
34111         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
34112         defined, and use the new macros mentioned above.
34113         * doc/posix-headers/assert.texi: Document this.
34115 2011-05-05  Bruno Haible  <bruno@clisp.org>
34117         fclose, fflush: Respect rules for use of AC_LIBOBJ.
34118         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
34119         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
34120         gl_REPLACE_FCLOSE here.
34121         * modules/fflush (Depends-on): Remove fclose.
34122         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
34123         combination with module 'fclose'.
34125 2011-05-05  Bruno Haible  <bruno@clisp.org>
34127         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
34128         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
34129         gl_FUNC_FFLUSH.
34130         (gl_FUNC_FFLUSH): Use it.
34131         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
34132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
34133         gl_REPLACE_FSEEKO here.
34135 2011-05-05  Bruno Haible  <bruno@clisp.org>
34137         tzset: Relicense under LGPL.
34138         * modules/tzset (License): Change to LGPL.
34139         No agreement needed; it's a no-op.
34141         strtoimax, strtoumax: Relicense under LGPL.
34142         * modules/strtoimax (License): Change to LGPL.
34143         * modules/strtoumax (License): Likewise.
34144         With permission from Jim Meyering, Paul Eggert:
34145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
34146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
34148         getgroups: Relicense under LGPL.
34149         * modules/getgroups (License): Change to LGPL.
34150         With permission from Jim Meyering, Paul Eggert, Eric Blake:
34151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
34152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
34153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34155         nanosleep: Relicense under LGPL.
34156         * modules/nanosleep (License): Change to LGPL.
34157         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
34158         Haible:
34159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
34160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
34161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
34164         futimens: Relicense under LGPL.
34165         * modules/futimens (License): Change to LGPL.
34166         With permission from Eric Blake:
34167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34169         fflush: Relicense under LGPL.
34170         * modules/fflush (License): Change to LGPL.
34171         With permission from Eric Blake, Bruno Haible, Jim Meyering:
34172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
34174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
34176         tmpfile: Relicense under LGPL.
34177         * modules/tmpfile (License): Change to LGPL.
34178         With permission from Ben Pfaff:
34179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
34181         isfinite: Relicense under LGPL.
34182         * modules/isfinite (License): Change to LGPL.
34183         With permission from Ben Pfaff, Bruno Haible:
34184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
34185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
34187         acosl..tanl: Relicense under LGPL.
34188         * modules/acosl (License): Change to LGPL.
34189         * modules/asinl (License): Likewise.
34190         * modules/atanl (License): Likewise.
34191         * modules/cosl (License): Likewise.
34192         * modules/expl (License): Likewise.
34193         * modules/logl (License): Likewise.
34194         * modules/sinl (License): Likewise.
34195         * modules/sqrtl (License): Likewise.
34196         * modules/tanl (License): Likewise.
34197         Source code originally from glibc and Paolo Bonzini. Agreements:
34198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
34199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
34201 2011-05-05  Bruno Haible  <bruno@clisp.org>
34203         signal: Define sighandler_t.
34204         * lib/signal.in.h (sighandler_t): New type.
34205         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
34206         whether sighandler_t is defined.
34207         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
34208         * modules/signal (Depends-on): Add extensions.
34209         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
34210         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
34211         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
34213 2011-05-05  Eric Blake  <eblake@redhat.com>
34215         maint: remove useless REPLACE_*_H macros
34216         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
34217         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34218         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34219         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
34220         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34221         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34222         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
34223         * m4/btowc.m4: Update callers.
34224         * m4/dirfd.m4: Likewise.
34225         * m4/duplocale.m4: Likewise.
34226         * m4/fchdir.m4: Likewise.
34227         * m4/fdopendir.m4: Likewise.
34228         * m4/inet_ntop.m4: Likewise.
34229         * m4/inet_pton.m4: Likewise.
34230         * m4/ioctl.m4: Likewise.
34231         * m4/mbrlen.m4: Likewise.
34232         * m4/mbrtowc.m4: Likewise.
34233         * m4/mbsinit.m4: Likewise.
34234         * m4/mbsnrtowcs.m4: Likewise.
34235         * m4/mbsrtowcs.m4: Likewise.
34236         * m4/poll.m4: Likewise.
34237         * m4/setlocale.m4: Likewise.
34238         * m4/wcrtomb.m4: Likewise.
34239         * m4/wcsnrtombs.m4: Likewise.
34240         * m4/wcsrtombs.m4: Likewise.
34241         * m4/wctob.m4: Likewise.
34242         * m4/wcwidth.m4: Likewise.
34243         * modules/posix_spawn: Likewise.
34244         * modules/posix_spawn_file_actions_addclose: Likewise.
34245         * modules/posix_spawn_file_actions_adddup2: Likewise.
34246         * modules/posix_spawn_file_actions_addopen: Likewise.
34247         * modules/posix_spawn_file_actions_destroy: Likewise.
34248         * modules/posix_spawn_file_actions_init: Likewise.
34249         * modules/posix_spawnattr_destroy: Likewise.
34250         * modules/posix_spawnattr_getflags: Likewise.
34251         * modules/posix_spawnattr_getpgroup: Likewise.
34252         * modules/posix_spawnattr_getschedparam: Likewise.
34253         * modules/posix_spawnattr_getschedpolicy: Likewise.
34254         * modules/posix_spawnattr_getsigdefault: Likewise.
34255         * modules/posix_spawnattr_getsigmask: Likewise.
34256         * modules/posix_spawnattr_init: Likewise.
34257         * modules/posix_spawnattr_setflags: Likewise.
34258         * modules/posix_spawnattr_setpgroup: Likewise.
34259         * modules/posix_spawnattr_setschedparam: Likewise.
34260         * modules/posix_spawnattr_setschedpolicy: Likewise.
34261         * modules/posix_spawnattr_setsigdefault: Likewise.
34262         * modules/posix_spawnattr_setsigmask: Likewise.
34263         * modules/posix_spawnp: Likewise.
34265 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
34267         Add option to do-release-commit-and-tag to specify branch.
34268         * build-aux/do-release-commit-and-tag: Add --branch.
34270 2011-05-03  Bruno Haible  <bruno@clisp.org>
34272         Avoid unnecessary compilation units, through conditional dependencies.
34273         * modules/accept (Depends-on): Add conditions to the dependencies.
34274         * modules/acosl (Depends-on): Likewise.
34275         * modules/argz (Depends-on): Likewise.
34276         * modules/asinl (Depends-on): Likewise.
34277         * modules/atanl (Depends-on): Likewise.
34278         * modules/atoll (Depends-on): Likewise.
34279         * modules/bind (Depends-on): Likewise.
34280         * modules/btowc (Depends-on): Likewise.
34281         * modules/canonicalize-lgpl (Depends-on): Likewise.
34282         * modules/ceil (Depends-on): Likewise.
34283         * modules/ceilf (Depends-on): Likewise.
34284         * modules/ceill (Depends-on): Likewise.
34285         * modules/chdir-long (Depends-on): Likewise.
34286         * modules/chown (Depends-on): Likewise.
34287         * modules/close (Depends-on): Likewise.
34288         * modules/connect (Depends-on): Likewise.
34289         * modules/cosl (Depends-on): Likewise.
34290         * modules/dirfd (Depends-on): Likewise.
34291         * modules/dprintf (Depends-on): Likewise.
34292         * modules/dprintf-posix (Depends-on): Likewise.
34293         * modules/error (Depends-on): Likewise.
34294         * modules/euidaccess (Depends-on): Likewise.
34295         * modules/expl (Depends-on): Likewise.
34296         * modules/faccessat (Depends-on): Likewise.
34297         * modules/fchdir (Depends-on): Likewise.
34298         * modules/fclose (Depends-on): Likewise.
34299         * modules/fcntl (Depends-on): Likewise.
34300         * modules/fdopendir (Depends-on): Likewise.
34301         * modules/fflush (Depends-on): Likewise.
34302         * modules/floor (Depends-on): Likewise.
34303         * modules/floorf (Depends-on): Likewise.
34304         * modules/floorl (Depends-on): Likewise.
34305         * modules/fnmatch (Depends-on): Likewise.
34306         * modules/fopen (Depends-on): Likewise.
34307         * modules/fprintf-posix (Depends-on): Likewise.
34308         * modules/frexp (Depends-on): Likewise.
34309         * modules/frexp-nolibm (Depends-on): Likewise.
34310         * modules/frexpl (Depends-on): Likewise.
34311         * modules/frexpl-nolibm (Depends-on): Likewise.
34312         * modules/fseek (Depends-on): Likewise.
34313         * modules/fsusage (Depends-on): Likewise.
34314         * modules/ftell (Depends-on): Likewise.
34315         * modules/ftello (Depends-on): Likewise.
34316         * modules/futimens (Depends-on): Likewise.
34317         * modules/getcwd (Depends-on): Likewise.
34318         * modules/getcwd-lgpl (Depends-on): Likewise.
34319         * modules/getdelim (Depends-on): Likewise.
34320         * modules/getdomainname (Depends-on): Likewise.
34321         * modules/getgroups (Depends-on): Likewise.
34322         * modules/gethostname (Depends-on): Likewise.
34323         * modules/getline (Depends-on): Likewise.
34324         * modules/getlogin_r (Depends-on): Likewise.
34325         * modules/getopt-posix (Depends-on): Likewise.
34326         * modules/getpeername (Depends-on): Likewise.
34327         * modules/getsockname (Depends-on): Likewise.
34328         * modules/getsockopt (Depends-on): Likewise.
34329         * modules/getsubopt (Depends-on): Likewise.
34330         * modules/getusershell (Depends-on): Likewise.
34331         * modules/glob (Depends-on): Likewise.
34332         * modules/grantpt (Depends-on): Likewise.
34333         * modules/iconv_open (Depends-on): Likewise.
34334         * modules/iconv_open-utf (Depends-on): Likewise.
34335         * modules/inet_ntop (Depends-on): Likewise.
34336         * modules/inet_pton (Depends-on): Likewise.
34337         * modules/ioctl (Depends-on): Likewise.
34338         * modules/isapipe (Depends-on): Likewise.
34339         * modules/isfinite (Depends-on): Likewise.
34340         * modules/isinf (Depends-on): Likewise.
34341         * modules/lchown (Depends-on): Likewise.
34342         * modules/ldexpl (Depends-on): Likewise.
34343         * modules/link (Depends-on): Likewise.
34344         * modules/linkat (Depends-on): Likewise.
34345         * modules/listen (Depends-on): Likewise.
34346         * modules/logl (Depends-on): Likewise.
34347         * modules/lstat (Depends-on): Likewise.
34348         * modules/mbrlen (Depends-on): Likewise.
34349         * modules/mbrtowc (Depends-on): Likewise.
34350         * modules/mbsinit (Depends-on): Likewise.
34351         * modules/mbsnrtowcs (Depends-on): Likewise.
34352         * modules/mbsrtowcs (Depends-on): Likewise.
34353         * modules/mbtowc (Depends-on): Likewise.
34354         * modules/memcmp (Depends-on): Likewise.
34355         * modules/mkdir (Depends-on): Likewise.
34356         * modules/mkdtemp (Depends-on): Likewise.
34357         * modules/mkfifo (Depends-on): Likewise.
34358         * modules/mkfifoat (Depends-on): Likewise.
34359         * modules/mknod (Depends-on): Likewise.
34360         * modules/mkostemp (Depends-on): Likewise.
34361         * modules/mkostemps (Depends-on): Likewise.
34362         * modules/mkstemp (Depends-on): Likewise.
34363         * modules/mkstemps (Depends-on): Likewise.
34364         * modules/mktime (Depends-on): Likewise.
34365         * modules/nanosleep (Depends-on): Likewise.
34366         * modules/open (Depends-on): Likewise.
34367         * modules/openat (Depends-on): Likewise.
34368         * modules/perror (Depends-on): Likewise.
34369         * modules/poll (Depends-on): Likewise.
34370         * modules/popen (Depends-on): Likewise.
34371         * modules/posix_spawn (Depends-on): Likewise.
34372         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
34373         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34374         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34375         * modules/posix_spawnp (Depends-on): Likewise.
34376         * modules/pread (Depends-on): Likewise.
34377         * modules/printf-posix (Depends-on): Likewise.
34378         * modules/ptsname (Depends-on): Likewise.
34379         * modules/putenv (Depends-on): Likewise.
34380         * modules/pwrite (Depends-on): Likewise.
34381         * modules/readline (Depends-on): Likewise.
34382         * modules/readlink (Depends-on): Likewise.
34383         * modules/readlinkat (Depends-on): Likewise.
34384         * modules/recv (Depends-on): Likewise.
34385         * modules/recvfrom (Depends-on): Likewise.
34386         * modules/regex (Depends-on): Likewise.
34387         * modules/remove (Depends-on): Likewise.
34388         * modules/rename (Depends-on): Likewise.
34389         * modules/renameat (Depends-on): Likewise.
34390         * modules/rmdir (Depends-on): Likewise.
34391         * modules/round (Depends-on): Likewise.
34392         * modules/roundf (Depends-on): Likewise.
34393         * modules/roundl (Depends-on): Likewise.
34394         * modules/rpmatch (Depends-on): Likewise.
34395         * modules/select (Depends-on): Likewise.
34396         * modules/send (Depends-on): Likewise.
34397         * modules/sendto (Depends-on): Likewise.
34398         * modules/setenv (Depends-on): Likewise.
34399         * modules/setlocale (Depends-on): Likewise.
34400         * modules/setsockopt (Depends-on): Likewise.
34401         * modules/shutdown (Depends-on): Likewise.
34402         * modules/sigaction (Depends-on): Likewise.
34403         * modules/signbit (Depends-on): Likewise.
34404         * modules/sigprocmask (Depends-on): Likewise.
34405         * modules/sinl (Depends-on): Likewise.
34406         * modules/sleep (Depends-on): Likewise.
34407         * modules/snprintf (Depends-on): Likewise.
34408         * modules/snprintf-posix (Depends-on): Likewise.
34409         * modules/socket (Depends-on): Likewise.
34410         * modules/sprintf-posix (Depends-on): Likewise.
34411         * modules/sqrtl (Depends-on): Likewise.
34412         * modules/stat (Depends-on): Likewise.
34413         * modules/strchrnul (Depends-on): Likewise.
34414         * modules/strdup-posix (Depends-on): Likewise.
34415         * modules/strerror (Depends-on): Likewise.
34416         * modules/strerror_r-posix (Depends-on): Likewise.
34417         * modules/strndup (Depends-on): Likewise.
34418         * modules/strnlen (Depends-on): Likewise.
34419         * modules/strptime (Depends-on): Likewise.
34420         * modules/strsep (Depends-on): Likewise.
34421         * modules/strsignal (Depends-on): Likewise.
34422         * modules/strstr-simple (Depends-on): Likewise.
34423         * modules/strtod (Depends-on): Likewise.
34424         * modules/strtoimax (Depends-on): Likewise.
34425         * modules/strtok_r (Depends-on): Likewise.
34426         * modules/strtoumax (Depends-on): Likewise.
34427         * modules/symlink (Depends-on): Likewise.
34428         * modules/symlinkat (Depends-on): Likewise.
34429         * modules/tanl (Depends-on): Likewise.
34430         * modules/tcgetsid (Depends-on): Likewise.
34431         * modules/tmpfile (Depends-on): Likewise.
34432         * modules/trunc (Depends-on): Likewise.
34433         * modules/truncf (Depends-on): Likewise.
34434         * modules/truncl (Depends-on): Likewise.
34435         * modules/uname (Depends-on): Likewise.
34436         * modules/unlink (Depends-on): Likewise.
34437         * modules/unlockpt (Depends-on): Likewise.
34438         * modules/unsetenv (Depends-on): Likewise.
34439         * modules/usleep (Depends-on): Likewise.
34440         * modules/utimensat (Depends-on): Likewise.
34441         * modules/vasprintf (Depends-on): Likewise.
34442         * modules/vdprintf (Depends-on): Likewise.
34443         * modules/vdprintf-posix (Depends-on): Likewise.
34444         * modules/vfprintf-posix (Depends-on): Likewise.
34445         * modules/vprintf-posix (Depends-on): Likewise.
34446         * modules/vsnprintf (Depends-on): Likewise.
34447         * modules/vsnprintf-posix (Depends-on): Likewise.
34448         * modules/vsprintf-posix (Depends-on): Likewise.
34449         * modules/wcrtomb (Depends-on): Likewise.
34450         * modules/wcscasecmp (Depends-on): Likewise.
34451         * modules/wcscspn (Depends-on): Likewise.
34452         * modules/wcsdup (Depends-on): Likewise.
34453         * modules/wcsncasecmp (Depends-on): Likewise.
34454         * modules/wcsnrtombs (Depends-on): Likewise.
34455         * modules/wcspbrk (Depends-on): Likewise.
34456         * modules/wcsrtombs (Depends-on): Likewise.
34457         * modules/wcsspn (Depends-on): Likewise.
34458         * modules/wcsstr (Depends-on): Likewise.
34459         * modules/wcstok (Depends-on): Likewise.
34460         * modules/wcswidth (Depends-on): Likewise.
34461         * modules/wctob (Depends-on): Likewise.
34462         * modules/wctomb (Depends-on): Likewise.
34463         * modules/wctype (Depends-on): Likewise.
34464         * modules/wcwidth (Depends-on): Likewise.
34465         * modules/write (Depends-on): Likewise.
34467 2011-05-03  Bruno Haible  <bruno@clisp.org>
34469         Support for conditional dependencies.
34470         * doc/gnulib.texi (Module description): Document the syntax of
34471         conditional dependencies.
34472         * gnulib-tool: New option --conditional-dependencies.
34473         (func_usage): Document it.
34474         (cond_dependencies): New variable.
34475         (func_get_automake_snippet_conditional,
34476         func_get_automake_snippet_unconditional): New functions, extracted from
34477         func_get_automake_snippet.
34478         (func_get_automake_snippet): Use them.
34479         (sed_first_32_chars): New variable.
34480         (func_module_shellfunc_name): New function.
34481         (func_module_shellvar_name): New function.
34482         (func_module_conditional_name): New function.
34483         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
34484         func_cond_module_condition): New functions.
34485         (func_modules_transitive_closure): Add support for conditional
34486         dependencies.
34487         (func_emit_lib_Makefile_am): For a conditional module, enclose the
34488         conditional automake snippet in an automake conditional.
34489         (func_emit_autoconf_snippets): Emit shell functions that contain the
34490         code for conditional modules.
34491         (func_import, func_create_testdir): Update specification.
34493 2011-05-03  Eric Blake  <eblake@redhat.com>
34495         test-getaddrinfo: report error information
34496         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
34498 2011-05-03  Jim Meyering  <meyering@redhat.com>
34500         bootstrap: avoid build failure when $GZIP is set
34501         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
34502         program name.  If defined at all, it is supposed to list gzip options.
34503         Reported by Alan Curry in http://debbugs.gnu.org/8609
34505 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
34507         readme-release: new module with release instructions
34508         * modules/readme-release: New module.
34509         * top/README-release: New file, from coreutils, grep, diffutils.
34510         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34512 2011-05-02  Eric Blake  <eblake@redhat.com>
34514         fflush: also replace fclose when fixing fflush
34515         * modules/fflush (Depends-on): Add fclose.
34516         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
34517         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
34518         memstreams with no backing fd.
34519         * doc/posix-functions/fclose.texi (fclose): Document the use of
34520         fflush module to fix the bug.
34521         * tests/test-fclose.c (main): Relax test when fclose is used in
34522         isolation.
34524         fclose: add some tests
34525         * modules/fclose-tests: New test module.
34526         * tests/test-fclose.c: New file.
34527         * doc/posix-functions/fclose.texi (fclose): Document the bug.
34529         fclose: reduced dependencies
34530         * modules/fclose (Depends-on): Switch from fflush/fseeko to
34531         simpler lseek.
34532         * lib/fclose.c (rpl_fclose): Likewise.
34533         Reported by Simon Josefsson.
34535         exit: drop remaining clients
34536         * modules/argmatch (Depends-on): Replace exit with stdlib.
34537         * modules/copy-file (Depends-on): Likewise.
34538         * modules/execute (Depends-on): Likewise.
34539         * modules/exitfail (Depends-on): Likewise.
34540         * modules/obstack (Depends-on): Likewise.
34541         * modules/pagealign_alloc (Depends-on): Likewise.
34542         * modules/pipe-filter-gi (Depends-on): Likewise.
34543         * modules/pipe-filter-ii (Depends-on): Likewise.
34544         * modules/savewd (Depends-on): Likewise.
34545         * modules/spawn-pipe (Depends-on): Likewise.
34546         * modules/wait-process (Depends-on): Likewise.
34547         * modules/xsetenv (Depends-on): Likewise.
34548         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
34549         * modules/git-merge-changelog (Depends-on): Likewise.
34550         * modules/long-options (Depends-on): Likewise.
34551         * modules/pt_chown (Depends-on): Likewise.
34552         * modules/sysexits (Depends-on): Likewise.
34554         freading: relax license from LGPLv3+ to LGPLv2+
34555         * modules/freading (License): Relax LGPL version.
34557 2011-05-02  Bruno Haible  <bruno@clisp.org>
34559         fchdir: Remove unused dependencies.
34560         * modules/fchdir (Depends-on): Remove include_next.
34562 2011-05-02  Bruno Haible  <bruno@clisp.org>
34564         gnulib-tool: Refactor.
34565         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
34566         from func_emit_autoconf_snippets.
34567         (func_emit_autoconf_snippets): Use it.
34569 2011-05-02  Simon Josefsson  <simon@josefsson.org>
34571         * NEWS: Document removal of 'exit'.
34572         * modules/exit: Remove file.
34574 2011-05-01  Bruno Haible  <bruno@clisp.org>
34576         Update DEPENDENCIES.
34577         * DEPENDENCIES (gettext): Recommend the newest release.
34578         Reported by Simon Josefsson.
34580 2011-05-01  Bruno Haible  <bruno@clisp.org>
34582         gnulib-tool: Reduce code duplication.
34583         * gnulib-tool (func_emit_autoconf_snippets): New function.
34584         (func_import, func_create_testdir): Use it.
34586 2011-04-30  Eric Blake  <eblake@redhat.com>
34588         fclose: don't fail on non-seekable input stream
34589         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
34590         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
34591         since fflush is allowed to fail in that case.
34593 2011-04-30  Bruno Haible  <bruno@clisp.org>
34595         dup3: cleanup
34596         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
34598 2011-04-30  Bruno Haible  <bruno@clisp.org>
34600         netdb: Make it work in C++ mode.
34601         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
34602         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
34603         module.
34604         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
34605         gl_MODULE_INDICATOR_FOR_TESTS.
34606         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
34607         * modules/netdb-c++-tests: New file.
34608         * tests/test-netdb-c++.cc: New file.
34610 2011-04-30  Bruno Haible  <bruno@clisp.org>
34612         New modules 'vfscanf', 'vscanf'.
34613         * modules/vfscanf: New file.
34614         * modules/vscanf: New file.
34615         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
34616         here.
34617         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
34618         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
34620 2011-04-30  Bruno Haible  <bruno@clisp.org>
34622         passfd: Add comments.
34623         * lib/passfd.c: Add comments about platforms.
34625 2011-04-30  Bruno Haible  <bruno@clisp.org>
34627         sys_uio: Make <sys/uio.h> self-contained.
34628         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
34629         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
34631 2011-04-30  Bruno Haible  <bruno@clisp.org>
34633         sys_socket: Ensure 'struct iovec' definition.
34634         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
34635         <sys/socket.h>.
34636         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
34638 2011-04-30  Bruno Haible  <bruno@clisp.org>
34640         sys_uio: Protect definition of 'struct iovec'.
34641         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
34642         it as a C struct.
34644 2011-04-30  Bruno Haible  <bruno@clisp.org>
34646         manywarnings: fix indentation
34647         * m4/manywarnings.m4: Indent by 2 spaces consistently.
34649 2011-04-30  Pádraig Brady  <P@draigBrady.com>
34651         manywarnings: add -Wno-missing-field-initializers if needed.
34652         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
34653         option if it's needed to allow initialization with { 0, }
34655 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
34657         announce-gen: cosmetic improvement
34658         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
34660 2011-04-29  Jim Meyering  <meyering@redhat.com>
34662         vc-list-files: indent with spaces, not TABs
34663         * build-aux/vc-list-files: Convert leading TABs to spaces,
34664         to match the style of most other files in gnulib.
34666         announce-gen: indent with spaces, not TABs
34667         * build-aux/announce-gen: Convert all TABs to spaces, to match
34668         the style of most other files in gnulib.
34670 2011-04-29  Eric Blake  <eblake@redhat.com>
34672         quotearg: avoid uninitialized variable use
34673         * lib/quotearg.c (quoting_options_from_style): Initialize
34674         remaining fields, and ensure that custom styles are only used via
34675         quoting_options rather than quoting_style.
34677 2011-04-29  Jim Meyering  <meyering@redhat.com>
34679         maint.mk: remove unused VC-tag variable
34680         * top/maint.mk (VC-tag): Remove unused variable.
34682 2011-04-29  Bruno Haible  <bruno@clisp.org>
34684         netdb: fix gai_strerror replacements
34685         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
34686         * modules/netdb: Substitute it.
34688 2011-04-29  Jim Meyering  <meyering@redhat.com>
34690         test-getcwd.c: avoid new set-but-not-used warning
34691         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
34692         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
34693         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
34694         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
34696         test-hash.c: avoid a new shadowing warning
34697         * tests/test-hash.c (main): Don't shadow "dup".
34699 2011-04-28  Eric Blake  <eblake@redhat.com>
34701         getaddrinfo: fix gai_strerror signature
34702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
34703         and work around mingw with UNICODE defined.
34704         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
34705         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
34706         * modules/netdb (Makefile.am): Substitute it.
34707         * lib/netdb.in.h (gai_strerror): Declare replacement.
34708         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
34709         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
34710         the fix.
34712         getsockopt: avoid compiler warning
34713         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
34714         Reported by Matthias Bolte.
34716         tests: drop unused link dependency
34717         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
34718         * modules/dirent-safer-tests (Makefile.am): Likewise.
34719         * modules/fdopendir-tests (Makefile.am): Likewise.
34720         * modules/mkfifoat-tests (Makefile.am): Likewise.
34721         * modules/openat-safer-tests (Makefile.am): Likewise.
34722         * modules/openat-tests (Makefile.am): Likewise.
34723         * modules/readlinkat-tests (Makefile.am): Likewise.
34724         * modules/symlinkat-tests (Makefile.am): Likewise.
34725         * modules/linkat-tests (Makefile.am): Likewise.
34726         (Depends-on): Switch to filenamecat-lgpl.
34727         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
34728         LIBINTL.
34729         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
34730         * tests/test-linkat.c (main): Don't require xalloc.
34732         hash, mgetgroups: drop xalloc dependency
34733         * lib/hash.c (includes): Adjust includes.
34734         * lib/mgetgroups.c (includes): Likewise.
34735         (xgetgroups): Move...
34736         * lib/xgetgroups.c: ...to new file.
34737         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
34738         * modules/xgetgroups: New file, split from...
34739         * modules/mgetgroups: ...here.
34740         (Depends-on): Add xalloc-oversized.
34741         * modules/hash (Depends-on): Likewise.
34742         * modules/hash-tests (Depends-on): Drop xalloc.
34743         (test_hash_LDADD): Drop unused library.
34744         * tests/test-hash.c (main): Break xalloc dependency.
34745         (includes): Drop unused include.
34747         xalloc-oversized: new module
34748         * modules/xalloc-oversized: New module.
34749         * modules/xalloc (Depends-on): Add it.
34750         * lib/xalloc.h (xalloc_oversized): Move...
34751         * lib/xalloc-oversized.h: ...into new file.
34753         utimecmp: drop dependency on xmalloc
34754         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
34755         due to memory pressure.
34756         * modules/utimecmp (Depends-on): Drop xalloc.
34758 2011-04-27  Eric Blake  <eblake@redhat.com>
34760         getcwd: fix mingw bugs
34761         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
34762         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
34763         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
34765 2011-04-27  Bruno Haible  <bruno@clisp.org>
34767         mkstemps: Ensure declaration on MacOS X 10.5.
34768         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
34769         * doc/glibc-functions/mkstemps.texi: Document header file problem on
34770         MacOS X.
34772 2011-04-27  Bruno Haible  <bruno@clisp.org>
34774         mkstemp: More documentation.
34775         * doc/posix-functions/mkstemp.texi: Document header file problem on
34776         MacOS X.
34778 2011-04-27  Bruno Haible  <bruno@clisp.org>
34780         mkstemp: Tweak configure message when cross-compiling.
34781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
34782         result as a guess.
34784 2011-04-27  Bruno Haible  <bruno@clisp.org>
34786         clean-temp: Clarify what it does.
34787         * lib/clean-temp.h: Add more comments.
34788         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
34789         module.
34790         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
34791         * doc/glibc-functions/mkstemps.texi: Likewise.
34792         * doc/glibc-functions/mkostemps.texi: Likewise.
34794 2011-04-27  Eric Blake  <eblake@redhat.com>
34796         fchdir: avoid extra chdir and fix test
34797         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
34798         getcwd-lgpl.
34799         * lib/fchdir.c (get_name): Any absolute name will do; it does not
34800         have to be canonical.
34801         (canonicalize_file_name): Drop unused macro.
34802         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
34804         filenamecat-lgpl: fix licence
34805         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
34806         when it was first created.
34808         linkat, renameat: add missing dependency
34809         * modules/linkat (Depends-on): Require getcwd-lgpl.
34810         * modules/renameat (Depends-on): Likewise.
34812         tests: reduce dependencies
34813         * tests/test-linkat.c (main): Use lighter-weight getcwd.
34814         * tests/test-renameat.c (main): Likewise.
34815         * modules/linkat-tests (Depends-on): Relax dependency.
34816         * modules/renameat-tests (Depends-on): Likewise.
34817         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
34818         dependency explicit.
34820         save-cwd: reduce default dependency
34821         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
34822         * lib/save-cwd.c: Update comments.
34823         * NEWS: Document the semantic change.
34825         getcwd: enhance tests
34826         * tests/test-getcwd-lgpl.c: New file, taken from...
34827         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
34828         repeat long path stress tests from m4 probe.
34829         * modules/getcwd-lgpl-tests: New module.
34830         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
34831         * m4/getcwd-abort-bug.m4: Update comment.
34832         * m4/getcwd-path-max.m4: Likewise.
34834         getcwd-lgpl: new module
34835         * modules/getcwd-lgpl: New module.
34836         * lib/getcwd-lgpl.c: New file.
34837         * doc/posix-functions/getcwd.texi (getcwd): Document it.
34838         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34839         * modules/getcwd (configure.ac): Set C witness.
34840         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
34842         getcwd: tweak comments
34843         * m4/getcwd-abort-bug.m4: Fix comments.
34844         * m4/getcwd-path-max.m4: Likewise.
34845         * m4/getcwd.m4: Likewise.
34847 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
34848         and Eric Blake  <eblake@redhat.com>
34850         mkstemp: replace if system version uses wrong permissions
34851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
34852         read/write mode bits set in file created by mkstemp.
34853         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
34855 2011-04-27  Eric Blake  <eblake@redhat.com>
34857         passfd: avoid compiler warning
34858         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
34859         Reported by Laine Stump.
34861 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
34863         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
34864         required by the NetBSD (and perhaps other 4.4BSD derived) join.
34866 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
34867         and Eric Blake  <eblake@redhat.com>
34869         mkstemp: mention clean-temp module
34870         * lib/mkstemp.c: Add comment.
34871         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
34873 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
34875         inttypes: also provide default values for 32-bit tests
34876         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
34877         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
34879 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
34881         strtoumax: remove dependency on strtoimax
34882         This is like the strtoull change of yesterday.
34883         * modules/strtoumax (Files): Add lib/strtoimax.c.
34884         (Depends-on): Remove strtoimax and add verify.
34886         inttypes-incomplete: new module
34887         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
34888         all but the PRI* and SCN* parts of gl_INTTYPES_H.
34889         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
34890         of gl_INTTYPES_H.
34891         (gl_INTTYPES_H): Rewrite in terms of these new macros.
34892         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
34893         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
34894         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
34895         * modules/strtoumax, modules/xstrtol (Depends-on):
34896         Depend on inttypes-incomplete, not inttypes.
34897         * modules/inttypes-incomplete: New module, containing the contents
34898         of the old modules/inttypes module, except that the Files: section
34899         omits m4/inttypes-pri.m4, and the configure.ac section invokes
34900         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
34901         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
34902         (Depends-on): Depend only on inttypes-incomplete.
34903         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
34905         inttypes: omit now-redundant strtoimax and strtoumax work
34906         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
34907         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
34909         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
34910         This supports apps that need pointers to strtoimax and strtoumax,
34911         and ports to HP-UX 11.00 64.bit, which has macros that expand to
34912         nonexistent functions.  See
34913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
34914         et seq.
34915         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
34916         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
34917         a macro.
34918         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
34920 2011-04-25  Simon Josefsson  <simon@josefsson.org>
34922         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
34924 2011-04-25  Bruno Haible  <bruno@clisp.org>
34926         strtol, strtoul: Mark modules as obsolete.
34927         * modules/strtol (Status, Notice): New sections.
34928         * modules/strtoul (Status, Notice): New sections.
34930 2011-04-25  Bruno Haible  <bruno@clisp.org>
34932         strtod: Remove check for strtod, unless supporting old platforms.
34933         * modules/strtod-obsolete: New file.
34934         * m4/strtod-obsolete.m4: New file.
34935         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
34936         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
34937         * modules/strtod (Depends-on): Add strtod-obsolete.
34938         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
34940 2011-04-25  Bruno Haible  <bruno@clisp.org>
34942         strcase: Make module obsolete.
34943         * modules/strcase (Status, Notice): New sections.
34945 2011-04-25  Bruno Haible  <bruno@clisp.org>
34947         dup2: Remove check for dup2, unless supporting old obsolete platforms.
34948         * modules/dup2-obsolete: New file.
34949         * m4/dup2-obsolete.m4: New file.
34950         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
34951         gl_FUNC_DUP2_OBSOLETE is not also defined.
34952         * modules/dup2 (Depends-on): Add dup2-obsolete.
34953         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
34955 2011-04-25  Bruno Haible  <bruno@clisp.org>
34957         strnlen: Avoid memchr related link error on old obsolete platforms.
34958         * modules/memchr-obsolete: New file.
34959         * m4/memchr-obsolete.m4: New file.
34960         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
34961         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
34962         * modules/memchr (Depends-on): Add memchr-obsolete.
34963         * modules/strnlen (Depends-on): Likewise.
34964         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
34966 2011-04-25  Jim Meyering  <meyering@redhat.com>
34968         maint.mk: makefile_at_at_check extend and clean up
34969         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
34970         in addition to */Makefile.am.
34971         Exempt legitimate uses of @VAR@ notation, e.g.,
34972         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
34973         Remove obsolete coreutils-specific comment.
34974         Prompted by discussion here:
34975         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
34977 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34979         strtoul: remove dependency on strtol
34980         This is so that 'configure' need not check for strtol merely because
34981         the application needs strtoul.
34982         * modules/strtoul (Files): Add lib/strtol.c.
34983         (Depends-on): Remove strtol.
34985         strtoull: remove dependency on strtoul
34986         This is like the strtoll change.
34987         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
34988         (Depends-on): Remove strtoul.
34990         strtoll: remove dependency on strtol
34991         This is so that 'configure' need not check for strtol merely because
34992         the application needs strtoll.
34993         * modules/strtoll (Files): Add lib/strtol.c.
34994         (Depends-on): Remove strtol.
34996 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
34998         inttypes: Move some configure check to module 'imaxdiv'.
34999         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
35000         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
35001         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
35003 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35005         inttypes: Move some configure check to module 'imaxabs'.
35006         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
35007         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
35008         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
35010 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35012         inttypes: Remove configure tests that are not needed since 2009-12-31.
35013         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
35014         gl_cv_header_working_inttypes_h.
35016 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35018         * modules/strnlen (Depends-on): Remove memchr.
35019         The strnlen implementation doesn't need the memchr module's fixes; see
35020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
35022         strtol: remove dependency on wchar
35023         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
35024         * modules/strtol (Depends-on): Remove wchar.
35026 2011-04-21  Eric Blake  <eblake@redhat.com>
35028         passfd: fix test regression on Linux
35029         * modules/passfd-tests (configure.ac): Correct socketpair check.
35031         passfd: speed up configure and drop unused code
35032         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
35033         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
35034         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
35035         Instead of probing at configure for unix_scm_rights_bsd44_way,
35036         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
35037         check to a struct member probe.
35038         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
35039         (sendfd, recvfd): Update preprocessor checks.
35040         * modules/passfd (Files): Reflect rename, and drop unused file.
35041         (Depends-on): Drop unused dependency.
35043         passfd: allow compilation on mingw
35044         * modules/sys_socket (Depends-on): Add sys_uio.
35045         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
35046         iovec and a minimal struct msghdr.
35047         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
35048         * tests/test-sys_socket.c (main): Enhance test.
35049         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
35050         guaranteed to provide what we need.
35051         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
35052         * modules/passfd-tests (Depends-on): Add sys_wait.
35053         * tests/test-passfd.c (main): Skip test on mingw, for now.
35054         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
35055         partial 'struct msghdr' implementation.
35057         sys_uio: new module
35058         * modules/sys_uio: New module.
35059         * modules/sys_uio-tests: Likewise.
35060         * lib/sys_uio.in.h: New file.
35061         * m4/sys_uio_h.m4: Likewise.
35062         * tests/test-sys_uio.c: Likewise.
35063         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
35064         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
35066 2011-04-20  Jim Meyering  <meyering@redhat.com>
35068         useless-if-before-free: avoid false-positive
35069         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
35070         disjunct so that it too requires a terminating ";".  Without that,
35071         this script would identify as useless one statement from gcc that
35072         was not:
35073           if (aligned_ptr)
35074             free (((void **) aligned_ptr) [-1]);
35076 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
35078         doc: update users.txt.
35079         * users.txt: Add barcode.
35081 2011-04-19  Bruno Haible  <bruno@clisp.org>
35083         ioctl: Remove link dependency on native Windows.
35084         * lib/fd-hook.h: Renamed from lib/close-hook.h.
35085         (gl_close_fn, gl_ioctl_fn): New types.
35086         (struct fd_hook): Renamed from struct close_hook. Change type of
35087         private_close_fn field. Add private_ioctl_fn field.
35088         (close_hook_fn): Add parameter for primary close method.
35089         (execute_close_hooks, execute_all_close_hooks): Likewise.
35090         (ioctl_hook_fn): New type.
35091         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
35092         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
35093         argument.
35094         (unregister_fd_hook): Renamed from unregister_close_hook.
35095         * lib/fd-hook.c: Renamed from lib/close-hook.c.
35096         Don't include <unistd.h>.
35097         (close): Remove undef.
35098         (anchor): Update.
35099         (execute_close_hooks): Add argument for primary close method.
35100         (execute_all_close_hooks): Likewise.
35101         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
35102         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
35103         argument. Allow each argument to be NULL.
35104         (unregister_fd_hook): Renamed from unregister_close_hook.
35105         * lib/close.c (rpl_close): Pass 'close' function pointer to
35106         execute_all_close_hooks.
35107         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
35108         (primary_ioctl): New function.
35109         (ioctl): Don't call ioctlsocket here. Instead, call
35110         execute_all_ioctl_hooks.
35111         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
35112         close method.
35113         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
35114         (fd_sockets_hook): Renamed from close_sockets_hook.
35115         (gl_sockets_startup, gl_sockets_cleanup): Update.
35116         * modules/fd-hook: Renamed from modules/close-hook. Update.
35117         * modules/close (Depends-on): Add fd-hook, remove close-hook.
35118         * modules/sockets (Depends-on): Likewise.
35119         * modules/ioctl (Depends-on): Add fd-hook.
35120         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
35121         GNULIB_SOCKET.
35123 2011-04-19  Bruno Haible  <bruno@clisp.org>
35125         Move the support of O_NONBLOCK in open() to the 'open' module.
35126         * modules/nonblocking (Depends-on): Remove 'open'.
35127         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
35128         gl_cv_have_open_O_NONBLOCK.
35129         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
35130         O_NONBLOCK support.
35131         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
35133 2011-04-17  Bruno Haible  <bruno@clisp.org>
35135         pipe2: Simplify code.
35136         * lib/pipe2.c (pipe2): Reduce code duplication.
35138 2011-04-17  Bruno Haible  <bruno@clisp.org>
35140         nonblocking: Add comment.
35141         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
35143 2011-04-17  Bruno Haible  <bruno@clisp.org>
35145         nonblocking: Add tests for sockets.
35146         * tests/test-nonblocking-socket.sh: New file.
35147         * tests/test-nonblocking-socket-main.c: New file.
35148         * tests/test-nonblocking-socket-child.c: New file.
35149         * tests/test-nonblocking-socket.h: New file.
35150         * tests/socket-server.h: New file.
35151         * tests/socket-client.h: New file.
35152         * modules/nonblocking-socket-tests: New file.
35153         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
35155 2011-04-17  Bruno Haible  <bruno@clisp.org>
35157         nonblocking: Add tests for pipes.
35158         * tests/test-nonblocking-pipe.sh: New file.
35159         * tests/test-nonblocking-pipe-main.c: New file.
35160         * tests/test-nonblocking-pipe-child.c: New file.
35161         * tests/test-nonblocking-pipe.h: New file.
35162         * tests/test-nonblocking-writer.h: New file.
35163         * tests/test-nonblocking-reader.h: New file.
35164         * tests/test-nonblocking-misc.h: New file.
35165         * modules/nonblocking-pipe-tests: New file.
35166         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
35168 2011-04-16  Bruno Haible  <bruno@clisp.org>
35170         gettext: Clarify the needed programmer actions.
35171         * modules/gettext (Notice): New field.
35172         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35174 2011-04-16  Bruno Haible  <bruno@clisp.org>
35176         strchrnul: Tweak last commit.
35177         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
35178         bug.
35179         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
35180         as in _GL_FUNCDECL_SYS.
35181         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
35182         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
35184 2011-04-15  Eric Blake  <eblake@redhat.com>
35186         strchrnul: work around cygwin bug
35187         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
35188         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
35189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
35190         * modules/string (Makefile.am): Substitute it.
35191         * lib/string.in.h (strchrnul): Use it.
35193 2011-04-15  Bruno Haible  <bruno@clisp.org>
35195         Don't require lib/stdio-write.c when only module 'stdio' is used.
35196         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
35197         invocation.
35198         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
35200 2011-04-14  Bruno Haible  <bruno@clisp.org>
35202         Support non-blocking pipe I/O in read() on native Windows.
35203         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
35204         (read): New declaration.
35205         * lib/read.c: New file.
35206         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
35207         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
35208         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
35209         vscanf): New declarations.
35210         * lib/stdio-read.c: New file.
35211         * m4/read.m4: New file.
35212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
35213         REPLACE_READ.
35214         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
35215         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35216         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
35217         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
35218         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
35219         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35220         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
35221         * modules/read: New file.
35222         * modules/nonblocking (Files): Add lib/stdio-read.c.
35223         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
35224         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
35225         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35226         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
35227         * modules/pread (Depends-on): Add read.
35228         * modules/safe-read (Depends-on): Likewise.
35229         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
35230         gets, scanf, vfscanf, vscanf): Verify signatures.
35231         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
35232         problem with non-blocking pipes.
35233         * doc/posix-functions/fgetc.texi: Likewise.
35234         * doc/posix-functions/fgets.texi: Likewise.
35235         * doc/posix-functions/fread.texi: Likewise.
35236         * doc/posix-functions/fscanf.texi: Likewise.
35237         * doc/posix-functions/getc.texi: Likewise.
35238         * doc/posix-functions/getchar.texi: Likewise.
35239         * doc/posix-functions/gets.texi: Likewise.
35240         * doc/posix-functions/scanf.texi: Likewise.
35241         * doc/posix-functions/vfscanf.texi: Likewise.
35242         * doc/posix-functions/vscanf.texi: Likewise.
35244 2011-04-14  Bruno Haible  <bruno@clisp.org>
35246         Support non-blocking pipe I/O in write() on native Windows.
35247         * lib/write.c (rpl_write): Split a write request that failed merely
35248         because the byte count was larger than the pipe buffer's size.
35249         * doc/posix-functions/write.texi: Mention the problem with large byte
35250         counts.
35252 2011-04-14  Bruno Haible  <bruno@clisp.org>
35254         wchar: Ensure that wchar_t gets defined on uClibc.
35255         * lib/wchar.in.h: On uClibc, include <stddef.h>.
35256         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
35258 2011-04-13  Bruno Haible  <bruno@clisp.org>
35260         safe-write, full-read: Avoid unnecessary compilation units.
35261         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
35262         (Depends-on): Remove safe-read. Add ssize_t.
35263         * modules/full-read (Files): Add lib/full-write.c.
35264         (Depends-on): Add full-write.
35266 2011-04-13  Bruno Haible  <bruno@clisp.org>
35268         Support non-blocking pipe I/O and SIGPIPE in pwrite().
35269         * modules/pwrite (Depends-on): Add 'write'.
35271 2011-04-13  Bruno Haible  <bruno@clisp.org>
35273         Support non-blocking pipe I/O in write() on native Windows.
35274         * lib/unistd.in.h (write): Enable replacement also if
35275         GNULIB_UNISTD_H_NONBLOCKING is 1.
35276         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
35277         (rpl_write): When failing to write on a non-blocking pipe, change
35278         errno from ENOSPC to EAGAIN.
35279         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
35280         putchar, puts, vfprintf, vprintf): Enable replacement also if
35281         GNULIB_STDIO_H_NONBLOCKING is 1.
35282         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
35283         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
35284         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
35285         CALL_WITH_SIGPIPE_EMULATION.
35286         (CALL_WITH_SIGPIPE_EMULATION): Use them.
35287         * m4/nonblocking.m4: New file.
35288         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
35289         for non-blocking I/O support.
35290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35291         GNULIB_UNISTD_H_NONBLOCKING.
35292         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
35293         required for non-blocking I/O support.
35294         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
35295         * modules/nonblocking (Files): Add m4/nonblocking.m4,
35296         lib/stdio-write.c, m4/asm-underscore.m4.
35297         (Depends-on): Add stdio, unistd.
35298         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
35299         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
35300         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
35301         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
35302         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
35303         problem with non-blocking pipes.
35304         * doc/posix-functions/fputc.texi: Likewise.
35305         * doc/posix-functions/fputs.texi: Likewise.
35306         * doc/posix-functions/fwrite.texi: Likewise.
35307         * doc/posix-functions/printf.texi: Likewise.
35308         * doc/posix-functions/putc.texi: Likewise.
35309         * doc/posix-functions/putchar.texi: Likewise.
35310         * doc/posix-functions/puts.texi: Likewise.
35311         * doc/posix-functions/vfprintf.texi: Likewise.
35312         * doc/posix-functions/vprintf.texi: Likewise.
35313         * doc/posix-functions/write.texi: Likewise.
35315 2011-04-10  Jim Meyering  <meyering@redhat.com>
35317         maint.mk: prohibit doubled words
35318         Detect them also when they're separated by a newline.
35319         There are 3 ways to customize it:
35320           - disable the test on a per file basis, as usual with rules using
35321             $(VC_LIST_EXCEPT)
35322           - replace the default doubled-word-selecting regexp (affects all files)
35323           - ignore a particular file-vs-doubled-word match
35324         I nearly used that last one to ignore the "is is" match in
35325         coreutils' NEWS file, since the text was "ls -is is ..."
35326         To do that, I would have added this line to cfg.mk:
35327           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
35328         but it would have ignored any "is is" match in NEWS.
35329         Low probability, but still...
35330         Instead, I changed the text, slightly:
35331           -  ls -is is now consistent with ls -lis in ignoring values returned
35332           +  "ls -is" is now consistent with ls -lis in ignoring values returned
35333         * top/maint.mk (prohibit_double_word_RE_): Provide default.
35334         (prohibit_doubled_word_): Define.
35335         (sc_prohibit_doubled_word): New rule.
35336         (sc_prohibit_the_the): Remove.  Subsumed by the above.
35338 2011-04-10  Jim Meyering  <meyering@redhat.com>
35340         maint: fix doubled-word typo in comment
35341         * m4/gethostname.m4: s/is is/it is/
35342         * m4/getdomainname.m4: Likewise.
35344 2011-04-10  Jim Meyering  <meyering@redhat.com>
35346         maint: remove doubled word: s/it it/it/
35347         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
35349 2011-04-10  Jim Meyering  <meyering@redhat.com>
35351         maint.mk: remove useless semicolon and backslash
35352         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
35353         semicolon and backslash.
35355 2011-04-10  Bruno Haible  <bruno@clisp.org>
35357         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
35358         * modules/stdint-tests (Depends-on): Add wchar.
35360 2011-04-10  Jim Meyering  <meyering@redhat.com>
35362         maint: remove doubled words in comments, e.g., s/a a/a/
35363         * lib/strptime.c (day_of_the_week): s/the the/the/
35364         * tests/test-chown.h (test_chown): s/a a/a/
35366         test-chown.h: correct a cast
35367         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
35368         when the destination is a stat.st_gid.
35370 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
35372         getaddrinfo: Fix test for sa_len member.
35373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
35374         include <sys/types.h> before <sys/socket.h>.
35376 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35378         maint: change "can not" to "cannot"
35379         * doc/posix-functions/iconv.texi (iconv): This one crossed line
35380         boundaries.
35382 2011-04-09  Jim Meyering  <meyering@redhat.com>
35384         maint: change "a a" to "a"
35385         * tests/test-lchown.h (test_lchown): s/a a/a/
35387         maint.mk: prohibit \<the the\>
35388         * top/maint.mk (sc_prohibit_the_the): New rule.
35390         maint: fix "the the" in comment
35391         * lib/count-one-bits.h: s/the the/the/
35393         maint: change "can not" to "cannot"
35394         But do not change the occurrences in maintain.texi or in
35395         build-aux/po/Makefile.in.in, which I presume comes from gettext.
35396         * doc/gnulib-tool.texi: s/can not/cannot/
35397         * doc/posix-functions/accept.texi (accept): Likewise.
35398         * doc/posix-functions/socket.texi (socket): Likewise.
35399         * lib/mbrtowc.c: Likewise.
35401         maint.mk: prohibit use of "can not"
35402         * top/maint.mk (sc_prohibit_can_not): New rule.
35403         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
35405 2011-04-09  Bruno Haible  <bruno@clisp.org>
35407         careadlinkat: Guard against misuse of careadlinkatcwd.
35408         * lib/careadlinkat.c: Include <stdlib.h>.
35409         (careadlinkatcwd): Check that the fd argument is as expected.
35411 2011-04-09  Bruno Haible  <bruno@clisp.org>
35413         careadlinkat: Use common coding style.
35414         * lib/careadlinkat.c: Move gnulib includes after system includes.
35416 2011-04-09  Bruno Haible  <bruno@clisp.org>
35418         careadlinkat: Clarify specification.
35419         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
35420         (careadlinkatcwd): Add comment.
35421         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
35423 2011-04-09  Bruno Haible  <bruno@clisp.org>
35425         areadlinkat: Avoid link error on many platforms.
35426         * modules/areadlinkat (Depends-on): Add areadlink.
35428 2011-04-09  Bruno Haible  <bruno@clisp.org>
35430         allocator, careadlinkat: Fix double-inclusion guard.
35431         * lib/allocator.h: Fix double-inclusion guard.
35432         * lib/careadlinkat.h: Likewise.
35434 2011-04-09  Bruno Haible  <bruno@clisp.org>
35436         relocatable-prog-wrapper: Update after module 'areadlink' changed.
35437         * lib/relocwrapper.c: Update dependencies hierarchy.
35438         * build-aux/install-reloc: Update list of files to be compiled.
35439         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
35440         lib/allocator.[hc].
35442 2011-04-08  Eric Blake  <eblake@redhat.com>
35444         strftime: silence gnulib-tool warning
35445         * modules/strftime-tests (Depends-on): Drop automatic dependency.
35447 2011-04-08  Bruno Haible  <bruno@clisp.org>
35449         verify: Fix syntax error with GCC 4.6 in C++ mode.
35450         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
35451         (HAVE_STATIC_ASSERT): New macro.
35452         (verify_true, verify): Use 'static_assert' if it is supported and
35453         '_Static_assert' is not supported.
35455 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
35457         allocator: New module.
35458         * modules/allocator, lib/allocator.c: New files.
35459         * lib/allocator.h (stdlib_allocator): New decl.
35460         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
35461         Remove.  Do not include <stdlib.h>.
35462         (careadlinkat): Use stdlib_allocator instead of rolling our own.
35463         * modules/careadlinkat (Files): Remove lib/allocator.h.
35464         (Depends-on): Add allocator.
35466         stdlib: let modules use system malloc, realloc
35467         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
35468         if !_GL_USE_STDLIB_ALLOC.
35469         (malloc, realloc): Limit this change to a smaller scope.
35471         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
35472         (malloc, realloc): Don't #undef; no longer needed.
35473         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35474         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35475         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
35476         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35477         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35478         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35479         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35480         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
35482         careadlinkat: rename members to avoid problem
35483         * lib/allocator.h (struct allocator): Rename members from
35484         malloc/realloc to allocate/reallocate, to avoid problems if malloc
35485         and realloc are #define'd.  Reported by Eric Blake in
35486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
35487         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
35489 2011-04-08  Eric Blake  <eblake@redhat.com>
35491         nonblocking: reduce dependency
35492         * tests/test-nonblocking.c: Only test sockets when in use.
35493         * modules/nonblocking-tests (Depends-on): Drop socket.
35494         (Makefile.am): Link even if sockets are not present.
35495         * modules/pipe2-tests (Makefile.am): Likewise.
35496         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
35498         pipe2: fix O_NONBLOCK support on mingw
35499         * modules/pipe2 (Depends-on): Add nonblocking.
35500         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
35501         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
35502         * tests/test-nonblocking.c (main): Likewise.
35503         * modules/pipe2-tests (Makefile.am): Avoid link failure.
35505         fcntl-h: fix O_ACCMODE on cygwin
35506         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
35507         * lib/fcntl.in.h (O_ACCMODE): Fix it.
35509         pipe-filter: drop O_NONBLOCK workarounds
35510         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
35511         * modules/pipe-filter-ii (Depends-on): Likewise.
35512         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
35514         nonblocking: provide O_NONBLOCK for mingw
35515         * modules/nonblocking (Depends-on): Add open.
35516         (configure.ac): Set new witness macro.
35517         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
35518         * modules/fcntl-h (Makefile.am): Substitute it.
35519         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
35520         nonblocking module is in use.
35521         * lib/nonblocking.c: Adjust portability test.
35522         * lib/open.c (open): Don't let native open see gnulib flag.
35523         * tests/test-fcntl-h.c (main): Enhance test.
35524         * tests/test-open.h (test_open): Likewise.
35525         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
35527         careadlinkat: fix compilation error on mingw
35528         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
35529         within struct allocator.
35531 2011-04-06  Eric Blake  <eblake@redhat.com>
35533         binary-io: relicense under LGPLv2+
35534         * modules/binary-io (License): Relax to LGPLv2+.
35535         Requested for libvirt, and required by pipe2.
35537 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
35539         verify: use _Static_assert if available
35540         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
35541         (verify_true, verify): Use it if available.  This generates better
35542         diagnostics with GCC 4.6.0 and later.
35544 2011-04-05  Bruno Haible  <bruno@clisp.org>
35546         Remove leftover generated .h files after config.status changed.
35548         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
35549         GL_GENERATE_ALLOCA_H.
35550         * modules/alloca-opt (Makefile.am): Remove alloca.h if
35551         GL_GENERATE_ALLOCA_H evaluates to false.
35553         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
35554         GL_GENERATE_ARGZ_H.
35555         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
35556         evaluates to false.
35558         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
35559         GL_GENERATE_BYTESWAP_H.
35560         * modules/byteswap (Makefile.am): Remove byteswap.h if
35561         GL_GENERATE_BYTESWAP_H evaluates to false.
35563         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
35564         GL_GENERATE_ERRNO_H.
35565         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
35566         evaluates to false.
35568         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
35569         GL_GENERATE_FLOAT_H.
35570         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
35571         evaluates to false.
35573         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
35574         GL_GENERATE_FNMATCH_H.
35575         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
35576         GL_GENERATE_FNMATCH_H evaluates to false.
35578         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
35579         GL_GENERATE_GLOB_H.
35580         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
35581         evaluates to false.
35583         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
35584         automake conditional GL_GENERATE_ICONV_H.
35585         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
35586         evaluates to false.
35588         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
35589         GL_GENERATE_NETINET_IN_H.
35590         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
35591         GL_GENERATE_NETINET_IN_H evaluates to false.
35593         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
35594         conditional GL_GENERATE_PTHREAD_H.
35595         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
35596         * modules/pthread (Makefile.am): Remove pthread.h if
35597         GL_GENERATE_PTHREAD_H evaluates to false.
35599         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
35600         GL_GENERATE_SCHED_H.
35601         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
35602         evaluates to false.
35604         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
35605         conditional GL_GENERATE_SELINUX_CONTEXT_H.
35606         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
35607         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
35609         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
35610         GL_GENERATE_STDARG_H.
35611         * modules/stdarg (Makefile.am): Remove stdarg.h if
35612         GL_GENERATE_STDARG_H evaluates to false.
35614         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
35615         GL_GENERATE_STDBOOL_H.
35616         * modules/stdbool (Makefile.am): Remove stdbool.h if
35617         GL_GENERATE_STDBOOL_H evaluates to false.
35619         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
35620         conditional GL_GENERATE_STDDEF_H.
35621         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
35622         * modules/stddef (Makefile.am): Remove stddef.h if
35623         GL_GENERATE_STDDEF_H evaluates to false.
35625         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
35626         GL_GENERATE_STDINT_H.
35627         * modules/stdint (Makefile.am): Remove stdint.h if
35628         GL_GENERATE_STDINT_H evaluates to false.
35630         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
35631         GL_GENERATE_SYSEXITS_H.
35632         * modules/sysexits (Makefile.am): Remove sysexits.h if
35633         GL_GENERATE_SYSEXITS_H evaluates to false.
35635         Reported by Karl Berry and Ralf Wildenhues.
35637 2011-04-05  Bruno Haible  <bruno@clisp.org>
35639         Ensure to rebuild generated .h files when config.status has changed.
35640         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
35641         config.status.
35642         * modules/ctype (Makefile.am): Likewise.
35643         * modules/dirent (Makefile.am): Likewise.
35644         * modules/errno (Makefile.am): Likewise.
35645         * modules/fcntl-h (Makefile.am): Likewise.
35646         * modules/float (Makefile.am): Likewise.
35647         * modules/getopt-posix (Makefile.am): Likewise.
35648         * modules/glob (Makefile.am): Likewise.
35649         * modules/iconv-h (Makefile.am): Likewise.
35650         * modules/inttypes (Makefile.am): Likewise.
35651         * modules/langinfo (Makefile.am): Likewise.
35652         * modules/locale (Makefile.am): Likewise.
35653         * modules/math (Makefile.am): Likewise.
35654         * modules/netdb (Makefile.am): Likewise.
35655         * modules/netinet_in (Makefile.am): Likewise.
35656         * modules/poll-h (Makefile.am): Likewise.
35657         * modules/pthread (Makefile.am): Likewise.
35658         * modules/pty (Makefile.am): Likewise.
35659         * modules/sched (Makefile.am): Likewise.
35660         * modules/search (Makefile.am): Likewise.
35661         * modules/selinux-h (Makefile.am): Likewise.
35662         * modules/signal (Makefile.am): Likewise.
35663         * modules/spawn (Makefile.am): Likewise.
35664         * modules/stdarg (Makefile.am): Likewise.
35665         * modules/stdbool (Makefile.am): Likewise.
35666         * modules/stddef (Makefile.am): Likewise.
35667         * modules/stdint (Makefile.am): Likewise.
35668         * modules/stdio (Makefile.am): Likewise.
35669         * modules/stdlib (Makefile.am): Likewise.
35670         * modules/string (Makefile.am): Likewise.
35671         * modules/strings (Makefile.am): Likewise.
35672         * modules/sys_file (Makefile.am): Likewise.
35673         * modules/sys_ioctl (Makefile.am): Likewise.
35674         * modules/sys_select (Makefile.am): Likewise.
35675         * modules/sys_socket (Makefile.am): Likewise.
35676         * modules/sys_stat (Makefile.am): Likewise.
35677         * modules/sys_time (Makefile.am): Likewise.
35678         * modules/sys_times (Makefile.am): Likewise.
35679         * modules/sys_utsname (Makefile.am): Likewise.
35680         * modules/sys_wait (Makefile.am): Likewise.
35681         * modules/sysexits (Makefile.am): Likewise.
35682         * modules/termios (Makefile.am): Likewise.
35683         * modules/time (Makefile.am): Likewise.
35684         * modules/unistd (Makefile.am): Likewise.
35685         * modules/wchar (Makefile.am): Likewise.
35686         * modules/wctype-h (Makefile.am): Likewise.
35687         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
35689 2011-04-05  Bruno Haible  <bruno@clisp.org>
35691         pipe2: Relicense under LGPLv2+.
35692         * modules/pipe2 (License): Change to LGPLv2+.
35693         Requested by Eric Blake, for libvirt.
35695 2011-04-05  Bruce Korb  <bkorb@gnu.org>
35697         bootstrap: compute gnulib_extra_files after updating build_aux
35698         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
35699         change build_aux or also supply gnulib_extra_files.  Handle correctly.
35701 2011-04-05  Eric Blake  <eblake@redhat.com>
35703         bootstrap: preserve git whitelist item sorting
35704         * build-aux/bootstrap (sort_patterns): New function.
35705         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
35707 2011-04-05  Simon Josefsson  <simon@josefsson.org>
35709         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
35710         sc_space_tab check.
35712 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
35714         areadlink, areadlinkat: rewrite in terms of careadlinkat
35715         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
35716         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
35717         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
35718         (malloc, realloc): Remove #undefs.
35719         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
35720         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
35721         readlink, ssize_t, stdint, unistd.
35722         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
35723         areadlink, stdint.
35725         careadlinkat: new module
35726         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
35727         * modules/careadlinkat: New files, written by me with
35728         a review and feedback from Ben Pfaff in
35729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
35731 2011-04-01  Bruno Haible  <bruno@clisp.org>
35733         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
35734         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
35735         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
35736         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
35737         Reported by Bruce Korb <bruce.korb@gmail.com>.
35739 2011-04-01  Bruno Haible  <bruno@clisp.org>
35741         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
35742         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
35743         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
35744         * modules/wcpcpy (Depends-on): Add extensions.
35745         * modules/wcpncpy (Depends-on): Likewise.
35746         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
35747         systems.
35748         * doc/posix-functions/wcpncpy.texi: Likewise.
35749         * doc/posix-functions/wcwidth.texi: Likewise.
35751 2011-03-31  Eric Blake  <eblake@redhat.com>
35753         nonblocking: fix mingw test failures
35754         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
35755         non-blocking flag on regular file.
35756         (get_nonblocking_flag): Set errno on invalid fd.
35757         * tests/test-nonblocking.c (main): Avoid test failure on
35758         directories if fchdir is not active.
35759         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
35761 2011-03-31  Bruno Haible  <bruno@clisp.org>
35763         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
35764         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
35765         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
35766         Reported by Simon Josefsson <simon@josefsson.org>.
35768 2011-03-31  Bruno Haible  <bruno@clisp.org>
35769         and Eric Blake  <eblake@redhat.com>
35771         nonblocking: new module
35772         * modules/nonblocking: New module.
35773         * modules/nonblocking-tests: Likewise.
35774         * lib/nonblocking.h: New file.
35775         * lib/nonblocking.c: Likewise.
35776         * tests/test-nonblocking.c: New test.
35777         * lib/ioctl.c (ioctl) [mingw]: Update comment.
35779 2011-03-30  Bruno Haible  <bruno@clisp.org>
35781         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
35782         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
35783         instead of 'printf' format for GCC >= 4.4.
35784         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
35785         (fprintf, printf, vfprintf, vprintf): Declare with
35786         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
35787         the system's vfprintf() function.
35788         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
35790 2011-03-30  Eric Blake  <eblake@redhat.com>
35792         passfd: fix scoping bug
35793         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
35794         before sendmsg/recvmsg.
35796         passfd: standardize coding conventions
35797         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
35798         can be learned at compile time.
35799         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
35800         ifdefs.
35801         (sendfd, recvfd): Follow gnulib code conventions.
35803         passfd: fix incorrect sendmsg arguments
35804         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
35805         incorrect msg_controllen value.
35806         * modules/passfd-tests (Depends-on): Check for alarm.
35807         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
35808         Reported by Bastien ROUCARIES.
35810 2011-03-30  Bruno Haible  <bruno@clisp.org>
35812         c-strcasestr: Relicense under LGPLv2+.
35813         * modules/c-strcasestr (License): Change to LGPLv2+.
35814         Requested by Eric Blake, for libvirt.
35816 2011-03-30  Simon Josefsson  <simon@josefsson.org>
35818         * users.txt: Add libidn2.  Fix libtasn1 link.
35820 2011-03-30  Jim Meyering  <meyering@redhat.com>
35822         tests: readlink* ("",... fails with EINVAL on newer kernels
35823         readlink and readlinkat have typically failed with ENOENT for
35824         the invalid, empty file name,  "".  However, with the advent
35825         of linux-2.6.39, they fail with EINVAL.
35826         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
35827         when operating on the empty file name.
35828         * tests/test-readlink.h (test_readlink): Likewise.
35830 2011-03-29  Bruno Haible  <bruno@clisp.org>
35832         Relicense some modules under LGPLv2+, for libidn2.
35833         * modules/array-mergesort (License): Change to LGPLv2+.
35834         * modules/c-strcaseeq (License): Likewise.
35835         * modules/striconveh (License): Likewise.
35836         * modules/striconveha (License): Likewise.
35837         * modules/uniconv/base (License): Likewise.
35838         * modules/uniconv/u8-conv-from-enc (License): Likewise.
35839         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
35840         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
35841         * modules/unictype/base (License): Likewise.
35842         * modules/unictype/bidiclass-of (License): Likewise.
35843         * modules/unictype/category-M (License): Likewise.
35844         * modules/unictype/category-none (License): Likewise.
35845         * modules/unictype/category-of (License): Likewise.
35846         * modules/unictype/category-test (License): Likewise.
35847         * modules/unictype/category-test-withtable (License): Likewise.
35848         * modules/unictype/combining-class (License): Likewise.
35849         * modules/unictype/joiningtype-of (License): Likewise.
35850         * modules/unictype/scripts (License): Likewise.
35851         * modules/uninorm/base (License): Likewise.
35852         * modules/uninorm/canonical-decomposition (License): Likewise.
35853         * modules/uninorm/composition (License): Likewise.
35854         * modules/uninorm/decompose-internal (License): Likewise.
35855         * modules/uninorm/decomposition-table (License): Likewise.
35856         * modules/uninorm/nfc (License): Likewise.
35857         * modules/uninorm/nfd (License): Likewise.
35858         * modules/uninorm/u32-normalize (License): Likewise.
35859         * modules/unistr/base (License): Likewise.
35860         * modules/unistr/u32-cpy (License): Likewise.
35861         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
35862         * modules/unistr/u32-to-u8 (License): Likewise.
35863         * modules/unistr/u32-uctomb (License): Likewise.
35864         * modules/unistr/u8-check (License): Likewise.
35865         * modules/unistr/u8-mblen (License): Likewise.
35866         * modules/unistr/u8-mbtouc (License): Likewise.
35867         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
35868         * modules/unistr/u8-mbtoucr (License): Likewise.
35869         * modules/unistr/u8-prev (License): Likewise.
35870         * modules/unistr/u8-strlen (License): Likewise.
35871         * modules/unistr/u8-to-u32 (License): Likewise.
35872         * modules/unistr/u8-uctomb (License): Likewise.
35873         * modules/unitypes (License): Likewise.
35874         Requested by Simon Josefsson.
35876 2011-03-29  Simon Josefsson  <simon@josefsson.org>
35878         lib-symbol-visibility: Add a notice.
35879         * modules/lib-symbol-visibility (Notice): New field.
35881 2011-03-29  Bruno Haible  <bruno@clisp.org>
35883         getaddrinfo: Doc fix.
35884         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
35885         section "fixed in Gnulib".
35887 2011-03-28  Simon Josefsson  <simon@josefsson.org>
35889         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
35890         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
35892 2011-03-26  Bruno Haible  <bruno@clisp.org>
35894         unictype/property-byname: Reduce the number of load-time relocations.
35895         * lib/unictype/pr_byname.c: Include <stdlib.h>.
35896         (UC_PROPERTY_INDEX_*): New enumeration values.
35897         (uc_property_byname): Convert an index from the lookup table to an
35898         uc_property_t.
35899         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
35900         values.
35902 2011-03-26  Bruno Haible  <bruno@clisp.org>
35904         unictype/property-byname: Allow omitted word separators and aliases.
35905         * lib/unictype/pr_byname.gperf: Add property names without word
35906         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
35907         for 'space'.
35909 2011-03-26  Bruno Haible  <bruno@clisp.org>
35911         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
35912         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
35913         also hyphens to space.
35914         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
35915         without spaces.
35916         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
35918 2011-03-26  Bruno Haible  <bruno@clisp.org>
35920         unictype/joiningtype-byname: Recognize long names as well.
35921         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
35922         a long name.
35923         * lib/unictype/joiningtype_byname.c: Include <string.h>,
35924         unictype/joiningtype_byname.h.
35925         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
35926         * lib/unictype/joiningtype_byname.gperf: New file.
35927         * modules/unictype/joiningtype-byname (Files): Add
35928         lib/unictype/joiningtype_byname.gperf.
35929         (Depends-on): Add gperf.
35930         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
35931         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
35932         long names.
35934         Tests for module 'unictype/joiningtype-longname'.
35935         * modules/unictype/joiningtype-longname-tests: New file.
35936         * tests/unictype/test-joiningtype_longname.c: New file.
35938         New module 'unictype/joiningtype-longname'.
35939         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
35940         * lib/unictype/joiningtype_longname.c: New file.
35941         * modules/unictype/joiningtype-longname: New file.
35942         * modules/unictype/joiningtype-all (Depends-on): Add
35943         unictype/joiningtype-longname.
35945 2011-03-26  Bruno Haible  <bruno@clisp.org>
35947         unictype/bidiclass-byname: Recognize long names as well.
35948         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
35949         name.
35950         * lib/unictype/bidi_byname.c: Include <string.h>,
35951         unictype/bidi_byname.h.
35952         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
35953         * lib/unictype/bidi_byname.gperf: New file.
35954         * modules/unictype/bidiclass-byname (Files): Add
35955         lib/unictype/bidi_byname.gperf.
35956         (Depends-on): Add gperf.
35957         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
35958         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
35959         long names.
35961         Tests for module 'unictype/bidiclass-longname'.
35962         * modules/unictype/bidiclass-longname-tests: New file.
35963         * tests/unictype/test-bidi_longname.c: New file.
35965         New module 'unictype/bidiclass-longname'.
35966         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
35967         * lib/unictype/bidi_longname.c: New file.
35968         * modules/unictype/bidiclass-longname: New file.
35969         * modules/unictype/bidiclass-all (Depends-on): Add
35970         unictype/bidiclass-longname.
35972 2011-03-26  Bruno Haible  <bruno@clisp.org>
35974         unictype/bidi*: Rename modules.
35975         * modules/unictype/bidiclass-all: Renamed from
35976         modules/unictype/bidicategory-all.
35977         * modules/unictype/bidiclass-name: Renamed from
35978         modules/unictype/bidiclass-name.
35979         (Description): Update.
35980         * modules/unictype/bidiclass-name-tests: Renamed from
35981         modules/unictype/bidicategory-name-tests.
35982         * modules/unictype/bidiclass-byname: Renamed from
35983         modules/unictype/bidicategory-byname.
35984         (Description): Update.
35985         * modules/unictype/bidiclass-byname-tests: Renamed from
35986         modules/unictype/bidicategory-byname-tests.
35987         * modules/unictype/bidiclass-of: Renamed from
35988         modules/unictype/bidicategory-of.
35989         (Description): Update.
35990         * modules/unictype/bidiclass-of-tests: Renamed from
35991         modules/unictype/bidicategory-of-tests.
35992         * modules/unictype/bidiclass-test: Renamed from
35993         modules/unictype/bidicategory-test.
35994         (Description): Update.
35995         * modules/unictype/bidiclass-test-tests: Renamed from
35996         modules/unictype/bidicategory-test-tests.
35997         * modules/unictype/bidicategory-all: New file, a simple redirection.
35998         * modules/unictype/bidicategory-name: Likewise.
35999         * modules/unictype/bidicategory-byname: Likewise.
36000         * modules/unictype/bidicategory-of: Likewise.
36001         * modules/unictype/bidicategory-test: Likewise.
36002         * modules/unictype/property-bidi-* (Dependencies): Update.
36003         * lib/unictype/bidi_*.c: Update comment.
36005 2011-03-26  Bruno Haible  <bruno@clisp.org>
36007         unictype/bidi*: Rename functions, part 2.
36008         * modules/unictype/bidicategory-name (configure.ac): Update required
36009         libunistring version.
36010         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
36012 2011-03-25  Bruno Haible  <bruno@clisp.org>
36014         New module 'unictype/combining-class-all'.
36015         * modules/unictype/combining-class-all: New file.
36017         Tests for module 'unictype/combining-class-byname'.
36018         * modules/unictype/combining-class-byname-tests: New file.
36019         * tests/unictype/test-combiningclass_byname.c: New file.
36021         New module 'unictype/combining-class-byname'.
36022         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
36023         * lib/unictype/combiningclass_byname.c: New file.
36024         * lib/unictype/combiningclass_byname.gperf: New file.
36025         * modules/unictype/combining-class-byname: New file.
36027         Tests for module 'unictype/combining-class-longname'.
36028         * modules/unictype/combining-class-longname-tests: New file.
36029         * tests/unictype/test-combiningclass_longname.c: New file.
36031         New module 'unictype/combining-class-longname'.
36032         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
36033         * lib/unictype/combiningclass_longname.c: New file.
36034         * modules/unictype/combining-class-longname: New file.
36036         Tests for module 'unictype/combining-class-name'.
36037         * modules/unictype/combining-class-name-tests: New file.
36038         * tests/unictype/test-combiningclass_name.c: New file.
36040         New module 'unictype/combining-class-name'.
36041         * lib/unictype.in.h (uc_combining_class_name): New declaration.
36042         * lib/unictype/combiningclass_name.c: New file.
36043         * modules/unictype/combining-class-name: New file.
36045 2011-03-25  Bruno Haible  <bruno@clisp.org>
36047         unictype/combining-class: Rename source files.
36048         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
36049         of unictype/combining.h.
36050         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
36051         Update.
36052         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
36053         * modules/unictype/combining-class (Description): Fix.
36054         (Files, Makefile.am): Update.
36055         * tests/unictype/test-combiningclass.c: Renamed from
36056         tests/unictype/test-combining.c.
36057         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
36059 2011-03-25  Bruno Haible  <bruno@clisp.org>
36061         unictype: Update list of canonical combining classes.
36062         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
36064 2011-03-25  Bruno Haible  <bruno@clisp.org>
36066         unictype/category-byname: Recognize long names as well.
36067         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
36068         a long name.
36069         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
36070         unictype/categ_byname.h.
36071         (UC_CATEGORY_INDEX_*): New enumeration values.
36072         (uc_general_category_byname): Use uc_general_category_lookup and
36073         convert from index to value.
36074         * lib/unictype/categ_byname.gperf: New file.
36075         * modules/unictype/category-byname (Files): Add
36076         lib/unictype/categ_byname.gperf.
36077         (Depends-on): Add gperf.
36078         (Makefile.am): Add rule for generating unictype/categ_byname.h.
36079         * tests/unictype/test-categ_byname.c (main): Test the recognition of
36080         long names.
36082         Tests for module 'unictype/category-longname'.
36083         * modules/unictype/category-longname-tests: New file.
36084         * tests/unictype/test-categ_longname.c: New file.
36086         New module 'unictype/category-longname'.
36087         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
36088         * lib/unictype/categ_longname.c: New file.
36089         * modules/unictype/category-longname: New file.
36090         * modules/unictype/category-all (Depends-on): Add it.
36092 2011-03-25  Bruno Haible  <bruno@clisp.org>
36094         Tests for module 'unictype/category-LC'.
36095         * modules/unictype/category-LC-tests: New file.
36096         * tests/unictype/test-categ_LC.c: New file, automatically generated.
36098         New module 'unictype/category-LC'.
36099         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
36100         (UC_CATEGORY_LC): New declaration.
36101         (UC_CASED_LETTER): New macro.
36102         * lib/gen-uni-tables.c (is_category_LC): New function.
36103         (output_categories): Also handle category LC.
36104         (UC_CATEGORY_MASK_LC): New enumeration value.
36105         (general_category_byname): Also handle category LC.
36106         * lib/unictype/categ_LC.c: New file.
36107         * lib/unictype/categ_LC.h: New file, automatically generated.
36108         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
36109         category LC.
36110         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
36111         * modules/unictype/category-LC: New file.
36112         * modules/unictype/category-byname (Depends-on): Add
36113         unictype/category-LC.
36114         * modules/unictype/category-all (Depends-on): Likewise.
36116 2011-03-25  Eric Blake  <eblake@redhat.com>
36118         xmalloc: revert yesterday's regression
36119         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
36120         realloc's underlying behavior (allowing allocation of zero-size
36121         objects, especially if malloc-gnu is also in use).
36123 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
36125         maint.mk: add missing version to VC-tag
36126         * top/maint.mk: git tag was missing actual tag name; add it.
36128         valgrind: do leak checking, and exit with code 1 on error (not 0)
36129         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
36130         to VALGRIND.
36132 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
36134         posix-modules: say what it does.
36135         * posix-modules: Add a line to the --help output saying what it does.
36137 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
36139         xmalloc: Do not leak if underlying realloc is C99 compatible.
36140         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
36141         This avoids a leak on C99-based systems.  See
36142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
36144 2011-03-24  Eric Blake  <eblake@redhat.com>
36146         realloc: document portability problem
36147         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
36148         passing 0 size to realloc.
36150 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
36152         doc: update users.txt
36153         * users.txt: Add cvsps, tmpwatch
36155 2011-03-23  Matt Rice  <ratmice@gmail.com>
36157         doc: update users.txt
36158         * users.txt: Add gdb.
36160 2011-03-23  Jim Meyering  <meyering@redhat.com>
36162         doc: update users.txt
36163         Looking through matches up to the following URL (there are still
36164         several more pages), I found several projects that use gnulib:
36165         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
36166         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
36167         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
36169 2011-03-22  Bruno Haible  <bruno@clisp.org>
36171         unictype/bidi*: Rename functions.
36172         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
36173         uc_bidi_class, uc_is_bidi_class): New declarations.
36174         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
36175         uc_bidi_category_byname.
36176         (uc_bidi_category_byname): New function.
36177         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
36178         u_bidi_category_name.
36179         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
36180         (uc_bidi_category_name): New function.
36181         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
36182         uc_bidi_category.
36183         (uc_bidi_category): New function.
36184         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
36185         uc_is_bidi_category. Invoke uc_bidi_class.
36186         (uc_is_bidi_category): New function.
36187         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
36188         instead of uc_bidi_category_byname.
36189         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
36190         instead of uc_bidi_category_name.
36191         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
36192         uc_bidi_category.
36193         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
36194         instead of uc_is_bidi_category.
36196 2011-03-21  Bruno Haible  <bruno@clisp.org>
36198         New module 'unictype/joininggroup-all'.
36199         * modules/unictype/joininggroup-all: New file.
36201         Tests for module 'unictype/joininggroup-of'.
36202         * modules/unictype/joininggroup-of-tests: New file.
36203         * tests/unictype/test-joininggroup_of.c: New file.
36204         * tests/unictype/test-joininggroup_of.h: New file, automatically
36205         generated by gen-uni-tables.
36207         New module 'unictype/joininggroup-of'.
36208         * modules/unictype/joininggroup-of: New file.
36209         * lib/unictype/joininggroup_of.c: New file.
36210         * lib/unictype/joininggroup_of.h: New file, automatically generated by
36211         gen-uni-tables.
36213         Tests for module 'unictype/joininggroup-byname'.
36214         * modules/unictype/joininggroup-byname-tests: New file.
36215         * tests/unictype/test-joininggroup_byname.c: New file.
36217         New module 'unictype/joininggroup-byname'.
36218         * modules/unictype/joininggroup-byname: New file.
36219         * lib/unictype/joininggroup_byname.c: New file.
36220         * lib/unictype/joininggroup_byname.gperf: New file.
36222         Tests for module 'unictype/joininggroup-name'.
36223         * modules/unictype/joininggroup-name-tests: New file.
36224         * tests/unictype/test-joininggroup_name.c: New file.
36226         New module 'unictype/joininggroup-name'.
36227         * modules/unictype/joininggroup-name: New file.
36228         * lib/unictype/joininggroup_name.c: New file.
36229         * lib/unictype/joininggroup_name.h: New file.
36231         New module 'unictype/joiningtype-all'.
36232         * modules/unictype/joiningtype-all: New file.
36234         Tests for module 'unictype/joiningtype-of'.
36235         * modules/unictype/joiningtype-of-tests: New file.
36236         * tests/unictype/test-joiningtype_of.c: New file.
36237         * tests/unictype/test-joiningtype_of.h: New file, automatically
36238         generated by gen-uni-tables.
36240         New module 'unictype/joiningtype-of'.
36241         * modules/unictype/joiningtype-of: New file.
36242         * lib/unictype/joiningtype_of.c: New file.
36243         * lib/unictype/joiningtype_of.h: New file, automatically generated by
36244         gen-uni-tables.
36246         Tests for module 'unictype/joiningtype-byname'.
36247         * modules/unictype/joiningtype-byname-tests: New file.
36248         * tests/unictype/test-joiningtype_byname.c: New file.
36250         New module 'unictype/joiningtype-byname'.
36251         * modules/unictype/joiningtype-byname: New file.
36252         * lib/unictype/joiningtype_byname.c: New file.
36254         Tests for module 'unictype/joiningtype-name'.
36255         * modules/unictype/joiningtype-name-tests: New file.
36256         * tests/unictype/test-joiningtype_name.c: New file.
36258         New module 'unictype/joiningtype-name'.
36259         * modules/unictype/joiningtype-name: New file.
36260         * lib/unictype/joiningtype_name.c: New file.
36262         unictype: Add support for Arabic shaping properties.
36263         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
36264         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
36265         declarations.
36266         (UC_JOINING_GROUP_*): New enumeration values.
36267         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
36268         declarations.
36269         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
36270         (unicode_joining_type): New variable.
36271         (UC_JOINING_GROUP_*): New enumeration values.
36272         (unicode_joining_group): New variable.
36273         (fill_arabicshaping, joining_type_as_c_identifier,
36274         output_joining_type_test, output_joining_type,
36275         joining_group_as_c_identifier, output_joining_group_test,
36276         output_joining_group): New functions.
36277         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
36278         fill_arabicshaping and output_joining_type_test, output_joining_type,
36279         output_joining_group_test, output_joining_group.
36280         Reported by Simon Josefsson.
36282 2011-03-21  Jim Meyering  <meyering@redhat.com>
36284         strftime: fix a bug in yesterday's change
36285         * lib/strftime.c (add): Accommodate width's initial value of -1.
36286         Otherwise, nstrftime would copy uninitialized data into
36287         the result buffer.
36289 2011-03-21  Jim Meyering  <meyering@redhat.com>
36291         tests: add strftime-tests module
36292         * tests/test-strftime.c: New file.
36293         * modules/strftime-tests: New module.
36295 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36297         strftime: don't assume a byte count fits in 'int'
36298         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
36299         found this problem by static analysis, using gcc -Wstrict-overflow
36300         (GCC 4.5.2, x86-64).  This reported an optimization that depended
36301         on an integer overflow having undefined behavior, but it turns out
36302         that the argument is a size, which might not fit in 'int' anyway,
36304 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36306         stdio: don't require ignore_value around fwrite
36308         This patch works around libc bug 11959
36309         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
36310         Without this patch, applications must often write
36311         ignore_value (fwrite (...)) even though the ignore_value is
36312         not helpful here.  It's common to write many objects, using
36313         fwrite/printf/etc., and then use ferror to detect output error.
36315         I considered making this patch optional, but decided against it,
36316         because libc is obviously being inconsistent here: there is no
36317         reason libc should insist that user code must inspect fwrite
36318         return's value without also insisting that it inspect printf's,
36319         putchar's, etc.  If user code wants to have a strict style where
36320         all these functions' values are checked (so that ferror need not
36321         be checked), we could add support for that style in a new gnulib
36322         module, but in the meantime it's better to be consistent and to
36323         support common usage.
36325         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
36326         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
36327         that we are compiling in checking mode, and if not C++, and
36328         if not already wrapping fwrite for some other reason.
36329         (fwrite): #define to rpl_fwrite if the latter is defined.
36331 2011-03-20  Bruno Haible  <bruno@clisp.org>
36333         verror: Fix compilation error introduced on 2011-02-13.
36334         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
36335         instead of __attribute__.
36336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36338 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36339             Bruno Haible  <bruno@clisp.org>
36341         socklen: do not depend on sys_socket
36342         While trying to modify Emacs to use gnulib's socklen module,
36343         I discovered a circular dependency: socklen depends on sys_socket
36344         and vice versa.  Emacs can use socklen, but it does not need
36345         sys_socket because it has its own substitute for sys/socket.h.
36346         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
36347         gl_TYPE_SOCKLEN_T.
36348         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
36349         gl_PREREQ_SYS_H_SOCKET.
36350         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
36351         gl_PREREQ_SYS_H_SOCKET.
36352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
36353         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
36354         * modules/socklen (Depends-on): Do not depend on sys_socket.
36355         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
36357 2011-03-20  Jim Meyering  <meyering@redhat.com>
36359         maint.mk: sort file names *after* new transformation
36360         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
36361         prefix would have led to an unwarranted failure in GNU parted.
36362         Sort after that transformation.
36364 2011-03-19  Jim Meyering  <meyering@redhat.com>
36366         maint.mk: fix po-file syntax-check rule
36367         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
36368         Patch by Bruno Haible.
36370 2011-03-19  Bruno Haible  <bruno@clisp.org>
36372         socklen: Update comment.
36373         * m4/socklen.m4: Update comment about platforms.
36375 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36376             Bruno Haible  <bruno@clisp.org>
36378         inet_ntop, inet_pton: Simplify.
36379         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
36380         documented to provide socklen_t and we already depend on sys_socket.
36381         * modules/inet_pton (Depends-on): Likewise.
36382         * lib/arpa_inet.in.h: Adjust comment.
36384 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36385             Bruno Haible  <bruno@clisp.org>
36387         netdb: Simplify.
36388         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
36389         documented to provide socklen_t and we already depend on sys_socket.
36390         * lib/netdb.in.h: Adjust comment.
36392 2011-03-19  Bruno Haible  <bruno@clisp.org>
36394         sys_socket, netdb: Document problem with socklen_t.
36395         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
36396         platforms.
36397         * doc/posix-headers/netdb.texi: Likewise.
36399 2011-03-18  Eric Blake  <eblake@redhat.com>
36401         maint.mk: let po check work in VPATH build
36402         * top/maint.mk (po_file): Allow cfg.mk override.
36403         (sc_po_check): Allow VPATH use.
36404         Reported by Jiri Denemark.
36406 2011-03-16  Jim Meyering  <meyering@redhat.com>
36408         maint.mk: allow fine-grained syntax-check exclusion via Make variables
36409         Before, you would have had to create one .x-sc_ file per rule in order
36410         to exempt offending files.  Now, you may instead use a Make variable --
36411         usually defined in cfg.mk -- whose name identifies the affected rule.
36412         * top/maint.mk (_sc_excl): Define.
36413         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
36414         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
36416 2011-03-13  Bruno Haible  <bruno@clisp.org>
36418         ignore-value tests: Avoid warnings.
36419         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
36420         empty for gcc < 3.4.
36422 2011-03-13  Bruno Haible  <bruno@clisp.org>
36424         passfd: Fix link error on Solaris.
36425         * modules/passfd (Description): Correct.
36426         (Depends-on): Add socketlib.
36427         (Link): New section.
36428         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
36430 2011-03-13  Bruno Haible  <bruno@clisp.org>
36432         passfd: Fix link error on AIX 5.2.
36433         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
36435 2011-03-13  Bruno Haible  <bruno@clisp.org>
36437         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
36438         * lib/sys_socket.in.h: Include <stddef.h>.
36439         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
36440         CMSG_FIRSTHDR. Remove unused variable.
36442 2011-03-13  Bruno Haible  <bruno@clisp.org>
36444         passfd: Fix compilation error on OpenBSD.
36445         * lib/passfd.c: Include <sys/uio.h>.
36447 2011-03-13  Bruno Haible  <bruno@clisp.org>
36449         passfd test: Fix warnings.
36450         * tests/test-passfd.c: Include <sys/wait.h>.
36451         (main): Fix typo.
36453 2011-03-13  Bruno Haible  <bruno@clisp.org>
36455         passfd module, part 4, tweaks.
36456         * tests/test-passfd.c: Reorder includes.
36457         (main): Fix perror and printf calls.
36459 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36461         passfd module, part 4.
36462         * modules/passfd-tests: New file.
36463         * tests/test-passfd.c: New file.
36465 2011-03-13  Jim Meyering  <meyering@redhat.com>
36467         Makefile: rely on GNU make; derive syntax-check rule names
36468         Rather than requiring that each sc_ rule be listed as a dependent
36469         of "check", use features of GNU make to derive the list.
36470         * Makefile (syntax-check-rules): Define.
36471         (check): Depend on the new variable, not the hard-coded list.
36473 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
36474             Bruno Haible  <bruno@clisp.org>
36476         passfd module, part 3.
36477         * lib/passfd.h (recvfd): Add a flags argument.
36478         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
36479         (recvfd): Add a flags argument.
36480         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
36481         exists.
36482         * modules/passfd (Depends-on): Add cloexec.
36483         Suggested by Eric Blake.
36485 2011-03-13  Bruno Haible  <bruno@clisp.org>
36487         passfd module, part 2, tweaks.
36488         * modules/passfd (Files): Reorder.
36489         (Depends-on): Remove errno.
36490         (Include): Remove <sys/socket.h>, <sys/un.h>.
36491         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
36492         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
36493         specification header. Include <sys/socket.h> always. Don't include
36494         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
36495         (sendfd): Clarify that it sets errno when it fails.
36496         (recvfd): Fix specification.
36498 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36500         passfd module, part 2.
36501         * modules/passfd: New file.
36502         * lib/passfd.h: New file.
36503         * lib/passfd.c: New file.
36505 2011-03-12  Bruno Haible  <bruno@clisp.org>
36507         wcswidth, mbswidth: Avoid integer overflow.
36508         * lib/wcswidth.c: Include <limits.h>.
36509         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
36510         * lib/mbswidth.c: Include <limits.h>.
36511         (mbsnwidth): Avoid 'int' overflow.
36512         Reported by Jim Meyering.
36514 2011-03-12  Bruno Haible  <bruno@clisp.org>
36516         futimens, utimensat: Avoid endless recursion on Solaris 10.
36517         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
36518         Solaris.
36519         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
36520         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
36522 2011-03-11  Jim Meyering  <meyering@redhat.com>
36524         maint.mk: relax a regexp to accommodate other formatting styles
36525         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
36526         between "ngettext" and the following "(".
36528 2011-03-11  Pádraig Brady  <P@draigBrady.com>
36530         maint.mk: suppress a false positive warning
36531         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
36532         diagnostics are marked with ngettext.
36534 2011-03-10  Eric Blake  <eblake@redhat.com>
36536         wchar: add explicit dependencies, for Tru64
36537         * modules/mbmemcasecoll (Depends-on): Add wchar.
36538         * modules/mbtowc (Depends-on): Likewise.
36539         * modules/vasnprintf (Depends-on): Likewise.
36540         * modules/unistdio/u-printf-args (Depends-on): Likewise.
36541         * modules/wctomb (Depends-on): Likewise.
36542         Reported by Peter O'Gorman.
36544 2011-03-08  Bruno Haible  <bruno@clisp.org>
36546         passfd module, part 1, tweaks.
36547         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
36548         Improve indentation. Improve AC_MSG_CHECKING messages.
36549         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
36550         gl_SOCKET_FAMILIES.
36552 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36554         passfd module, part 1.
36555         * m4/afunix.m4: New file.
36556         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
36557         sockets.
36559 2011-03-08  Bruno Haible  <bruno@clisp.org>
36561         regex-quote: New API.
36562         * lib/regex-quote.h: Include <stdbool.h>.
36563         (struct regex_quote_spec): New type.
36564         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
36565         New declarations.
36566         (regex_quote_length, regex_quote_copy, regex_quote): Take a
36567         'const struct regex_quote_spec *' argument.
36568         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
36569         (pcre_special): New constant.
36570         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
36571         New functions.
36572         (regex_quote_length, regex_quote_copy, regex_quote): Take a
36573         'const struct regex_quote_spec *' argument.
36574         * modules/regex-quote (Depends-on): Add stdbool.
36575         * tests/test-regex-quote.c (check): Update for new API. Add test for
36576         anchored results.
36577         * NEWS: Mention the API change.
36578         Reported by Reuben Thomas and Eric Blake.
36580 2011-03-06  Bruno Haible  <bruno@clisp.org>
36582         regex-quote: Fix creation of POSIX extended regular expressions.
36583         * lib/regex-quote.c (ere_special): Add grouping and alternation
36584         operators.
36586 2011-03-05  Bruno Haible  <bruno@clisp.org>
36588         doc: Improve doc regarding autopoint vs. gnulib.
36589         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
36590         disable autopoint while running autoreconf.
36591         Suggested by Ralf Wildenhues.
36593 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36595         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
36596         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
36598 2011-03-03  Bruce Korb  <bkorb@gnu.org>
36600         parse-duration: remove xalloc.h dependency
36601         * lib/parse-duration.c (parse_period): handle NULL return from
36602         strdup instead of calling xstrdup().
36603         * modules/parse-duration: remove "xalloc" dependency
36605 2011-03-03  Matthew Booth  <mbooth@redhat.com>
36607         bootstrap: honor m4_base when running aclocal
36608         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
36610 2011-03-02  Jim Meyering  <meyering@redhat.com>
36612         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
36613         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
36614         on request from Matt Booth.
36616 2011-03-01  Eric Blake  <eblake@redhat.com>
36618         test-link: work on Hurd
36619         * tests/test-link.h (test_link): Hurd rejects linking directories
36620         with EISDIR instead of the POSIX-mandated EPERM.
36622 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
36624         stdio: simplify by moving files to printf-posix, sigpipe
36625         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
36626         since this symbol is needed only if printf is replaced.
36627         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
36628         Require gl_ASM_SYMBOL_PREFIX.
36629         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
36630         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
36631         (Depends-on): Add 'raise'.
36632         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
36633         * modules/stdio (Files): Remove lib/stdio-write.c,
36634         m4/asm-underscore.m4.
36635         (Depends-on): Remove 'raise'.
36637         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
36638         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
36639         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
36640         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
36642 2011-02-28  Bruno Haible  <bruno@clisp.org>
36644         localcharset: Assume ANSI C behaviour of free().
36645         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
36646         calling free().
36647         Suggested by Simon Josefsson <simon@josefsson.org>.
36649 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
36650             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
36651             Bruno Haible  <bruno@clisp.org>  (tiny change)
36653         On Cygwin, use /proc file system instead of win32 API.
36654         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
36655         Win32 file names.
36656         (DllMain): Simplify by removing Cygwin specific code.
36657         (find_shared_library_fullname): Use Linux specific implementation also
36658         for Cygwin.
36659         (get_shared_library_fullname): Update accordingly.
36660         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
36661         Win32 file names.
36662         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
36663         Cygwin specific code.
36665 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
36666             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
36668         Fix OpenMP flag detection for various Fortran compilers.
36669         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
36670         OpenMP-conditional compilation construct, to force compile
36671         failure with missing OpenMP flag.
36672         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
36674 2011-02-25  Eric Blake  <eblake@redhat.com>
36676         strstr: expand test coverage
36677         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
36678         compilation.
36679         * tests/test-memmem.c (main): Duplicate tests.
36680         * tests/test-strcasestr.c (main): Likewise.
36681         * tests/test-c-strcasestr.c (main): Likewise.
36683 2011-02-25  Jim Meyering  <meyering@redhat.com>
36685         maint.mk: detect missing-NL-at-EOF, too
36686         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
36687         it also detects when a file lacks a newline at EOF.
36688         (require_exactly_one_NL_at_EOF_): Renamed from
36689         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
36690         since people may well have .x-sc_... file names tied to the
36691         existing name.  Suggested by Eric Blake.
36693 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36695         dirname: move m4/dos.m4 functionality into lib/dosname.h
36697         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
36698         extracts symbols from it, puts them into config.h; but it's much
36699         easier to use the symbols directly.  filename.h already does this,
36700         but it disagrees with dos.m4 in some respects.  This patch
36701         introduces a different include file dosname.h that packages up
36702         dos.m4, and then later we can work on merging filename.h and
36703         dosname.h.  Applications that need only the easy-to-configure
36704         symbols should consider including dosname.h rather than dirname.h.
36705         * NEWS: Mention incompatible changes.
36706         * m4/dos.m4: Remove.
36707         * lib/dosname.h, modules/dosname: New files.
36708         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
36709         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
36710         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
36711         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
36712         Include dosname.h, not dirname.h.
36713         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
36714         Include dosname.h, for definitions of symbols like ISSLASH
36715         that used to be in config.h.
36716         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
36717         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
36718         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36719         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36720         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
36721         * modules/rmdir (Files): Likewise.
36722         * modules/stat (Files): Likewise.
36723         * modules/unlink (Files): Likewise.
36724         * modules/dirname-lgpl (Depends-on): Add dosname.
36725         * modules/lstat (Depends-on): Likewise.
36726         * modules/openat (Depends-on): Likewise.
36727         * modules/rmdir (Depends-on): Likewise.
36728         * modules/savewd (Depends-on): Likewise.
36729         * modules/stat (Depends-on): Likewise.
36730         * modules/unlink (Depends-on): Likewise.
36731         * modules/openat (Depends-on): Remove dirname-lgpl.
36732         * modules/savewd (Depends-on): Likewise.
36733         * tests/test-dirname.c: Do not use removed symbols like
36734         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
36735         the remaining symbols, e.g., ISSLASH ('\\').
36737 2011-02-25  Eric Blake  <eblake@redhat.com>
36739         strstr: revert patches that introduced bug and pessimization
36740         * lib/str-two-way.h: Add another reference.
36741         (two_way_short_needle, two_way_long_needle): Revert changes from
36742         2011-02-24; they pessimize search speed.
36743         (critical_factorization): Partially revert changes from
36744         2010-06-22; they violate the requirement that the left half of the
36745         needle be smaller than the period of the needle.
36747 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36749         filenamecat: remove unnecessary dependency on dirname-lgpl
36750         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
36751         is no direct dependency, just an indirect one via filenamecat-lgpl.
36753         remove: remove unnecessary use of m4/dos.m4
36754         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
36755         * modules/remove (FILES): Remove m4/dos.m4.
36757         * lib/openat-proc.c: Don't include dirname.h; not needed.
36759         backupfile: remove unnecessary use of m4/dos.m4
36760         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
36761         of its symbols are used by the backupfile code.  backupfile.c does
36762         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
36763         for the rare case of programs that want all their backup file
36764         names to live within 8+3 limits, and dos.m4 doesn't address that.
36765         * modules/backupfile (Files): Remove m4/dos.m4.
36767 2011-02-24  Jim Meyering  <meyering@redhat.com>
36769         strstr: fix a bug whereby strstr would mistakenly return NULL
36770         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
36771         in period calculation.
36772         (two_way_long_needle): Likewise.
36773         The original problem was reported by Mike Stump in
36774         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
36775         Ralf Wildenhues provided the short needle and haystack.
36776         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
36777         Add a more involved test to trigger the bug in two_way_long_needle.
36779 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36781         gnulib-tool: remove use of bold display in help screen
36782         * gnulib-tool (func_usage): Do not use bold display anymore in the
36783         help screen.  That was just meant to be a temporary emphasis for a
36784         backward-incompatible change.
36786 2011-02-23  Bruno Haible  <bruno@clisp.org>
36788         Fix misindentation of preprocessor directives.
36789         * lib/argp-namefrob.h: Reindent preprocessor directives.
36790         * lib/getopt_int.h (struct _getopt_data): Likewise.
36791         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
36792         * lib/vasnprintf.c (decode_long_double): Likewise.
36793         * tests/test-argmatch.c: Insert blank lines, for clarity.
36794         * tests/test-exclude.c: Likewise.
36796 2011-02-22  Bruno Haible  <bruno@clisp.org>
36798         ioctl: Fix for MacOS X in 64-bit mode.
36799         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
36800         value.
36801         Suggested by Eric Blake.
36802         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
36804 2011-02-22  Jim Meyering  <meyering@redhat.com>
36806         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
36807         * Makefile (sc_cpp_indent_check): Don't limit the check to files
36808         in lib/.
36810 2011-02-22  Eric Blake  <eblake@redhat.com>
36812         maint: avoid any CDPATH issue
36813         * Makefile (sc_cpp_indent_check): Anchor cd argument.
36815         maint: adjust cpp indentation for my modules, as well
36816         * Makefile (sc_cpp_indent_check): Add my name.
36817         * lib/fbufmode.c: Filter through cppi.
36818         * lib/fpurge.c: Likewise.
36819         * lib/freadable.c: Likewise.
36820         * lib/freading.c: Likewise.
36821         * lib/fwritable.c: Likewise.
36822         * lib/fwriting.c: Likewise.
36823         * lib/sigaction.c: Likewise.
36825 2011-02-22  Jim Meyering  <meyering@redhat.com>
36827         maint: adjust cpp indentation to reflect nesting depth
36828         I.e., in a block of code that begins with an unnested "#if",
36829         put one space between the "#" in column 1 and following token.
36830         For example,
36831         -#include <sys/vfs.h>
36832         +# include <sys/vfs.h>
36833         Do this only in .c files that are part of a module I maintain.
36834         * lib/linkat.c: Filter through cppi.
36835         * lib/nanosleep.c: Likewise.
36836         * lib/openat.c: Likewise.
36837         * lib/openat-die.c: Likewise.
36838         * lib/dup3.c: Likewise.
36839         * lib/fchownat.c: Likewise.
36840         * lib/flock.c: Likewise.
36841         * lib/fsync.c: Likewise.
36842         * lib/fts.c: Likewise.
36843         * lib/getpass.c: Likewise.
36844         * lib/gettimeofday.c: Likewise.
36845         * lib/userspec.c: Likewise.
36846         * Makefile (sc_cpp_indent_check): New rule, to check this.
36848 2011-02-22  Bruno Haible  <bruno@clisp.org>
36850         New module 'wctomb'.
36851         * lib/stdlib.in.h (wctomb): New declaration.
36852         * lib/wctomb.c: New file.
36853         * lib/wctomb-impl.h: New file.
36854         * m4/wctomb.m4: New file.
36855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
36856         REPLACE_WCTOMB.
36857         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
36858         REPLACE_WCTOMB.
36859         * modules/wctomb: New file.
36860         * tests/test-stdlib-c++.cc: Test signature of wctomb.
36861         * doc/posix-functions/wctomb.texi: Mention the new module.
36862         * modules/wctob (Depends-on): Add wctomb.
36864 2011-02-22  Bruno Haible  <bruno@clisp.org>
36866         New module 'mbtowc'.
36867         * lib/stdlib.in.h (mbtowc): New declaration.
36868         * lib/mbtowc.c: New file.
36869         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
36870         * m4/mbtowc.m4: New file.
36871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
36872         REPLACE_MBTOWC.
36873         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
36874         REPLACE_MBTOWC.
36875         * modules/mbtowc: New file.
36876         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
36877         * doc/posix-functions/mbtowc.texi: Mention the new module.
36878         * modules/btowc (Depends-on): Add mbtowc.
36880 2011-02-22  Bruno Haible  <bruno@clisp.org>
36882         wcrtomb: Add more tests for native Windows platforms.
36883         * tests/test-wcrtomb-w32-1.sh: New file.
36884         * tests/test-wcrtomb-w32-2.sh: New file.
36885         * tests/test-wcrtomb-w32-3.sh: New file.
36886         * tests/test-wcrtomb-w32-4.sh: New file.
36887         * tests/test-wcrtomb-w32-5.sh: New file.
36888         * tests/test-wcrtomb-w32.c: New file.
36889         * modules/wcrtomb-tests (Files): Add them.
36890         (Makefile.am): Arrange to run these tests.
36891         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
36892         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
36894 2011-02-20  Bruno Haible  <bruno@clisp.org>
36896         wcrtomb: Enhance test.
36897         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
36899 2011-02-20  Bruno Haible  <bruno@clisp.org>
36901         mbrtowc: Tiny optimization.
36902         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
36904 2011-02-20  Jim Meyering  <meyering@redhat.com>
36906         test-exclude.c: remove unmatched #endif
36907         * tests/test-exclude.c: Remove stray #endif, left over from
36908         the change of a week ago.
36910 2011-02-19  Jim Meyering  <meyering@redhat.com>
36912         git-version-gen: skip "-dirty" check when appropriate
36913         * build-aux/git-version-gen: Don't run any git commands when the
36914         version string comes from .tarball-version.  Prior to this, we
36915         would run git update-index --refresh even from a just-unpacked
36916         tarball directory, and that could affect a .git/ directory in a
36917         parent of the build directory.  Reported by Mike Frysinger.
36919 2011-02-19  Bruno Haible  <bruno@clisp.org>
36921         unictype/property-byname: Reduce the size of the 'data' segment.
36922         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
36924 2011-02-19  Bruno Haible  <bruno@clisp.org>
36926         unictype/scripts: Reduce the size of the 'data' segment.
36927         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
36928         '%pic'.
36929         * lib/unictype/scripts_byname.gperf: Regenerated.
36931 2011-02-19  Bruno Haible  <bruno@clisp.org>
36933         stdint: Update documentation.
36934         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
36936 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
36938         stdint: omit redundant check for wchar.h
36939         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
36940         always tests whether wchar.h exists, so remove the now-redundant test.
36942 2011-02-18  Bruno Haible  <bruno@clisp.org>
36944         stdint: Cut dependency to module 'wchar'.
36945         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
36946         include the necessary prerequisites.
36947         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
36948         * modules/stdint (Depends-on): Remove wchar.
36949         (Makefile.am): Substitute HAVE_WCHAR_H.
36950         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
36952 2011-02-18  Eric Blake  <eblake@redhat.com>
36954         longlong: skip, rather than fail, on cross-compilation
36955         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
36956         when cross-compiling; regression from 2011-02-16.
36958 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
36960         * NEWS: Mention 2011-02-08 change to stdlib.
36962 2011-02-17  Bruno Haible  <bruno@clisp.org>
36964         getloadavg: Add comments about platforms.
36965         * m4/getloadavg.m4: Add comment.
36966         * lib/getloadavg.c: Likewise.
36968 2011-02-17  Bruno Haible  <bruno@clisp.org>
36970         getloadavg: Fix link error on Solaris 2.6.
36971         * modules/getloadavg (Link): New section.
36972         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
36973         linking test-getloadavg.
36974         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
36975         getloadavg.
36977 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
36979         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
36980         It was 'int', but this doesn't match the IRIX 6.5 manual.
36981         Suggested by Bruno Haible in
36982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
36984 2011-02-17  Bruno Haible  <bruno@clisp.org>
36986         havelib: Fix comments.
36987         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
36988         change.
36990 2011-02-17  Bruno Haible  <bruno@clisp.org>
36992         havelib: Update config.rpath.
36993         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
36995 2011-02-17  Bruno Haible  <bruno@clisp.org>
36997         getloadavg test: Add some plausibility checks.
36998         * tests/test-getloadavg.c (check_avg): Print a warning when the value
36999         is improbable.
37001 2011-02-16  Eric Blake  <eblake@redhat.com>
37003         maintainer-makefile: make syntax-check a no-op from tarballs
37004         * top/maint.mk (no-vc-detected): New rule.
37005         (local-checks-available): Use it to avoid hanging if someone tries
37006         'make syntax-check' from a tarball.  Also append to any non-syntax
37007         checks already defined in cfg.mk.
37009 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
37011         longlong: tune, particularly for common case of c99
37013         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
37014         or running anything if c99, or if unsigned long long int does not
37015         work.  In either case, we know the answer without further tests.
37016         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
37017         it at most once, and use its results for both long long int and
37018         unsigned long long int.  This is more likely to be efficient in
37019         the common case where the program wants to check for both long
37020         long int and unsigned long long int.
37021         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
37022         since the answer is already known.
37024 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
37026         getloadavg: set errno
37027         * lib/getloadavg.c: Set errno when returning -1.  If no other
37028         error number looks appropriate, set it to ENOSYS if the getloadavg
37029         looks like it can't possibly ever work, ENOTSUP otherwise.
37030         Suggested by Bruno Haible in
37031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
37033         getloadavg: trim unused parts and speed up 'configure'
37034         * NEWS: Document this.
37035         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
37036         always compiled if getloadavg is absent.
37037         Move test code to ...
37038         * tests/test-getloadavg.c: New file, containing previous
37039         contents of test from lib/getloadavg.c.  It also contains
37040         suggestions by Bruno Haible in
37041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
37042         * modules/getloadavg-tests: New file.
37043         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
37044         Do tests in the same order as they're needed for getloadavg.c.
37045         Omit setgid-related tests that generate symbols KMEM_GROUP,
37046         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
37047         Do only the tests that are needed to see whether the system has
37048         getloadavg, moving the other tests into ...
37049         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
37050         NLIST_NAME_UNION; nobody should be using it.  Do not define
37051         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
37052         relevant, as the user of this module shouldn't care how getloadavg
37053         is implemented.
37055         getloadavg: omit unused var
37056         * lib/getloadavg.c (getloadavg): Omit unused local variable.
37058 2011-02-15  Jim Meyering  <meyering@redhat.com>
37060         doc: update users.txt
37061         * users.txt: Update iwhd's URL.
37063 2011-02-13  Bruno Haible  <bruno@clisp.org>
37065         Consistent macro naming for macros that use GCC __attribute__.
37066         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
37067         _ATTRIBUTE_NONNULL_.
37068         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
37069         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
37070         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
37071         ATTRIBUTE_DEPRECATED.
37072         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
37073         ATTRIBUTE_NORETURN.
37074         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37075         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37076         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37077         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37078         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
37079         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
37080         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
37081         ATTRIBUTE_SENTINEL.
37082         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
37083         ATTRIBUTE_RETURN_CHECK.
37084         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
37085         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
37086         ATTRIBUTE_NORETURN.
37087         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
37088         Reported by Paul Eggert.
37090 2011-02-13  Bruno Haible  <bruno@clisp.org>
37092         Don't interfere with a program's definition of __attribute__.
37093         * lib/argp.h (__attribute__): Remove definition.
37094         (_GL_ATTRIBUTE_FORMAT): New macro.
37095         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
37096         * lib/argp-fmtstream.h (__attribute__): Remove definition.
37097         (_GL_ATTRIBUTE_FORMAT): New macro.
37098         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
37099         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
37100         GCC 3 or newer.
37101         * lib/error.h (__attribute__): Remove definition.
37102         (_GL_ATTRIBUTE_FORMAT): New macro.
37103         (error, error_at_line): Use it.
37104         * lib/hash.h (__attribute__): Remove definition.
37105         (ATTRIBUTE_WUR): Update definition. Define always.
37106         * lib/openat.h (__attribute__): Remove definition.
37107         (ATTRIBUTE_NORETURN): Update definition. Define always.
37108         * lib/sigpipe-die.h (__attribute__): Remove definition.
37109         (ATTRIBUTE_NORETURN): Update definition. Define always.
37110         * lib/vasnprintf.h (__attribute__): Remove definition.
37111         (_GL_ATTRIBUTE_FORMAT): New macro.
37112         (asnprintf, vasnprintf): Use it.
37113         * lib/xalloc.h (__attribute__): Remove definition.
37114         (ATTRIBUTE_NORETURN): Update definition. Define always.
37115         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
37116         * lib/xmemdup0.h (__attribute__): Remove definition.
37117         (ATTRIBUTE_NORETURN): Update definition. Define always.
37118         * lib/xprintf.h (__attribute__): Remove definition.
37119         (_GL_ATTRIBUTE_FORMAT): New macro.
37120         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
37121         * lib/xstrtol.h (__attribute__): Remove definition.
37122         (ATTRIBUTE_NORETURN): Update definition. Define always.
37123         * lib/xvasprintf.h (__attribute__): Remove definition.
37124         (_GL_ATTRIBUTE_FORMAT): New macro.
37125         (xasprintf, xvasprintf): Use it.
37126         * tests/test-argmatch.c (__attribute__): Remove definition.
37127         (ATTRIBUTE_NORETURN): Update definition. Define always.
37128         * tests/test-exclude.c (__attribute__): Remove definition.
37129         (ATTRIBUTE_NORETURN): Update definition. Define always.
37130         Reported by Paul Eggert.
37132 2011-02-13  Bruno Haible  <bruno@clisp.org>
37134         mbrtowc: Add more tests for native Windows platforms.
37135         * tests/test-mbrtowc-w32-1.sh: New file.
37136         * tests/test-mbrtowc-w32-2.sh: New file.
37137         * tests/test-mbrtowc-w32-3.sh: New file.
37138         * tests/test-mbrtowc-w32-4.sh: New file.
37139         * tests/test-mbrtowc-w32-5.sh: New file.
37140         * tests/test-mbrtowc-w32.c: New file.
37141         * modules/mbrtowc-tests (Files): Add them.
37142         (Makefile.am): Arrange to run these tests.
37143         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
37144         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
37146 2011-02-13  Bruno Haible  <bruno@clisp.org>
37148         mbrtowc: Work around native Windows bug.
37149         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
37150         guess when no suitable locale for testing was found.
37151         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
37153 2011-02-13  Bruno Haible  <bruno@clisp.org>
37155         mbsinit: Work around mingw bug.
37156         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
37157         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
37158         Windows.
37159         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
37161 2011-02-13  Bruno Haible  <bruno@clisp.org>
37163         mbsinit: Don't crash for a NULL argument.
37164         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
37165         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
37167 2011-02-13  Bruno Haible  <bruno@clisp.org>
37169         Don't interfere with a program's definition of __attribute__.
37170         * lib/stdio.in.h (__attribute__): Remove definition.
37171         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
37172         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
37173         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
37174         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
37175         * lib/string.in.h (__attribute__): Remove definition.
37176         Reported by Paul Eggert.
37178 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37180         stdlib: don't get in the way of non-GCC __attribute__
37181         See thread starting at
37182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
37183         Revert previous stdlib change, installing the following instead:
37184         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
37185         to get in the way of a non-GCC compiler that supports __attribute__.
37186         (_GL_ATTRIBUTE_RETURN): New macro.
37187         (_Exit): Use it instead of __attribute__.
37189 2011-02-12  Bruno Haible  <bruno@clisp.org>
37191         quotearg test: Avoid test failure on mingw.
37192         * tests/test-quotearg.sh: Convert the locale identifier from native
37193         Windows syntax to Unix syntax.
37195 2011-02-12  Bruno Haible  <bruno@clisp.org>
37197         setlocale: Prefer gnulib's override over libintl's override.
37198         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
37199         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
37200         GNULIB_defined_setlocale is set.
37202 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37204         stdlib: support non-GCC __attribute__
37206         Fix a serious and tricky problem encountered when attempting to
37207         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
37208         5.5, but it crashed due to memory corruption on Solaris 10 with
37209         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
37210         bits that are otherwise zero.  This tagging is optional inside
37211         Emacs but is preferred and is used when __attribute__ ((__aligned
37212         (8))) works, as it does with both recent-enough GCC and with Sun C
37213         5.11.  However, Sun C 5.11 is not GCC and does not #define
37214         __GNUC__ and __GNUC_MINOR__.
37216         When I added the getloadavg module to Emacs, it brought in
37217         stdlib.in.h, which contained this fragment:
37219            #ifndef __attribute__
37220            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
37221            #  define __attribute__(Spec)   /* empty */
37222            # endif
37223            #endif
37225         When files that include <stdlib.h> were compiled with Sun C 5.11,
37226         the above code disabled __attribute__ ((__aligned (8))), which
37227         caused variables to not be properly aligned, which eventually led
37228         to the pointer corruption mentioned above.  (This was a bit hard
37229         to diagnose, unfortunately.)
37231         Several "#define __attribute__(X) /* empty */" code snippets need
37232         to be eradicated from Gnulib to work with non-GCC compilers that
37233         support __attribute__.  The Autoconf way to do this is to test for
37234         each kind of attribute that we want support for, and selectively
37235         enable that in source code.
37237         Fix this problem just for stdlib.h, by adding a test for the
37238         __noreturn__ attribute, and change stdlib.in.h to use that test
37239         when needed.  This technique can be easily generalized to the
37240         other *.in.h files and attributes, and a similar technique can be
37241         used for *.h and *.c files.  This patch is enough to solve the
37242         problem for Emacs + getloadavg, and I thought I'd publish it for
37243         feedback before undertaking further, similar fixes in other
37244         modules.
37246         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
37247         because it's not needed for stdlib.h.  It merely substitutes the
37248         value directly into stdlib.h.  We may well need to #define it, or
37249         similar symbols, for other modules, but it's nice to also have an
37250         option to not #define it for applications like Emacs that do not
37251         need it.
37253         * lib/stdlib.in.h (__attribute__): Do not #define.
37254         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
37255         be defined only if the _Exit module is also used.
37256         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
37257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
37258         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
37259         platforms.
37260         * modules/_Exit (Files): Add m4/attribute.m4.
37261         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
37262         * m4/attribute.m4: New file.
37264 2011-02-12  Bruno Haible  <bruno@clisp.org>
37266         wcsrtombs: Work around bug on native Windows.
37267         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
37268         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
37269         instead of len.
37270         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
37272 2011-02-12  Bruno Haible  <bruno@clisp.org>
37274         mbsrtowcs: Work around bug on native Windows.
37275         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
37276         against mingw bug.
37277         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
37279 2011-02-12  Bruno Haible  <bruno@clisp.org>
37281         Avoid setlocale bugs in tests.
37282         * modules/btowc (Dependencies): Add setlocale.
37283         * modules/c-strcase (Dependencies): Likewise.
37284         * modules/mbmemcasecmp (Dependencies): Likewise.
37285         * modules/mbmemcasecoll (Dependencies): Likewise.
37286         * modules/mbrtowc (Dependencies): Likewise.
37287         * modules/mbscasecmp (Dependencies): Likewise.
37288         * modules/mbscasestr (Dependencies): Likewise.
37289         * modules/mbschr (Dependencies): Likewise.
37290         * modules/mbscspn (Dependencies): Likewise.
37291         * modules/mbsinit (Dependencies): Likewise.
37292         * modules/mbsncasecmp (Dependencies): Likewise.
37293         * modules/mbsnrtowcs (Dependencies): Likewise.
37294         * modules/mbspbrk (Dependencies): Likewise.
37295         * modules/mbspcasecmp (Dependencies): Likewise.
37296         * modules/mbsrchr (Dependencies): Likewise.
37297         * modules/mbsrtowcs (Dependencies): Likewise.
37298         * modules/mbsspn (Dependencies): Likewise.
37299         * modules/mbsstr (Dependencies): Likewise.
37300         * modules/nl_langinfo (Dependencies): Likewise.
37301         * modules/quotearg (Dependencies): Likewise.
37302         * modules/unicase/locale-language (Dependencies): Likewise.
37303         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
37304         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
37305         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
37306         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
37307         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
37308         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
37309         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
37310         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
37311         * modules/vasnprintf-posix (Dependencies): Likewise.
37312         * modules/wcrtomb (Dependencies): Likewise.
37313         * modules/wcsnrtombs (Dependencies): Likewise.
37314         * modules/wcsrtombs (Dependencies): Likewise.
37316 2011-02-12  Bruno Haible  <bruno@clisp.org>
37318         setlocale: Workaround native Windows bug.
37319         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
37320         succeeds but sets LC_CTYPE to "C", report a failure.
37321         * tests/test-setlocale2.sh: New file.
37322         * tests/test-setlocale2.c: New file.
37323         * modules/setlocale-tests (Files): Add the new files.
37324         (Makefile.am): Enable test-setlocale2.sh test.
37325         * doc/posix-functions/setlocale.texi: Mention workaround.
37327 2011-02-11  Bruno Haible  <bruno@clisp.org>
37329         Tests for module 'setlocale'.
37330         * modules/setlocale-tests: New file.
37331         * tests/test-setlocale1.sh: New file.
37332         * tests/test-setlocale1.c: New file.
37334         New module 'setlocale'.
37335         * lib/locale.in.h (setlocale): New declaration.
37336         * lib/setlocale.c: New file, based on
37337         gettext/gettext-runtime/intl/setlocale.c.
37338         * m4/setlocale.m4: New file.
37339         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
37340         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
37341         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
37342         REPLACE_SETLOCALE.
37343         * modules/setlocale: New file.
37344         * tests/test-locale-c++.cc: Test the declaration of setlocale.
37345         * doc/posix-functions/setlocale.texi: Mention the new module.
37347 2011-02-11  Bruno Haible  <bruno@clisp.org>
37349         Prepare for locale dependent tests on mingw.
37350         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
37351         because it has the wrong locale encoding.
37352         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
37353         French_France.1252 instead of "fr".
37354         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
37355         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
37356         because it has the wrong locale encoding.
37357         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
37358         native Windows, try Turkish_Turkey.65001.
37359         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
37360         Chinese_China.54936.
37362         Prepare for locale dependent tests on mingw.
37363         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
37364         differently.
37365         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
37366         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
37367         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37368         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37370 2011-02-11  Eric Blake  <eblake@redhat.com>
37372         strptime: avoid compiler warnings
37373         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
37374         compiler warnings about dead code.
37375         Reported by Daniel P. Berrange.
37377 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
37379         doc: update users.txt
37380         * users.txt: Add rcs.
37382 2011-02-10  John W. Eaton  <jwe@gnu.org>
37384         doc: update users.txt
37385         * users.txt: Add octave.
37387 2011-02-10  Jim Meyering  <meyering@redhat.com>
37389         doc: update users.txt
37390         * users.txt: Add iwhd.
37392 2011-02-09  Bruno Haible  <bruno@clisp.org>
37394         gnulib-tool: Make copyright notice adjustment more robust.
37395         * gnulib-tool (func_import): In sed_transform_main_lib_file,
37396         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
37397         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
37398         License".
37399         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
37401 2011-02-06  Bruno Haible  <bruno@clisp.org>
37403         New module 'towctrans'.
37404         * modules/towctrans: New file.
37405         * lib/wctype.in.h (towctrans): New declaration.
37406         * lib/towctrans.c: New file.
37407         * lib/towctrans-impl.h: New file.
37408         * m4/towctrans.m4: New file.
37409         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
37410         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
37411         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
37412         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
37413         * doc/posix-functions/towctrans.texi: Mention the new module.
37415 2011-02-06  Bruno Haible  <bruno@clisp.org>
37417         New module 'wctrans'.
37418         * modules/wctrans: New file.
37419         * lib/wctype.in.h (wctrans): New declaration.
37420         * lib/wctrans.c: New file.
37421         * lib/wctrans-impl.h: New file.
37422         * m4/wctrans.m4: New file.
37423         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
37424         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
37425         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
37426         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
37427         * doc/posix-functions/wctrans.texi: Mention the new module.
37429 2011-02-06  Bruno Haible  <bruno@clisp.org>
37431         New module 'iswctype'.
37432         * modules/iswctype: New file.
37433         * lib/wctype.in.h (iswctype): New declaration.
37434         * lib/iswctype.c: New file.
37435         * lib/iswctype-impl.h: New file.
37436         * m4/iswctype.m4: New file.
37437         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
37438         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
37439         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
37440         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
37441         * doc/posix-functions/iswctype.texi: Mention the new module and the
37442         HP-UX 11.00 problem.
37444 2011-02-06  Bruno Haible  <bruno@clisp.org>
37446         New module 'wctype'.
37447         * modules/wctype: Change to represent the wctype() substitute.
37448         * lib/wctype.in.h (wctype): New declaration.
37449         * lib/wctype.c: New file.
37450         * lib/wctype-impl.h: New file.
37451         * m4/wctype.m4: New file.
37452         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
37453         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
37454         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
37455         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
37456         * doc/posix-functions/wctype.texi: Mention the new module and the
37457         HP-UX 11.00 problem.
37459 2011-02-06  Bruno Haible  <bruno@clisp.org>
37461         wctype-h: Ensure wctype_t and wctrans_t are defined.
37462         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
37463         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
37464         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
37465         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
37466         HAVE_WCTRANS_T.
37467         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
37469 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
37471         flock: fix license typo
37473         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
37474         omitted.
37476 2011-02-08  Bruno Haible  <bruno@clisp.org>
37478         Split large sed scripts, for HP-UX sed.
37479         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
37480         to avoid HP-UX limit of 99 commands, in the near future.
37481         * modules/stdlib (Makefile.am): Likewise.
37482         * modules/unistd (Makefile.am): Likewise.
37483         * modules/wchar (Makefile.am): Likewise.
37484         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37485         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
37486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
37488 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
37489             Bruno Haible  <bruno@clisp.org>
37491         stdlib: improve random_r modularization
37492         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
37493         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
37494         you also need the random_r module to get this material right.
37495         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
37496         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
37497         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
37499 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
37501         stdlib: don't depend on stdint
37502         * lib/stdlib.in.h: Don't include <stdint.h> merely because
37503         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
37504         be independent of whether stdint.h is needed.
37505         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
37506         here, instead of ...
37507         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
37508         struct random_data should be using the random_r module, not just
37509         the stdlib module (which wouldn't make sense: what package needs
37510         just struct random_data without also needing random_r?).
37511         * modules/stdlib (Depends-on): Remove stdint.
37513         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
37514         See the thread rooted at
37515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
37516         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
37517         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
37518         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
37519         __VMS)); previously it was always included (via fcntl--.h).
37520         (getloadavg): Do not use c_strtod.  Instead, approximate it by
37521         hand; this is good enough for load averages.  Also, do not use
37522         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
37523         flags directly if available and don't bother otherwise.  (Packages
37524         that need the extra reliability should use the modules that define
37525         these flags on older platforms that lack them.)
37526         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
37527         fcntl-safer.
37529 2011-02-08  Jim Meyering  <meyering@redhat.com>
37531         di-set.h, ino-map.h: add multiple-inclusion guard
37532         Technically, the guard is required only for ino-map.h, due to its
37533         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
37534         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
37535         * lib/ino-map.h: Likewise.
37537 2011-02-06  Bruno Haible  <bruno@clisp.org>
37539         iswblank: Ensure declaration on glibc systems.
37540         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
37541         * modules/iswblank (Dependencies): Add 'extensions'.
37542         * doc/posix-functions/iswblank.texi: Document the glibc problem.
37544 2011-02-06  Bruno Haible  <bruno@clisp.org>
37546         New module 'iswblank'.
37547         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
37548         * modules/iswblank: New file.
37549         * modules/wctype-h (Files): Remove lib/iswblank.c.
37550         (Makefile.am): Substitute GNULIB_ISWBLANK.
37551         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
37552         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
37553         (gl_WCTYPE_H_DEFAULTS): New macro.
37554         (gl_WCTYPE_H): Require it. Remove iswblank related code.
37555         * modules/iswblank-tests: New file.
37556         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
37557         * tests/test-wctype-h.c (main): Remove iswblank tests.
37558         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
37559         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
37560         of 'wctype-h'.
37561         * NEWS: Mention the change.
37562         * modules/mbchar (Depends-on): Add iswblank.
37564 2011-02-08  Bruno Haible  <bruno@clisp.org>
37566         di-set tests: Refactor.
37567         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
37568         unnecessary includes.
37569         (ASSERT): Remove macro.
37570         (main): Make C90 compliant by avoiding variable declaration after
37571         statement.
37572         * modules/di-set-tests (Files): Add tests/macros.h.
37574 2011-02-08  Bruno Haible  <bruno@clisp.org>
37576         ino-map tests: Refactor.
37577         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
37578         unnecessary includes.
37579         (ASSERT): Remove macro.
37580         (main): Make C90 compliant by avoiding variable declaration after
37581         statement.
37582         * modules/ino-map-tests (Files): Add tests/macros.h.
37584 2011-02-08  Jim Meyering  <meyering@redhat.com>
37586         di-set: add "const" to a cast
37587         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
37588         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
37590 2011-02-06  Bruno Haible  <bruno@clisp.org>
37592         Rename module 'wctype' to 'wctype-h'.
37593         * modules/wctype-h: Renamed from modules/wctype.
37594         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
37595         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
37596         (Files, Depends-on, Makefile.am): Update.
37597         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
37598         (Files, Makefile.am): Update.
37599         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
37600         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
37601         * doc/posix-headers/wctype.texi: Update.
37602         * doc/posix-functions/iswalnum.texi: Update.
37603         * doc/posix-functions/iswalpha.texi: Update.
37604         * doc/posix-functions/iswblank.texi: Update.
37605         * doc/posix-functions/iswcntrl.texi: Update.
37606         * doc/posix-functions/iswdigit.texi: Update.
37607         * doc/posix-functions/iswgraph.texi: Update.
37608         * doc/posix-functions/iswlower.texi: Update.
37609         * doc/posix-functions/iswprint.texi: Update.
37610         * doc/posix-functions/iswpunct.texi: Update.
37611         * doc/posix-functions/iswspace.texi: Update.
37612         * doc/posix-functions/iswupper.texi: Update.
37613         * doc/posix-functions/iswxdigit.texi: Update.
37614         * doc/posix-functions/towlower.texi: Update.
37615         * doc/posix-functions/towupper.texi: Update.
37616         * NEWS: Mention the change.
37617         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
37618         * modules/mbchar (Dependencies): Likewise.
37619         * modules/mbswidth (Dependencies): Likewise.
37620         * modules/quotearg (Dependencies): Likewise.
37621         * modules/regex (Dependencies): Likewise.
37622         * modules/wcscasecmp (Dependencies): Likewise.
37623         * modules/wcsncasecmp (Dependencies): Likewise.
37624         * modules/wcwidth (Dependencies): Likewise.
37626 2011-02-06  Bruno Haible  <bruno@clisp.org>
37628         New module 'wcswidth'.
37629         * modules/wcswidth: New file.
37630         * lib/wchar.in.h (wcswidth): New declaration.
37631         * lib/wcswidth.c: New file.
37632         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
37633         * m4/wcswidth.m4: New file.
37634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
37635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
37636         REPLACE_WCSWIDTH.
37637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
37638         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
37639         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
37640         * doc/posix-functions/wcswidth.texi: Mention the new module.
37642 2011-02-06  Bruno Haible  <bruno@clisp.org>
37644         New module 'wcstok'.
37645         * modules/wcstok: New file.
37646         * lib/wchar.in.h (wcstok): New declaration.
37647         * lib/wcstok.c: New file.
37648         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
37649         * m4/wcstok.m4: New file.
37650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
37651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
37652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
37653         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
37654         * doc/posix-functions/wcstok.texi: Mention the new module.
37656 2011-02-06  Bruno Haible  <bruno@clisp.org>
37658         New module 'wcsstr'.
37659         * modules/wcsstr: New file.
37660         * lib/wchar.in.h (wcsstr): New declaration.
37661         * lib/wcsstr.c: New file.
37662         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
37663         * m4/wcsstr.m4: New file.
37664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
37665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
37666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
37667         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
37668         * doc/posix-functions/wcsstr.texi: Mention the new module.
37670 2011-02-06  Bruno Haible  <bruno@clisp.org>
37672         New module 'wcspbrk'.
37673         * modules/wcspbrk: New file.
37674         * lib/wchar.in.h (wcspbrk): New declaration.
37675         * lib/wcspbrk.c: New file.
37676         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
37677         * m4/wcspbrk.m4: New file.
37678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
37679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
37680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
37681         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
37682         * doc/posix-functions/wcspbrk.texi: Mention the new module.
37684 2011-02-06  Bruno Haible  <bruno@clisp.org>
37686         New module 'wcsspn'.
37687         * modules/wcsspn: New file.
37688         * lib/wchar.in.h (wcsspn): New declaration.
37689         * lib/wcsspn.c: New file.
37690         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
37691         * m4/wcsspn.m4: New file.
37692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
37693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
37694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
37695         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
37696         * doc/posix-functions/wcsspn.texi: Mention the new module.
37698 2011-02-06  Bruno Haible  <bruno@clisp.org>
37700         New module 'wcscspn'.
37701         * modules/wcscspn: New file.
37702         * lib/wchar.in.h (wcscspn): New declaration.
37703         * lib/wcscspn.c: New file.
37704         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
37705         * m4/wcscspn.m4: New file.
37706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
37707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
37708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
37709         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
37710         * doc/posix-functions/wcscspn.texi: Mention the new module.
37712 2011-02-06  Bruno Haible  <bruno@clisp.org>
37714         New module 'wcsrchr'.
37715         * modules/wcsrchr: New file.
37716         * lib/wchar.in.h (wcsrchr): New declaration.
37717         * lib/wcsrchr.c: New file.
37718         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
37719         * m4/wcsrchr.m4: New file.
37720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
37721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
37722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
37723         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
37724         * doc/posix-functions/wcsrchr.texi: Mention the new module.
37726 2011-02-06  Bruno Haible  <bruno@clisp.org>
37728         New module 'wcschr'.
37729         * modules/wcschr: New file.
37730         * lib/wchar.in.h (wcschr): New declaration.
37731         * lib/wcschr.c: New file.
37732         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
37733         * m4/wcschr.m4: New file.
37734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
37735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
37736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
37737         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
37738         * doc/posix-functions/wcschr.texi: Mention the new module.
37740 2011-02-06  Bruno Haible  <bruno@clisp.org>
37742         New module 'wcsdup'.
37743         * modules/wcsdup: New file.
37744         * lib/wchar.in.h (wcsdup): New declaration.
37745         * lib/wcsdup.c: New file.
37746         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
37747         * m4/wcsdup.m4: New file.
37748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
37749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
37750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
37751         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
37752         * doc/posix-functions/wcsdup.texi: Mention the new module.
37754 2011-02-06  Bruno Haible  <bruno@clisp.org>
37756         New module 'wcsxfrm'.
37757         * modules/wcsxfrm: New file.
37758         * lib/wchar.in.h (wcsxfrm): New declaration.
37759         * lib/wcsxfrm.c: New file.
37760         * lib/wcsxfrm-impl.h: New file.
37761         * m4/wcsxfrm.m4: New file.
37762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
37763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
37764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
37765         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
37766         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
37768 2011-02-06  Bruno Haible  <bruno@clisp.org>
37770         New module 'wcscoll'.
37771         * modules/wcscoll: New file.
37772         * lib/wchar.in.h (wcscoll): New declaration.
37773         * lib/wcscoll.c: New file.
37774         * lib/wcscoll-impl.h: New file.
37775         * m4/wcscoll.m4: New file.
37776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
37777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
37778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
37779         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
37780         * doc/posix-functions/wcscoll.texi: Mention the new module.
37782 2011-02-06  Bruno Haible  <bruno@clisp.org>
37784         New module 'wcsncasecmp'.
37785         * modules/wcsncasecmp: New file.
37786         * lib/wchar.in.h (wcsncasecmp): New declaration.
37787         * lib/wcsncasecmp.c: New file.
37788         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
37789         * m4/wcsncasecmp.m4: New file.
37790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
37791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
37792         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
37793         HAVE_WCSNCASECMP.
37794         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
37795         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
37797 2011-02-06  Bruno Haible  <bruno@clisp.org>
37799         New module 'wcscasecmp'.
37800         * modules/wcscasecmp: New file.
37801         * lib/wchar.in.h (wcscasecmp): New declaration.
37802         * lib/wcscasecmp.c: New file.
37803         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
37804         * m4/wcscasecmp.m4: New file.
37805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
37806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
37807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
37808         HAVE_WCSCASECMP.
37809         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
37810         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
37812 2011-02-05  Bruno Haible  <bruno@clisp.org>
37814         New module 'wcsncmp'.
37815         * modules/wcsncmp: New file.
37816         * lib/wchar.in.h (wcsncmp): New declaration.
37817         * lib/wcsncmp.c: New file.
37818         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
37819         * m4/wcsncmp.m4: New file.
37820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
37821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
37822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
37823         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
37824         * doc/posix-functions/wcsncmp.texi: Mention the new module.
37826 2011-02-05  Bruno Haible  <bruno@clisp.org>
37828         New module 'wcscmp'.
37829         * modules/wcscmp: New file.
37830         * lib/wchar.in.h (wcscmp): New declaration.
37831         * lib/wcscmp.c: New file.
37832         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
37833         * m4/wcscmp.m4: New file.
37834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
37835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
37836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
37837         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
37838         * doc/posix-functions/wcscmp.texi: Mention the new module.
37840 2011-02-05  Bruno Haible  <bruno@clisp.org>
37842         New module 'wcsncat'.
37843         * modules/wcsncat: New file.
37844         * lib/wchar.in.h (wcsncat): New declaration.
37845         * lib/wcsncat.c: New file.
37846         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
37847         * m4/wcsncat.m4: New file.
37848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
37849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
37850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
37851         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
37852         * doc/posix-functions/wcsncat.texi: Mention the new module.
37854 2011-02-05  Bruno Haible  <bruno@clisp.org>
37856         New module 'wcscat'.
37857         * modules/wcscat: New file.
37858         * lib/wchar.in.h (wcscat): New declaration.
37859         * lib/wcscat.c: New file.
37860         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
37861         * m4/wcscat.m4: New file.
37862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
37863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
37864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
37865         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
37866         * doc/posix-functions/wcscat.texi: Mention the new module.
37868 2011-02-05  Bruno Haible  <bruno@clisp.org>
37870         New module 'wcpncpy'.
37871         * modules/wcpncpy: New file.
37872         * lib/wchar.in.h (wcpncpy): New declaration.
37873         * lib/wcpncpy.c: New file.
37874         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
37875         * m4/wcpncpy.m4: New file.
37876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
37877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
37878         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
37879         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
37880         * doc/posix-functions/wcpncpy.texi: Mention the new module.
37882 2011-02-05  Bruno Haible  <bruno@clisp.org>
37884         New module 'wcsncpy'.
37885         * modules/wcsncpy: New file.
37886         * lib/wchar.in.h (wcsncpy): New declaration.
37887         * lib/wcsncpy.c: New file.
37888         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
37889         * m4/wcsncpy.m4: New file.
37890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
37891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
37892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
37893         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
37894         * doc/posix-functions/wcsncpy.texi: Mention the new module.
37896 2011-02-05  Bruno Haible  <bruno@clisp.org>
37898         New module 'wcpcpy'.
37899         * modules/wcpcpy: New file.
37900         * lib/wchar.in.h (wcpcpy): New declaration.
37901         * lib/wcpcpy.c: New file.
37902         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
37903         * m4/wcpcpy.m4: New file.
37904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
37905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
37906         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
37907         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
37908         * doc/posix-functions/wcpcpy.texi: Mention the new module.
37910 2011-02-05  Bruno Haible  <bruno@clisp.org>
37912         New module 'wcscpy'.
37913         * modules/wcscpy: New file.
37914         * lib/wchar.in.h (wcscpy): New declaration.
37915         * lib/wcscpy.c: New file.
37916         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
37917         * m4/wcscpy.m4: New file.
37918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
37919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
37920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
37921         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
37922         * doc/posix-functions/wcscpy.texi: Mention the new module.
37924 2011-02-05  Bruno Haible  <bruno@clisp.org>
37926         New module 'wcsnlen'.
37927         * modules/wcsnlen: New file.
37928         * lib/wchar.in.h (wcsnlen): New declaration.
37929         * lib/wcsnlen.c: New file.
37930         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
37931         * m4/wcsnlen.m4: New file.
37932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
37933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
37934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
37935         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
37936         * doc/posix-functions/wcsnlen.texi: Mention the new module.
37938 2011-02-05  Bruno Haible  <bruno@clisp.org>
37940         New module 'wcslen'.
37941         * modules/wcslen: New file.
37942         * lib/wchar.in.h (wcslen): New declaration.
37943         * lib/wcslen.c: New file.
37944         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
37945         * m4/wcslen.m4: New file.
37946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
37947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
37948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
37949         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
37950         * doc/posix-functions/wcslen.texi: Mention the new module.
37952 2011-02-05  Bruno Haible  <bruno@clisp.org>
37954         New module 'wmemset'.
37955         * modules/wmemset: New file.
37956         * lib/wchar.in.h (wmemset): New declaration.
37957         * lib/wmemset.c: New file.
37958         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
37959         * m4/wmemset.m4: New file.
37960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
37961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
37962         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
37963         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
37964         * doc/posix-functions/wmemset.texi: Mention the new module.
37966 2011-02-05  Bruno Haible  <bruno@clisp.org>
37968         New module 'wmemmove'.
37969         * modules/wmemmove: New file.
37970         * lib/wchar.in.h (wmemmove): New declaration.
37971         * lib/wmemmove.c: New file.
37972         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
37973         * m4/wmemmove.m4: New file.
37974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
37975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
37976         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
37977         HAVE_WMEMMOVE.
37978         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
37979         * doc/posix-functions/wmemmove.texi: Mention the new module.
37981 2011-02-05  Bruno Haible  <bruno@clisp.org>
37983         New module 'wmemcpy'.
37984         * modules/wmemcpy: New file.
37985         * lib/wchar.in.h (wmemcpy): New declaration.
37986         * lib/wmemcpy.c: New file.
37987         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
37988         * m4/wmemcpy.m4: New file.
37989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
37990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
37991         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
37992         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
37993         * doc/posix-functions/wmemcpy.texi: Mention the new module.
37995 2011-02-05  Bruno Haible  <bruno@clisp.org>
37997         New module 'wmemcmp'.
37998         * modules/wmemcmp: New file.
37999         * lib/wchar.in.h (wmemcmp): New declaration.
38000         * lib/wmemcmp.c: New file.
38001         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
38002         * m4/wmemcmp.m4: New file.
38003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
38004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
38005         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
38006         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
38007         * doc/posix-functions/wmemcmp.texi: Mention the new module.
38009 2011-02-07  Jim Meyering  <meyering@redhat.com>
38011         di-set, ino-map: new modules, from coreutils
38012         * lib/di-set.c: New file.
38013         * lib/di-set.h: Likewise.
38014         * lib/ino-map.c: Likewise.
38015         * lib/ino-map.h: Likewise.
38016         * modules/di-set: Likewise.
38017         * modules/di-set-tests: Likewise.
38018         * modules/ino-map: Likewise.
38019         * modules/ino-map-tests: Likewise.
38020         * tests/test-di-set.c: Likewise.
38021         * tests/test-ino-map.c: Likewise.
38023 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
38025         getloadavg: merge minor changes from Emacs
38027         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
38028         (getloadavg): Use memset, not bzero.
38030         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
38031         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
38032         clash (bug#86).
38034 2010-11-14  Bruno Haible  <bruno@clisp.org>
38036         Allow multiple gnulib generated replacements to coexist.
38037         * lib/getopt.in.h (struct option): Avoid identical redefinition.
38038         * lib/inttypes.in.h (imaxdiv_t): Likewise.
38039         * lib/langinfo.in.h (nl_item): Likewise.
38040         * lib/math.in.h (_NaN, NAN): Likewise.
38041         * lib/netdb.in.h (struct addrinfo): Likewise.
38042         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
38043         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
38044         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
38045         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
38046         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
38047         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
38048         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
38049         pthread_mutexattr_init, pthread_mutexattr_settype,
38050         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
38051         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
38052         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
38053         pthread_spin_trylock, pthread_spin_unlock): Likewise.
38054         * lib/sched.in.h (struct sched_param): Likewise.
38055         * lib/se-selinux.in.h (security_class_t, security_context_t,
38056         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
38057         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
38058         lsetfilecon, fsetfilecon, security_check_context,
38059         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
38060         Likewise.
38061         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
38062         Likewise.
38063         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
38064         _gl_function_taking_int_returning_void_t, union sigval,
38065         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
38066         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
38067         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
38068         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
38069         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
38070         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
38071         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
38072         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
38073         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
38074         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
38075         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
38076         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
38077         socklen_t, rpl_fd_isset): Likewise.
38078         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
38079         * lib/sys_time.in.h (struct timeval): Likewise.
38080         * lib/sys_times.in.h (struct tms): Likewise.
38081         * lib/sys_utsname.in.h (struct utsname):
38082         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
38083         * lib/unistd.in.h (getpagesize): Likewise.
38084         * lib/wchar.in.h (mbstate_t): Likewise.
38085         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38086         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
38087         towlower, towupper): Likewise.
38088         Reported by Sam Steingold <sds@gnu.org>.
38090 2011-02-05  Eric Blake  <eblake@redhat.com>
38092         unsetenv: work around Haiku issues
38093         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
38094         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
38096 2010-12-30  Bruce Korb  <bkorb@gnu.org>
38098         libposix: avoid calling error() within libposix
38099         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
38100         is defined.
38102 2011-02-05  Eric Blake  <eblake@redhat.com>
38104         strerror_r-posix: port to cygwin
38105         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
38106         implementation.
38107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
38108         * tests/test-strerror_r.c (main): Fix test.
38109         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38110         issue.
38112 2011-02-05  Bruno Haible  <bruno@clisp.org>
38114         New module 'wmemchr'.
38115         * modules/wmemchr: New file.
38116         * lib/wchar.in.h (wmemchr): New declaration.
38117         * lib/wmemchr.c: New file.
38118         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
38119         * m4/wmemchr.m4: New file.
38120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
38121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
38122         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
38123         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
38124         * doc/posix-functions/wmemchr.texi: Mention the new module.
38126 2011-02-04  Eric Blake  <eblake@redhat.com>
38128         fdopendir: detect FreeBSD bug
38129         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
38130         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
38132 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38134         stdbool: do not define HAVE_STDBOOL_H
38135         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
38136         AC_HEADER_STDBOOL.  All uses changed.  Do not define
38137         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
38138         imported from the latest Autoconf git.  It was motivated by Emacs,
38139         which uses gnulib but does not need HAVE_STDBOOL_H.
38141 2011-02-04  Bruno Haible  <bruno@clisp.org>
38143         wcsnrtombs: Prepare for new module wwcsnrtombs.
38144         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
38145         * lib/wcsnrtombs.c: Include it.
38146         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
38148         wcsrtombs: Prepare for new module wwcsrtombs.
38149         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
38150         * lib/wcsrtombs.c: Include it.
38151         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
38153         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
38154         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
38155         * lib/mbsnrtowcs.c: Include it.
38156         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
38158         mbsrtowcs: Prepare for new module mbsrtowwcs.
38159         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
38160         * lib/mbsrtowcs.c: Include it.
38161         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
38163 2011-02-04  Bruno Haible  <bruno@clisp.org>
38165         vasnprintf: Reduce use of malloc for small format strings.
38166         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
38167         (arguments): Add room for the first 7 arguments.
38168         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
38169         (char_directives, u8_directives, u16_directives, u32_directives): Add
38170         room for the first 7 directives.
38171         * lib/printf-parse.c: Include <string.h>.
38172         (PRINTF_PARSE): Change memory handling code so that it uses the first
38173         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
38174         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
38175         Reported by Pádraig Brady <P@draigbrady.com>.
38177 2011-01-31  Eric Blake  <eblake@redhat.com>
38179         dup2: work around Haiku bug
38180         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
38181         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
38182         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38183         * tests/test-dup2.c (main): Enhance test.
38185 2011-01-31  Simon Josefsson  <simon@josefsson.org>
38187         doc: off_t is not available in eglibc 2.11.2 stdio.h.
38188         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
38189         declared by eglibc 2.11.2.
38190         * lib/stdio.in.h: Likewise.
38192 2011-01-31  Eric Blake  <eblake@redhat.com>
38194         ignore-value: add missing test dependency
38195         * tests/test-ignore-value.c: Revert previous change; stdio.h
38196         provides off_t.
38197         * modules/ignore-value-tests (Depends-on): Add missing dependency.
38199 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
38201         mktime: clarify long_int width checking
38202         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
38203         the top level, to make it clearer that the assumption about
38204         long_int width is being checked.  See
38205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
38207 2011-01-30  Simon Josefsson  <simon@josefsson.org>
38209         ignore-value: Fix self-test.
38210         * tests/test-ignore-value.c: Include sys/types.h for off_t.
38212 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38214         TYPE_MAXIMUM: avoid theoretically undefined behavior
38215         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
38216         negative number, which the C Standard says has undefined behavior.
38217         In practice this is not a problem, but might as well do it by the book.
38218         Reported by Rich Felker and Eric Blake; see
38219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
38220         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
38221         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38223         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
38224         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38225         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
38227         mktime: #undef mktime before #defining it
38228         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
38230         mktime: systematically normalize tm_isdst comparisons
38231         * lib/mktime.c (isdst_differ): New function.
38232         (__mktime_internal): Use it systematically for all isdst comparisons.
38233         This completes the fix for libc BZ #6723, and removes the need for
38234         normalizing tm_isdst.  See
38235         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
38236         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
38238         mktime: fix some integer overflow issues and sidestep the rest
38240         This was prompted by a bug report by Benjamin Lindner for MinGW
38241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
38242         His bug is due to signed integer overflow (0 - INT_MIN), and I
38243         I scanned through mktime.c looking for other integer overflow
38244         problems, fixing all the bugs I found.
38246         Although the C Standard says the resulting code is still not safe
38247         in the presence of integer overflow, in practice it should be good
38248         enough for all real-world two's-complement implementations, except
38249         for debugging environments that deliberately trap on integer
38250         overflow (e.g., gcc -ftrapv).
38252         * lib/mktime.c (WRAPV): New macro.
38253         (SHR): Also check that long_int and time_t shift right in the
38254         usual way, before using the fast-but-unportable method.
38255         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
38256         used.  The code already assumed two's complement, so there's
38257         no need to test for alternatives.  All uses removed.
38258         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
38259         the C standard.  Problem reported by Rich Felker in
38260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
38261         (twos_complement_arithmetic): Also check long_int and time_t.
38262         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
38263         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
38264         (__mktime_internal): Avoid integer overflow with unary subtraction
38265         in two instances where -1 - X is an adequate replacement for -X,
38266         since the calculations are approximate.
38268 2011-01-29  Eric Blake  <eblake@redhat.com>
38270         mktime: avoid infinite loop
38271         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
38272         type; behavior is still undefined but portable to all known targets.
38273         Reported by Rich Felker.
38275 2011-01-29  Simon Josefsson  <simon@josefsson.org>
38277         rename, unlink, same-inode: Relicense.
38278         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
38279         * modules/unlink (License): Likewise.
38280         * modules/same-inode (License): Likewise.
38282 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38284         mktime: avoid problems on NetBSD 5 / i386
38285         * lib/mktime.c (long_int): New type.  This works around a problem
38286         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
38287         but time_t is 64 bits, and where I expect the existing code is
38288         wrong in some cases.
38289         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
38290         (ydhms_diff): Bring back the compile-time check for wide-enough
38291         year and yday.
38293         mktime: fix misspelling in comment
38294         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
38295         This merges all recent glibc changes of importance.
38297 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38299         move-if-change: cope with concurrent mv of identical file.
38300         * build-aux/move-if-change (CMPPROG): Accept environment
38301         variable as an override for `cmp'.
38302         (usage): Document CMPPROG.
38303         Adjust comparison to drop stdout.  Cope with failure of mv if
38304         the target file exists and is identical to the source, for
38305         parallel builds.
38306         Report from H.J. Lu against binutils in PR binutils/12283.
38308 2011-01-28  Bruce Korb  <bkorb@gnu.org>
38310         * users.txt: Mention sharutils.
38312 2011-01-28  Simon Josefsson  <simon@josefsson.org>
38314         * users.txt: Mention OATH Toolkit.
38316 2011-01-27  Bruno Haible  <bruno@clisp.org>
38318         Prepare for supporting FreeBSD 10.
38319         * build-aux/config.libpath: Remove handling of freebsd1*.
38321 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
38323         Prepare for supporting FreeBSD 10.
38324         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
38325         match FreeBSD 10.0.
38327 2011-01-27  Bruno Haible  <bruno@clisp.org>
38329         vma-iter, get-rusage-as: Add OpenBSD support.
38330         * modules/vma-iter (configure.ac): Test for mquery.
38331         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
38332         * lib/vma-iter.c: Include <sys/mman.h>.
38333         (vma_iterate): Add an implementation based on mquery().
38334         * lib/resource-ext.h (get_rusage_as): Update comments.
38335         * lib/get-rusage-as.c: Likewise.
38336         * lib/get-rusage-data.c: Likewise.
38338 2011-01-26  Karl Berry  <karl@gnu.org>
38340         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
38341         variables to make it easier to override the makeinfo program used.
38343 2011-01-26  Eric Blake  <eblake@redhat.com>
38345         fcntl: work around Haiku F_DUPFD bugs
38346         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
38347         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
38348         cloexec bit on duplication.
38349         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
38351 2011-01-26  Bruno Haible  <bruno@clisp.org>
38353         Enable memory leak tests on AIX.
38354         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
38355         * tests/test-fprintf-posix3.c (main): Likewise.
38357 2011-01-26  Bruno Haible  <bruno@clisp.org>
38359         Tests for module 'get-rusage-data'.
38360         * modules/get-rusage-data-tests: New file.
38361         * tests/test-get-rusage-data.c: New file.
38363         New module 'get-rusage-data'.
38364         * lib/resource-ext.h (get_rusage_data): New declaration.
38365         * lib/get-rusage-data.c: New file.
38366         * modules/get-rusage-data: New file.
38368 2011-01-25  Bruno Haible  <bruno@clisp.org>
38370         get-rusage-as: Allow for easier testing.
38371         * lib/resource-ext.h (get_rusage_as): Add comment.
38372         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
38373         (main): New function for interactive testing.
38375 2011-01-25  Bruno Haible  <bruno@clisp.org>
38377         vma-iter: Treat Haiku like BeOS.
38378         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
38379         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
38381 2011-01-25  Eric Blake  <eblake@redhat.com>
38383         c-stack: fix regression on cygwin when libsigsegv is present
38384         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
38386 2011-01-24  Bruno Haible  <bruno@clisp.org>
38388         vma-iter: Avoid empty intervals.
38389         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
38390         on an empty interval.
38392 2011-01-24  Jim Meyering  <meyering@redhat.com>
38394         u64: remove unnecessary #include
38395         * lib/u64.h: Don't include <stddef.h>.  It was not used.
38397 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38399         Allow the user to avoid the HAVE_RAW_DECL_* macros.
38400         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
38402 2011-01-23  Bruno Haible  <bruno@clisp.org>
38404         New module 'vma-iter'.
38405         * lib/vma-iter.h: New file.
38406         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
38407         * modules/vma-iter: New file.
38408         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
38409         for get_rusage_as_via_iterator.
38410         (vma_iterate_callback): New function.
38411         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
38412         * modules/get-rusage-as (Depends-on): Add vma-iter.
38414 2011-01-23  Bruno Haible  <bruno@clisp.org>
38416         uninorm: Tweak includes.
38417         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
38418         Reported by Jim Meyering.
38420 2011-01-23  Bruno Haible  <bruno@clisp.org>
38422         get-rusage-as: Improve on NetBSD.
38423         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
38424         /proc, like on FreeBSD.
38426 2011-01-23  Jim Meyering  <meyering@redhat.com>
38428         xreadlink.h: remove unnecessary #include
38429         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
38431         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
38432         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
38434 2011-01-23  Bruno Haible  <bruno@clisp.org>
38436         get-rusage-as: Fix bug.
38437         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
38438         original limit when aborting the first loop.
38440 2011-01-23  Bruno Haible  <bruno@clisp.org>
38442         wctype: Ensure valid C syntax.
38443         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
38444         unconditionally, instead of gl_NEXT_HEADERS conditionally.
38446 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38448         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
38449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
38450         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
38451         as they are needed only for configure's test case.
38452         This removes two unnecessary symbols from config.h.
38454         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
38455         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
38456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
38457         AC_CHECK_HEADERS_ONCE on a header that we also invoke
38458         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
38459         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
38460         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
38461         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
38462         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38463         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38464         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38465         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38466         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38467         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38468         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
38469         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38470         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
38471         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
38473 2011-01-21  Eric Blake  <eblake@redhat.com>
38475         maintainer-makefile: work with older git for submodule check
38476         * top/maint.mk (public-submodule-commit): Rewrite to avoid
38477         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
38478         Reported by Matthias Bolte.
38480         bootstrap: minor portability fixes
38481         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
38482         (usage): Omit leading capital and trailing . on help phrases, per
38483         GNU Coding Standards.
38484         (check_versions, top level): Prefix messages with script name.
38486 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
38488         bootstrap: support --no-git option
38489         * build-aux/bootstrap: Add --no-git option, to be used when
38490         --gnulib-srcdir points to the exact desired checkout.
38492 2011-01-21  Eric Blake  <eblake@redhat.com>
38494         strerror_r-posix: work with glibc 2.13
38495         * lib/strerror_r.c (strerror_r): Fix return type.
38497 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38498             Bruno Haible  <bruno@clisp.org>
38500         uN_strstr: New unit tests.
38501         * modules/unistr/u8-strstr-tests: New file.
38502         * modules/unistr/u16-strstr-tests: New file.
38503         * modules/unistr/u32-strstr-tests: New file.
38504         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
38505         * tests/unistr/test-u8-strstr.c: New file.
38506         * tests/unistr/test-u16-strstr.c: New file.
38507         * tests/unistr/test-u32-strstr.c: New file.
38509 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38510             Bruno Haible  <bruno@clisp.org>
38512         Make uN_strstr functions O(n) worst-case.
38513         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
38514         16-bit and 32-bit unit cases, use the unibyte algorithm from
38515         lib/mbsstr.c.
38516         * lib/unistr/u8-strstr.c: Include <string.h>.
38517         (UNIT_IS_UINT8_T): New macro.
38518         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
38519         (U_STRLEN, U_STRNLEN): New macros.
38520         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
38521         (U_STRLEN, U_STRNLEN): New macros.
38522         * modules/unistr/u8-strstr (Depends-on): Add strstr.
38523         (configure.ac): Update required libunistring version.
38524         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
38525         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
38526         malloca.
38527         (configure.ac): Update required libunistring version.
38528         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
38529         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
38530         malloca.
38531         (configure.ac): Update required libunistring version.
38533 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38534             Bruno Haible  <bruno@clisp.org>
38536         Prepare for faster uN_strstr functions.
38537         * lib/str-kmp.h: Support definable UNITs.
38538         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
38539         needle_len argument.
38540         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
38541         * lib/mbscasestr.c (mbscasestr): Likewise.
38543 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38545         malloca-tests: make faster by unsetting MALLOC_PERTURB_
38546         * tests/test-malloca.c (main): Unset the environment variable
38547         to greatly speed up the test.
38548         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
38549         * modules/malloca-tests: Depend on unsetenv.
38551 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38553         ignore-value: remove stdint dependency
38554         * lib/ignore-value.h: Remove <stdint.h>
38555         * modules/ignore-value: Remove stdint dependency.
38557 2011-01-21  Jim Meyering  <meyering@redhat.com>
38559         maint.mk: adjust variable name to be consistent with other gl_ vars
38560         * top/maint.mk (gl_public_submodule_commit): Rename the variable
38561         to be lower case.
38563 2011-01-20  Jim Meyering  <meyering@redhat.com>
38565         maint.mk: make "check" depend on public-submodule-commit by default
38566         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
38568 2011-01-20  Bruno Haible  <bruno@clisp.org>
38570         mbfile, mbiter: Complete change from 2008-12-21.
38571         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
38572         * m4/mbiter.m4 (gl_MBITER): Likewise.
38574 2011-01-20  Jim Meyering  <meyering@redhat.com>
38576         init.sh: insert space between each function name and "()"
38577         * tests/init.sh: Make it a little easier to see that a function's
38578         name is "warn_", and not "warn" when looking at the first part of
38579         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
38581 2011-01-20  Jim Meyering  <meyering@redhat.com>
38583         mountlist: clean up code formatting
38584         * lib/mountlist.c (read_file_system_list): Split a long line,
38585         correct bracing style, use NULL in place of "(struct statfs *)0",
38586         don't parenthesize return value, add spaces around "=" and after
38587         ";-in-for-stmt".
38589 2011-01-14  Markus Duft  <mduft@gentoo.org>
38591         mountlist: add support for Interix
38592         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
38593         Apply statvfs to all entries of /dev/fs.
38594         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
38595         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
38597 2011-01-20  Jim Meyering  <meyering@redhat.com>
38599         maint.mk: improve the public-submodule-commit rule
38600         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
38601         to suppress printing of its commands... unless V=1.
38602         Add git submodule's --quiet option to suppress printing of e.g.,
38603         "Entering gnulib" output.
38604         "cd" into $(srcdir) before running git submodule.
38606 2011-01-20  Bruno Haible  <bruno@clisp.org>
38608         include_next: Fix bug introduced on 2011-01-18.
38609         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
38610         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
38611         ac_cv_header_... variable if the second argument is not 'check'.
38612         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
38613         gl_NEXT_HEADERS_INTERNAL.
38615 2011-01-20  Bruno Haible  <bruno@clisp.org>
38617         Allow the user to avoid the GNULIB_TEST_* macros.
38618         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
38619         Suggested by Paul Eggert.
38621 2011-01-14  Jim Meyering  <meyering@redhat.com>
38623         bootstrap: avoid failure when there is no .gitmodules file
38624         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
38625         has been assigned to, even when its value is the empty string.
38626         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
38627         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
38628         Reported by John W. Eaton <jwe@gnu.org>.
38630 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38632         assume <ctype.h>, ..., <time.h> exist
38633         For years gnulib has been assuming the existence of the headers
38634         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
38635         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
38636         them, since they don't appear to be needed.
38637         * README (Portability guidelines): Document this.
38638         * lib/flock.c: Assume <fcntl.h> exists.
38639         * lib/regex_internal.h: Assume <locale.h> exists.
38640         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
38641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
38642         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
38643         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
38644         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
38645         * m4/regex.m4 (gl_REGEX): Likewise.
38646         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
38647         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
38648         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
38649         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
38650         * tests/test-argp.c: Likewise.
38651         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
38653         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
38654         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
38655         AA_APPLE_UNIVERSAL_BUILD.  See
38656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
38657         * NEWS: Document this.
38659 2011-01-19  Eric Blake  <eblake@redhat.com>
38661         c-stack: assume stack overflow if SA_SIGINFO unsupported
38662         * lib/c-stack.c (SIGACTION_WORKS): Rename...
38663         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
38664         sigaction will work.
38665         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
38666         behavior match Linux.
38667         * tests/test-c-stack.c (main): Prefer NULL for pointers.
38669         stdbool-tests: accommodate Haiku
38670         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
38672         binary-io: fix O_TEXT on Haiku
38673         * modules/binary-io (Depends-on): Add fcntl-h.
38674         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
38675         than blindly undefining O_TEXT.
38676         Reported by Scott McCreary.
38678 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38680         include_next: do not check for standard headers like stddef.h
38682         I found this problem when modifying Emacs to use gnulib.
38683         I noticed that it added HAVE_STDDEF_H to config.h, even though
38684         gnulib always assumes <stddef.h> exists as per README and this
38685         symbol is unnecessary.
38686         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
38687         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
38688         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
38689         faster for headers like stddef.h that are known to exist.
38690         (gl_CHECK_NEXT_HEADERS): Use it.
38691         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
38692         rather than gl_CHECK_NEXT_HEADERS.
38693         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
38694         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
38696 2011-01-18  Eric Blake  <eblake@redhat.com>
38698         ansi-c++-opt: skip C++ dependency style if C++ is unused
38699         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
38700         tests when we know C++ compilation is not desired.
38701         Reported by Scott McCreary.
38703 2011-01-18  Bruno Haible  <bruno@clisp.org>
38705         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
38706         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
38707         (main): Perform test also when getrlimit and setrlimit don't exist or
38708         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
38709         limiting the address space size using setrlimit, compare the address
38710         space size before and after the test.
38711         * tests/test-dprintf-posix2.c: Likewise.
38712         * tests/test-fprintf-posix3.sh: Update skip messages.
38713         * tests/test-dprintf-posix2.sh: Likewise.
38714         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
38715         * modules/dprintf-posix-tests (Depends-on): Likewise.
38716         Reported by Bruce Korb <bkorb@gnu.org> and
38717         Gary V. Vaughan <gary@gnu.org>.
38719 2011-01-18  Bruno Haible  <bruno@clisp.org>
38721         get-rusage-as: Improvement for Cygwin.
38722         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
38723         areas that are merely reserved.
38725 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38727         strftime: remove dependencies on multibyte modules
38729         strftime depended on mbrlen, mbsinit, and wchar, but these modules
38730         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
38731         only if __osf__ is defined, and I suspect OSF doesn't need these
38732         other modules.  If my guess is wrong, we'll need to come up with a
38733         variant of strftime that doesn't need the multibyte modules.
38735         I discovered this problem when attempting modify Emacs to use the
38736         strftime module.  With the previous gnulib, this caused Emacs to
38737         need 31 new files, ranging from lib/config.charset to
38738         m4/wint_t.m4.  This was overkill and I expect would be offputting
38739         to the Emacs maintainers.  After this change, only 6 new files are
38740         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
38741         stdbool.m4, and tm_gmtoff.m4.
38743         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
38744         Suggested by Bruno Haible in
38745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
38746         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
38747         and do not check for wchar.h.
38748         * modules/strftime (Files): Remove m4/mbstate_t.m4.
38749         (Depends-on): Remove mbrlen, mbsinit, wchar.
38751 2011-01-18  Bruno Haible  <bruno@clisp.org>
38753         Tests for module 'get-rusage-as'.
38754         * modules/get-rusage-as-tests: New file.
38755         * tests/test-get-rusage-as.c: New file.
38757         New module 'get-rusage-as'.
38758         * modules/get-rusage-as: New file.
38759         * lib/resource-ext.h: New file.
38760         * lib/get-rusage-as.c: New file.
38762 2011-01-17  Eric Blake  <eblake@redhat.com>
38764         sigaction: relax license from LGPLv3+ to LGPLv2+
38765         * modules/sigaction (License): Relax to LGPLv2+.
38767 2011-01-14  Bruno Haible  <bruno@clisp.org>
38769         filemode: Make function declarations usable in C++ mode.
38770         * lib/filemode.h: Enclose function declarations in extern "C" block.
38771         Reported by John W. Eaton <jwe@gnu.org>.
38773 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
38775         save-cwd: no longer include "xgetcwd.h"
38776         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
38777         This avoids a compilation failure in projects that use save-cwd
38778         without also using the xgetcwd module.
38780 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38782         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
38783         This is so that a program like Emacs, which needs only dtoastr,
38784         does not have to bother with distributing and compiling ftoastr
38785         and ldtoastr.
38786         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
38787         * modules/dtoastr, modules/ldtoastr: New files.
38788         * modules/ftoastr: Now works just for 'float'.
38789         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
38790         (Makefile.am): Remove ftoastr.h (not needed and no effect),
38791         dtoastr.c, ldtoastr.c.
38793 2011-01-11  Jim Meyering  <meyering@redhat.com>
38795         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
38796         There is no need to work around the lack of the fchdir function,
38797         since gnulib can now provide a replacement when required.
38798         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
38799         * modules/save-cwd (Depends-on): Add fchdir.
38801 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38803         openat, save-cwd: avoid xmalloc
38805         This removes a direct (but undocumented) dependency of openat on
38806         xalloc, along with an indirect dependency via save-cwd.  It also
38807         removes a dependency of save-cwd on xgetcwd, and thereby
38808         indirectly on xalloc.  This change causes the openat substitute
38809         to fall back on save_cwd when memory is tight, and for save_cwd to
38810         fail instead of dying when memory is tight, but that's good enough.
38811         Problem and initial idea for fix reported by Bastien Roucaries in
38812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
38814         * lib/openat-proc.c: Include stdlib.h (for malloc), not
38815         xalloc.h (for xmalloc).
38816         (openat_proc_name): Use malloc, not xmalloc.
38817         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
38818         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
38820         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
38821         This avoids heap allocation for file names whose lengths are in
38822         the range 512..1023, with the upper bound increasing to at most
38823         4031 depending on the platform's PATH_MAX.  (We do not want
38824         pathmax.h here as it might supply a non-constant PATH_MAX.)
38825         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
38826         Perhaps they should be moved to malloca.h?
38827         (OPENAT_BUFFER_SIZE): Use them.
38829 2011-01-10  Bruno Haible  <bruno@clisp.org>
38831         doc: Update users.txt.
38832         * users.txt: Add recutils.
38834 2011-01-09  Karl Berry  <karl@gnu.org>
38836         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
38838         * doc/configmake.texi: New file.
38839         * doc/gnulib.texi: Include it.
38840         * modules/configmake: Move documentation from here.
38842 2011-01-09  Bruno Haible  <bruno@clisp.org>
38844         Update to Unicode 6.0.0.
38845         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
38846         (get_lbp): Update for Unicode 6.0.0.
38847         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
38848         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
38849         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
38850         U+11001, U+11038..U+11046. Remove U+06DE.
38851         (uc_width): Fix bounds of planes.
38852         * tests/uniwidth/test-uc_width2.sh: Same updates as in
38853         lib/uniwidth/width.c.
38854         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
38855         trailing whitespace removed.
38856         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
38857         without comments, but with the original copyright notice.
38858         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
38859         * lib/unicase/ignorable.h: Likewise.
38860         * lib/unicase/tocasefold.h: Likewise.
38861         * lib/unicase/tolower.h: Likewise.
38862         * lib/unicase/totitle.h: Likewise.
38863         * lib/unicase/toupper.h: Likewise.
38864         * lib/unictype/bidi_of.h: Likewise.
38865         * lib/unictype/blocks.h: Likewise.
38866         * lib/unictype/categ_C.h: Likewise.
38867         * lib/unictype/categ_Cn.h: Likewise.
38868         * lib/unictype/categ_L.h: Likewise.
38869         * lib/unictype/categ_Ll.h: Likewise.
38870         * lib/unictype/categ_Lm.h: Likewise.
38871         * lib/unictype/categ_Lo.h: Likewise.
38872         * lib/unictype/categ_Lu.h: Likewise.
38873         * lib/unictype/categ_M.h: Likewise.
38874         * lib/unictype/categ_Mc.h: Likewise.
38875         * lib/unictype/categ_Me.h: Likewise.
38876         * lib/unictype/categ_Mn.h: Likewise.
38877         * lib/unictype/categ_N.h: Likewise.
38878         * lib/unictype/categ_Nd.h: Likewise.
38879         * lib/unictype/categ_No.h: Likewise.
38880         * lib/unictype/categ_P.h: Likewise.
38881         * lib/unictype/categ_Po.h: Likewise.
38882         * lib/unictype/categ_S.h: Likewise.
38883         * lib/unictype/categ_Sc.h: Likewise.
38884         * lib/unictype/categ_Sk.h: Likewise.
38885         * lib/unictype/categ_Sm.h: Likewise.
38886         * lib/unictype/categ_So.h: Likewise.
38887         * lib/unictype/categ_of.h: Likewise.
38888         * lib/unictype/combining.h: Likewise.
38889         * lib/unictype/ctype_alnum.h: Likewise.
38890         * lib/unictype/ctype_alpha.h: Likewise.
38891         * lib/unictype/ctype_graph.h: Likewise.
38892         * lib/unictype/ctype_lower.h: Likewise.
38893         * lib/unictype/ctype_print.h: Likewise.
38894         * lib/unictype/ctype_punct.h: Likewise.
38895         * lib/unictype/ctype_upper.h: Likewise.
38896         * lib/unictype/decdigit.h: Likewise.
38897         * lib/unictype/digit.h: Likewise.
38898         * lib/unictype/numeric.h: Likewise.
38899         * lib/unictype/pr_alphabetic.h: Likewise.
38900         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38901         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38902         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38903         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38904         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38905         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38906         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38907         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38908         * lib/unictype/pr_case_ignorable.h: Likewise.
38909         * lib/unictype/pr_cased.h: Likewise.
38910         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
38911         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
38912         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
38913         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
38914         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
38915         * lib/unictype/pr_combining.h: Likewise.
38916         * lib/unictype/pr_composite.h: Likewise.
38917         * lib/unictype/pr_currency_symbol.h: Likewise.
38918         * lib/unictype/pr_decimal_digit.h: Likewise.
38919         * lib/unictype/pr_deprecated.h: Likewise.
38920         * lib/unictype/pr_format_control.h: Likewise.
38921         * lib/unictype/pr_grapheme_base.h: Likewise.
38922         * lib/unictype/pr_grapheme_extend.h: Likewise.
38923         * lib/unictype/pr_grapheme_link.h: Likewise.
38924         * lib/unictype/pr_id_continue.h: Likewise.
38925         * lib/unictype/pr_id_start.h: Likewise.
38926         * lib/unictype/pr_ideographic.h: Likewise.
38927         * lib/unictype/pr_lowercase.h: Likewise.
38928         * lib/unictype/pr_math.h: Likewise.
38929         * lib/unictype/pr_numeric.h: Likewise.
38930         * lib/unictype/pr_other_alphabetic.h: Likewise.
38931         * lib/unictype/pr_other_id_continue.h: Likewise.
38932         * lib/unictype/pr_other_math.h: Likewise.
38933         * lib/unictype/pr_punctuation.h: Likewise.
38934         * lib/unictype/pr_sentence_terminal.h: Likewise.
38935         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38936         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38937         * lib/unictype/pr_unified_ideograph.h: Likewise.
38938         * lib/unictype/pr_uppercase.h: Likewise.
38939         * lib/unictype/pr_xid_continue.h: Likewise.
38940         * lib/unictype/pr_xid_start.h: Likewise.
38941         * lib/unictype/scripts.h: Likewise.
38942         * lib/unictype/scripts_byname.gperf: Likewise.
38943         * lib/unictype/sy_java_ident.h: Likewise.
38944         * lib/unigbrk/gbrkprop.h: Likewise.
38945         * lib/unilbrk/lbrkprop1.h: Likewise.
38946         * lib/unilbrk/lbrkprop2.h: Likewise.
38947         * lib/uninorm/decomposition-table2.h: Likewise.
38948         * lib/uniwbrk/wbrkprop.h: Likewise.
38949         * tests/unicase/test-cased.c: Likewise.
38950         * tests/unicase/test-ignorable.c: Likewise.
38951         * tests/unicase/test-uc_tolower.c: Likewise.
38952         * tests/unicase/test-uc_totitle.c: Likewise.
38953         * tests/unicase/test-uc_toupper.c: Likewise.
38954         * tests/unictype/test-categ_C.c: Likewise.
38955         * tests/unictype/test-categ_Cn.c: Likewise.
38956         * tests/unictype/test-categ_L.c: Likewise.
38957         * tests/unictype/test-categ_Ll.c: Likewise.
38958         * tests/unictype/test-categ_Lm.c: Likewise.
38959         * tests/unictype/test-categ_Lo.c: Likewise.
38960         * tests/unictype/test-categ_Lu.c: Likewise.
38961         * tests/unictype/test-categ_M.c: Likewise.
38962         * tests/unictype/test-categ_Mc.c: Likewise.
38963         * tests/unictype/test-categ_Me.c: Likewise.
38964         * tests/unictype/test-categ_Mn.c: Likewise.
38965         * tests/unictype/test-categ_N.c: Likewise.
38966         * tests/unictype/test-categ_Nd.c: Likewise.
38967         * tests/unictype/test-categ_No.c: Likewise.
38968         * tests/unictype/test-categ_P.c: Likewise.
38969         * tests/unictype/test-categ_Po.c: Likewise.
38970         * tests/unictype/test-categ_S.c: Likewise.
38971         * tests/unictype/test-categ_Sc.c: Likewise.
38972         * tests/unictype/test-categ_Sk.c: Likewise.
38973         * tests/unictype/test-categ_Sm.c: Likewise.
38974         * tests/unictype/test-categ_So.c: Likewise.
38975         * tests/unictype/test-ctype_alnum.c: Likewise.
38976         * tests/unictype/test-ctype_alpha.c: Likewise.
38977         * tests/unictype/test-ctype_graph.c: Likewise.
38978         * tests/unictype/test-ctype_lower.c: Likewise.
38979         * tests/unictype/test-ctype_print.c: Likewise.
38980         * tests/unictype/test-ctype_punct.c: Likewise.
38981         * tests/unictype/test-ctype_upper.c: Likewise.
38982         * tests/unictype/test-decdigit.h: Likewise.
38983         * tests/unictype/test-digit.h: Likewise.
38984         * tests/unictype/test-numeric.h: Likewise.
38985         * tests/unictype/test-pr_alphabetic.c: Likewise.
38986         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38987         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38988         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38989         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38990         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38991         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38992         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38993         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38994         * tests/unictype/test-pr_case_ignorable.c: Likewise.
38995         * tests/unictype/test-pr_cased.c: Likewise.
38996         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
38997         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
38998         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
38999         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
39000         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
39001         * tests/unictype/test-pr_combining.c: Likewise.
39002         * tests/unictype/test-pr_composite.c: Likewise.
39003         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39004         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39005         * tests/unictype/test-pr_deprecated.c: Likewise.
39006         * tests/unictype/test-pr_format_control.c: Likewise.
39007         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39008         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39009         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39010         * tests/unictype/test-pr_id_continue.c: Likewise.
39011         * tests/unictype/test-pr_id_start.c: Likewise.
39012         * tests/unictype/test-pr_ideographic.c: Likewise.
39013         * tests/unictype/test-pr_lowercase.c: Likewise.
39014         * tests/unictype/test-pr_math.c: Likewise.
39015         * tests/unictype/test-pr_numeric.c: Likewise.
39016         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39017         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39018         * tests/unictype/test-pr_other_math.c: Likewise.
39019         * tests/unictype/test-pr_punctuation.c: Likewise.
39020         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39021         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39022         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39023         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39024         * tests/unictype/test-pr_uppercase.c: Likewise.
39025         * tests/unictype/test-pr_xid_continue.c: Likewise.
39026         * tests/unictype/test-pr_xid_start.c: Likewise.
39027         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
39028         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
39029         changes.
39030         * lib/unictype/categ_Cc.h: Likewise.
39031         * lib/unictype/categ_Cf.h: Likewise.
39032         * lib/unictype/categ_Co.h: Likewise.
39033         * lib/unictype/categ_Cs.h: Likewise.
39034         * lib/unictype/categ_Lt.h: Likewise.
39035         * lib/unictype/categ_Nl.h: Likewise.
39036         * lib/unictype/categ_Pc.h: Likewise.
39037         * lib/unictype/categ_Pd.h: Likewise.
39038         * lib/unictype/categ_Pe.h: Likewise.
39039         * lib/unictype/categ_Pf.h: Likewise.
39040         * lib/unictype/categ_Pi.h: Likewise.
39041         * lib/unictype/categ_Ps.h: Likewise.
39042         * lib/unictype/categ_Z.h: Likewise.
39043         * lib/unictype/categ_Zl.h: Likewise.
39044         * lib/unictype/categ_Zp.h: Likewise.
39045         * lib/unictype/categ_Zs.h: Likewise.
39046         * lib/unictype/ctype_blank.h: Likewise.
39047         * lib/unictype/ctype_cntrl.h: Likewise.
39048         * lib/unictype/ctype_digit.h: Likewise.
39049         * lib/unictype/ctype_space.h: Likewise.
39050         * lib/unictype/ctype_xdigit.h: Likewise.
39051         * lib/unictype/mirror.h: Likewise.
39052         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39053         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39054         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39055         * lib/unictype/pr_bidi_control.h: Likewise.
39056         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39057         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39058         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39059         * lib/unictype/pr_bidi_pdf.h: Likewise.
39060         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39061         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39062         * lib/unictype/pr_dash.h: Likewise.
39063         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39064         * lib/unictype/pr_diacritic.h: Likewise.
39065         * lib/unictype/pr_extender.h: Likewise.
39066         * lib/unictype/pr_hex_digit.h: Likewise.
39067         * lib/unictype/pr_hyphen.h: Likewise.
39068         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39069         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39070         * lib/unictype/pr_ignorable_control.h: Likewise.
39071         * lib/unictype/pr_iso_control.h: Likewise.
39072         * lib/unictype/pr_join_control.h: Likewise.
39073         * lib/unictype/pr_left_of_pair.h: Likewise.
39074         * lib/unictype/pr_line_separator.h: Likewise.
39075         * lib/unictype/pr_logical_order_exception.h: Likewise.
39076         * lib/unictype/pr_non_break.h: Likewise.
39077         * lib/unictype/pr_not_a_character.h: Likewise.
39078         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39079         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39080         * lib/unictype/pr_other_id_start.h: Likewise.
39081         * lib/unictype/pr_other_lowercase.h: Likewise.
39082         * lib/unictype/pr_other_uppercase.h: Likewise.
39083         * lib/unictype/pr_paired_punctuation.h: Likewise.
39084         * lib/unictype/pr_paragraph_separator.h: Likewise.
39085         * lib/unictype/pr_pattern_syntax.h: Likewise.
39086         * lib/unictype/pr_pattern_white_space.h: Likewise.
39087         * lib/unictype/pr_private_use.h: Likewise.
39088         * lib/unictype/pr_quotation_mark.h: Likewise.
39089         * lib/unictype/pr_radical.h: Likewise.
39090         * lib/unictype/pr_soft_dotted.h: Likewise.
39091         * lib/unictype/pr_space.h: Likewise.
39092         * lib/unictype/pr_titlecase.h: Likewise.
39093         * lib/unictype/pr_variation_selector.h: Likewise.
39094         * lib/unictype/pr_white_space.h: Likewise.
39095         * lib/unictype/pr_zero_width.h: Likewise.
39096         * lib/unictype/sy_c_ident.h: Likewise.
39097         * lib/unictype/sy_c_whitespace.h: Likewise.
39098         * lib/unictype/sy_java_whitespace.h: Likewise.
39099         * lib/uninorm/composition-table.gperf: Likewise.
39100         * lib/uninorm/decomposition-table1.h: Likewise.
39101         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
39102         LB8.
39103         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39104         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39105         * modules/unictype/*: Bump version number of expected libunistring
39106         version.
39108 2011-01-09  Bruno Haible  <bruno@clisp.org>
39110         Update to Unicode 5.2.0.
39111         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
39112         trailing whitespace removed.
39114 2011-01-09  Bruno Haible  <bruno@clisp.org>
39116         New Unicode character properties, from Unicode 5.2.0.
39117         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
39118         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
39119         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
39120         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
39121         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
39122         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
39123         uc_is_property_cased, uc_is_property_case_ignorable,
39124         uc_is_property_changes_when_lowercased,
39125         uc_is_property_changes_when_uppercased,
39126         uc_is_property_changes_when_titlecased,
39127         uc_is_property_changes_when_casefolded,
39128         uc_is_property_changes_when_casemapped): New declarations.
39129         * lib/unictype/pr_byname.gperf: Add the new properties.
39130         * modules/unictype/property-byname (Depends-on): Depend on the new
39131         properties modules.
39132         * modules/unictype/property-all (Depends-on): Likewise.
39133         * MODULES.html.sh (Unicode string functions): Add
39134         unictype/property-case-ignorable, unictype/property-cased,
39135         unictype/property-changes-when-casefolded,
39136         unictype/property-changes-when-casemapped,
39137         unictype/property-changes-when-lowercased,
39138         unictype/property-changes-when-titlecased,
39139         unictype/property-changes-when-uppercased.
39141         New module 'unictype/property-changes-when-casemapped'.
39142         * modules/unictype/property-changes-when-casemapped: New file.
39143         * lib/unictype/pr_changes_when_casemapped.c: New file.
39144         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
39145         generated by gen-uni-tables.
39146         * modules/unictype/property-changes-when-casemapped-tests: New file.
39147         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
39148         automatically generated by gen-uni-tables.
39150         New module 'unictype/property-changes-when-casefolded'.
39151         * modules/unictype/property-changes-when-casefolded: New file.
39152         * lib/unictype/pr_changes_when_casefolded.c: New file.
39153         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
39154         generated by gen-uni-tables.
39155         * modules/unictype/property-changes-when-casefolded-tests: New file.
39156         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
39157         automatically generated by gen-uni-tables.
39159         New module 'unictype/property-changes-when-titlecased'.
39160         * modules/unictype/property-changes-when-titlecased: New file.
39161         * lib/unictype/pr_changes_when_titlecased.c: New file.
39162         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
39163         generated by gen-uni-tables.
39164         * modules/unictype/property-changes-when-titlecased-tests: New file.
39165         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
39166         automatically generated by gen-uni-tables.
39168         New module 'unictype/property-changes-when-uppercased'.
39169         * modules/unictype/property-changes-when-uppercased: New file.
39170         * lib/unictype/pr_changes_when_uppercased.c: New file.
39171         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
39172         generated by gen-uni-tables.
39173         * modules/unictype/property-changes-when-uppercased-tests: New file.
39174         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
39175         automatically generated by gen-uni-tables.
39177         New module 'unictype/property-changes-when-lowercased'.
39178         * modules/unictype/property-changes-when-lowercased: New file.
39179         * lib/unictype/pr_changes_when_lowercased.c: New file.
39180         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
39181         generated by gen-uni-tables.
39182         * modules/unictype/property-changes-when-lowercased-tests: New file.
39183         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
39184         automatically generated by gen-uni-tables.
39186         New module 'unictype/property-case-ignorable'.
39187         * modules/unictype/property-case-ignorable: New file.
39188         * lib/unictype/pr_case_ignorable.c: New file.
39189         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
39190         by gen-uni-tables.
39191         * modules/unictype/property-case-ignorable-tests: New file.
39192         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
39193         generated by gen-uni-tables.
39195         New module 'unictype/property-cased'.
39196         * modules/unictype/property-cased: New file.
39197         * lib/unictype/pr_cased.c: New file.
39198         * lib/unictype/pr_cased.h: New file, automatically generated by
39199         gen-uni-tables.
39200         * modules/unictype/property-cased-tests: New file.
39201         * tests/unictype/test-pr_cased.c: New file, automatically generated by
39202         gen-uni-tables.
39204 2011-01-09  Bruno Haible  <bruno@clisp.org>
39206         Update to Unicode 5.2.0.
39207         * lib/gen-uni-tables.c (output_predicate, output_category,
39208         output_combclass, output_bidi_category, output_decimal_digit_test,
39209         output_decimal_digit, output_digit_test, output_digit,
39210         output_numeric_test, output_numeric, output_mirror, output_scripts,
39211         output_scripts_byname, output_blocks, output_ident_category): Fix
39212         comment header.
39213         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
39214         get_wbp.
39215         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
39216         items.
39217         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
39218         Changes_When_Lowercased, Changes_When_Uppercased,
39219         Changes_When_Titlecased, Changes_When_Casefolded,
39220         Changes_When_Casemapped.
39221         (is_property_alphabetic, is_property_default_ignorable_code_point):
39222         Update for Unicode 5.2.0.
39223         (is_property_cased, is_property_case_ignorable,
39224         is_property_changes_when_lowercased,
39225         is_property_changes_when_uppercased,
39226         is_property_changes_when_titlecased,
39227         is_property_changes_when_casefolded,
39228         is_property_changes_when_casemapped): New functions.
39229         (output_properties): Output also the properties cased, case_ignorable,
39230         changes_when_lowercased, changes_when_uppercased,
39231         changes_when_titlecased, changes_when_casefolded,
39232         changes_when_casemapped.
39233         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
39234         Unicode TR#11 revision 17 -> 19.
39235         (LBP_CP): New enumeration value.
39236         (LBP_*): Adjust values accordingly.
39237         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
39238         TR#14 revision 22 -> 24.
39239         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
39240         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
39241         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
39242         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
39243         is_WBP_MIDLETTER.
39244         (output_composition_tables): Allow for 24 bits instead of 16 bits in
39245         the code1 and code2 of each composition rule.
39246         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
39247         * lib/unicase/ignorable.h: Likewise.
39248         * lib/unicase/tocasefold.h: Likewise.
39249         * lib/unicase/tolower.h: Likewise.
39250         * lib/unicase/totitle.h: Likewise.
39251         * lib/unicase/toupper.h: Likewise.
39252         * lib/unictype/bidi_of.h: Likewise.
39253         * lib/unictype/blocks.h: Likewise.
39254         * lib/unictype/categ_C.h: Likewise.
39255         * lib/unictype/categ_Cf.h: Likewise.
39256         * lib/unictype/categ_Cn.h: Likewise.
39257         * lib/unictype/categ_L.h: Likewise.
39258         * lib/unictype/categ_Ll.h: Likewise.
39259         * lib/unictype/categ_Lm.h: Likewise.
39260         * lib/unictype/categ_Lo.h: Likewise.
39261         * lib/unictype/categ_Lu.h: Likewise.
39262         * lib/unictype/categ_M.h: Likewise.
39263         * lib/unictype/categ_Mc.h: Likewise.
39264         * lib/unictype/categ_Mn.h: Likewise.
39265         * lib/unictype/categ_N.h: Likewise.
39266         * lib/unictype/categ_Nd.h: Likewise.
39267         * lib/unictype/categ_Nl.h: Likewise.
39268         * lib/unictype/categ_No.h: Likewise.
39269         * lib/unictype/categ_P.h: Likewise.
39270         * lib/unictype/categ_Pd.h: Likewise.
39271         * lib/unictype/categ_Po.h: Likewise.
39272         * lib/unictype/categ_S.h: Likewise.
39273         * lib/unictype/categ_Sc.h: Likewise.
39274         * lib/unictype/categ_So.h: Likewise.
39275         * lib/unictype/categ_of.h: Likewise.
39276         * lib/unictype/combining.h: Likewise.
39277         * lib/unictype/ctype_alnum.h: Likewise.
39278         * lib/unictype/ctype_alpha.h: Likewise.
39279         * lib/unictype/ctype_graph.h: Likewise.
39280         * lib/unictype/ctype_lower.h: Likewise.
39281         * lib/unictype/ctype_print.h: Likewise.
39282         * lib/unictype/ctype_punct.h: Likewise.
39283         * lib/unictype/ctype_upper.h: Likewise.
39284         * lib/unictype/decdigit.h: Likewise.
39285         * lib/unictype/digit.h: Likewise.
39286         * lib/unictype/numeric.h: Likewise.
39287         * lib/unictype/pr_alphabetic.h: Likewise.
39288         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39289         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39290         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39291         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39292         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39293         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39294         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39295         * lib/unictype/pr_combining.h: Likewise.
39296         * lib/unictype/pr_composite.h: Likewise.
39297         * lib/unictype/pr_currency_symbol.h: Likewise.
39298         * lib/unictype/pr_dash.h: Likewise.
39299         * lib/unictype/pr_decimal_digit.h: Likewise.
39300         * lib/unictype/pr_deprecated.h: Likewise.
39301         * lib/unictype/pr_diacritic.h: Likewise.
39302         * lib/unictype/pr_extender.h: Likewise.
39303         * lib/unictype/pr_grapheme_base.h: Likewise.
39304         * lib/unictype/pr_grapheme_extend.h: Likewise.
39305         * lib/unictype/pr_grapheme_link.h: Likewise.
39306         * lib/unictype/pr_id_continue.h: Likewise.
39307         * lib/unictype/pr_id_start.h: Likewise.
39308         * lib/unictype/pr_ideographic.h: Likewise.
39309         * lib/unictype/pr_ignorable_control.h: Likewise.
39310         * lib/unictype/pr_logical_order_exception.h: Likewise.
39311         * lib/unictype/pr_lowercase.h: Likewise.
39312         * lib/unictype/pr_numeric.h: Likewise.
39313         * lib/unictype/pr_other_alphabetic.h: Likewise.
39314         * lib/unictype/pr_punctuation.h: Likewise.
39315         * lib/unictype/pr_sentence_terminal.h: Likewise.
39316         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39317         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39318         * lib/unictype/pr_unified_ideograph.h: Likewise.
39319         * lib/unictype/pr_uppercase.h: Likewise.
39320         * lib/unictype/pr_xid_continue.h: Likewise.
39321         * lib/unictype/pr_xid_start.h: Likewise.
39322         * lib/unictype/pr_zero_width.h: Likewise.
39323         * lib/unictype/scripts.h: Likewise.
39324         * lib/unictype/scripts_byname.gperf: Likewise.
39325         * lib/unictype/sy_java_ident.h: Likewise.
39326         * lib/unigbrk/gbrkprop.h: Likewise.
39327         * lib/unilbrk/lbrkprop1.h: Likewise.
39328         * lib/unilbrk/lbrkprop2.h: Likewise.
39329         * lib/unilbrk/lbrktables.h: Likewise.
39330         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
39331         LBP_CP. Implement rule LB30.
39332         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
39333         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
39334         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
39335         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
39336         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
39337         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
39338         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
39339         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
39340         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
39341         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
39342         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
39343         bits instead of 16 bits in the code1 and code2 of each composition
39344         rule.
39345         (uc_composition): Update for Unicode 5.2.0.
39346         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
39347         * lib/uninorm/decomposition-table2.h: Likewise.
39348         * lib/uniwbrk/wbrkprop.h: Likewise.
39349         * tests/unicase/test-cased.c: Likewise.
39350         * tests/unicase/test-ignorable.c: Likewise.
39351         * tests/unicase/test-uc_tolower.c: Likewise.
39352         * tests/unicase/test-uc_totitle.c: Likewise.
39353         * tests/unicase/test-uc_toupper.c: Likewise.
39354         * tests/unictype/test-categ_C.c: Likewise.
39355         * tests/unictype/test-categ_Cf.c: Likewise.
39356         * tests/unictype/test-categ_Cn.c: Likewise.
39357         * tests/unictype/test-categ_L.c: Likewise.
39358         * tests/unictype/test-categ_Ll.c: Likewise.
39359         * tests/unictype/test-categ_Lm.c: Likewise.
39360         * tests/unictype/test-categ_Lo.c: Likewise.
39361         * tests/unictype/test-categ_Lu.c: Likewise.
39362         * tests/unictype/test-categ_M.c: Likewise.
39363         * tests/unictype/test-categ_Mc.c: Likewise.
39364         * tests/unictype/test-categ_Mn.c: Likewise.
39365         * tests/unictype/test-categ_N.c: Likewise.
39366         * tests/unictype/test-categ_Nd.c: Likewise.
39367         * tests/unictype/test-categ_Nl.c: Likewise.
39368         * tests/unictype/test-categ_No.c: Likewise.
39369         * tests/unictype/test-categ_P.c: Likewise.
39370         * tests/unictype/test-categ_Pd.c: Likewise.
39371         * tests/unictype/test-categ_Po.c: Likewise.
39372         * tests/unictype/test-categ_S.c: Likewise.
39373         * tests/unictype/test-categ_Sc.c: Likewise.
39374         * tests/unictype/test-categ_So.c: Likewise.
39375         * tests/unictype/test-ctype_alnum.c: Likewise.
39376         * tests/unictype/test-ctype_alpha.c: Likewise.
39377         * tests/unictype/test-ctype_graph.c: Likewise.
39378         * tests/unictype/test-ctype_lower.c: Likewise.
39379         * tests/unictype/test-ctype_print.c: Likewise.
39380         * tests/unictype/test-ctype_punct.c: Likewise.
39381         * tests/unictype/test-ctype_upper.c: Likewise.
39382         * tests/unictype/test-decdigit.h: Likewise.
39383         * tests/unictype/test-digit.h: Likewise.
39384         * tests/unictype/test-numeric.h: Likewise.
39385         * tests/unictype/test-pr_alphabetic.c: Likewise.
39386         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39387         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39388         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39389         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39390         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39391         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39392         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39393         * tests/unictype/test-pr_combining.c: Likewise.
39394         * tests/unictype/test-pr_composite.c: Likewise.
39395         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39396         * tests/unictype/test-pr_dash.c: Likewise.
39397         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39398         * tests/unictype/test-pr_deprecated.c: Likewise.
39399         * tests/unictype/test-pr_diacritic.c: Likewise.
39400         * tests/unictype/test-pr_extender.c: Likewise.
39401         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39402         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39403         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39404         * tests/unictype/test-pr_id_continue.c: Likewise.
39405         * tests/unictype/test-pr_id_start.c: Likewise.
39406         * tests/unictype/test-pr_ideographic.c: Likewise.
39407         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39408         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39409         * tests/unictype/test-pr_lowercase.c: Likewise.
39410         * tests/unictype/test-pr_numeric.c: Likewise.
39411         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39412         * tests/unictype/test-pr_punctuation.c: Likewise.
39413         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39414         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39415         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39416         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39417         * tests/unictype/test-pr_uppercase.c: Likewise.
39418         * tests/unictype/test-pr_xid_continue.c: Likewise.
39419         * tests/unictype/test-pr_xid_start.c: Likewise.
39420         * tests/unictype/test-pr_zero_width.c: Likewise.
39421         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
39422         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
39423         changed behaviour: line breaking is now disallowed between a letter
39424         or '=' and '('.
39425         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39426         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39427         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39428         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
39429         * tests/uniwidth/test-uc_width2.sh: Same updates as in
39430         lib/uniwidth/width.c.
39431         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
39432         without comments, but with the original copyright notice.
39433         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
39434         changes.
39435         * lib/unictype/categ_Cc.h: Likewise.
39436         * lib/unictype/categ_Co.h: Likewise.
39437         * lib/unictype/categ_Cs.h: Likewise.
39438         * lib/unictype/categ_Lt.h: Likewise.
39439         * lib/unictype/categ_Me.h: Likewise.
39440         * lib/unictype/categ_Pc.h: Likewise.
39441         * lib/unictype/categ_Pe.h: Likewise.
39442         * lib/unictype/categ_Pf.h: Likewise.
39443         * lib/unictype/categ_Pi.h: Likewise.
39444         * lib/unictype/categ_Ps.h: Likewise.
39445         * lib/unictype/categ_Sk.h: Likewise.
39446         * lib/unictype/categ_Sm.h: Likewise.
39447         * lib/unictype/categ_Z.h: Likewise.
39448         * lib/unictype/categ_Zl.h: Likewise.
39449         * lib/unictype/categ_Zp.h: Likewise.
39450         * lib/unictype/categ_Zs.h: Likewise.
39451         * lib/unictype/ctype_blank.h: Likewise.
39452         * lib/unictype/ctype_cntrl.h: Likewise.
39453         * lib/unictype/ctype_digit.h: Likewise.
39454         * lib/unictype/ctype_space.h: Likewise.
39455         * lib/unictype/ctype_xdigit.h: Likewise.
39456         * lib/unictype/mirror.h: Likewise.
39457         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39458         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39459         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39460         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39461         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39462         * lib/unictype/pr_bidi_control.h: Likewise.
39463         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39464         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39465         * lib/unictype/pr_bidi_pdf.h: Likewise.
39466         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39467         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39468         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39469         * lib/unictype/pr_format_control.h: Likewise.
39470         * lib/unictype/pr_hex_digit.h: Likewise.
39471         * lib/unictype/pr_hyphen.h: Likewise.
39472         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39473         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39474         * lib/unictype/pr_iso_control.h: Likewise.
39475         * lib/unictype/pr_join_control.h: Likewise.
39476         * lib/unictype/pr_left_of_pair.h: Likewise.
39477         * lib/unictype/pr_line_separator.h: Likewise.
39478         * lib/unictype/pr_math.h: Likewise.
39479         * lib/unictype/pr_non_break.h: Likewise.
39480         * lib/unictype/pr_not_a_character.h: Likewise.
39481         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39482         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39483         * lib/unictype/pr_other_id_continue.h: Likewise.
39484         * lib/unictype/pr_other_id_start.h: Likewise.
39485         * lib/unictype/pr_other_lowercase.h: Likewise.
39486         * lib/unictype/pr_other_math.h: Likewise.
39487         * lib/unictype/pr_other_uppercase.h: Likewise.
39488         * lib/unictype/pr_paired_punctuation.h: Likewise.
39489         * lib/unictype/pr_paragraph_separator.h: Likewise.
39490         * lib/unictype/pr_pattern_syntax.h: Likewise.
39491         * lib/unictype/pr_pattern_white_space.h: Likewise.
39492         * lib/unictype/pr_private_use.h: Likewise.
39493         * lib/unictype/pr_quotation_mark.h: Likewise.
39494         * lib/unictype/pr_radical.h: Likewise.
39495         * lib/unictype/pr_soft_dotted.h: Likewise.
39496         * lib/unictype/pr_space.h: Likewise.
39497         * lib/unictype/pr_titlecase.h: Likewise.
39498         * lib/unictype/pr_variation_selector.h: Likewise.
39499         * lib/unictype/pr_white_space.h: Likewise.
39500         * lib/unictype/sy_c_ident.h: Likewise.
39501         * lib/unictype/sy_c_whitespace.h: Likewise.
39502         * lib/unictype/sy_java_whitespace.h: Likewise.
39503         * modules/uni*/*: Bump version number of expected libunistring version.
39504         Reported by Simon Josefsson.
39506 2011-01-09  Karl Heuer  <kwzh@gnu.org>
39508         useless-if-before-free: fix typo in --help and make the internal,
39509         automatic version date update process work once again.
39510         --help output contained a NUL character instead of the
39511         backslash-zero that was intended.  Also, the "must lie within
39512         the first 8 lines" line is on line 9, and hence not getting
39513         automatically updated.
39514         * build-aux/useless-if-before-free: Fix the former by adding a
39515         backslash, and the latter by condensing the three lines of what-it-does
39516         to a single line, leaving one line of slack for the future.
39518 2011-01-09  Bruno Haible  <bruno@clisp.org>
39520         uniwidth/width: Fix width of U+1D173..U+1D17A.
39521         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
39522         symbolic_width, output_width_property_test): New functions.
39523         (main): Invoke output_nonspacing_property, output_width_property_test.
39524         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
39525         U+1D173..U+1D17A.
39526         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
39527         1.
39528         * modules/uniwidth/*: Bump version number of expected libunistring
39529         version.
39530         * modules/unilbrk/*: Likewise.
39532 2011-01-08  Bruno Haible  <bruno@clisp.org>
39534         uninorm tests: Preserve copyright of Unicode data file.
39535         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
39536         Mention modifications.
39538 2011-01-08  Bruno Haible  <bruno@clisp.org>
39540         gen-uni-tables: Prepare for Unicode 5.2.0.
39541         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
39542         (debug_output_lbp, output_lbp): Update.
39544 2011-01-08  Bruno Haible  <bruno@clisp.org>
39546         unilbrk: Clarify gen-uni-tables.c code.
39547         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
39548         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
39549         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
39551 2011-01-07  Bruno Haible  <bruno@clisp.org>
39553         strtod: Restore errno when successfully parsing Infinity or NaN.
39554         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
39555         restore the original errno.
39557 2011-01-07  Bruno Haible  <bruno@clisp.org>
39559         remove test: Avoid failure on HP-UX 11.
39560         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
39562 2011-01-07  Bruno Haible  <bruno@clisp.org>
39564         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
39565         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
39566         error code.
39568 2011-01-07  Pádraig Brady  <P@draigBrady.com>
39570         ignore-value: fixup comments, and add Eric Blake
39571         as an author since he rewrote the macros.
39572         * lib/ignore-value.h (ignore_value):  State that
39573         we now support aggregates.  Also specify exactly
39574         when the GCC warn_unused_result feature was added.
39576 2011-01-06  Eric Blake  <eblake@redhat.com>
39578         ignore-value: support aggregate types
39579         * lib/ignore-value.h (ignore_value): Provide separate gcc
39580         definition.
39581         * modules/ignore-value-tests: New test module.
39582         * tests/test-ignore-value.c: New test.
39584         maint.mk: improve sc_prohibit_strcmp regex
39585         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
39586         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
39587         definition of STRNEQ.
39589         signal: work around Haiku issue with SIGBUS
39590         * lib/siglist.h: Add comment.
39591         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
39592         strsignal's favoring of SIGSEGV.
39593         * tests/test-signal.c (main): Avoid test failure.
39594         * doc/posix-headers/signal.texi (signal.h): Document the issue.
39595         Reported by Scott McCreary.
39597         maint.mk: add pre-release check to ensure submodule commits are public
39598         * top/maint.mk (public-submodule-commit): New rule.
39599         (submodule-checks): New variable.
39600         (alpha beta stable): Depend on the variable.
39602 2011-01-05  Pádraig Brady  <P@draigBrady.com>
39603         and Jim Meyering  <meyering@redhat.com>
39605         ignore-value: make ignore_value more generic; deprecate ignore_ptr
39606         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
39607         (ATTRIBUTE_DEPRECATED): Define.
39608         (_ignore_case): New function.
39609         (ignore_value): New macro, to replace the old function.
39610         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
39611         * modules/ignore-value (Depends-on): Add stdint.
39613 2011-01-04  Eric Blake  <eblake@redhat.com>
39615         doc: regenerate INSTALL
39616         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
39617         @firstparagraphindent support, now that autoconf dropped it.
39618         (INSTALL_PRELUDE): Reinstate old macro.
39619         * doc/install.texi: Resync from autoconf.
39620         * doc/INSTALL: Reflect recent autoconf update.
39621         * doc/INSTALL.ISO: Likewise.
39622         * doc/INSTALL.UTF-8: Likewise.
39623         Reported by Karl Berry.
39625 2011-01-04  Bruce Korb  <address@hidden>
39627         git-version-gen: avoid a sub-shell
39628         * build-aux/git-version-gen: Redirect stderr in `...` via
39629         "exec 2>...", rather than via an added sub-shell.
39631 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
39633         git-version-gen: use (...) rather than sh -c '...'
39634         * build-aux/git-version-gen: Rather than hard-coding a shell's name
39635         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
39637 2011-01-03  Jim Meyering  <meyering@redhat.com>
39639         git-version-gen: convert leading TABs to spaces
39640         * build-aux/git-version-gen: Expand leading TABs.
39642         git-version-gen: handle failed "git rev-list"
39643         * build-aux/git-version-gen: Rather than leaking a "fatal" error
39644         from git and proceeding as if it had succeeded but printed no SHA1
39645         checksums, suppress the diagnostic and handle the failure.
39646         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
39648         git-version-gen: include command name in one more diagnostic
39649         * build-aux/git-version-gen: When the required .tarball-version file
39650         was missing or unreadable, you might see the diagnostic from "cat",
39651         but no trace of the name of the invoking script.  Now, you still see
39652         the diagnostic from cat, but also get one from "git-version-gen: ".
39653         Inspired by a patch from Bruce Korb.
39655         update-copyright: adjust test to match changed code
39656         * tests/test-update-copyright.sh: Change test's expected output
39657         to match new actual output.
39659 2011-01-02  Bruno Haible  <bruno@clisp.org>
39661         getlogin_r: Avoid test failure on HP-UX 11.
39662         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
39663         ERANGE when the second argument is zero.
39664         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
39665         portability problem.
39667 2011-01-02  Bruce Korb  <bkorb@gnu.org>
39669         * build-aux/update-copyright: doc Simon's changes
39671 2011-01-02  Simon Josefsson  <simon@josefsson.org>
39673         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
39674         environment variable.
39676 2011-01-02  Bruno Haible  <bruno@clisp.org>
39678         unigbrk: Avoid gcc warnings.
39679         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
39680         unused variable.
39681         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
39682         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
39683         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
39684         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
39685         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
39686         Change type of first argument to 'const char *'.
39687         (main): Remove unused variable.
39688         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
39689         type of first argument to 'const char *'.
39690         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
39691         Likewise.
39692         (main): Change type of variable 's'.
39693         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
39694         to 'int'.
39696 2011-01-02  Bruno Haible  <bruno@clisp.org>
39698         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
39699         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
39700         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
39701         bug.
39702         * lib/pwrite.c: Undo 2010-12-31 patch.
39703         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
39705 2011-01-02  Bruno Haible  <bruno@clisp.org>
39707         pread: Fix test whether it works.
39708         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
39710 2011-01-02  Bruno Haible  <bruno@clisp.org>
39712         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
39713         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
39714         ends in "6". Don't require a specific month name. Try also the locale
39715         names found on HP-UX 11 and Solaris 7.
39717 2011-01-02  Bruno Haible  <bruno@clisp.org>
39719         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
39720         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
39721         C linkage.
39722         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
39724 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39726         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
39727         for consistency, since the "cluster" term is not used elsewhere.
39728         * lib/unigbrk.in.h: Update name.
39729         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
39730         * lib/unigbrk/u16-grapheme-next.c: Update name.
39731         * lib/unigbrk/u16-grapheme-prev.c: Update name.
39732         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
39733         * lib/unigbrk/u32-grapheme-next.c: Update name.
39734         * lib/unigbrk/u32-grapheme-prev.c: Update name.
39735         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
39736         * lib/unigbrk/u8-grapheme-next.c: Update name.
39737         * lib/unigbrk/u8-grapheme-prev.c: Update name.
39738         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
39739         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
39740         Suggested by Bruno Haible.
39742 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39744         Remove module 'u8-grapheme-len' as too redundant with
39745         'u8-grapheme-next'.
39746         * modules/unigbrk/u8-grapheme-len: Delete file.
39747         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
39748         * lib/unigbrk.in.h: Remove prototype for deleted function.
39749         * lib/unigbrk/u8-grapheme-len.c: Delete file.
39750         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
39752         Remove module 'u16-grapheme-len' as too redundant with
39753         'u16-grapheme-next'.
39754         * modules/unigbrk/u16-grapheme-len: Delete file.
39755         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
39756         * lib/unigbrk.in.h: Remove prototype for deleted function.
39757         * lib/unigbrk/u16-grapheme-len.c: Delete file.
39758         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
39760         Remove module 'u32-grapheme-len' as too redundant with
39761         'u32-grapheme-next'.
39762         * modules/unigbrk/u32-grapheme-len: Delete file.
39763         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
39764         * lib/unigbrk.in.h: Remove prototype for deleted function.
39765         * lib/unigbrk/u32-grapheme-len.c: Delete file.
39766         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
39768         Suggested by Bruno Haible.
39770 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39772         * unigbrk.in.h: Fix typo: "ben" => "been".
39773         Reported by Bruno Haible.
39775 2011-01-01  Jim Meyering  <meyering@redhat.com>
39777         maint: update almost all copyright ranges to include 2011
39778         Run the new "make update-copyright" rule.
39780 2011-01-01  Jim Meyering  <meyering@redhat.com>
39782         maint: update-copyright: exempt doc/INSTALL*
39783         * Makefile (update-copyright): Also exclude doc/INSTALL*,
39784         since they are generated.  Suggested by Bruno Haible.
39786 2011-01-01  Jim Meyering  <meyering@redhat.com>
39788         maint: refine the update-copyright rule
39789         * Makefile (update-copyright): Also exclude any file that includes
39790         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
39791         code that merely generates the comment.
39793 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
39795         New module 'u8-grapheme-len'.
39796         * modules/unigbrk/u8-grapheme-len: New file.
39797         * modules/unigbrk/u8-grapheme-len-tests: New file.
39798         * lib/unigbrk.in.h: Add prototype for new function.
39799         * lib/unigbrk/u8-grapheme-len.c: New file.
39800         * tests/unigbrk/test-u8-grapheme-len.c: New file.
39802         New module 'u16-grapheme-len'.
39803         * modules/unigbrk/u16-grapheme-len: New file.
39804         * modules/unigbrk/u16-grapheme-len-tests: New file.
39805         * lib/unigbrk.in.h: Add prototype for new function.
39806         * lib/unigbrk/u16-grapheme-len.c: New file.
39807         * tests/unigbrk/test-u16-grapheme-len.c: New file.
39809         New module 'u32-grapheme-len'.
39810         * modules/unigbrk/u32-grapheme-len: New file.
39811         * modules/unigbrk/u32-grapheme-len-tests: New file.
39812         * lib/unigbrk.in.h: Add prototype for new function.
39813         * lib/unigbrk/u32-grapheme-len.c: New file.
39814         * tests/unigbrk/test-u32-grapheme-len.c: New file.
39816         New module 'u8-grapheme-next'.
39817         * modules/unigbrk/u8-grapheme-next: New file.
39818         * modules/unigbrk/u8-grapheme-next-tests: New file.
39819         * lib/unigbrk.in.h: Add prototype for new function.
39820         * lib/unigbrk/u8-grapheme-next.c: New file.
39821         * tests/unigbrk/test-u8-grapheme-next.c: New file.
39823         New module 'u16-grapheme-next'.
39824         * modules/unigbrk/u16-grapheme-next: New file.
39825         * modules/unigbrk/u16-grapheme-next-tests: New file.
39826         * lib/unigbrk.in.h: Add prototype for new function.
39827         * lib/unigbrk/u16-grapheme-next.c: New file.
39828         * tests/unigbrk/test-u16-grapheme-next.c: New file.
39830         New module 'u32-grapheme-next'.
39831         * modules/unigbrk/u32-grapheme-next: New file.
39832         * modules/unigbrk/u32-grapheme-next-tests: New file.
39833         * lib/unigbrk.in.h: Add prototype for new function.
39834         * lib/unigbrk/u32-grapheme-next.c: New file.
39835         * tests/unigbrk/test-u32-grapheme-next.c: New file.
39837         New module 'u8-grapheme-prev'.
39838         * modules/unigbrk/u8-grapheme-prev: New file.
39839         * modules/unigbrk/u8-grapheme-prev-tests: New file.
39840         * lib/unigbrk.in.h: Add prototype for new function.
39841         * lib/unigbrk/u8-grapheme-prev.c: New file.
39842         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
39844         New module 'u16-grapheme-prev'.
39845         * modules/unigbrk/u16-grapheme-prev: New file.
39846         * modules/unigbrk/u16-grapheme-prev-tests: New file.
39847         * lib/unigbrk.in.h: Add prototype for new function.
39848         * lib/unigbrk/u16-grapheme-prev.c: New file.
39849         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
39851         New module 'u32-grapheme-prev'.
39852         * modules/unigbrk/u32-grapheme-prev: New file.
39853         * modules/unigbrk/u32-grapheme-prev-tests: New file.
39854         * lib/unigbrk.in.h: Add prototype for new function.
39855         * lib/unigbrk/u32-grapheme-prev.c: New file.
39856         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
39858         New module 'u8-grapheme-breaks'.
39859         * modules/unigbrk/u8-grapheme-breaks: New file.
39860         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
39861         * lib/unigbrk.in.h: Add prototype for new function.
39862         * lib/unigbrk/u8-grapheme-breaks.c: New file.
39863         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
39865         New module 'u16-grapheme-breaks'.
39866         * modules/unigbrk/u16-grapheme-breaks: New file.
39867         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
39868         * lib/unigbrk.in.h: Add prototype for new function.
39869         * lib/unigbrk/u16-grapheme-breaks.c: New file.
39870         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
39872         New module 'u32-grapheme-breaks'.
39873         * modules/unigbrk/u32-grapheme-breaks: New file.
39874         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
39875         * lib/unigbrk.in.h: Add prototype for new function.
39876         * lib/unigbrk/u32-grapheme-breaks.c: New file.
39877         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
39879         New module 'ulc-grapheme-breaks'.
39880         * modules/unigbrk/ulc-grapheme-breaks: New file.
39881         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
39882         * m4/locale-ar.m4: New file.
39883         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
39884         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
39885         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
39887 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
39889         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
39890         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
39891         modified how this file was generated before I initially submitted
39892         the module, but failed to regenerate it.  This meant that several
39893         of the level2 entries were wrong.
39894         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
39895         Remove the division-by-2 that is folded into the table now that
39896         gbrkprop.h has been regenerated properly.  Now -1 entries are
39897         handled correctly.
39899         New module 'unigbrk/uc-gbrk-prop-tests'.
39900         * modules/unigbrk/uc-gbrk-prop-tests: New file.
39901         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
39902         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
39903         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
39905 2011-01-01  Bruno Haible  <bruno@clisp.org>
39907         Avoid use of hexadecimal escapes.
39908         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
39909         instead of hexadecimal escapes.
39911 2011-01-01  Jim Meyering  <meyering@redhat.com>
39913         maint: new rule to update copyright year ranges
39914         * Makefile (update-copyright): New rule.
39916         maint: indent with TABs in Makefile
39917         * Makefile: Expand leading sequences of spaces to TABs
39919         version-etc: update the copyright year it reports
39920         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
39922 2010-12-31  Bruno Haible  <bruno@clisp.org>
39924         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
39925         * lib/isfinite.c (zerof, zerod, zerol): New variables.
39926         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
39927         zero.
39929 2010-12-31  Bruno Haible  <bruno@clisp.org>
39931         pwrite: Work around HP-UX 11.11 bug.
39932         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
39933         works and set REPLACE_PWRITE if not.
39934         * lib/pwrite.c (pwrite): Add an implementation that uses the system
39935         function.
39936         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
39938 2010-12-31  Bruno Haible  <bruno@clisp.org>
39940         pread: Work around HP-UX 11 bugs.
39941         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
39942         and set REPLACE_PREAD if not.
39943         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
39945 2010-12-31  Eric Blake  <eblake@redhat.com>
39947         nl_langinfo: fix YESEXPR on Irix 6.5
39948         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
39949         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
39950         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
39951         it.
39953 2010-12-31  Bruno Haible  <bruno@clisp.org>
39955         iconv: Document HP-UX 11 bug.
39956         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
39958 2010-12-31  Bruno Haible  <bruno@clisp.org>
39960         ldexpl: Fix link error on HP-UX 11.
39961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
39962         LDEXPL_LIBM, using $ISNANL_LIBM.
39964 2010-12-31  Eric Blake  <eblake@redhat.com>
39966         ftello: avoid compilation failure with SunStudio c89
39967         * lib/ftello.c (ftello): Use lseek, not llseek.
39969         tests: avoid failing coreutils tests on cygwin
39970         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
39971         (create_exe_shims_): Return 0 when skipping.
39973 2010-12-31  Bruno Haible  <bruno@clisp.org>
39975         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
39976         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
39978 2010-12-31  Bruno Haible  <bruno@clisp.org>
39980         waitpid: Fix link error in C++ mode.
39981         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
39983 2010-12-31  Bruno Haible  <bruno@clisp.org>
39985         isnan: Use GCC built-ins when possible.
39986         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
39987         __builtin_isnan.
39988         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
39989         (isnan): Define using GCC built-ins for GCC >= 4.0.
39991 2010-12-31  Bruno Haible  <bruno@clisp.org>
39993         isnand: Fix mistake.
39994         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
39995         __builtin_isnand.
39997 2010-12-31  Bruno Haible  <bruno@clisp.org>
39999         open: Avoid C++ error on HP-UX 11.
40000         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
40002 2010-12-31  Bruno Haible  <bruno@clisp.org>
40004         time_r: Add missing declarations on HP-UX 11.
40005         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
40006         instead of HAVE_LOCALTIME_R.
40007         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
40008         HAVE_LOCALTIME_R always.
40009         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
40010         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
40011         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
40012         HAVE_LOCALTIME_R.
40013         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
40014         * doc/posix-functions/localtime_r.texi: Likewise.
40016 2010-12-29  Eric Blake  <eblake@redhat.com>
40018         mountlist: tweak previous commit
40019         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
40020         Reported by Paul Eggert.
40022         mountlist: fix local drive detection on cygwin
40023         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
40024         that works for cygwin.
40026 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40028         ftoastr, snprintf: ftoastr + snprintf module
40029         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
40030         since the snprintf module now should be good enough here.
40031         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
40032         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
40033         and gl_MODULE_INDICATOR([snprintf]), but the former enables
40034         GNULIB_SNPRINTF only for the test directory, and the latter
40035         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
40036         seems to suffice by itself.
40038 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40040         alloca: one step towards thread-safety
40041         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
40042         need for a static variable.  All callers changed.  This does not
40043         make the alloca replacement thread-safe, but it's one step.
40045         tests: minor indenting change
40046         * tests/init.sh: Sync from coreutils housekeeping patch
40047         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
40048         to keep lines within 80 columns.
40050 2010-12-28  Jim Meyering  <meyering@redhat.com>
40052         regex: don't infloop on persistent failing calloc
40053         * lib/regexec.c (build_trtable): Return failure indication upon
40054         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
40055         In glibc, this was fixed for version 2.13:
40056         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
40058 2010-12-28  Bruno Haible  <bruno@clisp.org>
40059             Paul Eggert <eggert@cs.ucla.edu>
40061         linkat: Make implementation robust against system behaviour variations.
40062         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
40063         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
40064         way, and to -2 if it needs a generic runtime test.
40065         * lib/linkat.c (solaris_optimized_link_immediate,
40066         solaris_optimized_link_follow): New functions.
40067         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
40068         (check_same_link): Use it.
40070 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
40072         New module 'unigbrk/base'.
40073         * modules/unigbrk/base: New file.
40074         * lib/unigbrk.in.h: New file.
40076         New module 'unigbrk/uc-gbrk-prop'.
40077         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
40078         * modules/unigbrk/uc-gbrk-prop: New file.
40079         * lib/unigbrk/gbrkprop.h: New file.
40080         * lib/unigbrk/uc-gbrk-prop.c: New file.
40082         New module 'unigbrk/uc-is-grapheme-break'.
40083         * modules/unigbrk/uc-is-grapheme-break: New file.
40084         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
40085         * lib/unigbrk/uc-is-grapheme-break.c: New file.
40086         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
40087         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
40088         * tests/unigbrk/GraphemeBreakTest.txt: New file.
40090         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
40092 2010-12-27  Bruno Haible  <bruno@clisp.org>
40094         linkat test: Avoid failure on Solaris 11 2010-11.
40095         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
40097 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40099         utimens: work around glibc rounding bug on more platforms
40100         * lib/utimens.c (fdutimens): Work around rounding bug even if
40101         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
40102         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
40104 2010-12-27  Bruno Haible  <bruno@clisp.org>
40106         select tests: Improve comments.
40107         * tests/test-select.c (do_select): Add comments.
40109 2010-12-27  Bruno Haible  <bruno@clisp.org>
40111         select tests: Safer way of handling timeout.
40112         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
40113         at every invocation.
40115 2010-12-27  Bruno Haible  <bruno@clisp.org>
40117         select tests: Use 'bool' where appropriate.
40118         * tests/test-select.c (connect_to_socket): Change argument type to
40119         'bool'.
40121 2010-12-27  Bruno Haible  <bruno@clisp.org>
40123         select tests: Use existing modules.
40124         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
40125         (configure.ac): Don't test for unistd.h.
40126         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
40127         declared in <unistd.h>.
40129 2010-12-27  Bruno Haible  <bruno@clisp.org>
40131         mbrtowc: Work around a Solaris 7 bug.
40132         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
40133         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
40134         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
40135         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
40136         MBRTOWC_NULL_ARG1_BUG.
40137         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
40138         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
40139         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
40140         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
40142 2010-12-27  Jim Meyering  <meyering@redhat.com>
40144         read-file.c: tweak syntax
40145         * lib/read-file.c (fread_file): Remove space after "*" in function
40146         definitions.
40148 2010-12-27  Bruno Haible  <bruno@clisp.org>
40150         times test: Avoid gcc warnings on OSF/1.
40151         * tests/test-times.c (main): Cast printf arguments from clock_t to
40152         'long int'.
40154 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40156         utimens: work around glibc rounding bug on older Linux kernels
40157         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
40158         on Linux with a glibc whose utimes might not work, then work
40159         around a longstanding glibc bug involving rounding rather than
40160         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
40161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
40163 2010-12-26  Bruno Haible  <bruno@clisp.org>
40165         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
40166         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
40167         _GL_CXXALIAS_SYS.
40168         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40170 2010-12-26  Bruno Haible  <bruno@clisp.org>
40172         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
40173         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
40174         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
40175         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
40176         looking for the declaration.
40177         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
40178         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
40179         problem.
40180         * doc/posix-functions/inet_pton.texi: Likewise.
40182 2010-12-26  Bruno Haible  <bruno@clisp.org>
40184         arpa_inet: Use the common idioms with C++ support.
40185         * lib/arpa_inet.in.h: Include c++defs.h.
40186         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
40187         support.
40188         * modules/arpa_inet (Depends-on): Add c++defs.
40189         (Makefile.am): Substitute the contents of c++defs.h.
40190         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
40191         * modules/arpa_inet-c++-tests: New file.
40192         * tests/test-arpa_inet-c++.cc: New file.
40194 2010-12-25  Bruno Haible  <bruno@clisp.org>
40196         Fix more C++ link errors on Solaris 8.
40197         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
40198         $(LIB_EACCESS).
40199         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
40200         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
40201         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
40202         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
40203         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
40205 2010-12-25  Bruno Haible  <bruno@clisp.org>
40207         printf-posix: Fix link error when a non-GCC compiler is used.
40208         * lib/stdio.in.h (printf): When not using GCC, override printf
40209         correctly.
40210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40212 2010-12-25  Bruno Haible  <bruno@clisp.org>
40214         strerror_r-posix: Update doc.
40215         * doc/posix-functions/strerror_r.texi: Update doc about the return
40216         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
40218 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40220         utimens: simplify the logic of the previous change
40221         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
40222         This should not affect whether the test succeeds or fails.
40224         utimens: configure better on hosts with NFS clock skew
40225         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
40226         uses the clock of the local host.  It might use the clock of the
40227         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
40228         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
40230 2010-12-25  Bruno Haible  <bruno@clisp.org>
40232         ptsname test: Avoid failure on Solaris.
40233         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
40234         open a pseudo-terminal; don't use BSD-style ptys.
40235         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
40237 2010-12-25  Bruno Haible  <bruno@clisp.org>
40239         ptsname: Avoid ERANGE failure on some systems.
40240         * lib/ptsname.c (buffer): Increase size.
40242 2010-12-25  Bruno Haible  <bruno@clisp.org>
40244         rename, renameat: Avoid test failures at NFS mounted locations.
40245         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
40246         so that subsequent mkdir calls succeed.
40248 2010-12-25  Bruno Haible  <bruno@clisp.org>
40250         iswblank: Fix C++ link error on Solaris 8.
40251         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
40252         _GL_FUNCDECL_SYS.
40254 2010-12-25  Bruno Haible  <bruno@clisp.org>
40256         unistd: Fix C++ link error on Solaris 8.
40257         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
40259 2010-12-25  Bruno Haible  <bruno@clisp.org>
40261         readlink doc: Mention an old glibc bug.
40262         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
40264 2010-12-25  Bruno Haible  <bruno@clisp.org>
40266         fcntl-h: Fix for use of C++ on glibc systems.
40267         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
40268         also on glibc systems in C++ mode.
40269         Reported by Gary V. Vaughan <gary@gnu.org>.
40271 2010-12-25  Bruno Haible  <bruno@clisp.org>
40273         roundl-ieee: Make it work on OSF/1 5.1 with cc.
40274         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
40276 2010-12-25  Bruno Haible  <bruno@clisp.org>
40278         truncl-ieee: Make it work on OSF/1 5.1 with cc.
40279         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
40280         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
40281         test whether truncl works according to ISO C 99 with IEC 60559.
40282         * m4/truncl-ieee.m4: New file.
40283         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
40284         m4/signbit.m4.
40285         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
40287 2010-12-25  Bruno Haible  <bruno@clisp.org>
40289         ceill-ieee: Make it work on OSF/1 5.1 with cc.
40290         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
40291         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
40292         test whether ceill works according to ISO C 99 with IEC 60559.
40293         * m4/ceill-ieee.m4: New file.
40294         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
40295         m4/signbit.m4.
40296         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
40298 2010-12-25  Bruno Haible  <bruno@clisp.org>
40300         Ensure all prerequisites of <wchar.h> are included.
40301         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
40302         before <wchar.h>.
40303         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
40304         gl_MBRLEN_NUL_RETVAL): Likewise.
40305         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40306         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
40307         AC_FUNC_MBRTOWC): Likewise.
40308         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40309         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40310         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
40311         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40312         Likewise.
40313         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40314         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
40315         (gl_WCHAR_H): Improve comments.
40316         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
40318 2010-12-25  Bruno Haible  <bruno@clisp.org>
40320         strtok_r: Fix C syntax error in autoconf macro.
40321         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
40322         characters in test program.
40324 2010-12-24  Bruno Haible  <bruno@clisp.org>
40326         ceil, trunc, round: Fix gcc warnings.
40327         * lib/ceil.c (MIN): Undefine before redefining.
40328         * lib/trunc.c (MIN): Likewise.
40329         * lib/round.c (MIN): Likewise.
40330         Include <math.h> first.
40332 2010-12-24  Bruno Haible  <bruno@clisp.org>
40334         select tests: Avoid failures on OSF/1 5.1.
40335         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
40336         failure of closing the last socket; it may fail with ECONNRESET.
40338 2010-12-24  Eric Blake  <eblake@redhat.com>
40340         stdint: avoid HP-UX 10.20 preprocessor bug
40341         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
40342         than #if.
40343         * tests/test-floor2.c (main): Likewise.
40344         Reported by Peter O'Gorman.
40346         pipe: make obsoletion transition easier
40347         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
40348         * modules/pipe (Files): Include revived file.
40349         (Include): Drop reference, to mirror getdate's behavior.
40351 2010-12-24  Bruno Haible  <bruno@clisp.org>
40353         sys_socket: Hide mismatch of declarations on NonStop Kernel.
40354         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
40355         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
40356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40358 2010-12-24  Bruno Haible  <bruno@clisp.org>
40360         gethostname: Ensure declaration on NonStop Kernel.
40361         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
40362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40364 2010-12-24  Bruno Haible  <bruno@clisp.org>
40366         sys_select: Ensure all necessary types on NonStop Kernel.
40367         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
40368         include <sys/time.h>.
40369         * doc/posix-headers/sys_select.texi: Mention that it's missing on
40370         NonStop Kernel.
40371         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40373 2010-12-24  Bruno Haible  <bruno@clisp.org>
40375         sys_select: Remove unneeded include.
40376         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
40377         have <sys/select.h>.
40379 2010-12-24  Bruno Haible  <bruno@clisp.org>
40381         gethostname: Provide a fallback for HOST_NAME_MAX.
40382         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
40383         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
40384         instead.
40385         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40387 2010-12-24  Bruno Haible  <bruno@clisp.org>
40389         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
40390         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
40391         (SA_RESTART): Likewise.
40392         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40394 2010-12-24  Bruno Haible  <bruno@clisp.org>
40396         signal: Define NSIG.
40397         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
40398         * tests/test-signal.c (nsig): New variable.
40399         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40401 2010-12-24  Bruno Haible  <bruno@clisp.org>
40403         rename, renameat: Avoid test failures on OSF/1 5.1.
40404         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
40405         alternative error codes.
40406         * tests/test-renameat.c (main): Likewise.
40408 2010-12-24  Bruno Haible  <bruno@clisp.org>
40410         *printf: Detect large precisions bug on Solaris 10/SPARC.
40411         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
40412         by Paul Eggert.
40413         * tests/test-snprintf-posix.h (test_function): Add this test code here
40414         too.
40415         * tests/test-sprintf-posix.h (test_function): Likewise.
40416         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40417         * tests/test-vasprintf-posix.c (test_function): Likewise.
40418         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
40419         around by gnulib.
40420         * doc/posix-functions/printf.texi: Likewise.
40421         * doc/posix-functions/snprintf.texi: Likewise.
40422         * doc/posix-functions/sprintf.texi: Likewise.
40423         * doc/posix-functions/vfprintf.texi: Likewise.
40424         * doc/posix-functions/vprintf.texi: Likewise.
40425         * doc/posix-functions/vsnprintf.texi: Likewise.
40426         * doc/posix-functions/vsprintf.texi: Likewise.
40427         * doc/posix-functions/dprintf.texi: Undo last commit.
40428         * doc/posix-functions/vdprintf.texi: Likewise.
40430 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40432         tests: port test-fdutimensat.c to Solaris 8
40433         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
40434         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
40435         On Solaris 8, it fails with errno == ENOSYS, because there is no
40436         futimens (so it can't use the fd), and there is no lutimens (so it
40437         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
40439         vsnprintf: make more consistent with snprintf; doc fixes
40441         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
40442         the byte count return problem was promoted from the snprintf-posix
40443         to the snprintf module.
40444         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40445         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
40446         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
40447         * tests/test-snprintf.c (main): Check the byte count returned.
40448         * tests/test-vsnprintf.c (main): Likewise.
40450 2010-12-23  Eric Blake  <eblake@redhat.com>
40452         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
40453         * modules/sigpipe (License): Relax license.
40455 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40457         doc: document Solaris printf bug with large float precisions
40458         * doc/posix-functions/dprintf.texi (dprintf):
40459         * doc/posix-functions/fprintf.texi (fprintf):
40460         * doc/posix-functions/printf.texi (printf):
40461         * doc/posix-functions/snprintf.texi (snprintf):
40462         * doc/posix-functions/sprintf.texi (sprintf):
40463         * doc/posix-functions/vdprintf.texi (vdprintf):
40464         * doc/posix-functions/vfprintf.texi (vfprintf):
40465         * doc/posix-functions/vprintf.texi (vprintf):
40466         * doc/posix-functions/vsnprintf.texi (vsnprintf):
40467         * doc/posix-functions/vsprintf.texi (vsprintf):
40468         Mention that these functions mishandle large floating point
40469         precisions on Solaris 10.  The same bug is also present in Solaris
40470         8, and I assume earlier.  This causes "cd gnulib-tests; make
40471         check" to fail on Solaris 8 (and I assume, later) when building
40472         the latest coreutils, in test-vasprintf-posix's call to
40473         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
40474         the wide flavors (e.g., wprintf) so this patch just updates the
40475         documentation for the narrow ones.
40477         test-posixtm.c: add two tests
40478         * tests/test-posixtm.c: Add two tests, to highlight the
40479         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
40480         around this bug; this is merely to document it.
40482 2010-12-22  Bruno Haible  <bruno@clisp.org>
40484         getlogin_r: Work around portability problem on OSF/1.
40485         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
40486         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
40487         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
40488         test for a truncated result.
40489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
40490         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
40491         * modules/getlogin_r (Depends-on): Add memchr.
40492         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
40494 2010-12-22  Bruno Haible  <bruno@clisp.org>
40496         ptsname: Avoid test failure on OSF/1 5.1.
40497         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
40498         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
40499         (same_slave): New function.
40500         (main): Use it to compare ptsname's result with the expected file name.
40502 2010-12-22  Bruno Haible  <bruno@clisp.org>
40504         Port extended stdio modules to HP NonStop Kernel.
40505         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
40506         macros.
40507         * lib/fbufmode.c: Update comments.
40508         * lib/fflush.c: Likewise.
40509         * lib/fpurge.c: Likewise.
40510         * lib/freadable.c: Likewise.
40511         * lib/freadahead.c: Likewise.
40512         * lib/freading.c: Likewise.
40513         * lib/freadptr.c: Likewise.
40514         * lib/freadseek.c: Likewise.
40515         * lib/fseeko.c: Likewise.
40516         * lib/fseterr.c: Likewise.
40517         * lib/fwritable.c: Likewise.
40518         * lib/fwriting.c: Likewise.
40519         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40521 2010-12-22  Bruno Haible  <bruno@clisp.org>
40523         ttyname_r: Work around bug on OSF/1 5.1.
40524         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
40525         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
40526         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
40527         present.
40528         * lib/ttyname_r.c (ttyname_r): Update comments.
40530 2010-12-22  Bruno Haible  <bruno@clisp.org>
40532         round: Implement result sign according to IEEE 754.
40533         * lib/round.c (MIN, MINUS_ZERO): New macros.
40534         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
40535         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
40536         * tests/test-round-ieee.c (main): Likewise.
40537         * tests/test-roundl-ieee.c (main): Likewise.
40539         trunc: Implement result sign according to IEEE 754.
40540         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
40541         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
40542         * tests/test-trunc2.c: Include minus-zero.h.
40543         (MINUS_ZERO): New macro.
40544         (trunc_reference): Keep in sync with lib/trunc.c.
40545         * tests/test-truncf2.c: Include minus-zero.h.
40546         (MINUS_ZERO): New macro.
40547         (truncf_reference): Keep in sync with lib/trunc.c.
40548         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
40549         * tests/test-trunc-ieee.c (main): Likewise.
40550         * tests/test-truncl-ieee.c (main): Likewise.
40552         ceil: Implement result sign according to IEEE 754.
40553         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
40554         (FUNC): Return -0.0 for -1 < x < 0.
40555         * tests/test-ceil2.c: Include minus-zero.h.
40556         (MINUS_ZERO): New macro.
40557         (ceil_reference): Keep in sync with lib/ceil.c.
40558         * tests/test-ceilf2.c: Include minus-zero.h.
40559         (MINUS_ZERO): New macro.
40560         (ceilf_reference): Keep in sync with lib/ceil.c.
40561         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
40562         * tests/test-ceil-ieee.c (main): Likewise.
40563         * tests/test-ceill-ieee.c (main): Likewise.
40565         floor: Implement result sign according to IEEE 754.
40566         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
40567         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
40568         * tests/test-floorf2.c (floorf_reference): Likewise.
40569         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
40570         * tests/test-floor-ieee.c (main): Likewise.
40571         * tests/test-floorl-ieee.c (main): Likewise.
40573 2010-12-22  Bruno Haible  <bruno@clisp.org>
40575         getaddrinfo: Update doc.
40576         * doc/posix-functions/gai_strerror.texi: Return type is also different
40577         on AIX and HP-UX.
40579 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40581         getaddrinfo, inet_ntop: Update doc for Solaris.
40582         * doc/posix-functions/gai_strerror.texi: Return type is also an
40583         issue on Solaris 9 and earlier.
40584         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
40585         on Solaris 10 and earlier.
40587 2010-12-21  Bruno Haible  <bruno@clisp.org>
40589         New module 'roundl-ieee'.
40590         * modules/roundl-ieee: New file.
40591         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
40592         test whether roundl works according to ISO C 99 with IEC 60559.
40593         * m4/roundl-ieee.m4: New file.
40594         * modules/roundl-ieee-tests: New file.
40595         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
40596         * tests/test-roundl.c (main): Remove signbit tests.
40597         * modules/roundl-tests (Depends-on): Remove signbit.
40598         * doc/posix-functions/roundl.texi: Mention the new module.
40600 2010-12-21  Bruno Haible  <bruno@clisp.org>
40602         New module 'truncl-ieee'.
40603         * modules/truncl-ieee: New file.
40604         * modules/truncl-ieee-tests: New file.
40605         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
40606         * tests/test-truncl.c (main): Remove signbit tests.
40607         * modules/truncl-tests (Depends-on): Remove signbit.
40608         * doc/posix-functions/truncl.texi: Mention the new module.
40610 2010-12-21  Bruno Haible  <bruno@clisp.org>
40612         New module 'ceill-ieee'.
40613         * modules/ceill-ieee: New file.
40614         * modules/ceill-ieee-tests: New file.
40615         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
40616         * tests/test-ceill.c (main): Remove signbit tests.
40617         * modules/ceill-tests (Depends-on): Remove signbit.
40618         * doc/posix-functions/ceill.texi: Mention the new module.
40620 2010-12-21  Bruno Haible  <bruno@clisp.org>
40622         New module 'floorl-ieee'.
40623         * modules/floorl-ieee: New file.
40624         * modules/floorl-ieee-tests: New file.
40625         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
40626         * tests/test-floorl.c (main): Remove signbit tests.
40627         * modules/floorl-tests (Depends-on): Remove signbit.
40628         * doc/posix-functions/floorl.texi: Mention the new module.
40630 2010-12-21  Bruno Haible  <bruno@clisp.org>
40632         New module 'round-ieee'.
40633         * modules/round-ieee: New file.
40634         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
40635         whether round works according to ISO C 99 with IEC 60559.
40636         * m4/round-ieee.m4: New file.
40637         * modules/round-ieee-tests: New file.
40638         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
40639         * tests/test-round1.c (main): Remove signbit tests.
40640         * modules/round-tests (Depends-on): Remove 'signbit'.
40641         * doc/posix-functions/round.texi: Mention the new module.
40643 2010-12-21  Bruno Haible  <bruno@clisp.org>
40645         New module 'trunc-ieee'.
40646         * modules/trunc-ieee: New file.
40647         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
40648         whether trunc works according to ISO C 99 with IEC 60559.
40649         * m4/trunc-ieee.m4: New file.
40650         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
40651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
40652         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
40653         * modules/trunc-ieee-tests: New file.
40654         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
40655         * tests/test-trunc1.c (main): Remove signbit tests.
40656         * modules/trunc-tests (Depends-on): Remove 'signbit'.
40657         * doc/posix-functions/trunc.texi: Mention the new module.
40659 2010-12-21  Bruno Haible  <bruno@clisp.org>
40661         New module 'ceil-ieee'.
40662         * modules/ceil-ieee: New file.
40663         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
40664         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
40665         ISO C 99 with IEC 60559.
40666         * m4/ceil-ieee.m4: New file.
40667         * modules/ceil (Files): Add lib/ceil.c.
40668         (Depends-on): Add 'float'.
40669         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40670         * lib/math.in.h (ceil): New declaration.
40671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
40672         REPLACE_CEIL.
40673         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
40674         * modules/ceil-ieee-tests: New file.
40675         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
40676         * tests/test-math-c++.cc: Check the signature of 'ceil'.
40677         * doc/posix-functions/ceil.texi: Mention the new module.
40679 2010-12-21  Bruno Haible  <bruno@clisp.org>
40681         New module 'floor-ieee'.
40682         * modules/floor-ieee: New file.
40683         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
40684         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
40685         ISO C 99 with IEC 60559.
40686         * m4/floor-ieee.m4: New file.
40687         * modules/floor (Files): Add lib/floor.c.
40688         (Depends-on): Add 'float'.
40689         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40690         * lib/math.in.h (floor): New declaration.
40691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
40692         REPLACE_FLOOR.
40693         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
40694         * modules/floor-ieee-tests: New file.
40695         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
40696         * tests/test-math-c++.cc: Check the signature of 'floor'.
40697         * doc/posix-functions/floor.texi: Mention the new module.
40699 2010-12-21  Bruno Haible  <bruno@clisp.org>
40701         New module 'roundf-ieee'.
40702         * modules/roundf-ieee: New file.
40703         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
40704         test whether roundf works according to ISO C 99 with IEC 60559.
40705         * m4/roundf-ieee.m4: New file.
40706         * modules/roundf-ieee-tests: New file.
40707         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
40708         * tests/test-roundf1.c (main): Remove signbit tests.
40709         * modules/roundf-tests (Depends-on): Remove 'signbit'.
40710         * doc/posix-functions/roundf.texi: Mention the new module.
40712 2010-12-21  Bruno Haible  <bruno@clisp.org>
40714         New module 'truncf-ieee'.
40715         * modules/truncf-ieee: New file.
40716         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
40717         test whether truncf works according to ISO C 99 with IEC 60559.
40718         * m4/truncf-ieee.m4: New file.
40719         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
40720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
40721         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
40722         * modules/truncf-ieee-tests: New file.
40723         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
40724         * tests/test-truncf1.c (main): Remove signbit tests.
40725         * modules/truncf-tests (Depends-on): Remove 'signbit'.
40726         * doc/posix-functions/truncf.texi: Mention the new module.
40728 2010-12-21  Bruno Haible  <bruno@clisp.org>
40730         New module 'ceilf-ieee'.
40731         * modules/ceilf-ieee: New file.
40732         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
40733         test whether ceilf works according to ISO C 99 with IEC 60559.
40734         * m4/ceilf-ieee.m4: New file.
40735         * modules/ceilf-ieee-tests: New file.
40736         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
40737         * tests/test-ceilf1.c (main): Remove signbit tests.
40738         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
40739         * doc/posix-functions/ceilf.texi: Mention the new module.
40741 2010-12-21  Bruno Haible  <bruno@clisp.org>
40743         New module 'floorf-ieee'.
40744         * modules/floorf-ieee: New file.
40745         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
40746         test whether floorf works according to ISO C 99 with IEC 60559.
40747         * m4/floorf-ieee.m4: New file.
40748         * modules/floorf-ieee-tests: New file.
40749         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
40750         * tests/test-floorf1.c (main): Remove signbit tests.
40751         * modules/floorf-tests (Depends-on): Remove 'signbit'.
40752         * doc/posix-functions/floorf.texi: Mention the new module.
40754 2010-12-21  Bruno Haible  <bruno@clisp.org>
40756         Support for minus zero in autoconf macros.
40757         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
40758         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
40759         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
40760         * tests/minus-zero.h: Update comments.
40762 2010-12-21  Bruno Haible  <bruno@clisp.org>
40764         Tests for module 'ceil'.
40765         * modules/ceil-tests: New file.
40766         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
40767         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
40769 2010-12-21  Bruno Haible  <bruno@clisp.org>
40771         Tests for module 'floor'.
40772         * modules/floor-tests: New file.
40773         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
40774         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
40776 2010-12-21  Bruno Haible  <bruno@clisp.org>
40778         math: Fix indentation.
40779         * lib/math.in.h (floorf): Fix indentation.
40781 2010-12-21  Bruno Haible  <bruno@clisp.org>
40783         Fix cross-compilation guesses on Solaris.
40784         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
40785         not match "solaris2.10".
40786         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40787         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
40788         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
40790 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40792         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
40793         This fixes a problem observed with the latest coreutils snapshot
40794         that caused a test to fail on Solaris 8.  src/csplit.c's call
40795         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
40796         earlier, instead of returning the number of bytes that would have
40797         been generated; this causes csplit to incorrectly report memory
40798         exhaustion.
40799         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
40800         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
40801         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
40802         comments to match.
40803         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
40804         Fix typo in matching older versions of Solaris: "solaris2.10"
40805         is matched by the shell pattern "solaris2.[0-9]*".  This matters
40806         only for guessing while cross-compiling.
40807         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
40809 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
40811         ftoastr: fix comment again
40812         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
40813         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
40814         Also, simplify example a bit by using flags = 0.
40816 2010-12-20  Bruno Haible  <bruno@clisp.org>
40818         round*, trunc*: Update documentation regarding glibc.
40819         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
40820         * doc/posix-functions/round.texi: Likewise.
40821         * doc/posix-functions/roundl.texi: Likewise.
40822         * doc/posix-functions/truncf.texi: Likewise.
40823         * doc/posix-functions/trunc.texi: Likewise.
40824         * doc/posix-functions/truncl.texi: Likewise.
40826 2010-12-20  Bruno Haible  <bruno@clisp.org>
40828         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
40829         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
40830         * doc/posix-functions/round.texi: Likewise.
40831         * doc/posix-functions/roundl.texi: Likewise.
40833 2010-12-20  Bruno Haible  <bruno@clisp.org>
40835         ttyname_r: Add missing declaration on HP-UX 11.
40836         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
40837         HAVE_TTYNAME_R.
40838         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
40839         declared. Set HAVE_TTYNAME_R always.
40840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40841         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
40842         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
40843         HAVE_TTYNAME_R.
40844         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
40846 2010-12-20  Bruno Haible  <bruno@clisp.org>
40848         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
40849         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
40850         * doc/posix-functions/getlogin_r.texi: Likewise.
40851         * tests/test-getlogin.c: Include <errno.h>.
40852         (main): Avoid test failure on HP-UX 11.11.
40853         * tests/test-getlogin_r.c (main): Likewise.
40855 2010-12-20  Bruno Haible  <bruno@clisp.org>
40857         getlogin_r: Add missing declaration on HP-UX 11.
40858         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
40859         declared also when it exists as a function.
40860         * doc/posix-functions/getlogin_r.texi: Document this workaround.
40862 2010-12-20  Bruno Haible  <bruno@clisp.org>
40864         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
40865         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
40866         through wcrtomb.
40868 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
40870         ftoastr: fix comment
40871         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
40872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
40874 2010-12-19  Bruno Haible  <bruno@clisp.org>
40876         isnan: Ensure it is a macro.
40877         * lib/math.in.h (isnan): Define as a macro if not already a macro.
40878         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
40879         Solaris.
40881 2010-12-19  Bruno Haible  <bruno@clisp.org>
40883         ldexpl test: Fix link error on OSF/1 5.1.
40884         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
40886 2010-12-19  Bruno Haible  <bruno@clisp.org>
40888         wctype: Make it work in C++ mode on OSF/1 5.1.
40889         * lib/wctype.in.h (iswblank): Declare but not define here.
40890         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
40891         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
40892         * modules/wctype (Files): Add lib/iswblank.c.
40894 2010-12-19  Bruno Haible  <bruno@clisp.org>
40896         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
40897         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
40898         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
40900 2010-12-19  Bruno Haible  <bruno@clisp.org>
40902         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
40903         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
40904         _POSIX_PII_SOCKET.
40905         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
40906         * doc/posix-functions/recvfrom.texi: Likewise.
40907         * doc/posix-functions/send.texi: Likewise.
40908         * doc/posix-functions/sendto.texi: Likewise.
40910 2010-12-19  Bruno Haible  <bruno@clisp.org>
40912         tcgetsid: Add missing declaration on OSF/1 5.1.
40913         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
40914         HAVE_TCGETSID.
40915         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
40916         Don't set HAVE_TCGETSID.
40917         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
40918         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
40919         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
40920         HAVE_TCGETSID.
40921         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
40923 2010-12-19  Bruno Haible  <bruno@clisp.org>
40925         stdio: Fix problem with popen() declaration on OSF/1 5.1.
40926         * lib/stdio.in.h: During the include_next statement, let recursive
40927         includes of this file include only the system header file.
40929 2010-12-19  Bruno Haible  <bruno@clisp.org>
40931         iconv_open: Fix regression from 2010-12-04.
40932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
40933         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
40935 2010-12-19  Bruno Haible  <bruno@clisp.org>
40937         stdbool test: Avoid a gcc warning.
40938         * tests/test-stdbool.c (main): Fail if e1 is false.
40939         Reported by Jim Meyering.
40941 2010-12-19  Jim Meyering  <meyering@redhat.com>
40943         setenv: restore to working order
40944         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
40945         mistakenly removed.
40946         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
40947         HAVE_SETENV.
40948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
40949         HAVE_SETENV.
40951 2010-12-19  Bruno Haible  <bruno@clisp.org>
40953         Document some different function declarations on OSF/1 5.1.
40954         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
40955         * doc/posix-functions/inet_ntop.texi: Likewise.
40956         * doc/posix-functions/gethostname.texi: Likewise.
40957         * lib/unistd.in.h (gethostname): Update comment.
40959 2010-12-19  Bruno Haible  <bruno@clisp.org>
40961         doc: Mention vasprintf-posix module.
40962         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
40963         the 'vasprintf-posix' module.
40964         * doc/glibc-functions/vasprintf.texi: Likewise.
40966 2010-12-19  Bruno Haible  <bruno@clisp.org>
40968         unsetenv: Add missing declaration on OSF/1 5.1.
40969         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
40970         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
40971         Don't set HAVE_UNSETENV. In the test program, set _BSD.
40972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
40973         not HAVE_UNSETENV.
40974         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
40975         HAVE_UNSETENV.
40976         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
40978 2010-12-19  Bruno Haible  <bruno@clisp.org>
40980         setenv: Add missing declaration on OSF/1 5.1.
40981         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
40982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
40983         declared. Don't set HAVE_SETENV.
40984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
40985         not HAVE_SETENV.
40986         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
40987         HAVE_SETENV.
40988         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
40990 2010-12-19  Bruno Haible  <bruno@clisp.org>
40992         nl_langinfo tests: Avoid gcc warning.
40993         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
40995 2010-12-19  Bruno Haible  <bruno@clisp.org>
40997         mknod: Avoid error in C++ mode on OSF/1 with GCC.
40998         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
40999         _GL_CXXALIAS_SYS.
41001 2010-12-19  Bruno Haible  <bruno@clisp.org>
41003         stdbool: Relax test.
41004         * tests/test-stdbool.c (e): Don't require that casts from a variable's
41005         address to 'bool' work in static initializer, for compilers other than
41006         GCC.
41008 2010-12-19  Bruno Haible  <bruno@clisp.org>
41010         ftello: Add missing declaration on OSF/1 5.1.
41011         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
41012         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
41013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
41014         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
41015         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
41017 2010-12-19  Bruno Haible  <bruno@clisp.org>
41019         fseeko: Add missing declaration on OSF/1 5.1.
41020         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
41021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
41022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
41023         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
41024         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
41026 2010-12-19  Bruno Haible  <bruno@clisp.org>
41028         fchdir: Add missing declaration on OSF/1 5.1.
41029         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
41030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
41031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
41032         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
41033         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
41035 2010-12-19  Bruno Haible  <bruno@clisp.org>
41037         relocatable-prog-wrapper: Separate from relocatable-prog.
41038         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
41039         uninstall-relocwrapper rule here.
41040         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
41041         Reported by Ian Beckwith <ianb@erislabs.net>.
41043 2010-12-19  Bruno Haible  <bruno@clisp.org>
41045         unistr/u8-mbsnlen: Add missing dependency.
41046         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
41047         Reported by Ian Beckwith <ianb@erislabs.net>.
41049 2010-12-19  Bruno Haible  <bruno@clisp.org>
41051         iconv: Make it possible again to use this module without 'iconv-h'.
41052         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
41053         if it is not defined.
41054         Reported by Ian Beckwith <ianb@erislabs.net>.
41056 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41058         acl: port to Solaris 8 when copying from tmpfs to ufs
41059         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
41060         error number.  Problem observed on Solaris 8 with latest
41061         coreutils, with "mv A B", where A is on a tmpfs file system and B
41062         is on a ufs file system.  This caused coreutils' mv/part-symlink
41063         test to fail.
41065         tests: set fail=0 at start
41066         * tests/init.sh (setup_): Move fail=0 initialization here ...
41067         (mktempd_): ... from here, so that tests can rely on fail being
41068         set to 0 initially.  This fixes a problem in coreutils; see:
41069         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
41071 2010-12-18  Bruno Haible  <bruno@clisp.org>
41073         memmem-simple: Stylistic changes.
41074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
41075         Fix preprocessor directive indentation.
41077 2010-12-15  Pádraig Brady  <P@draigBrady.com>
41079         memmem, memmem-simple: reorganize and expand empty needle check
41080         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
41081         functional checks to memmem-simple so that one has a fully functional
41082         memmem by using just this module.
41083         Restrict the performance only check to the memmem module.
41084         Also expand the empty needle check to ensure the correct
41085         pointer is returned, not just a non NULL pointer.
41086         * doc/glibc-functions/memmem.texi: Rearrange the portability
41087         documentation to correlate with the rearranged checks.
41088         Clarify exactly how the memmem and memmem-simple modules
41089         relate to each other.
41091 2010-12-15  Pádraig Brady  <P@draigBrady.com>
41092             Bruno Haible  <bruno@clisp.org>
41094         Improve cross-compilation guesses for uClibc.
41095         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
41096         that uClibc does not have the glibc bug.
41097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
41098         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
41100 2010-12-14  Eric Blake  <eblake@redhat.com>
41102         configmake: provide fallbacks for oldest supported autotools
41103         * m4/configmake.m4: New file.
41104         * modules/configmake (Files): Ship it.
41105         (configure.ac): Use it to guarantee fallbacks.
41107 2010-12-13  Pádraig Brady  <P@draigBrady.com>
41109         read-file: Improve handling of large files
41110         * lib/read-file.c (fread_file): Minimize realloc()s
41111         for regular files, and better manage sizes around SIZE_MAX.
41113 2010-12-13  Eric Blake  <eblake@redhat.com>
41115         cloexec, fcntl: relax license
41116         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
41117         consent from all contributors.
41118         * modules/fcntl (License): Likewise.
41120 2010-12-10  Bruno Haible  <bruno@clisp.org>
41122         Tests for module 'pipe-posix'.
41123         * modules/pipe-posix-tests: New file.
41124         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
41126 2010-12-10  Bruno Haible  <bruno@clisp.org>
41128         pipe-posix: Make it work in C++ mode.
41129         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
41130         (pipe): Use common idiom, not a macro definition.
41131         * lib/pipe.c: New file.
41132         * m4/pipe.m4: New file.
41133         * modules/pipe-posix (Description): Enhance.
41134         (Files): Add lib/pipe.c, m4/pipe.m4.
41135         (configure.ac): Invoke gl_FUNC_PIPE.
41136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
41137         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
41138         * tests/test-unistd-c++.cc: Check the signature of pipe.
41140 2010-12-10  Bruno Haible  <bruno@clisp.org>
41142         Rename module 'pipe' to 'spawn-pipe'.
41143         * modules/spawn-pipe: New file, renamed from modules/pipe.
41144         (Files, configure.ac, Makefile.am): Update.
41145         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
41146         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
41147         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
41148         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
41149         "spawn-pipe.h" instead of "pipe.h".
41150         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
41151         to gl_SPAWN_PIPE.
41152         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
41153         (Files, Makefile.am): Update.
41154         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
41155         Update.
41156         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
41157         Include "spawn-pipe.h" instead of "pipe.h".
41158         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
41159         * lib/javacomp.c: Likewise.
41160         * lib/javaversion.c: Likewise.
41161         * lib/pipe-filter-gi.c: Likewise.
41162         * lib/pipe-filter-ii.c: Likewise.
41163         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
41164         * modules/javacomp (Depends-on): Likewise.
41165         * modules/javaversion (Depends-on): Likewise.
41166         * modules/pipe-filter-gi (Depends-on): Likewise.
41167         * modules/pipe-filter-ii (Depends-on): Likewise.
41168         * MODULES.html.sh (Executing programs): Update.
41169         * NEWS: Mention the change.
41171 2010-12-10  Eric Blake  <eblake@redhat.com>
41173         pipe-posix: new module
41174         * modules/pipe-posix: New file.
41175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
41176         (gl_UNISTD_H): Check for declaration.
41177         * modules/unistd (Makefile.am): Substitute it.
41178         * lib/unistd.in.h (pipe): Provide it for mingw.
41179         * doc/posix-functions/pipe.texi (pipe): Update documentation.
41180         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
41182 2010-12-07  Bruno Haible  <bruno@clisp.org>
41184         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
41185         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
41186         u8_strcmp_gnu.
41187         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
41189 2010-12-06  Bruno Haible  <bruno@clisp.org>
41191         Update internal documentation.
41192         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
41194 2010-12-04  Bruno Haible  <bruno@clisp.org>
41196         Put more information about failed tests into the test return codes.
41197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
41198         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
41199         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
41200         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
41201         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
41202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41204         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41205         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
41206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
41208         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41209         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
41210         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41211         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
41212         returns a bit mask.
41213         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
41214         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
41215         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
41216         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
41217         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41218         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
41219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41221         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
41222         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
41223         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41224         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
41225         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
41227         * m4/link.m4 (gl_FUNC_LINK): Likewise.
41228         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41229         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
41230         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
41231         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41232         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
41233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41234         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41235         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
41236         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41237         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
41238         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41239         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
41240         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
41241         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
41242         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
41243         gl_PRINTF_PRECISION): Likewise.
41244         * m4/regex.m4 (gl_REGEX): Likewise.
41245         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41246         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
41247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
41248         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41249         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
41252         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
41253         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41254         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41255         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41256         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41257         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
41258         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41259         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41260         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41261         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
41262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
41263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41264         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
41265         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
41266         enumerated value.
41267         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
41269 2010-12-04  Bruno Haible  <bruno@clisp.org>
41271         Update for Solaris 11 2010-11.
41272         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
41273         Express, released in November 2010.
41275 2010-12-04  Bruno Haible  <bruno@clisp.org>
41277         nproc: Relax license.
41278         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
41279         and Paul Eggert.
41280         Requested by Ludovic Courtès <ludo@gnu.org>.
41282 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
41284         utimecmp: fine-grained src to nearby coarse-grained dest
41286         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
41287         and the source is on a file system with higher-resolution time
41288         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
41289         not work, and the time stamps are close together, the algorithm to
41290         determine the exact resolution from the read-back mtime was buggy:
41291         it had a "!=" where it should have had an "==".  This bug has been
41292         in the code ever since it was introduced to gnulib.
41293         Problem reported by Dan Jacobson in
41294         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
41296 2010-11-30  Bruno Haible  <bruno@clisp.org>
41298         strerror_r-posix: Fix autoconf test.
41299         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
41301 2010-11-28  Bruno Haible  <bruno@clisp.org>
41302             Paul Eggert  <eggert@cs.ucla.edu>
41304         Tests for module 'getdomainname'.
41305         * modules/getdomainname-tests: New file.
41306         * tests/test-getdomainname.c: New file, based on
41307         tests/test-gethostname.c.
41309 2010-11-28  Bruno Haible  <bruno@clisp.org>
41310             Paul Eggert  <eggert@cs.ucla.edu>
41312         getdomainname: Use the system function when possible.
41313         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
41314         (getdomainname): Replace if needed. Provide the declaration if it is
41315         missing. Don't use _GL_CXXALIAS_SYS_CAST.
41316         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
41317         (getdomainname): When the system has getdomainname, call the system
41318         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
41319         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41320         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
41321         found in libnsl. Look for the declaration also in <netdb.h>. Replace
41322         the function if its second argument is of type 'int' or if it is found
41323         in libnsl.
41324         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
41325         <sys/systeminfo.h> and sysinfo().
41326         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
41327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41328         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
41329         HAVE_GETDOMAINNAME.
41330         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
41331         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
41332         * doc/glibc-functions/getdomainname.texi: Document the problems with
41333         the getdomainname declaration.
41335 2010-11-28  Bruno Haible  <bruno@clisp.org>
41337         sys_socket: Ensure ss_family field on AIX.
41338         * lib/sys_socket.in.h (ss_family): New macro definition.
41339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
41340         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
41341         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41342         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
41343         * modules/sys_socket (Makefile.am): Substitute
41344         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
41345         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
41347 2010-11-27  Bruno Haible  <bruno@clisp.org>
41349         readline: Improve configure output.
41350         * m4/readline.m4 (gl_FUNC_READLINE): Make the
41351         "checking for readline..." result understandable.
41353 2010-11-27  Bruno Haible  <bruno@clisp.org>
41355         *printf-posix: Detect a bug on Solaris 10/x86.
41356         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
41357         for floating-point output.
41358         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
41359         directive.
41360         * tests/test-snprintf-posix.h (test_function): Likewise.
41361         * tests/test-sprintf-posix.h (test_function): Likewise.
41362         * tests/test-vasprintf-posix.c (test_function): Likewise.
41363         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
41364         * doc/posix-functions/printf.texi: Likewise.
41365         * doc/posix-functions/snprintf.texi: Likewise.
41366         * doc/posix-functions/sprintf.texi: Likewise.
41367         * doc/posix-functions/vfprintf.texi: Likewise.
41368         * doc/posix-functions/vprintf.texi: Likewise.
41369         * doc/posix-functions/vsnprintf.texi: Likewise.
41370         * doc/posix-functions/vsprintf.texi: Likewise.
41371         * doc/glibc-functions/obstack_printf.texi: Likewise.
41372         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41374 2010-11-27  Bruno Haible  <bruno@clisp.org>
41376         Fix link error when module libunistring-optional is in use.
41377         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
41378         * modules/striconveha-tests (Makefile.am): Likewise.
41380 2010-11-27  Bruno Haible  <bruno@clisp.org>
41382         regex: Mention link dependencies.
41383         * modules/regex (Link): New section.
41384         * modules/rpmatch (Link): Likewise.
41385         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
41387 2010-11-27  Bruno Haible  <bruno@clisp.org>
41389         ftoastr: Fix compilation error on Solaris.
41390         * lib/ftoastr.c: Include <config.h>.
41392 2010-11-27  Bruno Haible  <bruno@clisp.org>
41394         getloadavg: Update documentation.
41395         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
41397 2010-11-27  Bruno Haible  <bruno@clisp.org>
41399         sys_socket: Fix test whether the functions are declared.
41400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
41401         not <sys/select.h>.
41403 2010-11-27  Bruno Haible  <bruno@clisp.org>
41405         getpass: Make sure to get system declaration on some platforms.
41406         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
41407         gl_USE_SYSTEM_EXTENSIONS.
41408         * modules/getpass (Depends-on): Add extensions.
41410 2010-11-26  Bruno Haible  <bruno@clisp.org>
41412         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
41413         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
41414         'iconv' module is present.
41415         (ICONV_CONST): New macro.
41416         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
41417         ICONV_CONST.
41418         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
41419         set ICONV_CONST.
41420         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
41421         here.
41422         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
41423         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
41424         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
41425         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
41426         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
41427         present.
41429 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41431         ftoastr: comment fix
41432         * lib/ftoastr.c: "little" -> "little or no" in comment
41434 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
41436         stdint: port to GCC 4.3 + OSX + Octave
41437         On this platform, stdint.h is buggy and defines int64_t to long
41438         long int.  The replacement defined it to long int, causing
41439         problems with C++ style name mangling.  Instead, trust the system
41440         definition if INT64_MAX is defined, and likewise for the unsigned
41441         variant.   Problem reported by Jarno Rajahalme in
41442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
41443         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
41444         and don't mess with int64_t and INT64_MAX in this case.
41445         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
41447 2010-11-24  Bruno Haible  <bruno@clisp.org>
41449         doc: Corrections regarding MacOS X 10.4 and 10.5.
41450         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
41451         MacOS X.
41452         Reported by Simon Josefsson.
41454 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
41456         Uninstall ".bin" files installed by relocwrapper.
41457         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
41458         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
41459         unless it is already there.
41461 2010-11-21  Bruno Haible  <bruno@clisp.org>
41463         Update for NetBSD 5.0.
41464         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
41465         NetBSD; the test fails on NetBSD 5.0.
41466         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
41467         about NetBSD.
41469 2010-11-21  Bruno Haible  <bruno@clisp.org>
41471         Update for HP-UX 11.23 and HP-UX 11.31.
41472         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
41473         HP-UX.
41475 2010-11-21  Bruno Haible  <bruno@clisp.org>
41477         Update for MacOS X 10.5.
41478         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
41479         MacOS X; the test fails on MacOS X 10.5.8.
41480         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
41481         about MacOS X.
41483 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
41485         bootstrap: add bootstrap_sync option.
41486         See discussion at
41487         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
41488         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
41489         * build-aux/bootstrap: Accept --bootstrap-sync to update
41490         bootstrap if it is not identical to the local gnulib's
41491         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
41492         enable this by default.  Accept --no-bootstrap-sync to disable
41493         it.
41495 2010-11-20  Bruno Haible  <bruno@clisp.org>
41497         Ensure that <features.h> is included before __GLIBC__ is tested.
41498         * lib/printf-parse.h: Include <features.h>.
41499         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
41500         Reported by Mike Frysinger <vapier@gentoo.org>.
41502         Ensure that <features.h> is included before __GLIBC__ is tested.
41503         * lib/wchar.in.h: Include <features.h>.
41504         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
41505         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
41506         Reported by Mike Frysinger <vapier@gentoo.org>.
41508         Ensure that <features.h> is included before __GLIBC__ is tested.
41509         * lib/arpa_inet.in.h: Include <features.h>.
41510         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
41511         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
41512         Reported by Mike Frysinger <vapier@gentoo.org>.
41514         Ensure that <features.h> is included before __GLIBC__ is tested.
41515         * build-aux/link-warning.h: Include <features.h>.
41516         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
41517         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
41518         Reported by Mike Frysinger <vapier@gentoo.org>.
41520         Ensure that <features.h> is included before __GLIBC__ is tested.
41521         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
41522         Reported by Mike Frysinger <vapier@gentoo.org>.
41524 2010-11-20  Bruno Haible  <bruno@clisp.org>
41526         memmem: Fix autoconf test.
41527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
41529 2010-11-20  Bruno Haible  <bruno@clisp.org>
41531         Port to uClibc.
41532         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
41533         * lib/fcntl.in.h: Likewise.
41534         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
41535         * lib/mbrtowc.c (mbrtowc): Likewise.
41536         * lib/relocatable.c (find_shared_library_fullname): Likewise.
41537         * lib/strerror_r.c: Likewise.
41538         * lib/unistr/u8-strnlen.c: Likewise.
41539         * lib/vasnprintf.c (decimal_point_char): Likewise.
41540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
41541         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
41542         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41543         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41544         * tests/test-sigaction.c (handler, main): Likewise.
41545         * lib/freading.h: Treat uClibc like a non-glibc platform.
41546         * lib/freading.c: Likewise.
41547         * lib/gettext.h: Likewise.
41548         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
41549         Likewise.
41550         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
41551         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41552         * lib/propername.c (proper_name_utf8): Likewise.
41553         * lib/spawn.in.h: Likewise.
41554         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
41555         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
41556         mem_cd_iconveh_internal): Likewise.
41557         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
41558         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
41559         strstr, strcasestr): Likewise.
41560         * lib/unicodeio.c (unicode_to_mb): Likewise.
41561         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
41562         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
41563         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
41564         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
41565         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
41566         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
41567         * lib/unistr/u8-stpncpy.c: Likewise.
41568         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41569         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
41570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41571         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41572         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41573         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
41574         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
41575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
41576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
41577         Likewise.
41578         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
41579         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41580         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
41581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41583         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
41584         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41585         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
41586         * tests/test-getopt.h (OPTIND_MIN): Likewise.
41587         * tests/test-striconveha.c (main): Likewise.
41588         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41589         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
41590         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
41591         * doc/posix-functions/getline.texi: Likewise.
41592         Reported by Mike Frysinger <vapier@gentoo.org>.
41594 2010-11-20  Bruno Haible  <bruno@clisp.org>
41596         nproc: Fix condition.
41597         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
41598         HAVE_PTHREAD_AFFINITY_NP.
41600 2010-11-20  Bruno Haible  <bruno@clisp.org>
41602         Fix a comment.
41603         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
41605 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
41607         ftoastr: don't assume snprintf
41608         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
41609         Implement a subset of snprintf here, by using sprintf safely.
41610         * modules/ftoastr (Depends-on): Remove snprintf.
41612 2010-11-19  Jim Meyering  <meyering@redhat.com>
41614         test-rename.h: fix compilation failure
41615         * tests/test-rename.h (test_rename): Add omitted "}".
41617 2010-11-17  Jim Meyering  <meyering@redhat.com>
41619         maint.mk: add a URL discussing the no-@acronym policy
41620         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
41622 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41624         ftoastr: depend on snprintf, improve comments
41625         * lib/ftoastr.c: Also mention Loitsch's draft.
41626         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
41627         needed in the current implementation, but it might simplify
41628         speeding up the code later.
41629         * modules/ftoastr: Depend on snprintf; this improves portability.
41630         Suggested by Bruno Haible in the same email.
41632         ftoastr: port to hosts lacking strtof and strtold
41633         Problem reported by Bruno Haible in
41634         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
41635         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
41636         environment and strtold (and presumably strtof) are not available.
41637         * modules/ftoastr (Files): Add m4/c-strtod.m4.
41638         (configure.ac): Require gl_C99_STRTOLD.
41640 2010-11-18  Bruno Haible  <bruno@clisp.org>
41642         c-strtold: Avoid link error on AIX 7.
41643         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
41644         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
41645         (gl_C_STRTOLD): Test whether strtold_l exists.
41646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41648 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41650         intprops: new macro INT_BITS_STRLEN_BOUND
41651         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
41652         ftoastr.h.  This exposes an internal of intprops.h that was formerly
41653         not exposed.  Also, it uses a slightly tighter bound than before;
41654         though this makes no practical difference, we might as well be as
41655         tight as we easily can.
41657         ftoastr: new module, for lossless conversion of floats to short strings
41658         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
41659         * modules/ftoastr: New files.
41661 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41663         bootstrap: port to Solaris sed
41664         * build-aux/bootstrap (get_version): Port to Solaris sed.
41665         See Ralf Wildenhues's note in
41666         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
41668 2010-11-14  Jim Meyering  <meyering@redhat.com>
41670         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
41671         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
41672         and move definition closer to sole use.
41674 2010-11-13  Jim Meyering  <meyering@redhat.com>
41676         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
41677         Now we require at least autoconf-2.59, which means the work-around
41678         is no longer needed.
41679         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
41680         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41681         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41682         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
41683         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
41685 2010-11-13  Bruno Haible  <bruno@clisp.org>
41687         rename, renameat: Avoid test failures at NFS mounted locations.
41688         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
41689         functions.
41690         (test_rename): Use assert_nonexistent.
41691         * tests/test-rename.c: Include <dirent.h>.
41692         * tests/test-renameat.c: Likewise.
41693         Reported by Gary V. Vaughan <gary@gnu.org>.
41695         rename, renameat: Document Linux bug with NFS
41696         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
41697         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
41698         * doc/posix-functions/renameat.texi: Likewise.
41699         Suggested by Eric Blake.
41701 2010-11-13  Bruno Haible  <bruno@clisp.org>
41703         rename test: Add comments.
41704         * tests/test-rename.h (test_rename): Add structure and comments.
41706 2010-11-13  Eric Blake  <eblake@redhat.com>
41708         maintainer-makefile: cover a few more files
41709         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
41710         scripts generated within C files, for libvirt.
41712 2010-11-13  Bruno Haible  <bruno@clisp.org>
41714         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
41715         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
41716         character, return the number of bytes that belong together, not always
41717         1.
41718         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
41719         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
41720         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
41721         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
41722         number of bytes of an invalid character.
41723         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
41724         (main): Invoke it.
41725         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
41726         results.
41727         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
41728         malformed byte sequences.
41729         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
41730         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
41731         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
41732         Reported by Ben Pfaff and Paolo Bonzini.
41734 2010-11-13  Bruno Haible  <bruno@clisp.org>
41736         openat: Work around glibc bug with fchownat() and empty file names.
41737         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
41738         (gl_FUNC_FCHOWNAT): Invoke it.
41739         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
41740         * doc/posix-functions/fchownat.texi: Document the glibc bug.
41741         Reported by Gary V. Vaughan <gary@gnu.org>.
41743 2010-11-13  Bruno Haible  <bruno@clisp.org>
41745         openat: Ensure autoconf macro ordering.
41746         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
41747         gl_USE_SYSTEM_EXTENSIONS.
41748         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
41750 2010-11-13  Bruno Haible  <bruno@clisp.org>
41752         Update comments.
41753         * lib/unistr/u8-check.c: Update file name in comments.
41754         * lib/unistr/u8-mblen.c: Likewise.
41755         * lib/unistr/u8-prev.c: Likewise.
41756         * lib/unistr/u8-strmblen.c: Likewise.
41757         * lib/unistr/u8-strmbtouc.c: Likewise.
41759 2010-11-13  Jim Meyering  <meyering@redhat.com>
41761         tests: avoid test failure on Solaris 10 due to lack of PATH export
41762         * tests/test-update-copyright.sh: Don't forget to export PATH.
41764         init.sh: ensure that IFS is defined, just in case...
41765         * tests/init.sh (setup_): Ensure that IFS is defined,
41766         so that saving and restoring it works as expected.  This
41767         appears to be useful at least for an old version of dash
41768         from a long time ago (RH 6).  See here for details:
41769         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
41771         maint.mk: tighten "test a == b" check
41772         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
41773         test to files that contain something like #!/bin/sh.
41774         Without this, coreutils would get two false positives in
41775         the comments of C source files.
41777 2010-11-12  Eric Blake  <eblake@redhat.com>
41779         bootstrap: fix typo in previous attempt
41780         * build-aux/bootstrap (buildreq): Correct the grouping.
41781         Reported by Paul Eggert.
41783         maintainer-makefile: prohibit test x == x
41784         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
41785         Based on a report by Matthias Bolte.
41787         bootstrap: allow FreeBSD gzip
41788         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
41789         which has no '.' and goes to stderr.
41790         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
41791         Reported by Matthias Bolte.
41793         maintainer-makefile: check for i18n setup
41794         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
41795         will likely work.
41797 2010-11-12  Bruno Haible  <bruno@clisp.org>
41799         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
41800         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
41801         * lib/nanosleep.c (nanosleep): Likewise.
41803 2010-11-11  Bruno Haible  <bruno@clisp.org>
41805         fcntl-h: Fix for use of C++ on glibc systems.
41806         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
41807         also on glibc systems in C++ mode.
41808         Reported by Gary V. Vaughan <gary@gnu.org>.
41810 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
41812         mknod: avoid false failure with dash
41813         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
41815 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41817         unlink: Fix "is it should" typo in diagnostic.
41818         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
41819         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
41821 2010-11-11  Bruno Haible  <bruno@clisp.org>
41823         Tests for module 'strerror_r-posix'.
41824         * modules/strerror_r-posix-tests: New file.
41825         * tests/test-strerror_r.c: New file.
41826         * tests/test-string-c++.cc: Check the signature of strerror_r.
41828         New module 'strerror_r-posix'.
41829         * lib/string.in.h (strerror_r): New declaration.
41830         * lib/strerror_r.c: New file.
41831         * m4/strerror_r.m4: New file.
41832         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
41833         of strerror_r.
41834         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
41835         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
41836         * modules/strerror_r-posix: New file.
41837         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
41838         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
41839         * doc/posix-functions/strerror_r.texi: Mention the new module and the
41840         portability problems.
41842 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
41844         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
41845         line is also considered for output. Quoted function name in shell
41846         command, so temporary files for functions like MyClass::operator()
41847         are removed correctly without errors.
41849 2010-11-09  Bruno Haible  <bruno@clisp.org>
41851         * doc/posix-functions/strerror.texi: List more failing platforms.
41853         * doc/posix-functions/strerror.texi: Add a comment.
41855 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41857         fdopendir: fix bug on MacOS X when low on file descriptors
41859         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
41860         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
41861         All callers changed.
41862         (fdopendir): Invoke save_cwd at the top level, not after using
41863         multiple dup() calls to use up file descriptors.  Then retry
41864         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
41865         less than the maximum number of open file descriptors, because
41866         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
41867         on Mac OS X 10.6.4 for tar 1.24
41868         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
41869         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
41870         and for tar 1.25
41871         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
41873 2010-11-07  Bruno Haible  <bruno@clisp.org>
41875         vasnprintf: Support I flag on glibc systems.
41876         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
41877         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
41878         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
41879         snprintf function.
41880         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
41881         glibc systems.
41882         * tests/test-vasnprintf-posix3.c: New file.
41883         * modules/vasnprintf-posix-tests (Files): Add it.
41884         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
41886 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41888         [html] Fix copy/paste bug: Use unique name for compiler warnings.
41889         * MODULES.html.sh: For compiler warnings, use name
41890         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
41892 2010-11-05  Eric Blake  <eblake@redhat.com>
41894         ceil, floor: avoid spurious failure with icc
41895         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
41896         [denormals-as-zero] when optimizing without -mieee-fp option.
41897         * tests/test-floorf2.c (floorf_reference): Likewise.
41898         * tests/test-ceilf1.c (dummy): New function.
41899         (main): Use it to outsmart icc's optimization.
41900         * tests/test-floorf1.c (dummy, main): Likewise.
41902         tests: require working signbit
41903         * modules/ceilf-tests (Depends-on): Add signbit.
41904         * modules/ceill-tests (Depends-on): Likewise.
41905         * modules/floorf-tests (Depends-on): Likewise.
41906         * modules/floorl-tests (Depends-on): Likewise.
41907         * modules/round-tests (Depends-on): Likewise.
41908         * modules/roundf-tests (Depends-on): Likewise.
41909         * modules/roundl-tests (Depends-on): Likewise.
41910         * modules/trunc-tests (Depends-on): Likewise.
41911         * modules/truncf-tests (Depends-on): Likewise.
41912         * modules/truncl-tests (Depends-on): Likewise.
41914         strtod: work around icc bug
41915         * lib/strtod.c (minus_zero): Define to working value.
41916         (strtod): Use it to avoid icc bug.
41918         copysign: enhance tests
41919         * modules/copysign-tests (Files): Add minus-zero.h.
41920         * tests/test-copysign.c (main): Also test zeros.
41922 2010-11-04  Eric Blake  <eblake@redhat.com>
41924         ceil, floor, round, trunc: enhance tests of -0
41925         * tests/test-ceilf1.c (main): Ensure correct sign of result.
41926         * tests/test-ceill.c (main): Likewise.
41927         * tests/test-floorf1.c (main): Likewise.
41928         * tests/test-floorl.c (main): Likewise.
41929         * tests/test-round1.c (main): Likewise.
41930         * tests/test-roundf1.c (main): Likewise.
41931         * tests/test-roundl.c (main): Likewise.
41932         * tests/test-trunc1.c (main): Likewise.
41933         * tests/test-truncf1.c (main): Likewise.
41934         * tests/test-truncl.c (main): Likewise.
41936 2010-11-04  Eric Blake  <eblake@redhat.com>
41938         frexp, tests: work around ICC bug with -zero
41939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
41940         works with more compilers.
41941         * tests/minus-zero.h: New file.
41942         * modules/ceilf-tests (Files): Include it.
41943         * modules/ceill-tests (Files): Likewise.
41944         * modules/floorf-tests (Files): Likewise.
41945         * modules/floorl-tests (Files): Likewise.
41946         * modules/frexp-nolibm-tests (Files): Likewise.
41947         * modules/frexp-tests (Files): Likewise.
41948         * modules/frexpl-nolibm-tests (Files): Likewise.
41949         * modules/frexpl-tests (Files): Likewise.
41950         * modules/isnan-tests (Files): Likewise.
41951         * modules/isnand-nolibm-tests (Files): Likewise.
41952         * modules/isnand-tests (Files): Likewise.
41953         * modules/isnanf-nolibm-tests (Files): Likewise.
41954         * modules/isnanf-tests (Files): Likewise.
41955         * modules/isnanl-nolibm-tests (Files): Likewise.
41956         * modules/isnanl-tests (Files): Likewise.
41957         * modules/round-tests (Files): Likewise.
41958         * modules/roundf-tests (Files): Likewise.
41959         * modules/roundl-tests (Files): Likewise.
41960         * modules/ldexpl-tests (Files): Likewise.
41961         * modules/signbit-tests (Files): Likewise.
41962         * modules/snprintf-posix-tests (Files): Likewise.
41963         * modules/sprintf-posix-tests (Files): Likewise.
41964         * modules/strtod-tests (Files): Likewise.
41965         * modules/trunc-tests (Files): Likewise.
41966         * modules/truncf-tests (Files): Likewise.
41967         * modules/truncl-tests (Files): Likewise.
41968         * modules/vsnprintf-posix-tests (Files): Likewise.
41969         * modules/vsprintf-posix-tests (Files): Likewise.
41970         * modules/vasnprintf-posix-tests (Files): Likewise.
41971         * modules/vasprintf-posix-tests (Files): Likewise.
41972         * tests/test-ceilf1.c (main): Use it.
41973         * tests/test-ceill.c (main): Likewise.
41974         * tests/test-floorf1.c (main): Likewise.
41975         * tests/test-floorl.c (main): Likewise.
41976         * tests/test-frexp.c (main): Likewise.
41977         * tests/test-frexpl.c (main): Likewise.
41978         * tests/test-isnan.c (main): Likewise.
41979         * tests/test-isnand.h (main): Likewise.
41980         * tests/test-isnanf.h (main): Likewise.
41981         * tests/test-isnanl.h (main): Likewise.
41982         * tests/test-ldexpl.c (main): Likewise.
41983         * tests/test-round.c (main): Likewise.
41984         * tests/test-roundf.c (main): Likewise.
41985         * tests/test-roundl.c (main): Likewise.
41986         * tests/test-signbit.c (test_signbitf, test_signbitd)
41987         (test_signbitl): Likewise.
41988         * tests/test-snprintf-posix.h (test_function): Likewise.
41989         * tests/test-sprintf-posix.h (test_function): Likewise.
41990         * tests/test-strtod.c (main): Likewise.
41991         * tests/test-trunc1.c (main): Likewise.
41992         * tests/test-truncf1.c (main): Likewise.
41993         * tests/test-truncl.c (main): Likewise.
41995         isnanl: work around icc bug
41996         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
41998 2010-11-03  Eric Blake  <eblake@redhat.com>
42000         tests: fix compiler warnings
42001         * tests/test-getopt.h (test_getopt): Fix condition.
42002         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42003         * tests/test-pipe2.c (main): Likewise.
42004         * tests/test-quotearg-simple.c (main): Avoid icc warning.
42006         utimens: fix broken m4 test
42007         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
42009 2010-10-28  Bruno Haible  <bruno@clisp.org>
42011         posix_spawn*, getdtablesize: Relax license.
42012         * modules/posix_spawn (License): Change to LGPLv2+.
42013         * modules/posix_spawnp (License): Likewise.
42014         * modules/posix_spawn-internal (License): Likewise.
42015         * modules/posix_spawnattr_init (License): Likewise.
42016         * modules/posix_spawnattr_getflags (License): Likewise.
42017         * modules/posix_spawnattr_setflags (License): Likewise.
42018         * modules/posix_spawnattr_getpgroup (License): Likewise.
42019         * modules/posix_spawnattr_setpgroup (License): Likewise.
42020         * modules/posix_spawnattr_getschedparam (License): Likewise.
42021         * modules/posix_spawnattr_setschedparam (License): Likewise.
42022         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
42023         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
42024         * modules/posix_spawnattr_getsigdefault (License): Likewise.
42025         * modules/posix_spawnattr_setsigdefault (License): Likewise.
42026         * modules/posix_spawnattr_getsigmask (License): Likewise.
42027         * modules/posix_spawnattr_setsigmask (License): Likewise.
42028         * modules/posix_spawnattr_destroy (License): Likewise.
42029         * modules/posix_spawn_file_actions_init (License): Likewise.
42030         * modules/posix_spawn_file_actions_addclose (License): Likewise.
42031         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
42032         * modules/posix_spawn_file_actions_addopen (License): Likewise.
42033         * modules/posix_spawn_file_actions_destroy (License): Likewise.
42034         * modules/getdtablesize (License): Likewise.
42035         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
42037 2010-10-26  Bruno Haible  <bruno@clisp.org>
42039         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
42040         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
42041         Cygwin and mingw.
42042         Suggested by Eric Blake.
42044 2010-10-26  Bruno Haible  <bruno@clisp.org>
42046         stdio: Work around compilation error due to renameat() on Solaris 10.
42047         * lib/stdio.in.h: Include <unistd.h> on Solaris.
42048         * lib/renameat.c: Don't include <unistd.h> here.
42049         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
42050         Reported by Paul Eggert and Eric Blake.
42052 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42054         renameat: port to Solaris 10, which declares renameat in unistd.h
42056         * lib/renameat.c: Include unistd.h before stdio.h, because
42057         Solaris 10 declares renameat in unistd.h.  Problem encountered
42058         when building GNU tar 1.24 on Solaris 10.
42060 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
42062         fdopendir: fix C89 compilation
42063         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
42064         compilers.
42066 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
42068         inttostr: simplify by removing unnecessary redundancy
42069         * lib/anytostr.c: Don't include verify.h.
42070         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
42071         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
42072         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
42073         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
42074         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
42075         Likewise.
42076         * modules/inttostr (Depends-on): Remove 'verify'.
42078 2010-10-23  Bruno Haible  <bruno@clisp.org>
42080         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
42081         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
42082         Reported by Eric Blake.
42084 2010-10-23  Bruno Haible  <bruno@clisp.org>
42086         Tests: Fix LOCALE_JA on MirBSD 10.
42087         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
42088         to an UTF-8 locale.
42089         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
42090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42091         Reported by Eric Blake.
42093 2010-10-21  Bruno Haible  <bruno@clisp.org>
42095         nl_langinfo test: Avoid test failure on NetBSD 5.
42096         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
42097         Reported by Eric Blake.
42099 2010-10-21  Eric Blake  <eblake@redhat.com>
42101         c-stack: work around libsigsegv 2.8 bug
42102         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
42103         overflow on at least PowerPC64.
42105 2010-10-17  Bruno Haible  <bruno@clisp.org>
42107         userspec: Drop redundant file.
42108         * modules/userspec (Files): Remove lib/inttostr.h.
42110 2010-10-17  Bruno Haible  <bruno@clisp.org>
42112         nl_langinfo tests: Silence some warnings.
42113         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
42114         Reported by Jim Meyering.
42116 2010-10-17  Bruno Haible  <bruno@clisp.org>
42118         Make use of GCC's attribute __alloc_size__.
42119         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
42120         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
42121         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
42122         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
42123         __alloc_size__.
42124         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42125         Suggested by Jim Meyering.
42127 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
42129         bootstrap: anchor .gitignore entries.
42130         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
42131         with...
42132         (insert_vc_ignore): ... this new function, which prepends `/' to
42133         all .gitignore entries before passing them to
42134         insert_sorted_if_absent.
42136 2010-10-16  Bruno Haible  <bruno@clisp.org>
42138         nextafter: Fix configure check.
42139         * modules/nextafter (configure.ac): Correct expected prototype.
42141 2010-10-16  Bruno Haible  <bruno@clisp.org>
42143         termios: Update documentation.
42144         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
42146 2010-10-16  Bruno Haible  <bruno@clisp.org>
42148         tests: Make them compile with TinyCC.
42149         * tests/test-strstr.c (main): Remove parentheses around array
42150         initializer.
42152 2010-10-15  Eric Blake  <eblake@redhat.com>
42154         ignore-value: make header idempotent
42155         * lib/ignore-value.h: Add double-inclusion guards.
42156         Reported by Stefan Berger.
42158 2010-10-15  Jim Meyering  <meyering@redhat.com>
42160         GNUmakefile: handle "stable" target, not "major"
42161         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
42162         lists in maint.mk and announce-gen.  Without this, "make stable"
42163         would fail to ensure that $(VERSION) is up to date.
42165 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
42167         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
42168         & co.
42170 2010-10-14  Bruno Haible  <bruno@clisp.org>
42172         vasnprintf: Don't set errno to 0.
42173         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
42174         block that sets it to 0.
42175         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
42177 2010-10-14  Bruno Haible  <bruno@clisp.org>
42179         socketlib: Fix.
42180         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
42181         gl_PREREQ_SYS_H_WINSOCK2.
42182         Reported by Ian Beckwith <ianb@erislabs.net>.
42184 2010-10-13  Jim Meyering  <meyering@redhat.com>
42186         test-select-stdin.c: avoid warn_unused_result warnings
42187         * tests/test-select-stdin.c: Include "macros.h".
42188         ASSERT that read and fflush succeed.
42190 2010-10-13  Jim Meyering  <meyering@redhat.com>
42192         git-version-gen: do require git-VC'd files in cwd
42193         * build-aux/git-version-gen: Reject a git version string
42194         if there are no commits associated with the current directory.
42195         This avoids an unlikely false-positive (unrelated dir whose parent
42196         repository also contains a tag matching v*), as pointed out
42197         by Giuseppe Scrivano in
42198         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
42200 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
42202         argv-iter: omit nonconforming declaration
42203         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
42204         enum arg_iter_err declaration, which doesn't conform to C99.
42205         Solaris 10 cc warns about this.
42207 2010-10-13  Eric Blake  <eblake@redhat.com>
42209         termios: fix compilation on mingw
42210         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
42211         (gl_TERMIOS_H): Adjust it on mingw.
42212         * modules/termios (Makefile.am): Substitute new key.
42213         * lib/termios.in.h (includes): Make include_next conditional.
42214         * doc/posix-headers/termios.texi (termios.h): Update
42215         documentation.
42216         Reported by Daniel P. Berrange.
42218 2010-10-13  Jim Meyering  <meyering@redhat.com>
42220         git-version-gen: don't require that .git/ be in the current dir
42221         * build-aux/git-version-gen: Adjust this script so that it works
42222         when run from any working directory beneath the top-level .git/-
42223         containing directory.  Inspired by a patch from Giuseppe Scrivano,
42224         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
42226         test-select: avoid warn_unused_result warnings
42227         * tests/test-select.c: Include "macros.h".
42228         ASSERT that each call to read, write, and pipe succeeds.
42229         While not technically required, also check each "close".
42230         * modules/select-tests (Files): Add tests/macros.h.
42232         test-symlinkat: remove declaration of unused local
42233         * tests/test-symlinkat.c (main): Remove unused local, "buf".
42235         test-inttostr: avoid shadowing warnings
42236         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
42237         and use malloc rather than the stack for the same reason as
42238         mentioned in the comment justifying the other allocation.
42240 2010-10-11  Bruno Haible  <bruno@clisp.org>
42242         stdlib: Allow multiple gnulib generated replacements to coexist.
42243         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
42244         Reported by Sam Steingold <sds@gnu.org>.
42246 2010-10-11  Jim Meyering  <meyering@redhat.com>
42248         fix a documentation typo
42249         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
42251 2010-10-11  Eric Blake  <eblake@redhat.com>
42253         futimens: work around Solaris 11 bug
42254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
42255         * tests/test-futimens.h (test_futimens): Enhance, rather than
42256         weaken test.
42257         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42259 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42261         Indentation.
42262         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
42263         higher-level operators more to the left.
42265 2010-10-11  Jim Meyering  <meyering@redhat.com>
42267         test-futimens: avoid unwarranted test failure on Solaris 5.11
42268         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
42269         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
42270         because it tries to dereference the NULL name argument.
42272 2010-10-11  Bruno Haible  <bruno@clisp.org>
42274         Indentation.
42275         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
42276         indentation.
42278 2010-10-11  Jim Meyering  <meyering@redhat.com>
42280         spawn.in.h: make indentation consistent with parentheses
42281         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
42282         Make indentation consistent with parentheses.
42284 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
42286         Fix mismatched parens in previous commit
42287         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
42288         parens.
42290 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42292         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
42294         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
42295         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
42296         * lib/malloca.c: Include "verify.h".
42297         (verify1): Remove, replacing with a verify call.
42298         * lib/relocwrapper.c (verify1): Likewise.
42299         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
42300         Likewise.
42301         * modules/malloca (Depends-on): Add 'verify'.
42302         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
42303         * modules/vasnprintf (Depends-on): Add 'verify'.
42304         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42305         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42306         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42307         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42309         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42310         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42312         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
42314         Formerly the style was sometimes 2*X - 1, because the C standard
42315         was wrongly thought to disallow ?: in integral constant expressions.
42316         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
42317         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
42318         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
42319         * lib/stdint.in.h (_verify_intmax_size): Likewise.
42320         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
42321         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
42322         verify that time_t cannot be floating.
42324 2010-10-08  Eric Blake  <eblake@redhat.com>
42326         time: enforce recent POSIX ruling that time_t is integral
42327         * lib/time.in.h (__time_t_must_be_integral): Detect any
42328         problematic systems, allowing the rest of gnulib to assume POSIX.
42330 2010-10-08  Jim Meyering  <meyering@redhat.com>
42332         fdopendir: fix a bug on systems lacking openat and /proc support
42333         OpenBSD 4.7 is one such system.  The most noticeable effect was
42334         failure of any application making nontrivial use of fts: rm, du,
42335         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
42336           ./rm: traversal failed: `a': Bad file descriptor
42337         Debugging that, you see that even though FD 6 was closed just
42338         prior to the opendir call in fd_clone_opendir, its resulting
42339         dir->dd_fd was 8, rather than the expected value of 6:
42341         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
42342         93                close (fd);
42343         (gdb) n
42344         94                dir = fd_clone_opendir (dupfd);
42345         (gdb) n
42346         95                saved_errno = errno;
42347         (gdb) p dir->dd_fd
42348         $11 = 8
42350         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
42351         The problem is that on OpenBSD, fd_clone_opendir has to resort
42352         to using the old-style save/restore CWD mechanism, due to its
42353         lack of openat/proc support, and *that* would steal the FD (6)
42354         that opendir was supposed to use.
42356         The fix is to squirrel away the desired FD so that save_cwd uses a
42357         different one, and then free the dest FD right before calling opendir.
42358         That guarantees opendir will use the required file descriptor.
42360         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
42362 2010-10-08  Bruno Haible  <bruno@clisp.org>
42364         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
42365         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
42367 2010-10-08  Bruno Haible  <bruno@clisp.org>
42369         nanosleep: Make replacement POSIX compliant.
42370         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
42371         is out of range.
42372         Reported by Jim Meyering.
42374 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42376         bootstrap: add hook for altering gnulib.mk, for Bison
42377         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
42378         the Bison bootstrapping process can rewrite file names and variables
42379         in this file before later parts of 'bootstrap' use the file.
42380         Bison wants to include lib/gnulib.mk from the top-level makefile,
42381         so it needs the file names in this file to be relative to the top
42382         level, not relative to lib; plus it needs variable names to be
42383         rewritten.
42384         (slurp): Use the new function.
42386         bootstrap: reformat for readability
42387         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
42389 2010-10-08  Eric Blake  <eblake@redhat.com>
42391         docs: update cygwin progress
42392         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
42393         1.7.7.
42394         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
42395         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
42396         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
42397         * doc/posix-functions/carg.texi (carg): Likewise.
42398         * doc/posix-functions/cargf.texi (cargf): Likewise.
42399         * doc/posix-functions/casin.texi (casin): Likewise.
42400         * doc/posix-functions/casinf.texi (casinf): Likewise.
42401         * doc/posix-functions/casinh.texi (casinh): Likewise.
42402         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
42403         * doc/posix-functions/catan.texi (catan): Likewise.
42404         * doc/posix-functions/catanf.texi (catanf): Likewise.
42405         * doc/posix-functions/catanh.texi (catanh): Likewise.
42406         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
42407         * doc/posix-functions/ccos.texi (ccos): Likewise.
42408         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
42409         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
42410         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
42411         * doc/posix-functions/cexp.texi (cexp): Likewise.
42412         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
42413         * doc/posix-functions/cimag.texi (cimag): Likewise.
42414         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
42415         * doc/posix-functions/clog.texi (clog): Likewise.
42416         * doc/posix-functions/clogf.texi (clogf): Likewise.
42417         * doc/posix-functions/conj.texi (conj): Likewise.
42418         * doc/posix-functions/conjf.texi (conjf): Likewise.
42419         * doc/posix-functions/cpow.texi (cpow): Likewise.
42420         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
42421         * doc/posix-functions/cproj.texi (cproj): Likewise.
42422         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
42423         * doc/posix-functions/creal.texi (creal): Likewise.
42424         * doc/posix-functions/crealf.texi (crealf): Likewise.
42425         * doc/posix-functions/csin.texi (csin): Likewise.
42426         * doc/posix-functions/csinf.texi (csinf): Likewise.
42427         * doc/posix-functions/csinh.texi (csinh): Likewise.
42428         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
42429         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
42430         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
42431         * doc/posix-functions/ctan.texi (ctan): Likewise.
42432         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
42433         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
42434         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
42435         * doc/posix-headers/complex.texi (complex.h): Likewise.
42437 2010-10-07  Jim Meyering  <meyering@redhat.com>
42439         parse-datetime: avoid compilation failure on OpenBSD 4.7
42440         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
42441         This works around a compilation failure on OpenBSD 4.7:
42442         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
42444 2010-10-07  Eric Blake  <eblake@redhat.com>
42446         docs: update cygwin progress
42447         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
42448         1.7.6.
42449         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42450         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
42451         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
42452         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
42453         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
42454         Likewise.
42455         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
42456         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
42457         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
42458         Likewise.
42459         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
42460         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
42461         Likewise.
42462         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
42463         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
42464         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
42465         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
42466         Likewise.
42467         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
42468         Likewise.
42469         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
42471         docs: update parse-datetime history
42472         * doc/parse-datetime.texi (Authors of parse_datetime): Better
42473         documentation of this function's history and alternatives.
42475         cygwin: use more robust version check
42476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
42477         exclude an eventual cygwin 1.9.1.
42478         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
42480         (gl_FUNC_STRCASESTR): Likewise.
42481         Reported by Bruno Haible.
42483 2010-10-06  Bruno Haible  <bruno@clisp.org>
42485         string, sys_select: Avoid #including large headers unless necessary.
42486         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
42487         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
42488         OSF/1, BeOS, Haiku.
42489         Reported by Jim Meyering.
42491 2010-10-05  Eric Blake  <eblake@redhat.com>
42493         memmem, strstr, strcasestr: fix bug with long periodic needle
42494         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
42495         periodic needle having false positive.
42496         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
42497         and cygwin 1.7.7.
42498         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
42499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
42500         (gl_FUNC_STRCASESTR): Likewise.
42501         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42502         * tests/test-memmem.c (main): Expose the bug.
42503         * tests/test-strcasestr.c (main): Likewise.
42504         * tests/test-strstr.c (main): Likewise.
42505         * tests/test-c-strcasestr.c (main): Likewise.
42506         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
42507         * doc/posix-functions/strstr.texi (strstr): Likewise.
42508         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42509         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
42511 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42513         parse-datetime: do some more renaming
42514         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
42515         parse_datetime, not get_date.  Mention the renaming.
42516         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
42517         in comments.
42518         * m4/bison.m4: Likewise.
42520 2010-10-05  Eric Blake  <eblake@redhat.com>
42522         parse-datetime: better name than get_date
42523         * NEWS: Reword the deprecation notice.
42524         * modules/get_date: Rename to modules/parse-datetime.
42525         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
42526         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
42527         * lib/get_date.y: Rename to lib/parse-datetime.y.
42528         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
42529         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
42530         * doc/getdate.texi: Provide fallback wrapper.
42531         * lib/getdate.h: Move guts, and wrap...
42532         * lib/parse-datetime.h: ...new file.
42533         * lib/parse-datetime.y (get_date): Rename...
42534         (parse_datetime): ...to this.
42535         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
42536         (gl_PARSE_DATETIME): ...to this.
42537         * doc/posix-functions/getdate.texi (get_date): Provide fallback
42538         documentation.
42539         * modules/getdate (Files): Provide fallback docs and header.
42540         (Notice, Depends-on): Update references.
42541         * tests/test-parse-datetime.c: Likewise.
42542         * DEPENDENCIES: Likewise.
42543         * MODULES.html.sh (Date and time <time.h>): Likewise.
42544         * doc/parse-datetime.texi (Date input formats)
42545         (Authors of parse_datetime): Likewise.
42546         * modules/parse-datetime (Files, configure.ac, Makefile.am)
42547         (Include): Likewise.
42548         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
42549         * gnulib-tool: Likewise.
42550         * m4/bison.m4 (gl_BISON): Likewise.
42551         Suggested by Bruno Haible.
42553 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42555         more ports to Solaris tr, which needs [] around ranges
42556         * gnulib-tool: Solaris tr needs [] around ranges.
42557         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42558         * tests/test-pipe-filter-gi1.c (main): Likewise.
42559         * tests/test-pipe-filter-ii1.c (main): Likewise.
42561 2010-10-05  Eric Blake  <eblake@redhat.com>
42563         bootstrap: fix Solaris regression
42564         * build-aux/bootstrap (check_versions): Solaris tr still needs []
42565         around ranges.
42566         Reported by Pádraig Brady.
42568         bootstrap: work with pkg-config
42569         * build-aux/bootstrap (check_versions): Also transliterate - in
42570         prerequisite name.
42571         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
42572         prerequisites that were already found, to avoid confusion.
42573         Reported by Justin Clift.
42575         faccessat: remove unused wrappers
42576         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
42577         presence of these wrappers dragged in -lgen on Solaris.
42578         Reported by Clemens Brogi; fix suggested by Paul Eggert.
42580 2010-10-05  Jim Meyering  <meyering@redhat.com>
42582         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
42583         * Makefile (sc_pragma_columns): New syntax-check rule.
42585 2010-10-04  Bruno Haible  <bruno@clisp.org>
42587         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
42588         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
42589         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
42590         Reported by Bruce Korb and Eric Blake.
42592 2010-10-04  Bruno Haible  <bruno@clisp.org>
42594         threadlib: Make option --with-libpth-prefix work.
42595         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
42596         use $LIBPTH, not just -lpth.
42598 2010-10-04  Bruno Haible  <bruno@clisp.org>
42600         Avoid line length limitation from HP NonStop system header files.
42601         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
42602         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
42603         * lib/ctype.in.h: Likewise.
42604         * lib/dirent.in.h: Likewise.
42605         * lib/errno.in.h: Likewise.
42606         * lib/fcntl.in.h: Likewise.
42607         * lib/float.in.h: Likewise.
42608         * lib/getopt.in.h: Likewise.
42609         * lib/iconv.in.h: Likewise.
42610         * lib/inttypes.in.h: Likewise.
42611         * lib/langinfo.in.h: Likewise.
42612         * lib/locale.in.h: Likewise.
42613         * lib/math.in.h: Likewise.
42614         * lib/netdb.in.h: Likewise.
42615         * lib/netinet_in.in.h: Likewise.
42616         * lib/poll.in.h: Likewise.
42617         * lib/pthread.in.h: Likewise.
42618         * lib/pty.in.h: Likewise.
42619         * lib/sched.in.h: Likewise.
42620         * lib/se-selinux.in.h: Likewise.
42621         * lib/search.in.h: Likewise.
42622         * lib/signal.in.h: Likewise.
42623         * lib/spawn.in.h: Likewise.
42624         * lib/stdarg.in.h: Likewise.
42625         * lib/stddef.in.h: Likewise.
42626         * lib/stdint.in.h: Likewise.
42627         * lib/stdio.in.h: Likewise.
42628         * lib/stdlib.in.h: Likewise.
42629         * lib/string.in.h: Likewise.
42630         * lib/strings.in.h: Likewise.
42631         * lib/sys_file.in.h: Likewise.
42632         * lib/sys_ioctl.in.h: Likewise.
42633         * lib/sys_select.in.h: Likewise.
42634         * lib/sys_socket.in.h: Likewise.
42635         * lib/sys_stat.in.h: Likewise.
42636         * lib/sys_time.in.h: Likewise.
42637         * lib/sys_times.in.h: Likewise.
42638         * lib/sys_utsname.in.h: Likewise.
42639         * lib/sys_wait.in.h: Likewise.
42640         * lib/sysexits.in.h: Likewise.
42641         * lib/termios.in.h: Likewise.
42642         * lib/time.in.h: Likewise.
42643         * lib/unistd.in.h: Likewise.
42644         * lib/wchar.in.h: Likewise.
42645         * lib/wctype.in.h: Likewise.
42646         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
42647         * modules/ctype (Makefile.am): Likewise.
42648         * modules/dirent (Makefile.am): Likewise.
42649         * modules/errno (Makefile.am): Likewise.
42650         * modules/fcntl-h (Makefile.am): Likewise.
42651         * modules/float (Makefile.am): Likewise.
42652         * modules/getopt-posix (Makefile.am): Likewise.
42653         * modules/iconv-h (Makefile.am): Likewise.
42654         * modules/inttypes (Makefile.am): Likewise.
42655         * modules/langinfo (Makefile.am): Likewise.
42656         * modules/locale (Makefile.am): Likewise.
42657         * modules/math (Makefile.am): Likewise.
42658         * modules/netdb (Makefile.am): Likewise.
42659         * modules/netinet_in (Makefile.am): Likewise.
42660         * modules/poll-h (Makefile.am): Likewise.
42661         * modules/pthread (Makefile.am): Likewise.
42662         * modules/pty (Makefile.am): Likewise.
42663         * modules/sched (Makefile.am): Likewise.
42664         * modules/search (Makefile.am): Likewise.
42665         * modules/selinux-h (Makefile.am): Likewise.
42666         * modules/signal (Makefile.am): Likewise.
42667         * modules/spawn (Makefile.am): Likewise.
42668         * modules/stdarg (Makefile.am): Likewise.
42669         * modules/stddef (Makefile.am): Likewise.
42670         * modules/stdint (Makefile.am): Likewise.
42671         * modules/stdio (Makefile.am): Likewise.
42672         * modules/stdlib (Makefile.am): Likewise.
42673         * modules/string (Makefile.am): Likewise.
42674         * modules/strings (Makefile.am): Likewise.
42675         * modules/sys_file (Makefile.am): Likewise.
42676         * modules/sys_ioctl (Makefile.am): Likewise.
42677         * modules/sys_select (Makefile.am): Likewise.
42678         * modules/sys_socket (Makefile.am): Likewise.
42679         * modules/sys_stat (Makefile.am): Likewise.
42680         * modules/sys_time (Makefile.am): Likewise.
42681         * modules/sys_times (Makefile.am): Likewise.
42682         * modules/sys_utsname (Makefile.am): Likewise.
42683         * modules/sys_wait (Makefile.am): Likewise.
42684         * modules/sysexits (Makefile.am): Likewise.
42685         * modules/termios (Makefile.am): Likewise.
42686         * modules/time (Makefile.am): Likewise.
42687         * modules/unistd (Makefile.am): Likewise.
42688         * modules/wchar (Makefile.am): Likewise.
42689         * modules/wctype (Makefile.am): Likewise.
42691 2010-10-04  Bruno Haible  <bruno@clisp.org>
42693         read-file tests: Avoid a test failure on NonStop Kernel.
42694         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
42695         a regular file.
42696         Reported by Joachim Schmitz <schmitz@hp.com>.
42698 2010-10-03  Bruno Haible  <bruno@clisp.org>
42700         gnulib-tool: Fixes for --create-testdir with --libtool.
42701         * gnulib-tool (func_get_automake_snippet): Don't augment
42702         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
42703         an executable.
42704         (func_create_testdir): Handle module 'alloca' like func_import.
42705         Reported by Bruce Korb <bruce.korb@gmail.com>.
42707 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
42709         Avoid some lines longer than 80 characters.
42710         * lib/stdint.in.h: Break long comment lines.
42711         * lib/math.in.h: Likewise.
42712         (_GL_NUM_UINT_WORDS): New macro, for readability.
42713         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
42714         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
42715         * lib/stdlib.in.h: Likewise.
42716         * lib/spawn.in.h: Likewise.
42717         * lib/sys_socket.in.h: Update an URL.
42718         * lib/sys_stat.in.h: Break long line.
42720 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
42722         Improve pmccabe2html.
42723         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
42724         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
42725         when the sources change. Remove the line in the HTML about "Used
42726         ranges" (which implied that there might be other unused ranges),
42727         rename "Resume" to "Summary" (easier to understand for more users).
42728         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
42729         styles, and some unnecessary blank lines.
42731 2010-10-03  Bruno Haible  <bruno@clisp.org>
42732             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
42734         acl: Add support for ACLs on NonStop Kernel.
42735         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
42736         Check whether the function aclsort() exists.
42737         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
42738         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
42739         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42740         (acl_nontrivial [HAVE_ACLSORT]: New function.
42741         (file_has_acl): Implement for NonStop Kernel.
42742         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42743         (qset_acl): Implement for NonStop Kernel.
42744         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
42745         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42746         (main): Implement for NonStop Kernel.
42747         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
42748         Kernel. Handle this flavor.
42749         * tests/test-set-mode-acl.sh: Likewise.
42750         * tests/test-copy-acl.sh: Likewise.
42751         * tests/test-copy-file.sh: Likewise.
42753 2010-10-03  Bruno Haible  <bruno@clisp.org>
42755         Info about ACLs on NonStop Kernel.
42756         * doc/acl-resources.txt: Add info about NonStop Kernel.
42757         References by Joachim Schmitz <schmitz@hp.com>.
42759 2010-10-02  Bruno Haible  <bruno@clisp.org>
42761         Define missing EDQUOT on NonStop Kernel.
42762         * lib/errno.in.h (EDQUOT): Assign a value if missing.
42763         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
42764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
42765         missing.
42766         * doc/posix-headers/errno.texi: Mention the NSK bug.
42767         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
42768         Reported by Joachim Schmitz <schmitz@hp.com>.
42770 2010-10-02  Bruno Haible  <bruno@clisp.org>
42772         Update doc for POSIX:2008.
42773         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
42774         Update URL of POSIX specification.
42776 2010-10-02  Bruno Haible  <bruno@clisp.org>
42778         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
42779         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
42780         from gnulib, not from Automake.
42782 2010-10-02  Bruno Haible  <bruno@clisp.org>
42784         New module 'system-posix'.
42785         * modules/system-posix: New file.
42786         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
42787         module is present.
42788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42789         GNULIB_SYSTEM_POSIX.
42790         * modules/stdlib (Depends-on): Remove sys_wait.
42791         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
42792         * doc/posix-functions/system.texi: Mention the new module.
42793         * doc/posix-headers/stdlib.texi: Likewise.
42794         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
42795         define test_sys_wait_macros to a no-op.
42796         Reported by Sam Steingold <sds@gnu.org>.
42798 2010-09-30  Bruno Haible  <bruno@clisp.org>
42800         More renaming from 'getdate' to 'get_date'.
42801         * doc/get_date.texi: Renamed from doc/getdate.texi.
42802         * modules/get_date (Files): Update.
42803         * MODULES.html.sh (Date and time <time.h>): Update.
42804         * DEPENDENCIES: Update.
42805         * gnulib-tool: Update comment.
42806         * m4/bison.m4 (gl_BISON): Likewise.
42807         * m4/get_date.m4 (gl_GET_DATE): Likewise.
42809 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
42811         bootstrap: support ACLOCAL_FLAGS during aclocal
42812         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
42813         can add additional -I dir for third-party .m4 files.
42815 2010-09-30  Eric Blake  <eblake@redhat.com>
42817         bootstrap: use glibtoolize on MacOS
42818         * build-aux/bootstrap (check_versions): Convert libtool into
42819         libtoolize.
42820         (tool search): Move libtool check earlier, and look for
42821         glibtoolize for MacOS.
42822         (gnulib_tool_options): Auto-add --libtool when appropriate.
42823         Reported by Justin Clift.
42825         poll: fix typo that broke test on MacOS
42826         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
42827         Reported by Justin Clift.
42829         getdate: rename to get_date
42830         Note: getdate.h is not renamed, to minimize client impact.
42831         * modules/getdate: Mark obsolete.  Move old contents...
42832         * modules/get_date: ...to new module name.
42833         * modules/getdate-tests: Move...
42834         * modules/get_date-tests: ...here.
42835         * m4/getdate.m4: Move...
42836         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
42837         * lib/getdate.y: Move...
42838         * lib/get_date.y: ...here.
42839         * tests/test-getdate.c: Move...
42840         * tests/test-get_date.c: ...here.
42841         * doc/posix-functions/getdate.texi (getdate): Update name.
42842         * NEWS: Mention the change.
42844 2010-09-29  Bruno Haible  <bruno@clisp.org>
42846         Separate the module 'waitpid' from the module 'sys_wait'.
42847         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
42848         present.
42849         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
42850         gl_MODULE_INDICATOR_FOR_TESTS.
42851         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
42852         * modules/sys_wait (Depends-on): Remove waitpid.
42853         (Makefile.am): Substitute GNULIB_WAITPID.
42854         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
42855         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
42856         signature only if the 'waitpid' module is present.
42857         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
42858         * NEWS: Mention the change.
42859         * modules/grantpt (Depends-on): Add waitpid.
42860         * modules/wait-process (Depends-on): Likewise.
42862 2010-09-29  Bruno Haible  <bruno@clisp.org>
42864         More tests for module 'sys_wait'.
42865         * modules/sys_wait-c++-tests: New file.
42866         * tests/test-sys_wait-c++.cc: New file.
42867         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
42868         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
42870 2010-09-29  Bruno Haible  <bruno@clisp.org>
42872         New module 'waitpid'.
42873         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
42874         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
42875         Don't include <process.h>.
42876         (waitpid): Declare only, using modern idiom.
42877         * m4/waitpid.m4: New file.
42878         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
42879         * modules/waitpid: New file.
42880         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
42881         (Makefile.am): Update.
42882         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
42884 2010-09-28  Bruno Haible  <bruno@clisp.org>
42886         poll: Assume ANSI C.
42887         * lib/poll.c (poll): Use an ANSI C declaration.
42889 2010-09-28  Bruno Haible  <bruno@clisp.org>
42891         poll-h: Create poll.h on all platforms.
42892         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
42893         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
42894         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
42895         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
42896         (gl_REPLACE_POLL_H): Don't set POLL_H.
42897         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
42898         * modules/poll-h (Depends-on): Add include_next.
42899         (Makefile.am): Create poll.h unconditionally. Substitute also
42900         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
42902 2010-09-28  Bruno Haible  <bruno@clisp.org>
42904         Tests for module 'poll-h'.
42905         * modules/poll-h-c++-tests: New file.
42906         * tests/test-poll-h-c++.cc: New file.
42908         Tests for module 'poll-h'.
42909         * modules/poll-h-tests: New file.
42910         * tests/test-poll-h.c: New file.
42912 2010-09-28  Bruno Haible  <bruno@clisp.org>
42914         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
42915         * modules/poll-h (Depends-on): Add 'extensions'.
42917 2010-09-28  Bruno Haible  <bruno@clisp.org>
42919         New module 'poll-h'.
42920         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
42921         (poll): Use modern idiom.
42922         * modules/poll-h: New file.
42923         * modules/poll (Files): Remove lib/poll.in.h.
42924         (Depends-on): Add poll-h.
42925         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
42926         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
42927         * m4/poll_h.m4: New file.
42928         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
42929         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
42930         and invoke gl_REPLACE_POLL_H.
42931         * lib/poll.c: Use common idiom.
42932         * tests/test-poll.c: Likewise.
42933         * doc/posix-headers/poll.texi: Mention the poll-h module.
42934         Suggested by Eric Blake.
42936 2010-09-26  Bruno Haible  <bruno@clisp.org>
42938         sys_wait: Implement WSTOPSIG.
42939         * lib/sys_wait.in.h (WSTOPSIG): New macro.
42940         Reported by Simon Josefsson.
42942 2010-09-26  Simon Josefsson  <simon@josefsson.org>
42944         stdlib, sys_wait: Avoid compilation error on mingw.
42945         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
42947 2010-09-26  Bruno Haible  <bruno@clisp.org>
42949         stdlib tests: Avoid code duplication.
42950         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
42951         * modules/sys_wait-tests (Files): Likewise.
42952         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
42953         * tests/test-stdlib.c: Include test-sys_wait.h.
42954         (main): Invoke test_sys_wait_macros.
42955         * tests/test-sys_wait.c: Include test-sys_wait.h.
42956         (main): Invoke test_sys_wait_macros.
42958 2010-09-25  Simon Josefsson  <simon@josefsson.org>
42960         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
42961         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
42962         sure Windows sockets are working before calling getaddrinfo.
42963         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
42964         * doc/gnulib.texi (Windows sockets): Fix typo.
42966 2010-09-25  Bruno Haible  <bruno@clisp.org>
42968         Tests for module 'regex-quote'.
42969         * modules/regex-quote-tests: New file.
42970         * tests/test-regex-quote.c: New file.
42972         New module 'regex-quote'.
42973         * lib/regex-quote.h: New file.
42974         * lib/regex-quote.c: New file.
42975         * modules/regex-quote: New file.
42976         Suggested by Reuben Thomas <rrt@sc3d.org>.
42978 2010-09-24  Bruno Haible  <bruno@clisp.org>
42980         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
42981         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
42983 2010-09-23  Bruno Haible  <bruno@clisp.org>
42985         setenv: Relax license.
42986         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
42987         Blake.
42988         Requested by Eric Blake.
42990 2010-09-22  Bruno Haible  <bruno@clisp.org>
42992         termios: Relax license.
42993         * modules/termios (License): Change to LGPLv2+.
42994         Requested by Eric Blake.
42996 2010-09-22  Bruno Haible  <bruno@clisp.org>
42998         threadlib: Allow the package to change the default to 'no'.
42999         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
43000         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
43001         Reported by Paul Eggert.
43003 2010-09-22  Pádraig Brady  <P@draigbrady.com>
43004             Bruno Haible  <bruno@clisp.org>
43006         Fix endless loop in mbmemcasecoll.
43007         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
43008         byte.
43009         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
43011 2010-09-22  Bruno Haible  <bruno@clisp.org>
43013         Tests for module 'memcoll'.
43014         * modules/memcoll-tests: New file.
43015         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
43017         memcoll, xmemcoll: Clarify size vs. length.
43018         * modules/memcoll.c (memcoll0): Clarify specification.
43019         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
43020         passed to collate_error.
43022 2010-09-22  Bruno Haible  <bruno@clisp.org>
43024         Tests for module 'memcasecmp'.
43025         * modules/memcasecmp-tests: New file.
43026         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
43028 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43030         * lib/pthread.in.h: Add split double-inclusion guard, and include
43031         system <pthread.h> if there is one.  Use @@-style as in other
43032         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
43033         pthread.h doesn't.
43034         (pthread_mutexattr_destroy, pthread_mutexattr_init):
43035         (pthread_mutexattr_settype, pthread_mutex_trylock):
43036         New static inline functions, if there's no system <pthread.h>.
43037         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
43038         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
43039         Approximate with mutexes if the system lacks spinlocks, as in
43040         MacOS.
43041         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
43042         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
43043         @@-style.  Check for spinlocks separately.
43044         (gl_PTHREAD_DEFAULTS): New macro.
43045         * modules/pthread: Redo to use a more typical style for in.h files.
43047 2010-09-21  Eric Blake  <eblake@redhat.com>
43049         net_if: enhance tests
43050         * tests/test-net_if.c (main): Move signature checks earlier.
43051         Print failures to stderr.
43052         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
43053         Document the bug that we do not yet fix.
43055 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
43057         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
43058         about gnulib, not GSS.
43060 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
43062         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
43063         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
43064         for Emacs.
43065         * build-aux/pmccabe2html: Make Makefile.am example code more
43066         cut-and-paste friendly.
43068 2010-09-21  Simon Josefsson  <simon@josefsson.org>
43070         * tests/test-net_if.c: New file.
43071         * modules/net_if-tests: New file.
43073 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43075         pthread: add pthread_spin_destroy
43076         * lib/pthread.in.h (pthread_spin_destroy): New function.
43078 2010-09-19  Bruno Haible  <bruno@clisp.org>
43080         gnulib-tool: Fix --help output.
43081         * gnulib-tool (func_usage): Fix help message.
43082         Reported by Reuben Thomas <rrt@sc3d.org>.
43084 2010-09-18  Jim Meyering  <meyering@redhat.com>
43086         maint.mk: avoid unexpanded \n in two diagnostics
43087         * top/maint.mk (sc_prohibit_always_true_header_tests):
43088         Don't use a literal \n in a halt=... assignment.  It would not be
43089         expanded, and the two \n bytes would appear in the diagnostic output
43090         rather than the desired newline.  Use halt=$$(printf ... instead.
43091         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
43093 2010-09-18  Bruno Haible  <bruno@clisp.org>
43095         netinet_in: Doc tweak.
43096         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
43097         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43099 2010-09-18  Jim Meyering  <meyering@redhat.com>
43101         init.sh: correct an outdated comment
43102         * tests/init.sh (create_exe_shims_):  s/function/alias/
43104         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
43105         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
43106         a file named "*.exe" is removed between the glob expansion and the
43107         processing of that oddly named file.
43109 2010-09-17  Eric Blake  <eblake@redhat.com>
43111         mirbsd: add some more support
43112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
43113         in BSD family.
43114         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
43115         devices as OpenBSD.
43116         * m4/host-os.m4 (mirbsd): Add MirBSD.
43118         tests: fix unportable assumption on sys/wait.h
43119         * tests/test-sys_wait.c (main): Relax test.
43120         * tests/test-stdlib.c (main): Likewise.
43122         init.sh: accommodate directory with no .exes
43123         * tests/init.sh: Accomodate directory containing only scripts.
43125         tests: avoid compiler warning
43126         * tests/test-stdlib.c (main): Use the variable.
43128         fdutimens, fdutimensat: update signature, again
43129         * lib/utimens.h (gl_futimens): Delete, and move signature...
43130         (fdutimens): ...here.
43131         (fdutimensat): Rearrange signature.
43132         (lutimensat): Rename variable for clarity.
43133         * lib/fdutimensat.c (fdutimensat): Update signature.
43134         * lib/utimens.c (fdutimens): Likewise.
43135         (gl_futimens): Delete.
43136         (utimens, lutimens): Update callers.
43137         * lib/futimens.c (futimens): Likewise.
43138         * tests/test-fdutimensat.c: Likewise.
43139         * tests/test-utimens.c: Likewise.
43140         * tests/test-futimens.h: Update comment.
43141         * NEWS: Mention this.
43142         Suggested by Paul Eggert.
43144 2010-09-17  Bruno Haible  <bruno@clisp.org>
43146         Take over the maintenance of some older macros from Autoconf.
43147         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
43148         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
43149         GNU Autoconf.
43150         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
43151         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
43153 2010-09-17  Eric Blake  <eblake@redhat.com>
43155         fdutimensat: drop atflag validation
43156         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
43157         with valid fd, to close a race scenario where futimens is
43158         unsupported and FILE was replaced by a symlink.
43159         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
43160         accordingly.
43161         Suggested by Paul Eggert.
43163 2010-09-16  Bruno Haible  <bruno@clisp.org>
43165         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
43166         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
43168 2010-09-16  Bruno Haible  <bruno@clisp.org>
43170         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
43171         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
43172         login_tty exists.
43173         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43175 2010-09-16  Bruno Haible  <bruno@clisp.org>
43177         login_tty: Make the replacement code work on BSD systems.
43178         * lib/login_tty.c: Include <sys/ioctl.h>.
43179         (login_tty): Use ioctl TIOCSCTTY when available.
43180         * modules/login_tty (Depends-on): Add sys_ioctl.
43181         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43183 2010-09-16  Bruno Haible  <bruno@clisp.org>
43185         login_tty: Stricter unit test.
43186         * modules/login_tty-tests (Depends-on): Add tcgetsid.
43187         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
43188         and tcgetsid() after login_tty.
43189         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43191 2010-09-16  Bruno Haible  <bruno@clisp.org>
43193         New module 'tcgetsid'.
43194         * lib/tcgetsid.c: New file.
43195         * m4/tcgetsid.m4: New file.
43196         * modules/tcgetsid: New file.
43197         * modules/termios (Depends-on): Add c++defs, warn-on-use.
43198         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
43199         GNULIB_TCGETSID, HAVE_TCGETSID.
43200         * lib/termios.in.h: Include <sys/types.h>.
43201         (tcgetsid): New declaration.
43202         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
43203         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
43204         * doc/posix-functions/tcgetsid.texi: Mention the new module.
43205         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
43207 2010-09-16  Bruno Haible  <bruno@clisp.org>
43209         Tests for module 'termios'.
43210         * modules/termios-c++-tests: New file.
43211         * modules/termios-tests: New file.
43212         * tests/test-termios-c++.cc: New file.
43213         * tests/test-termios.c: New file.
43215         New module 'termios'.
43216         * modules/termios: New file.
43217         * lib/termios.in.h: New file.
43218         * m4/termios_h.m4: New file.
43219         * doc/posix-headers/termios.texi: Mention the new module.
43221 2010-09-16  Eric Blake  <eblake@redhat.com>
43223         fdutimensat: add an atflag parameter
43224         * lib/fdutimensat.c (fdutimensat): Add new parameter.
43225         * lib/utimens.h (fdutimensat): Update prototype.
43226         * tests/test-fdutimensat.c: Adjust test to match.
43227         * NEWS: Document the change.
43228         Suggested by Paul Eggert.
43230 2010-09-16  Bruno Haible  <bruno@clisp.org>
43232         Fix typos in comments.
43233         * lib/striconveh.h: Fix typo in comment.
43234         * lib/login_tty.c (login_tty): Likewise.
43236 2010-09-15  Bruno Haible  <bruno@clisp.org>
43238         stdlib: clarify MirBSD WEXITSTATUS bug
43239         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
43240         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43242 2010-09-15  Eric Blake  <eblake@redhat.com>
43244         stdlib: work around MirBSD WEXITSTATUS bug
43245         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
43246         * modules/stdlib (Depends-on): Add sys_wait.
43247         * tests/test-sys_wait.c (main): Enhance test.
43248         * tests/test-stdlib.c (main): Likewise.
43249         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
43251         docs: mention MacOS issue with WEXITSTATUS(constant)
43252         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
43253         issue.
43254         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43256         strnlen: add tests
43257         * modules/strnlen-tests: New file.
43258         * tests/test-strnlen.c: Likewise.
43260 2010-09-14  Bruno Haible  <bruno@clisp.org>
43262         unistr/base: Avoid link errors when module 'libunistring' is also used.
43263         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
43264         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
43265         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
43266         Declare also when HAVE_LIBUNISTRING is set.
43267         Reported by Pádraig Brady <P@draigbrady.com>.
43269 2010-09-14  Eric Blake  <eblake@redhat.com>
43271         test-rawmemchr: make more robust
43272         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
43273         (Depends-on, configure.ac): Add needed prerequisites to use it.
43274         * modules/memchr-tests (Files, Depends-on, configure.ac):
43275         Likewise, to avoid implicit reliance on memchr module prereqs.
43276         * tests/test-memchr.c (main): Ensure proper masking.
43277         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
43278         reads.
43280         memchr: detect glibc Alpha bug
43281         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
43282         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
43283         Alpha.
43284         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
43285         * tests/test-memchr.c (main): Enhance test.
43286         Reported by Nelson H. F. Beebe.
43288 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43290         fts, getcwd, glob: audit for dirfd returning -1
43291         * lib/fts.c (opendir): Remove #define; no longer used.
43292         (opendirat): New arg PDIR_FD.  All callers changed.
43293         (fts_build, _opendir2): Use new opendirat to avoid the need for
43294         dirfd, or for checking whether dirfd returns a negative value.
43295         Don't use opendir; always use openat followed by fdopendir.
43296         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
43297         it.
43298         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
43299         returns -1 here.
43300         * modules/fts (Depends-on): Remove dirfd.
43301         * modules/getcwd (Depends-on): Likewise.
43303 2010-09-13  Eric Blake  <eblake@redhat.com>
43305         float: fix broken MirBSD header
43306         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
43307         * doc/posix-headers/float.texi (float.h): Document it.
43309 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43311         fts: use O_NOFOLLOW to avoid race condition when opening a directory
43312         * lib/fts.c (opendirat): New arg extra_flags.
43313         (__opendir2): Use it to avoid following symlinks when opening
43314         a directory, if symlinks are not supposed to be followed.  See
43315         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
43317         fdopendir: preserve argument fd before returning
43318         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
43319         (fdopendir_with_dup, fd_clone_opendir): New static functions.
43320         (fdopendir): Use them, arranging for FD to be open to the same
43321         directory that it was when it started.  (It might be temporarily
43322         closed while fdopendir is running, so this not thread- or
43323         signal-safe.)  Be careful to do the right thing even when file
43324         descriptors are scarce and dup fails with errno == EMFILE.  See
43325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
43327 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
43329         regex: Pass the system regex if its only problem is 32-bit regoff_t.
43330         * NEWS: Document change.
43331         * m4/regex.m4: Disable test for regoff_t size.
43333 2010-09-13  Jim Meyering  <meyering@redhat.com>
43335         fts: don't operate on an invalid file descriptor after failed dup
43336         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
43337         negative file descriptor.
43339 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
43341         savedir: add streamsavedir, deprecate fdsavedir
43342         * NEWS: Mention deprecation of fdsavedir.
43343         * lib/savedir.c (streamsavedir): New extern function, whose name
43344         ends in "savedir" to be consistent with the others.  This differs
43345         from savedirstream in that it doesn't close its argument.  The
43346         next version of GNU tar will use this instead of fdsavedir, to
43347         avoid some race conditions and conserve file descriptors.
43348         (savedirstream): Reimplement as a wrapper around streamsavedir.
43349         (fdsavedir): Add a comment deprecating this function.  As far as
43350         I know, only GNU tar used it, and GNU tar doesn't need it any more.
43351         * lib/savedir.h (streamsavedir): New decl.
43352         (fdsavedir): Add a comment deprecating this.
43354 2010-09-10  Bruno Haible  <bruno@clisp.org>
43356         langinfo: Fix last commit.
43357         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
43358         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
43359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43361 2010-09-10  Bruno Haible  <bruno@clisp.org>
43363         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
43364         * lib/progreloc.c (O_EXEC): Define fallback.
43366 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
43368         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
43369         * NEWS: Document recent changes to fcntl-h.
43370         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
43371         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
43372         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
43373         Similarly for O_SEARCH; this last was already true, but not documented.
43374         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
43375         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
43376         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
43377         Likewise.
43378         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
43379         is zero, not whether it is defined.
43380         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
43381         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
43382         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
43384 2010-09-10  Bruno Haible  <bruno@clisp.org>
43386         langinfo, nl_langinfo: Fix for IRIX 5.3.
43387         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
43388         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
43389         HAVE_LANGINFO_YESEXPR.
43390         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
43391         HAVE_LANGINFO_YESEXPR.
43392         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
43393         HAVE_LANGINFO_T_FMT_AMPM is 0.
43394         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
43395         HAVE_LANGINFO_YESEXPR is 0.
43396         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
43397         NOEXPR.
43398         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
43399         * doc/posix-functions/nl_langinfo.texi: Likewise.
43400         Reported by Eric Blake.
43402 2010-09-10  Bruno Haible  <bruno@clisp.org>
43404         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
43405         * doc/glibc-functions/login_tty.texi: Mention the include file problem
43406         on FreeBSD 8.0 and OpenBSD 4.6.
43407         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
43408         * m4/pty_h.m4 (gl_PTY_H): Likewise.
43409         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
43410         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
43411         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
43412         ac_includes_default.
43413         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43415 2010-09-09  Eric Blake  <eblake@redhat.com>
43417         strsignal: work around NetBSD bug
43418         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
43419         * lib/string.in.h (includes): Likewise.
43420         * doc/posix-functions/strsignal.texi (strsignal): Document the
43421         bug.
43422         Reported by Nelson H. F. Beebe.
43424         gnulib-tool: work with NetBSD /bin/sh
43425         * gnulib-tool (func_cache_var, func_cache_lookup_module)
43426         (func_get_description, func_get_comment, func_get_status)
43427         (func_get_notice, func_get_applicability, func_get_filelist)
43428         (func_get_dependencies, func_get_autoconf_early_snippet)
43429         (func_get_autoconf_snippet, func_get_automake_snippet)
43430         (func_get_include_directive, func_get_link_directive)
43431         (func_get_license, func_get_maintainer, func_import): Avoid
43432         shell syntax errors from parsing syntax extensions.
43434 2010-09-09  Bruno Haible  <bruno@clisp.org>
43436         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
43437         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
43438         a reliable way to determine whether the 'alias' command works.
43440 2010-09-08  Jim Meyering  <meyering@redhat.com>
43442         init.sh: penalize a set-x-impaired shell; don't disqualify it
43443         * tests/init.sh: Too many shells corrupt application stderr when
43444         you set -x, so we can't afford to disqualify them, since at least
43445         on Irix-6.5, that would disqualify all bourne shells.
43446         Instead, use a two-pass approach.
43447         On the first pass, try to find a shell that meets the stricter
43448         condition that set -x does not corrupt stderr.
43449         If no shell meets the stricter condition, retest each candidate
43450         shell, but without that extra condition.  Finally, when
43451         VERBOSE=yes is requested and set -x might cause trouble, simply
43452         issue a warning and refrain from enabling debug output.
43454 2010-09-08  Eric Blake  <eblake@redhat.com>
43456         unsetenv: fix OpenBSD bug
43457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
43458         * doc/posix-functions/unsetenv.texi (unsetenv): Update
43459         documentation.
43460         Reported by Jim Meyering.
43462         strtod: work around IRIX 6.5 bug
43463         * lib/strtod.c (strtod): Reparse number on shorter string if
43464         exponent parse was invalid.
43465         * tests/test-strtod.c (main): Add check for "0x1p 2".
43466         Reported by Tom G. Christensen.
43468         getopt: optimize previous patch
43469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
43470         empty variable.  Speed up awk script.
43471         Reported by Paolo Bonzini.
43473 2010-09-08  Jim Meyering  <meyering@redhat.com>
43475         test.sh: disqualify shells for which set -x corrupts stderr
43476         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
43477         and OpenBSD 4.7.  They make it so with "set -x", environment settings
43478         appear in stderr output.  For example, this command:
43479             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
43480         prints "P=1" on those two systems:
43482 2010-09-08  Bruno Haible  <bruno@clisp.org>
43484         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
43485         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
43486         commands, because some shells ignore redirections when there is an
43487         error in the command lookup.
43488         Reported by Eric Blake.
43490 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
43492         * lib/regex.h: Fix a mention of `regex_compile' (should be
43493         `re_compile_pattern').
43494         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
43495         (re_set_registers): Correct name of parameter in comment.
43497         * doc/regex.texi: Add documentation for missing syntax flags.
43498         Remove commented-out documentation of defunct syntax option
43499         RE_NO_EMPTY_ALTS.
43500         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
43501         Add documentation of re_set_registers.
43502         Document trick to re-use a pattern buffer by setting fastmap manually.
43503         Update documentation of struct re_pattern_buffer per public members.
43504         Uncomment documentation of equivalence class operators and
43505         collating symbol operators, since they are now implemented,
43506         Explain leftmost-longest matching in relation to alternatives.
43507         Tidy documentation of substring matching.
43508         Remove POSIX documentation, which is done better in
43509         glibc, and refer the reader there. Keep BSD API documentation, as
43510         that is not readily available elsewhere.
43512 2010-09-07  Eric Blake  <eblake@redhat.com>
43514         getopt: handle POSIXLY_CORRECT set but not exported
43515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
43516         export state of POSIXLY_CORRECT, due to bash set -o posix.
43517         Reported by Dustin J. Mitchell.
43519 2010-09-05  Bruno Haible  <bruno@clisp.org>
43521         gnulib-tool: Highlight the changed options.
43522         * gnulib-tool (func_usage): Display the --import, --add-import,
43523         --remove-import explanations in bold font.
43525 2010-09-06  Karl Berry  <karl@gnu.org>
43527         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
43529 2010-09-05  Bruno Haible  <bruno@clisp.org>
43531         uniwidth/width: Update comment.
43532         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
43533         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
43535 2010-09-05  Bruno Haible  <bruno@clisp.org>
43537         isinf, isnan: Relax license.
43538         * modules/isinf (License): Change from GPL to LGPL, with consent from
43539         Ben Pfaff.
43540         * modules/isnan (License): Likewise.
43541         Requested by Ludovic Courtès.
43543 2010-09-04  Bruno Haible  <bruno@clisp.org>
43545         gnulib-tool: Help migration from --import to --add-import or --update.
43546         * gnulib-tool: Emit a verbose error message when --import is used
43547         without any module name.
43549 2010-09-04  Bruno Haible  <bruno@clisp.org>
43551         Update doc about gnulib-tool.
43552         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
43553         'gnulib-tool --update' in more detail.
43554         Reported by Eric Blake.
43556 2010-09-04  Bruno Haible  <bruno@clisp.org>
43558         gnulib-tool: Change --import. New options --add/remove-import.
43559         * gnulib-tool: New options --add-import, --remove-import.
43560         (func_usage): Document them.
43561         (have_associative): Define always.
43562         (func_import): In import mode, don't merge the specified settings with
43563         the cached settings. Implement remove-import mode.
43564         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
43565         Explain when to use them versus --import.
43566         (Simple update): Use --add-import instead of --import.
43567         * NEWS: Mention the change.
43569 2010-09-04  Bruno Haible  <bruno@clisp.org>
43571         * doc/gnulib-tool.texi (Initial import): Update paragraph about
43572         separate gnulib.mk.
43574 2010-09-04  Bruno Haible  <bruno@clisp.org>
43576         gnulib-tool: Don't talk about CVS any more.
43577         * gnulib-tool (func_usage, func_import): Write "version control"
43578         instead of CVS.
43580 2010-09-04  Jim Meyering  <meyering@redhat.com>
43582         maint.mk: avoid obscure sc_copyright_check failure in coreutils
43583         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
43584         false positives (whose names may be ill-chosen) when searching
43585         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
43586         would cause a false-positive.
43588         avoid coreutils "make distcheck" failure
43589         Coreutils tests with an absolute build directory name that contains
43590         a space.  Not quoting this directory name caused a failure.
43591         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
43592         * tests/test-vc-list-files-cvs.sh: Likewise.
43594 2010-09-04  Bruno Haible  <bruno@clisp.org>
43596         gnulib-tool: Avoid error when run in a package without Makefile.am.
43597         * gnulib-tool: When collecting the m4dirs in a package that does not
43598         have a Makefile.am, eliminate those directories that contain no
43599         gnulib-cache.m4. Fix expression that counts these directories.
43601 2010-09-04  Bruno Haible  <bruno@clisp.org>
43603         update-copyright test: Improve output when perl is missing or too old.
43604         * tests/test-update-copyright.sh: Move test of Perl version down after
43605         the test whether Perl exists. Provide an explanation relating Perl's
43606         error message to Automake's SKIP: message.
43608 2010-09-04  Bruno Haible  <bruno@clisp.org>
43610         Don't augment PATH in TESTS_ENVIRONMENT.
43611         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
43612         set abs_aux_dir instead of augmenting PATH.
43613         * modules/vc-list-files-tests (Makefile.am): Likewise.
43614         * tests/test-update-copyright.sh: Augment PATH here.
43615         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
43616         path_prepend_.
43617         * tests/test-vc-list-files-git.sh: Likewise.
43619 2010-09-04  Jim Meyering  <meyering@redhat.com>
43621         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
43622         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
43624 2010-09-04  Bruno Haible  <bruno@clisp.org>
43626         strdup: Fix compilation error in C++ mode.
43627         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
43628         the macro.
43630 2010-09-04  Bruno Haible  <bruno@clisp.org>
43632         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
43633         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
43634         macro into a function.
43635         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43637 2010-09-04  Bruno Haible  <bruno@clisp.org>
43639         Set PATH_SEPARATOR the same way autoconf does.
43640         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
43641         the value of PATH_SEPARATOR the same way autoconf-generated configure
43642         scripts do.
43643         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
43644         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43646 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43648         Set PATH_SEPARATOR the same way autoconf does.
43649         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
43650         the same way autoconf-generated configure scripts do.
43651         * posix-modules: Likewise.
43653 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
43655         hash: fix safe_hasher const typo
43656         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
43657         const; otherwise, there is a type error later.
43659 2010-09-02  Jim Meyering  <meyering@redhat.com>
43661         test-update-copyright.sh: require perl 5.8.0
43662         * tests/test-update-copyright.sh: Require 5.8.0,
43663         which Tom G. Christensen has confirmed is adequate,
43664         while 5.6.1 is not.
43666 2010-09-02  Eric Blake  <eblake@redhat.com>
43668         tests: init.sh improvements for re-exec'ing with zsh
43669         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
43670         -vx through shell re-exec.
43671         Reported by Tom G. Christensen.
43673         wctype: fix typo in previous commit
43674         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
43675         Reported by Ludovic Courtès.
43677 2010-09-02  Jim Meyering  <meyering@redhat.com>
43679         test-update-copyright.sh: skip test if Perl is too old
43680         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
43681         Reported by Tom G. Christensen.
43683 2010-09-02  Bruno Haible  <bruno@clisp.org>
43685         wctype: Avoid compilation error on IRIX 6.5.30.
43686         * lib/wctype.in.h (iswblank): Declare with a replacement if
43687         REPLACE_ISWBLANK is set.
43688         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
43689         declared. Set REPLACE_ISWBLANK.
43690         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
43691         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
43692         * doc/posix-headers/wctype.texi: Likewise.
43693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43695 2010-09-01  Bruno Haible  <bruno@clisp.org>
43697         New module 'socketlib'.
43698         * modules/socketlib: New file.
43699         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
43700         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
43701         * modules/sockets (Depends-on): Add socketlib.
43702         Suggested by Sam Steingold <sds@gnu.org>.
43704 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43706         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
43708         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
43709         when one needs search access to a directory but not read access.
43710         On systems where it is available, it works in some cases where
43711         O_RDONLY does not, namely on directories that are searchable but
43712         not readable, and which need only to be searchable.  If O_SEARCH
43713         is not available, fall back to the traditional method of using
43714         O_RDONLY.
43716         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
43717         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
43718         when opening a directory that needs only to be searchable.
43719         * lib/chdir-safer.c (chdir_no_follow): Likewise.
43720         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
43721         * lib/openat-proc.c (openat_proc_name): Likewise.
43722         * lib/openat.c (openat_needs_fchdir): Likewise.
43723         * lib/save-cwd.c (save_cwd): Likewise.
43724         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
43726 2010-08-28  Bruno Haible  <bruno@clisp.org>
43728         New module 'host-cpu-c-abi'.
43729         * modules/host-cpu-c-abi: New file.
43730         * m4/host-cpu-c-abi.m4: New file, based on part of
43731         clisp/src/m4/general.m4.
43732         Requested by Sam Steingold <sds@gnu.org>.
43734 2010-08-31  Eric Blake  <eblake@redhat.com>
43735         and Jim Meyering  <meyering@redhat.com>
43737         hash: factor, and guard against misbehaving hasher function
43738         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
43739         of table->hasher's return value.  Also protect against a hash value
43740         so large that adding it to table->bucket results in a NULL pointer.
43741         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
43742         Use it in place of open-coded check-and-abort.
43744 2010-08-30  Bruno Haible  <bruno@clisp.org>
43746         hash: silence spurious clang warning
43747         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
43748         Reported by Eric Blake.
43750 2010-08-30  Eric Blake  <eblake@redhat.com>
43752         strstr, memmem, strcasestr: avoid leaked shell message
43753         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
43754         FreeBSD.
43755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43756         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43758         tests: silence clang warning
43759         * tests/test-malloca.c (do_allocation): Avoid dead store.
43761 2010-08-29  Bruno Haible  <bruno@clisp.org>
43763         gettext: Fix recent mistake.
43764         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
43766 2010-08-29  Bruno Haible  <bruno@clisp.org>
43768         selinux-h: Offer a --without-selinux option.
43769         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
43770         --without-selinux was specified, skip all tests and define
43771         HAVE_SELINUX_SELINUX_H to 0.
43772         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
43773         set LIB_SELINUX to empty.
43774         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
43775         gl_LIBSELINUX. If --without-selinux was specified, replace
43776         selinux/context.h.
43777         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
43779 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43780             Bruno Haible  <bruno@clisp.org>
43782         Make the module 'realloc-gnu' work again on AIX and OSF/1.
43783         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
43784         of HAVE_REALLOC.
43785         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
43786         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
43787         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
43788         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
43790 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43791             Bruno Haible  <bruno@clisp.org>
43793         Make the module 'calloc-gnu' work again on AIX and OSF/1.
43794         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
43795         HAVE_CALLOC.
43796         * lib/xmalloc.c: Update accordingly.
43797         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
43798         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
43799         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
43801 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43802             Bruno Haible  <bruno@clisp.org>
43804         Make the module 'malloc-gnu' work again on AIX and OSF/1.
43805         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
43806         HAVE_MALLOC.
43807         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
43808         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
43809         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
43811 2010-08-29  Bruno Haible  <bruno@clisp.org>
43813         Update modules list.
43814         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43815         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
43816         (String handling <string.h>): Add astrxfrm.
43817         (File system functions): Add readlinkat.
43819 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43821         Tests for module 'realloc-gnu'.
43822         * modules/realloc-gnu-tests: New file.
43823         * tests/test-realloc-gnu.c: New file.
43825         Tests for module 'calloc-gnu'.
43826         * modules/calloc-gnu-tests: New file.
43827         * tests/test-calloc-gnu.c: New file.
43829         Tests for module 'malloc-gnu'.
43830         * modules/malloc-gnu-tests: New file.
43831         * tests/test-malloc-gnu.c: New file.
43833 2010-08-28  Bruno Haible  <bruno@clisp.org>
43835         Rename module 'realloc' -> 'realloc-gnu'.
43836         * modules/realloc-gnu: New file, copied from modules/realloc.
43837         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
43838         obsolete.
43839         * modules/mgetgroups (Depends-on): Update.
43840         * doc/posix-functions/realloc.texi: Update.
43841         * NEWS: Mention the change.
43843         Rename module 'calloc' -> 'calloc-gnu'.
43844         * modules/calloc-gnu: New file, copied from modules/calloc.
43845         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
43846         obsolete.
43847         * doc/posix-functions/calloc.texi: Update.
43848         * NEWS: Mention the change.
43850         Rename module 'malloc' -> 'malloc-gnu'.
43851         * modules/malloc-gnu: New file, copied from modules/malloc.
43852         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
43853         obsolete.
43854         * modules/argp (Depends-on): Update.
43855         * modules/regex (Depends-on): Update.
43856         * doc/posix-functions/malloc.texi: Update.
43857         * NEWS: Mention the change.
43859 2010-08-28  Eric Blake  <eblake@redhat.com>
43861         pread, pwrite: add missing dependency
43862         * modules/pread (Depends-on): Add extensions.
43863         * modules/pwrite (Depends-on): Likewise.
43865 2010-08-28  Bruno Haible  <bruno@clisp.org>
43867         unistr/u*-strchr: Fix tests dependencies.
43868         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
43869         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
43870         Reported by Ian Beckwith <ianb@erislabs.net>.
43872 2010-08-28  Bruno Haible  <bruno@clisp.org>
43874         read-file: Don't occupy too much unused memory.
43875         * lib/read-file.c (fread_file): Shrink the buffer at the end.
43877 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
43878             Eric Blake  <eblake@redhat.com>
43879             Bruno Haible  <bruno@clisp.org>
43881         read-file: Avoid memory reallocations with regular files.
43882         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
43883         (fread_file): With regular files, use the remaining length as the
43884         initial buffer size.  Check against overflow.
43885         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
43886         sys_stat.
43888 2010-08-28  Bruno Haible  <bruno@clisp.org>
43890         ftello: Relax license.
43891         * modules/ftello (License): Relax to LGPLv2+.
43892         Reported by Eric Blake.
43894 2010-08-28  Bruno Haible  <bruno@clisp.org>
43896         Avoid relocwrapper link errors due to gnulib replacement functions.
43897         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
43898         function.
43899         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43901 2010-08-28  Bruno Haible  <bruno@clisp.org>
43903         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
43904         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
43905         defined.
43906         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
43907         Suggested by Eric Blake.
43909 2010-08-28  Bruno Haible  <bruno@clisp.org>
43911         sys_socket, netdb: Ensure socklen_t gets defined.
43912         * modules/sys_socket (Depends-on): Add socklen.
43913         * modules/netdb (Depends-on): Likewise.
43914         * modules/getaddrinfo (Depends-on): Remove socklen.
43915         * modules/getsockopt (Depends-on): Likewise.
43916         * modules/setsockopt (Depends-on): Likewise.
43917         * tests/test-sys_socket.c: Check that socklen_t is defined.
43918         * tests/test-netdb.c: Likewise.
43919         * m4/socklen.m4: Update comments.
43920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43922 2010-08-27  Eric Blake  <eblake@redhat.com>
43924         login_tty: add missing dependency
43925         * modules/login_tty (Depends-on): Add pty.
43927 2010-08-26  Eric Blake  <eblake@redhat.com>
43929         lib-symbol-versions: fix m4 quoting
43930         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
43931         format for AC_LINK_IFELSE.
43933         glob: fix compile test
43934         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
43936         btowc: fix missing file
43937         * modules/btowc (Files): Also ship locale-fr.m4.
43939         lseek: fix link test
43940         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
43941         AC_LINK_IFELSE.
43943         include_next: silence autoconf 2.68 warning
43944         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
43945         AC_COMPILE_IFELSE as special.
43946         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
43947         autoconf < 2.68.
43949         acl: fix compilation test
43950         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
43951         AC_COMPILE_IFELSE.
43953 2010-08-26  Bruno Haible  <bruno@clisp.org>
43955         Modernize AC_TRY_RUN invocations.
43956         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
43957         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
43958         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
43959         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
43960         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
43961         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
43962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
43963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43964         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
43965         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
43966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
43967         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43968         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
43969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
43971         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
43972         gl_MBRLEN_NUL_RETVAL): Likewise.
43973         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43974         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43975         Likewise.
43976         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43977         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43978         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
43979         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
43980         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
43981         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
43982         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
43983         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
43984         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
43985         Likewise.
43986         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43987         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
43988         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43989         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43990         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
43991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
43992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43993         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
43994         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43997 2010-08-26  Bruno Haible  <bruno@clisp.org>
43999         Modernize AC_TRY_LINK invocations.
44000         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
44001         AC_TRY_LINK.
44002         * m4/argp.m4 (gl_ARGP): Likewise.
44003         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44004         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44005         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44006         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44007         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44008         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
44009         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44010         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44011         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44012         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44013         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44014         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
44015         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
44016         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
44017         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44018         * m4/hostent.m4 (gl_HOSTENT): Likewise.
44019         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44020         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
44021         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44022         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
44023         Likewise.
44024         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
44025         Likewise.
44026         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
44027         Likewise.
44028         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44029         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
44030         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
44031         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44032         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44033         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
44034         * m4/servent.m4 (gl_SERVENT): Likewise.
44035         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44036         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44037         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44038         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44039         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44040         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44041         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44042         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44043         * modules/tsearch-tests (configure.ac): Likewise.
44045 2010-08-26  Bruno Haible  <bruno@clisp.org>
44047         Modernize AC_TRY_COMPILE invocations.
44048         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
44049         AC_TRY_COMPILE.
44050         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
44051         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
44052         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44053         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44054         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44055         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44056         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44057         * m4/lock.m4 (gl_LOCK): Likewise.
44058         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
44059         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44060         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
44061         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
44062         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44063         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
44064         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
44066         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44067         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44068         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44069         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44070         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
44071         extraneous semicolon.
44073 2010-08-26  Jim Meyering  <meyering@redhat.com>
44075         stat-time: relax license LGPL
44076         * modules/stat-time (License): Change from GPL to LGPL,
44077         with consent from all contributors, for use in libguile.
44078         Requested by Ludovic Courtès.
44080 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
44082         poll: return immediately on POLLHUP.
44083         * lib/poll.c (poll): Always set timeout before wait_timeout is
44084         computed.
44086 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44088         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
44089         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
44090         rmdir ("dir/.//"), unlinkat.
44092 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44094         stdbool: avoid spurious failure with modern xlc
44095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
44097 2010-08-24  Bruno Haible  <bruno@clisp.org>
44099         getloadavg: simplify code
44100         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
44101         gl_have_func. Update comments.
44103 2010-08-24  Eric Blake  <eblake@redhat.com>
44105         getloadavg: don't define SVR4 on cygwin
44106         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
44107         only define SVR4 when -lkvm is required.
44108         Reported by Yaakov Selkowitz.
44110 2010-08-24  Bruno Haible  <bruno@clisp.org>
44112         priv-set: fix comment
44113         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
44115 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44117         priv-set: fix comments
44118         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
44119         to match code, as suggested by David Bartley in:
44120         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
44122 2010-08-23  Eric Blake  <eblake@redhat.com>
44124         stdbool: avoid rejecting clang
44125         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
44126         * tests/test-stdbool.c: Enable more tests if using the system
44127         <stdbool.h> instead of the gnulib replacement.
44128         (main): Move xlc bug test to a runtime test for all compilers.
44129         Reported by Anders Kaseorg.
44131         argz: fix shell quoting issue
44132         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
44133         Reported by Charles Wilson.
44135 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
44136             Erik Faye-Lund <kusmabite@gmail.com>
44138         poll, select: handle ERROR_BROKEN_PIPE.
44139         * lib/poll.c (win32_compute_revents): Return POLLHUP when
44140         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
44141         * lib/select.c (win32_compute_revents): Do not mark a pipe
44142         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
44144 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
44146         fts: allow compilation with C++
44147         * lib/fts_.h: Specify extern "C" linkage with C++.
44149 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44151         Fix gnulib-tool sed script de-commentation for AIX sed.
44152         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
44153         sed.
44155 2010-08-17  Eric Blake  <eblake@redhat.com>
44157         test-stddef: test for (some) offsetof bugs
44158         * tests/test-stddef.c: Enhance test to ensure correct type of
44159         offsetof.
44160         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
44161         that we are not fixing at this time.
44163 2010-08-15  Bruno Haible  <bruno@clisp.org>
44165         stpncpy: Allow stpncpy to be defined as a macro.
44166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
44167         if it's already correctly declared.
44168         * lib/string.in.h (stpncpy): Undefine before redefining.
44169         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
44171 2010-08-14  Bruno Haible  <bruno@clisp.org>
44173         Rename module 'memxfrm' to 'amemxfrm'.
44174         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
44175         (amemxfrm): Renamed from memxfrm.
44176         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
44177         (amemxfrm): Renamed from memxfrm.
44178         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
44179         * NEWS: Mention the change.
44180         * MODULES.html.sh (String handling <string.h>): Update.
44181         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
44182         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
44183         * lib/unicase/u16-casexfrm.c: Likewise.
44184         * lib/unicase/u32-casexfrm.c: Likewise.
44185         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
44186         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
44187         * lib/uninorm/u16-normxfrm.c: Likewise.
44188         * lib/uninorm/u32-normxfrm.c: Likewise.
44189         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
44190         memxfrm.
44191         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
44192         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
44193         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
44194         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
44195         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
44196         Suggested by Paul Eggert.
44198 2010-08-14  Bruno Haible  <bruno@clisp.org>
44200         Tests for module 'astrxfrm'.
44201         * modules/astrxfrm-tests: New file.
44202         * tests/test-astrxfrm.c: New file.
44204         New module 'astrxfrm'.
44205         * lib/astrxfrm.h: New file.
44206         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
44207         * modules/astrxfrm: New file.
44209 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
44211         regex: Tweak doc.
44212         * doc/regex.texi (Overview): Don't mention regex.c.
44213         (GNU Regular Expression Compiling): Likewise.
44214         (Match-end-of-line Operator): Mention 'not_eol'.
44216 2010-08-14  Brian Gough  <bjg@gnu.org>
44217             Bruno Haible  <bruno@clisp.org>
44219         git-merge-changelog: add doc relating to use with bzr and hg.
44220         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
44222 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
44224         pthread: fix pthread.h creation for srcdir != builddir
44225         * modules/pthread (Makefile.am): Fix the rule to work also in a
44226         non-srcdir build.
44228 2010-08-13  Karl Berry  <karl@gnu.org>
44230         * doc/regex.texi (Predefined Syntaxes): @smallexample.
44231         * doc/posix-*/*: force line break before @url of POSIX
44232         specifications.
44233         Suggested by Werner Lemberg.
44235 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44237         strtod: fix const diagnostic
44238         * lib/strtod.c (strtod): Don't assign const char * to char *,
44239         as this elicits a warning from GCC when warnings are enabled.
44241 2010-08-10  Pádraig Brady  <P@draigbrady.com>
44242         and Eric Blake  <eblake@redhat.com>
44244         copy-acl: ignore ENOTSUP on HP-UX
44245         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
44246         so that it is available for HP-UX.
44247         * lib/copy-acl.c (qcopy_acl): Use it.
44248         Reported by Patrick M. Callahan.
44250 2010-08-10  Eric Blake  <eblake@redhat.com>
44252         open, chown: relax license
44253         * modules/open (License): Change to LGPLv2+, with consent by all
44254         authors, for use in augeas.
44255         * modules/chown (License): Likewise.
44256         * modules/lchown (Likewise): Likewise.
44257         Requested by Adam Stokes.
44259 2010-08-09  Karl Berry  <karl@gnu.org>
44261         * build-aux/ar-lib: new file, import from Automake.
44262         * config/srclist.txt: autocheck for updates.
44264 2010-08-09  Eric Blake  <eblake@redhat.com>
44266         readlinkat: adjust client modules
44267         * modules/areadlinkat (Depends-on): Use readlinkat, not
44268         symlinkat.
44269         * modules/areadlinkat-with-size (Depends-on): Likewise.
44271         mknod: be more vocal about danger of running tests as root
44272         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
44273         root, since that is just asking for problems.
44274         Suggested by Bruno Haible, based on a report by Rainer Tammer.
44276         readlinkat: split into its own module
44277         * modules/symlinkat: Split readlinkat...
44278         * modules/readlinkat: ...into separate module.
44279         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
44280         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
44281         * lib/symlinkat.c (readlinkat): Move...
44282         * lib/readlinkat.c: ...into new file.
44283         * modules/symlinkat-tests: Split readlinkat test...
44284         * modules/readlinkat-tests: ...into separate module.
44285         * tests/test-symlinkat.c: Split...
44286         * tests/test-readlinkat.c: ...into new file.
44287         * NEWS: Document the split.
44288         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44289         * lib/unistd.in.h (readlinkat): Likewise.
44290         Suggested by Bruno Haible.
44292 2010-08-08  Bruno Haible  <bruno@clisp.org>
44294         memxfrm: Speed up.
44295         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
44296         that usually only one call to strxfrm is necessary for each string
44297         part.
44298         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44300 2010-08-07  Karl Berry  <karl@gnu.org>
44302         * doc/posix-headers/limits.texi,
44303         * doc/posix-functions/malloc.texi,
44304         * doc/posix-functions/strsignal.texi: missing @item.
44305         * doc/ld-version-script.texi: spurious leading i.
44306         * doc/regex.texi (Interval Operators): no commas inside @var.
44308 2010-08-01  Bruno Haible  <bruno@clisp.org>
44310         Integrate the regex documentation.
44311         * doc/gnulib.texi: Define 'cn' index.
44312         (Regular expressions): New a chapter that includes regex.texi and
44313         regexprops-generic.texi.
44314         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
44315         syntax.
44317         Whitespace cleanup.
44318         * doc/regex.texi: Remove trailing spaces.
44320         Add regex documentation.
44321         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
44322         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
44323         Written by Kathy A. Hargreaves and Karl Berry.
44325 2010-08-01  Bruno Haible  <bruno@clisp.org>
44327         link: Update documentation.
44328         * doc/posix-functions/link.texi: Update regarding Solaris.
44330 2010-07-31  Bruno Haible  <bruno@clisp.org>
44332         Update modules list.
44333         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
44334         (String handling <string.h>): Add memcmp2, memxfrm.
44335         (Container data structures): Add xlist, xsublist, xoset.
44336         (Core language properties): Add alignof, unused-parameter.
44337         (Process control, Numeric conversion functions <stdlib.h>): Renamed
44338         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
44339         (Unibyte characters <ctype.h>): New section.
44340         (String handling <string.h>): New section.
44341         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
44342         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
44343         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
44344         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
44345         tan, tanh, tanl, y0, y1, yn.
44346         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
44347         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
44348         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
44349         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
44350         unlockpt, vdprintf, vdprintf-posix.
44351         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
44352         (File system functions): Add concat-filename, sys_file, sys_ioctl,
44353         xconcat-filename.
44354         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
44355         getdtablesize, pipe2, pipe2-safer.
44356         (Security): New section.
44357         (Networking functions): Add accept4.
44358         (Signal handling): Add sigpipe.
44359         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
44360         mbmemcasecoll.
44361         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
44362         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
44363         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
44364         pipe-filter-ii.
44365         (Misc): Add argp-version-etc, login_tty, parse-duration.
44367 2010-07-31  Bruno Haible  <bruno@clisp.org>
44369         Improve doc in MODULES.html.
44370         * modules/linkat (Description): Add the word "function".
44371         * modules/mkfifo (Description): Likewise.
44372         * modules/mknod (Description): Likewise.
44373         * modules/remove (Description): Likewise.
44374         * modules/renameat (Description): Likewise.
44375         * modules/stat (Description): Likewise.
44376         * modules/symlink (Description): Likewise.
44377         * modules/unlink (Description): Likewise.
44379 2010-07-31  Bruno Haible  <bruno@clisp.org>
44381         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
44382         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
44383         option --enable/disable-c++ instead of --enable/disable-cxx.
44384         * NEWS: Mention the change.
44386 2010-07-31  Bruno Haible  <bruno@clisp.org>
44388         readlink, areadlink: Relax test a bit.
44389         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
44390         alternative to ENOTDIR.
44391         * tests/test-areadlink.h (test_areadlink): Likewise.
44392         Reported by Rainer Tammer.
44394 2010-07-31  Bruno Haible  <bruno@clisp.org>
44396         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
44397         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
44398         character, perform the search using U_STRCHR.
44399         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
44400         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
44401         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
44402         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
44403         Suggested by Paolo Bonzini.
44405 2010-07-31  Bruno Haible  <bruno@clisp.org>
44407         unistr/u*-strstr: Fix dependencies.
44408         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
44409         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
44410         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
44412 2010-07-31  Bruno Haible  <bruno@clisp.org>
44414         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
44415         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
44416         the beginning of the loop.
44417         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
44418         cases in 'switch' statement.
44420         unistr/u8-strchr: Fix several bugs.
44421         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
44422         the string. When not found, return NULL, not a pointer near the end.
44424         More tests for unistr/u8-strchr.
44425         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
44426         that the function does not read past the first occurrence of the byte
44427         being searched.
44428         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
44429         * tests/unistr/test-u16-strchr.c (main): New function.
44430         * tests/unistr/test-u32-strchr.c (main): New function.
44432 2010-07-31  Bruno Haible  <bruno@clisp.org>
44434         posix-modules: Ignore backup files of documentation files.
44435         * posix-modules: grep only through files named *.texi.
44437 2010-07-31  Bruno Haible  <bruno@clisp.org>
44439         symlinkat: Fix documentation.
44440         * doc/posix-functions/readlinkat.texi: Fix module name.
44442 2010-07-31  Bruno Haible  <bruno@clisp.org>
44444         fchownat: Replace also when chown has the trailing slash bug.
44445         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
44446         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
44447         introduced on 2010-04-10.
44448         Reported by Rainer Tammer.
44450 2010-07-31  Bruno Haible  <bruno@clisp.org>
44452         linkat: Work around AIX 7.1 bug.
44453         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
44454         whether linkat handles trailing slash correctly. If not, replace linkat
44455         and define LINKAT_TRAILING_SLASH_BUG.
44456         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
44457         check whether (fd1,file1) points to a directory if file1 or file2 ends
44458         in a slash. Code taken from lib/link.c.
44459         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
44460         Reported by Rainer Tammer.
44462 2010-07-31  Bruno Haible  <bruno@clisp.org>
44464         Correctly determine whether pow is available in libc on AIX 7 with xlc.
44465         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
44466         This disables an xlc optimization that was causing wrong test results.
44467         Reported by Rainer Tammer.
44469 2010-07-31  Bruno Haible  <bruno@clisp.org>
44471         iconv: Work around AIX 6.1..7.1 bug.
44472         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
44473         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
44474         cross-compiling, guess no on all versions of AIX.
44475         Reported by Rainer Tammer.
44477 2010-07-31  Bruno Haible  <bruno@clisp.org>
44479         readlink: Relax test a bit.
44480         * tests/test-readlink.h (test_readlink): Allow different errno value
44481         when readlink is called with a file name that ends in / and refers to
44482         a file.
44483         Suggested by Eric Blake.
44484         Reported by Rainer Tammer.
44486 2010-07-31  Bruno Haible  <bruno@clisp.org>
44488         copysign: Does not require -lm on glibc systems.
44489         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
44490         gl_COMMON_DOUBLE_MATHFUNC.
44491         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
44493 2010-07-31  Bruno Haible  <bruno@clisp.org>
44495         duplocale: Work around AIX 7.1 bug.
44496         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
44497         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
44498         * lib/duplocale.c (rpl_duplocale): Update comment.
44499         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
44500         Reported by Rainer Tammer.
44502 2010-07-30  Bruno Haible  <bruno@clisp.org>
44504         dirfd: Avoid link error on AIX 7.1.
44505         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
44506         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
44507         exist, set REPLACE_DIRFD.
44508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
44509         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
44510         * doc/posix-functions/dirfd.texi: Update.
44511         Reported by Rainer Tammer.
44513 2010-07-30  Eric Blake  <eblake@redhat.com>
44515         strtod: next round of AIX fixes
44516         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
44517         exponent.
44518         * tests/test-strtod.c (main): Enhance tests.
44519         * doc/posix-functions/strtod.texi (strtod): Document next bug.
44520         Reported by Rainer Tammer.
44522         futimens: fix configure check
44523         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
44524         Reported by Bruno Haible.
44526 2010-07-30  Bruno Haible  <bruno@clisp.org>
44528         getline: Update regarding AIX.
44529         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
44530         Reported by Rainer Tammer.
44532 2010-07-30  Bruno Haible  <bruno@clisp.org>
44534         wcwidth: Drop replacement on AIX 7.
44535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
44536         AIX 7.
44537         Reported by Rainer Tammer.
44539 2010-07-30  Bruno Haible  <bruno@clisp.org>
44541         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
44542         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
44543         a 'char *'.
44544         Reported by Rainer Tammer.
44546 2010-07-30  Bruno Haible  <bruno@clisp.org>
44548         unlink: Update regarding AIX.
44549         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
44550         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
44551         Reported by Rainer Tammer.
44553 2010-07-30  Bruno Haible  <bruno@clisp.org>
44555         symlink: Update regarding AIX.
44556         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
44557         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
44558         Reported by Rainer Tammer.
44560 2010-07-30  Bruno Haible  <bruno@clisp.org>
44562         strndup: Update regarding AIX.
44563         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
44564         AIX 7.
44565         Reported by Rainer Tammer.
44567 2010-07-30  Bruno Haible  <bruno@clisp.org>
44569         stat: Update regarding AIX.
44570         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
44571         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
44572         Reported by Rainer Tammer.
44574 2010-07-30  Bruno Haible  <bruno@clisp.org>
44576         truncl: Fix autoconf test.
44577         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
44578         whether truncl works.
44579         Reported by Rainer Tammer.
44581 2010-07-30  Bruno Haible  <bruno@clisp.org>
44583         round: Update regarding AIX.
44584         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
44585         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
44586         Reported by Rainer Tammer.
44588 2010-07-30  Bruno Haible  <bruno@clisp.org>
44590         rename: Update regarding AIX.
44591         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
44592         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
44593         Reported by Rainer Tammer.
44595 2010-07-30  Bruno Haible  <bruno@clisp.org>
44597         printf.m4: Update regarding AIX.
44598         * m4/printf.m4: Update comments regarding AIX.
44599         Reported by Rainer Tammer.
44601 2010-07-30  Bruno Haible  <bruno@clisp.org>
44603         iconv: Update regarding AIX.
44604         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
44605         AIX 7.
44606         Reported by Rainer Tammer.
44608 2010-07-30  Bruno Haible  <bruno@clisp.org>
44610         getopt: Update regarding AIX.
44611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
44612         no on AIX.
44613         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
44614         Reported by Rainer Tammer.
44616 2010-07-30  Bruno Haible  <bruno@clisp.org>
44618         ldexpl; Update regarding AIX.
44619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
44620         on AIX 7.
44621         Reported by Rainer Tammer.
44623 2010-07-30  Bruno Haible  <bruno@clisp.org>
44625         frexpl: Update regarding AIX.
44626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
44627         on AIX 7.
44628         Reported by Rainer Tammer.
44630 2010-07-30  Bruno Haible  <bruno@clisp.org>
44632         open, fopen: Update regarding AIX.
44633         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
44634         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
44635         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
44636         * doc/posix-functions/fopen.texi: Likewise.
44637         Reported by Rainer Tammer.
44639 2010-07-30  Bruno Haible  <bruno@clisp.org>
44641         chown: Update doc regarding AIX.
44642         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
44643         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
44644         Reported by Rainer Tammer.
44646 2010-07-30  Eric Blake  <eblake@redhat.com>
44648         strtod: fix bug in replacement function on AIX
44649         * lib/strtod.c (strtod): Special case broken "0x" parse in
44650         underlying strtod.
44651         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
44652         * doc/posix-functions/strtod.texi (strtod): Likewise.
44653         Reported by Rainer Tammer.
44655 2010-07-30  Bruno Haible  <bruno@clisp.org>
44657         mbrlen: Fix cross-compilation guess for AIX.
44658         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
44659         guess. Leftover from 2008-12-22.
44661 2010-07-30  Bruno Haible  <bruno@clisp.org>
44663         mbrtowc: Fix cross-compilation guess for AIX.
44664         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
44665         guess. Leftover from 2008-12-21.
44667 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
44669         init.sh: work around trap limitation of some shells
44670         * tests/init.sh (setup_): Move exit trap outside of shell function.
44672 2010-07-29  Eric Blake  <eblake@redhat.com>
44674         strtod: aid debugging
44675         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
44676         understanding why strtod is rejected.
44678 2010-07-28  Bruno Haible  <bruno@clisp.org>
44680         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
44681         * lib/unistr/u8-chr.c: Include <string.h>.
44682         * tests/unistr/test-u8-chr.c: Likewise.
44683         * tests/unistr/test-u16-chr.c: Likewise.
44684         * tests/unistr/test-u32-chr.c: Likewise.
44685         * tests/unistr/test-u8-strchr.c: Likewise.
44686         * tests/unistr/test-u16-strchr.c: Likewise.
44687         * tests/unistr/test-u32-strchr.c: Likewise.
44688         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
44689         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
44690         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
44691         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
44693 2010-07-28  Bruno Haible  <bruno@clisp.org>
44695         Use spaces for indentation, not tabs.
44696         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
44698 2010-07-27  Bruno Haible  <bruno@clisp.org>
44700         mbspcasecmp: Fix function specification.
44701         * lib/string.in.h (mbspcasecmp): Fix specification comment.
44702         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
44703         Reported by Eric Blake <eblake@redhat.com>.
44705 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
44707         timespec: use cast and not conditional, as truncation isn't possible
44708         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
44709         instead of a conditional.  Comment about the situation in more detail.
44710         This undoes most of the 2009-10-29 patch.
44712 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
44714         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
44715         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
44716         * lib/unistr/u8-strchr.c: Likewise.
44717         * modules/unistr/u8-chr: Depend on memchr.
44719         unistr/u*-strchr: add tests
44720         * modules/unistr/u8-strchr-tests: New file.
44721         * modules/unistr/u16-strchr-tests: New file.
44722         * modules/unistr/u32-strchr-tests: New file.
44723         * tests/unistr/test-strchr.h: New file.
44724         * tests/unistr/test-u8-strchr.c: New file.
44725         * tests/unistr/test-u16-strchr.c: New file.
44726         * tests/unistr/test-u32-strchr.c: New file.
44728         unistr/u*-chr: test multibyte sequences more
44729         * tests/unistr/test-chr.h: Do complete testing of the characters in the
44730         test vector.
44731         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
44732         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
44733         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
44735         unistr/u*-chr: test multibyte sequences
44736         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
44738         unistr/u*-chr: prepare for multibyte tests
44739         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
44740         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
44741         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
44742         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
44743         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
44744         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
44746 2010-07-18  Bruno Haible  <bruno@clisp.org>
44748         unistr/u8-strchr: Optimize non-ASCII argument case.
44749         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
44750         because the first byte often matches anyway.
44751         Reported by Pádraig Brady <P@draigbrady.com>.
44753 2010-07-15  Karl Berry  <karl@gnu.org>
44755         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
44757 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
44759         getcwd: on Solaris, work better if ancestors are inaccessible
44760         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
44761         buffer and size, try again with a large buffer.  This works better
44762         on Solaris, since its getcwd succeeds even if the path to the root
44763         is inaccessible, and this is helpful in common cases such as .zfs
44764         hidden directories.  Problem reported by J Chapman Flack in
44765         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
44766         Use system getcwd if it's declared, not merely if it's partly
44767         working; use the partly-working test only to avoid needless effort
44768         if the system getcwd fails.
44769         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
44770         comment that was already obsolete and is now even more obsolete.
44771         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
44772         now might call strdup.
44774 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
44776         pthread: Add enough so that coreutils/src/sort.c compiles.
44777         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
44778         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
44779         gnulib. Include <sched.h> and <time.h>, as per POSIX.
44780         Include <sys/types.h>, in case it defines pthread_t.
44781         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
44782         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
44783         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
44784         (pthread_rwlockattr_t, pthread_spinlock_t):
44785         New typedefs, if HAVE_PTHREAD_T is not defined.
44786         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
44787         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
44788         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
44789         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
44790         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
44791         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
44792         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
44793         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
44794         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
44795         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
44796         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
44797         New macros.
44798         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
44799         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
44800         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
44801         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
44802         (pthread_spin_unlock): New dummy functions.
44803         (pthread_create): Return EAGAIN; don't set errno.
44804         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
44805         require AC_C_INLINE.
44806         * modules/pthread (Depends-on): Add sched, time.
44807         (pthread.h): Use AM_V_GEN.
44809 2010-07-13  Bruno Haible  <bruno@clisp.org>
44811         striconveh: Don't malloc memory if the result buffer is sufficient.
44812         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
44813         buffer if its size is sufficient.
44814         Reported by Ludovic Courtès <ludo@gnu.org>.
44816 2010-07-13  Bruno Haible  <bruno@clisp.org>
44818         strtod: Add safety check.
44819         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
44821 2010-07-12  Bruno Haible  <bruno@clisp.org>
44823         Unify tests that set gl_cv_func_ldexpl_no_libm.
44824         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
44825         gl_FUNC_LDEXPL.
44826         (gl_FUNC_LDEXPL): Invoke it.
44827         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44829 2010-07-12  Bruno Haible  <bruno@clisp.org>
44831         Unify tests that set gl_cv_func_ldexp_no_libm.
44832         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
44833         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
44834         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
44835         (configure.ac): Simply invoke gl_FUNC_LDEXP.
44836         * modules/strtod (Files): Add m4/ldexp.m4.
44838 2010-07-12  Bruno Haible  <bruno@clisp.org>
44840         Unify tests that set gl_cv_func_frexpl_no_libm.
44841         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
44842         gl_FUNC_FREXPL_NO_LIBM.
44843         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
44844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44846 2010-07-12  Bruno Haible  <bruno@clisp.org>
44848         Unify tests that set gl_cv_func_frexp_no_libm.
44849         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
44850         gl_FUNC_FREXP_NO_LIBM.
44851         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
44852         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
44854 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
44856         memcoll: clarify sizes versus lengths, document better, and tweak perf
44857         * lib/memcoll.c (strcoll_loop, memcoll0):
44858         Improve quality of descriptive comments.  Name variables
44859         consistently as to whether they are lengths (which do not include
44860         terminating null) versus sizes (which do).
44861         * lib/xmemcoll.c (xmemcoll0): Likewise.
44862         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
44863         returned when s1size == 0; this is easier to compile and saves
44864         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
44866 2010-07-12  Bruno Haible  <bruno@clisp.org>
44868         Tests for module '_Exit'.
44869         * modules/_Exit-tests: New file.
44870         * tests/test-_Exit.sh: New file.
44871         * tests/test-_Exit.c: New file.
44873         New module '_Exit'.
44874         * lib/stdlib.in.h (__attribute__): New macro.
44875         (_Exit): New declaration.
44876         * lib/_Exit.c: New file.
44877         * m4/_Exit.m4: New file.
44878         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
44879         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
44880         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
44881         * modules/_Exit: New file.
44882         * tests/test-stdlib-c++.cc (_Exit): Check signature.
44883         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
44885 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
44887         strtod: make it more-accurate typically, and don't require libm
44888         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
44889         Include limits.h.  Don't include string.h.
44890         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
44891         (locale_isspace): New function, so that no casts are needed to
44892         check whether *s is a space.
44893         (ldexp): Provide an unused dummy if not available.
44894         (scale_radix_exp, parse_number, underlying_strtod): New functions.
44895         (strtod): Use them.  This implementation prefers to use the
44896         underlying strtod if available, falling back on our own code
44897         only to fix known bugs.  This is more likely to produce an
44898         accurate result.  Also, it avoids the use of libm functions.
44899         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
44900         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
44901         was absent, but it caused a test failure with coreutils.
44902         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
44903         with libm.
44904         * modules/strtod (Makefile.am, Link): libm is no longer needed.
44905         * modules/strtod-tests (Makefile.am): Likewise.
44907 2010-07-11  Pádraig Brady  <P@draigBrady.com>
44908             Bruno Haible  <bruno@clisp.org>
44910         unistr/u8-strchr: Optimize ASCII argument case.
44911         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
44913 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44915         (x)memcoll: minor tweaks
44916         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
44917         is after the type that it qualifies.
44918         (memcoll0): Likewise.
44919         * lib/memcoll.h (memcoll0): Likewise.
44920         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
44921         * lib/xmemcoll.h (xmemcoll0): Likewise.
44922         * lib/memcoll.c (memcoll0): Correct the comment.  This function
44923         differs from memcoll in that the NUL byte is part of the argument.
44924         Omit the abort-checks, as performance is a real issue here.  Plus,
44925         the checks were wrong anyway (an off-by-one error).  Omit local
44926         variable 'diff', as it's a bit clearer that way.
44927         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
44928         no longer needed.
44930 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
44932         (x)memcoll: speedup when input is known to be NUL delimited
44933         * lib/memcoll.c: Include stdlib.
44934         (memcoll0): New function.
44935         (strcoll_loop): New function, refactored for use in both memcoll
44936         and memcoll0.
44937         * lib/memcoll.h (memcoll0): Add prototype.
44938         * lib/xmemcoll.c (xmemcoll0): New function.
44939         (collate_error): New function, refactored for use in both xmemcoll
44940         and xmemcoll0.
44941         * lib/xmemcoll.h (xmemcoll0): Add prototype.
44942         * m4/memcoll.m4: add inline invocation.
44944 2010-07-06  Pádraig Brady  <P@draigBrady.com>
44946         * build-aux/bootstrap: Remove any local translations
44947         from the translation project synchronization directory,
44948         so that local only translations are not distributed.
44950 2010-07-04  Bruno Haible  <bruno@clisp.org>
44952         fsusage: Clarify which code applies to which platforms.
44953         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
44954         platform.
44955         * lib/fsusage.c (get_fs_usage): Likewise.
44957 2010-07-04  Bruno Haible  <bruno@clisp.org>
44959         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
44960         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
44961         Reported by Martin Lambers <marlam@marlam.de>.
44963 2010-07-04  Jim Meyering  <meyering@redhat.com>
44965         hash: once again explicitly disallow insertion of NULL
44966         * lib/hash.c (hash_insert0): Reinstate just-removed test:
44967         inserting a NULL pointer cannot work with these functions.
44968         Add a comment with details.
44969         This reverts part of the 2010-07-01 commit, 5bef1a35
44970         "hash: extend module to deal with non-pointer keys".
44972 2010-07-01  Bruno Haible  <bruno@clisp.org>
44974         stdbool: Update doc.
44975         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
44976         Info from Christian Weisgerber <naddy@mips.inka.de>.
44978 2010-07-01  Jim Meyering  <meyering@redhat.com>
44980         hash: extend module to deal with non-pointer keys
44981         * lib/hash.c (hash_insert0): New interface, much like hash_insert
44982         but that allows insertion of non-pointer entries.
44983         Do not disallow an ENTRY value of NULL.
44984         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
44985         * lib/hash.h (hash_insert0): Declare.
44987 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44989         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
44990         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
44991         not present (i.e. with autoconf 2.59 and when using gettextize, not
44992         gnulib), require AC_GNU_SOURCE instead.
44994 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
44996         idpriv-drop: Fix tests.
44997         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
44998         not to the test-idpriv-droptemp program.
45000 2010-06-29  Bruno Haible  <bruno@clisp.org>
45002         string: Fix syntax error with g++ 2.96.
45003         * lib/string.in.h (__pure__): Remove definition.
45004         (_GL_ATTRIBUTE_PURE): New macro.
45005         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
45006         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
45007         Reported by Christian Weisgerber <naddy@mips.inka.de>.
45009 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
45011         unitypes: Fix bug introduced on 2010-05-18.
45012         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
45014 2010-06-22  Eric Blake  <eblake@redhat.com>
45016         memmem: slight optimization
45017         * lib/str-two-way.h (critical_factorization): Update comments.
45018         Reduce work during factorization phase.
45019         Reported by Carlos Bueno <carlos@bueno.org>.
45021 2010-06-21  Bruno Haible  <bruno@clisp.org>
45023         Fix HAVE_CALLOC_POSIX misnomer.
45024         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
45025         !HAVE_CALLOC_POSIX.
45026         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
45027         HAVE_CALLOC_POSIX.
45028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
45029         instead of HAVE_CALLOC_POSIX.
45030         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
45031         HAVE_CALLOC_POSIX.
45033         Use modern idiom for calloc() replacement.
45034         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
45035         AC_FUNC_CALLOC.
45036         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
45037         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
45038         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45039         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
45040         (gl_REPLACE_CALLOC): New macro.
45042 2010-06-21  Bruno Haible  <bruno@clisp.org>
45044         Fix HAVE_REALLOC_POSIX misnomer.
45045         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
45046         !HAVE_REALLOC_POSIX.
45047         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
45048         HAVE_REALLOC_POSIX.
45049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
45050         instead of HAVE_REALLOC_POSIX.
45051         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
45052         HAVE_REALLOC_POSIX.
45054         Use modern idiom for realloc() replacement.
45055         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
45056         AC_FUNC_REALLOC.
45057         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
45058         Autoconf's AC_FUNC_REALLOC.
45059         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45060         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
45061         (gl_REPLACE_REALLOC): New macro.
45062         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
45064 2010-06-21  Bruno Haible  <bruno@clisp.org>
45066         Fix HAVE_MALLOC_POSIX misnomer.
45067         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
45068         !HAVE_MALLOC_POSIX.
45069         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
45070         HAVE_MALLOC_POSIX.
45071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
45072         instead of HAVE_MALLOC_POSIX.
45073         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
45074         HAVE_MALLOC_POSIX.
45076         Use modern idiom for malloc() replacement.
45077         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
45078         AC_FUNC_MALLOC.
45079         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
45080         Autoconf's AC_FUNC_MALLOC.
45081         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45082         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
45083         (gl_REPLACE_MALLOC): New macro.
45084         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
45086 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
45088         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
45089         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
45090         This macro takes 3 arguments, not 4.
45092 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
45094         ipv6: fix detection under mingw
45095         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
45096         in6_addr.
45098 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
45100         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
45101         that strtod() works when cross-compiling to a glibc version known
45102         to work.
45104 2010-06-15  Bruno Haible  <bruno@clisp.org>
45106         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
45108 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
45110         select: Correct timeout.
45111         * lib/select.c (rpl_select): Compute wait_timeout correctly.
45113 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45115         git-version-gen: init shell var to avoid env var influence
45116         * build-aux/git-version-gen (v): Init shell var to empty.
45118 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
45120         priv-set: Don't assume that priv.h exists merely because getppriv does.
45121         See Jan Andersen's bug report about AIX 5L in
45122         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
45123         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
45124         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
45125         * lib/priv-set.h: Likewise.
45126         * tests/test-priv-set.c: Likewise.
45128 2010-06-13  Bruno Haible  <bruno@clisp.org>
45130         relocatable: Make it easier to test whether to install wrappers.
45131         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
45132         RELOCATABLE_VIA_WRAPPER.
45134 2010-06-13  Bruno Haible  <bruno@clisp.org>
45136         gnulib-tool: Display specified modules and dependencies differently.
45137         * gnulib-tool (func_show_module_list): New function.
45138         (func_import, func_create_testdir): Invoke it.
45139         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45141 2010-06-13  Bruno Haible  <bruno@clisp.org>
45143         gnulib-tool: Align code of func_import and func_create_testdir.
45144         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
45145         specified_modules.
45147 2010-06-12  Jim Meyering  <meyering@redhat.com>
45149         test-inttostr: avoid spurious failure on Solaris 9
45150         * tests/test-inttostr.c (main): Skip the test when snprintf fails
45151         to accept "%ju".  Reported by Bruno Haible.
45153 2010-06-11  Jim Meyering  <meyering@redhat.com>
45155         test-sys_socket: mark variables as used more readably
45156         * tests/test-sys_socket.c (main): Mark otherwise unused variables
45157         as "used" explicitly via (void) statement casts.  This is more
45158         readable than using them in an artificial return expression.
45159         Suggestion from Bruno Haible.
45161 2010-06-11  Bruno Haible  <bruno@clisp.org>
45163         Avoid some more warnings from "gcc -Wwrite-strings".
45164         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
45165         to 'const char *'.
45166         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
45167         * tests/test-c-strcasestr.c (main): Likewise.
45168         * tests/test-mbscasestr1.c (main): Likewise.
45169         * tests/test-mbscasestr2.c (main): Likewise.
45170         * tests/test-memmem.c (main): Likewise.
45171         * tests/test-strstr.c (main): Likewise.
45172         * tests/test-strcasestr.c (main): Likewise.
45174 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45176         init.sh: change framework_failure_ to fail with status 99, not 1
45177         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
45178         automake's parallel-tests rule that this is an unexpected failure,
45179         even if the test is listed in XFAIL_TESTS.
45181 2010-06-11  Jim Meyering  <meyering@redhat.com>
45183         test-inttostr: avoid warnings about 4-6KB literal strings
45184         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
45185         Include "macros.h", for its definition of ASSERT.
45186         (CK): s/assert/ASSERT/
45187         * modules/inttostr-tests (Files): Add macros.h.
45189         init.sh: don't use $ME_ or skip_ before they are defined
45190         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
45191         their first uses.  Also hoist their companions: warn_, fail_,
45192         framework_failure_, $stderr_fileno.  Prompted by a patch from
45193         Stefano Lattarini.
45195         test-sys_socket: avoid set-but-not-used warnings from gcc
45196         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
45197         avoid warning about set-but-not-used variables.
45199         test-xvasprintf: avoid 'const' discard warnings
45200         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
45201         "const" when assigning from literal strings.
45202         (test_xasprintf): Add "void" in function argument list to placate
45203         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
45205         tests: avoid compilation warnings in argmatch and exclude tests...
45206         in packages that define ARGMATCH_DIE_DECL, like coreutils.
45207         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
45208         Since it always exits, declare with the "noreturn" attribute.
45209         * tests/test-argmatch.c: Likewise.
45211         tests: avoid 'const' discard warnings in mbsstr tests
45212         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
45213         * tests/test-mbsstr2.c (main): Likewise.
45215         test-verify: avoid warning from gcc's -Wmissing-declarations
45216         * tests/test-verify.c (function): Declare to be static.
45218         test-inttostr.c: include <string.h> for use of strcmp
45219         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
45221         test-linkat: avoid failed assertion on "other" architectures
45222         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
45223         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
45224         sparc: https://bugs.launchpad.net/bugs/591968
45226 2010-06-11  Jim Meyering  <meyering@redhat.com>
45228         printf.m4: avoid autoconf's "Expanded Before Required" warning
45229         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
45230         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
45231         autoconf warning.
45233 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
45235         Replacement header templates are now named with ".in", not "_".
45236         * doc/gnulib-intro.texi: Correct.
45238 2010-06-10  Jim Meyering  <meyering@redhat.com>
45240         inttostr-tests: depend on snprintf, not snprintf-posix
45241         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
45242         snprintf-posix, to avoid this aclocal failure:
45243           missing file gnulib-tests/vasnprintf.c
45244           configure.ac:45: error: expected source file, required through \
45245           AC_LIBSOURCES, not found
45247 2010-06-10  Jim Meyering  <meyering@redhat.com>
45249         inttostr: add a new function, inttostr, and tests
45250         The namesake function was not available.  The existence of the
45251         template file, inttostr.c makes its addition nontrivial.
45252         * lib/anytostr.c: Rename from inttostr.c.
45253         (anytostr): Rename from inttostr.
45254         * lib/inttostr.c: New file.
45255         * modules/inttostr (Files): Add anytostr.c.
45256         (Makefile.am): Set lib_SOURCES instead of ...
45257         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
45258         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
45259         * lib/offtostr.c: Likewise.
45260         * lib/uinttostr.c: Likewise.
45261         * lib/umaxtostr.c: Likewise.
45262         * modules/inttostr-tests: New file.
45263         * tests/test-inttostr.c: New file.  Test these functions.
45265 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
45266             Bruno Haible  <bruno@clisp.org>
45268         Add "Extending Gnulib" chapter to manual.
45269         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
45270         chapter.
45271         (Extending Gnulib): New chapter.
45272         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
45273         chapter.
45275 2010-06-09  Bruno Haible  <bruno@clisp.org>
45277         Avoid relocwrapper link errors due to gnulib replacement functions.
45278         * lib/areadlink.c: Use the system's malloc, realloc functions.
45279         (areadlink): Set errno to ENOMEM explicitly.
45280         * modules/areadlink (Depends-on): Remove malloc-posix.
45281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45283 2010-06-09  Bruno Haible  <bruno@clisp.org>
45285         Avoid relocwrapper link errors due to gnulib replacement functions.
45286         * lib/canonicalize-lgpl.c: Use the system's malloc function.
45287         * lib/malloca.c: Likewise.
45288         * lib/relocatable.c: Likewise.
45289         * lib/progreloc.c: Use the system's malloc, sprintf functions.
45290         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
45291         * lib/setenv.c: Use the system's malloc, realloc functions.
45292         * lib/strerror.c: Use the system's sprintf function.
45293         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45295 2010-06-04  Bruno Haible  <bruno@clisp.org>
45297         Prefer documented low-level autoconf macro names.
45298         * m4/lib-link.m4: Use m4_translit instead of translit.
45299         * m4/environ.m4: Likewise.
45300         * m4/mathfunc.m4: Likewise.
45301         * m4/onceonly.m4: Likewise.
45302         * m4/stdint.m4: Likewise.
45303         Suggested by Eric Blake.
45305 2010-06-04  Martin Lambers  <marlam@marlam.de>
45306             Bruno Haible  <bruno@clisp.org>
45308         havelib: Allow library names with '+' characters.
45309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45310         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
45312 2010-06-09  Bruno Haible  <bruno@clisp.org>
45314         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
45315         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
45316         realloc failed.
45318 2010-06-08  Peter Simons  <simons@cryp.to>
45320         maint.mk: make the news-check rule more configurable
45321         * top/maint.mk (news-check-lines-spec): New variable.
45322         (news-check): Use "sed -n 1,10p" in place of "head".
45324 2010-06-07  Jim Meyering  <meyering@redhat.com>
45326         do-release-commit-and-tag: fix typo in --help
45327         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
45329         regex: avoid new dead-code warning with gcc-4.6.0
45330         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
45331         if-block containing a while-loop.  It's been unused for at least
45332         5 years.
45334 2010-06-05  Bruno Haible  <bruno@clisp.org>
45336         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
45337         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
45339 2010-06-04  Bruno Haible  <bruno@clisp.org>
45341         Update to GNU gettext 0.18.1.
45342         * modules/gettext (configure.ac): Require gettext infrastructure from
45343         version 0.18.1.
45345 2010-06-03  Bruno Haible  <bruno@clisp.org>
45347         Don't use AC_LIBOBJ with file names in subdirectories.
45348         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
45349         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
45350         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
45351         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
45352         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
45353         gl_LIBUNISTRING_LIBSOURCE.
45354         (Makefile.am): Augment lib_SOURCES here, conditionally.
45355         * NEWS: Drop requirement for Automake option 'subdir-objects'.
45357 2010-06-03  Bruno Haible  <bruno@clisp.org>
45359         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
45360         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
45361         expansion does not end with a newline.
45362         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
45363         unnecessary newline.
45365 2010-06-03  Bruno Haible  <bruno@clisp.org>
45367         Reduce dependencies.
45368         * tests/test-quotearg.h: New file, extracted from
45369         tests/test-quotearg.c.
45370         * tests/test-quotearg-simple.c: New file, extracted from
45371         tests/test-quotearg.c.
45372         * tests/test-quotearg.c: Don't include <ctype.h>.
45373         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
45374         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
45375         use_quote_double_quotes, use_quotearg_colon): Moved to
45376         tests/test-quotearg.h.
45377         (results_g, flag_results, custom_quotes, custom_results): Moved
45378         to tests/test-quotearg-simple.c.
45379         (main): Moved the part that does not depend on gettext to
45380         tests/test-quotearg-simple.c. Return 77 if the test cannot be
45381         performed.
45382         * modules/quotearg-simple: New file.
45383         * modules/quotearg-simple-tests: New file.
45384         * modules/quotearg (Depends-on): Add quotearg-simple.
45385         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
45386         (Files): Add tests/test-quotearg.h.
45387         Reported by Paolo Bonzini.
45389 2010-06-03  Bruno Haible  <bruno@clisp.org>
45391         Reduce dependencies.
45392         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
45394 2010-06-03  Bruno Haible  <bruno@clisp.org>
45396         time: Undefine more broken macros.
45397         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
45398         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
45399         Reported by Eric Blake.
45401 2010-06-03  Bruno Haible  <bruno@clisp.org>
45403         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
45404         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
45405         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
45406         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
45407         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
45408         Reported by Ludovic Courtès <ludo@gnu.org>.
45410 2010-06-02  Eric Blake  <eblake@redhat.com>
45412         time: work with mingw + pthreads-win32 library
45413         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
45414         if timespec is defined only in pthread.h.
45415         * modules/time (Makefile.am): Substitute it.
45416         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
45417         <pthread.h>, when needed.
45418         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
45419         from the library.
45421 2010-05-31  Bruno Haible  <bruno@clisp.org>
45423         Avoid expanding two macros in the wrong order.
45424         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
45425         gl_LIBUNISTRING if it is defined.
45426         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
45427         autoconf >= 2.64.
45428         Reported by Ludovic Courtès <ludo@gnu.org>.
45430 2010-05-27  Jim Meyering  <meyering@redhat.com>
45432         maint.mk: also prohibit "#undef" of always-defined symbols
45433         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
45434         Allow more than one space before the symbol name.
45435         (sc_prohibit_always-defined_macros): Use grep's -E, now that
45436         the regexp uses alternation.
45438 2010-05-26  Eric Blake  <eblake@redhat.com>
45440         maint.mk: avoid echo -e
45441         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
45442         Convert all uses of echo -* to printf.
45443         Reported by Matthias Bolte.
45445 2010-05-25  Bruno Haible  <bruno@clisp.org>
45447         Update to GNU gettext 0.18, part 2.
45448         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
45449         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
45451 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45453         Add missing include in test-pwrite.c.
45454         * tests/test-pwrite.c: Include string.h, for strcmp.
45456 2010-05-24  Bruno Haible  <bruno@clisp.org>
45458         * NEWS: Mention requirement for Automake option 'subdir-objects'.
45460 2010-05-24  Bruno Haible  <bruno@clisp.org>
45462         Don't use conversion with transliteration in u{8,16,32}_strcoll.
45463         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
45464         iconveh_error argument.
45465         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
45466         U_STRCONV_TO_LOCALE.
45467         * lib/unistr/u16-strcoll.c: Likewise.
45468         * lib/unistr/u32-strcoll.c: Likewise.
45469         * modules/unistr/u8-strcoll (Depends-on): Add
45470         uniconv/u8-strconv-to-enc, localcharset. Remove
45471         uniconv/u8-strconv-to-locale.
45472         (configure.ac): Bump version number.
45473         * modules/unistr/u16-strcoll (Depends-on): Add
45474         uniconv/u16-strconv-to-enc, localcharset. Remove
45475         uniconv/u16-strconv-to-locale.
45476         (configure.ac): Bump version number.
45477         * modules/unistr/u32-strcoll (Depends-on): Add
45478         uniconv/u32-strconv-to-enc, localcharset. Remove
45479         uniconv/u32-strconv-to-locale.
45480         (configure.ac): Bump version number.
45482 2010-05-24  Bruno Haible  <bruno@clisp.org>
45484         Avoid a test failure on NetBSD 5.0.
45485         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
45486         an iconv() bug.
45488 2010-05-24  Bruno Haible  <bruno@clisp.org>
45490         Adjust #include directive style.
45491         * modules/regex (Includes): Recommend to write <regex.h>.
45493 2010-05-24  Bruno Haible  <bruno@clisp.org>
45495         regex: Don't require alloca.
45496         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
45497         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
45498         only inside if (0).
45500 2010-05-23  Jim Meyering  <meyering@redhat.com>
45502         test-renameat.c: include <sys/stat.h>
45503         * tests/test-renameat.c: Include <sys/stat.h>; required for
45504         definition of S_IS* macros.
45506 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
45508         Update maintainer documentation for 'relocatable-prog' module.
45509         * doc/relocatable-maint.texi: Update.
45510         Comments by Bruno Haible.
45512 2010-05-23  Bruno Haible  <bruno@clisp.org>
45514         git-merge-changelog: Enable --split-merged-entry by default.
45515         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
45516         (usage): Don't mention this option any more.
45517         Reported by Ralf Wildenhues.
45519 2010-05-23  Jim Meyering  <meyering@redhat.com>
45521         test-pwrite: do not leave behind a test file named "out"
45522         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
45523         The trivial-looking use of init.sh is really necessary.
45524         It ensures that the temporary file, "out", is created in
45525         a temporary directory, and removed upon termination.
45526         * tests/test-pwrite.sh: Re-add file.
45527         * modules/pwrite-tests: Reference it.
45529 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45531         Fix output redirection buglet in init.sh.
45532         * tests/init.sh: Fix redirection of stderr.
45534 2010-05-20  Simon Josefsson  <simon@josefsson.org>
45536         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
45538 2010-05-17  Simon Josefsson  <simon@josefsson.org>
45540         * modules/valgrind-tests: New file.
45541         * m4/valgrind-tests.m4: New file.
45542         * doc/valgrind-tests.texi: New file.
45543         * doc/gnulib.texi (Running self-tests under valgrind): New
45544         section.
45546 2010-05-19  Bruno Haible  <bruno@clisp.org>
45548         Clean up dead code in recent commit.
45549         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
45550         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
45551         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
45552         Suggested by Paolo Bonzini.
45554 2010-05-19  Bruno Haible  <bruno@clisp.org>
45556         Avoid valgrind error reports from libunistring.
45557         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
45558         * modules/libunistring (Files): Add it.
45559         * modules/libunistring-optional (Files): Likewise.
45561 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
45562             Bruno Haible  <bruno@clisp.org>
45564         New module 'libunistring-optional'.
45565         * modules/libunistring-optional: New file.
45566         * m4/libunistring-base.m4: New file.
45567         * m4/libunistring-optional.m4: New file.
45568         * lib/unicase.in.h: Renamed from lib/unicase.h.
45569         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
45570         * lib/unictype.in.h: Renamed from lib/unictype.h.
45571         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
45572         * lib/uniname.in.h: Renamed from lib/uniname.h.
45573         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
45574         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
45575         * lib/unistr.in.h: Renamed from lib/unistr.h.
45576         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
45577         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
45578         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
45579         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
45580         gl_LIBUNISTRING. If the library was found, determine the installed
45581         version and set LIBUNISTRING_VERSION.
45582         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
45583         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
45584         handle a configuration option --with-included-libunistring.
45585         * modules/libunistring (Files): Add m4/absolute-header.m4.
45586         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
45587         Add m4/libunistring-base.m4.
45588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45589         (Makefile.am): Build unicase.h from unicase.in.h.
45590         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
45591         Add m4/libunistring-base.m4.
45592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45593         (Makefile.am): Build uniconv.h from uniconv.in.h.
45594         * modules/unictype/base (Files): Use unictype.in.h instead of
45595         unictype.h. Add m4/libunistring-base.m4.
45596         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45597         (Makefile.am): Build unictype.h from unictype.in.h.
45598         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
45599         Add m4/libunistring-base.m4.
45600         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45601         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
45602         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
45603         Add m4/libunistring-base.m4.
45604         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45605         (Makefile.am): Build uniname.h from uniname.in.h.
45606         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
45607         Add m4/libunistring-base.m4.
45608         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45609         (Makefile.am): Build uninorm.h from uninorm.in.h.
45610         * modules/unistdio/base (Files): Use unistdio.in.h instead of
45611         unistdio.h. Add m4/libunistring-base.m4.
45612         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45613         (Makefile.am): Build unistdio.h from unistdio.in.h.
45614         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
45615         Add m4/libunistring-base.m4.
45616         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45617         (Makefile.am): Build unistr.h from unistr.in.h.
45618         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
45619         Add m4/libunistring-base.m4.
45620         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45621         (Makefile.am): Build unitypes.h from unitypes.in.h.
45622         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
45623         Add m4/libunistring-base.m4.
45624         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45625         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
45626         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
45627         uniwidth.h. Add m4/libunistring-base.m4.
45628         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45629         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
45630         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
45631         instead of augmenting lib_SOURCES.
45632         * modules/unicase/empty-suffix-context: Likewise.
45633         * modules/unicase/locale-language: Likewise.
45634         * modules/unicase/tolower: Likewise.
45635         * modules/unicase/totitle: Likewise.
45636         * modules/unicase/toupper: Likewise.
45637         * modules/unicase/u8-casecmp: Likewise.
45638         * modules/unicase/u8-casecoll: Likewise.
45639         * modules/unicase/u8-casefold: Likewise.
45640         * modules/unicase/u8-casexfrm: Likewise.
45641         * modules/unicase/u8-ct-casefold: Likewise.
45642         * modules/unicase/u8-ct-tolower: Likewise.
45643         * modules/unicase/u8-ct-totitle: Likewise.
45644         * modules/unicase/u8-ct-toupper: Likewise.
45645         * modules/unicase/u8-is-cased: Likewise.
45646         * modules/unicase/u8-is-casefolded: Likewise.
45647         * modules/unicase/u8-is-lowercase: Likewise.
45648         * modules/unicase/u8-is-titlecase: Likewise.
45649         * modules/unicase/u8-is-uppercase: Likewise.
45650         * modules/unicase/u8-prefix-context: Likewise.
45651         * modules/unicase/u8-suffix-context: Likewise.
45652         * modules/unicase/u8-tolower: Likewise.
45653         * modules/unicase/u8-totitle: Likewise.
45654         * modules/unicase/u8-toupper: Likewise.
45655         * modules/unicase/u16-casecmp: Likewise.
45656         * modules/unicase/u16-casecoll: Likewise.
45657         * modules/unicase/u16-casefold: Likewise.
45658         * modules/unicase/u16-casexfrm: Likewise.
45659         * modules/unicase/u16-ct-casefold: Likewise.
45660         * modules/unicase/u16-ct-tolower: Likewise.
45661         * modules/unicase/u16-ct-totitle: Likewise.
45662         * modules/unicase/u16-ct-toupper: Likewise.
45663         * modules/unicase/u16-is-cased: Likewise.
45664         * modules/unicase/u16-is-casefolded: Likewise.
45665         * modules/unicase/u16-is-lowercase: Likewise.
45666         * modules/unicase/u16-is-titlecase: Likewise.
45667         * modules/unicase/u16-is-uppercase: Likewise.
45668         * modules/unicase/u16-prefix-context: Likewise.
45669         * modules/unicase/u16-suffix-context: Likewise.
45670         * modules/unicase/u16-tolower: Likewise.
45671         * modules/unicase/u16-totitle: Likewise.
45672         * modules/unicase/u16-toupper: Likewise.
45673         * modules/unicase/u32-casecmp: Likewise.
45674         * modules/unicase/u32-casecoll: Likewise.
45675         * modules/unicase/u32-casefold: Likewise.
45676         * modules/unicase/u32-casexfrm: Likewise.
45677         * modules/unicase/u32-ct-casefold: Likewise.
45678         * modules/unicase/u32-ct-tolower: Likewise.
45679         * modules/unicase/u32-ct-totitle: Likewise.
45680         * modules/unicase/u32-ct-toupper: Likewise.
45681         * modules/unicase/u32-is-cased: Likewise.
45682         * modules/unicase/u32-is-casefolded: Likewise.
45683         * modules/unicase/u32-is-lowercase: Likewise.
45684         * modules/unicase/u32-is-titlecase: Likewise.
45685         * modules/unicase/u32-is-uppercase: Likewise.
45686         * modules/unicase/u32-prefix-context: Likewise.
45687         * modules/unicase/u32-suffix-context: Likewise.
45688         * modules/unicase/u32-tolower: Likewise.
45689         * modules/unicase/u32-totitle: Likewise.
45690         * modules/unicase/u32-toupper: Likewise.
45691         * modules/unicase/ulc-casecmp: Likewise.
45692         * modules/unicase/ulc-casecoll: Likewise.
45693         * modules/unicase/ulc-casexfrm: Likewise.
45694         * modules/uniconv/u8-conv-from-enc: Likewise.
45695         * modules/uniconv/u8-conv-to-enc: Likewise.
45696         * modules/uniconv/u8-strconv-from-enc: Likewise.
45697         * modules/uniconv/u8-strconv-from-locale: Likewise.
45698         * modules/uniconv/u8-strconv-to-enc: Likewise.
45699         * modules/uniconv/u8-strconv-to-locale: Likewise.
45700         * modules/uniconv/u16-conv-from-enc: Likewise.
45701         * modules/uniconv/u16-conv-to-enc: Likewise.
45702         * modules/uniconv/u16-strconv-from-enc: Likewise.
45703         * modules/uniconv/u16-strconv-from-locale: Likewise.
45704         * modules/uniconv/u16-strconv-to-enc: Likewise.
45705         * modules/uniconv/u16-strconv-to-locale: Likewise.
45706         * modules/uniconv/u32-conv-from-enc: Likewise.
45707         * modules/uniconv/u32-conv-to-enc: Likewise.
45708         * modules/uniconv/u32-strconv-from-enc: Likewise.
45709         * modules/uniconv/u32-strconv-from-locale: Likewise.
45710         * modules/uniconv/u32-strconv-to-enc: Likewise.
45711         * modules/uniconv/u32-strconv-to-locale: Likewise.
45712         * modules/unictype/bidicategory-byname: Likewise.
45713         * modules/unictype/bidicategory-name: Likewise.
45714         * modules/unictype/bidicategory-of: Likewise.
45715         * modules/unictype/bidicategory-test: Likewise.
45716         * modules/unictype/block-list: Likewise.
45717         * modules/unictype/block-test: Likewise.
45718         * modules/unictype/category-C: Likewise.
45719         * modules/unictype/category-Cc: Likewise.
45720         * modules/unictype/category-Cf: Likewise.
45721         * modules/unictype/category-Cn: Likewise.
45722         * modules/unictype/category-Co: Likewise.
45723         * modules/unictype/category-Cs: Likewise.
45724         * modules/unictype/category-L: Likewise.
45725         * modules/unictype/category-Ll: Likewise.
45726         * modules/unictype/category-Lm: Likewise.
45727         * modules/unictype/category-Lo: Likewise.
45728         * modules/unictype/category-Lt: Likewise.
45729         * modules/unictype/category-Lu: Likewise.
45730         * modules/unictype/category-M: Likewise.
45731         * modules/unictype/category-Mc: Likewise.
45732         * modules/unictype/category-Me: Likewise.
45733         * modules/unictype/category-Mn: Likewise.
45734         * modules/unictype/category-N: Likewise.
45735         * modules/unictype/category-Nd: Likewise.
45736         * modules/unictype/category-Nl: Likewise.
45737         * modules/unictype/category-No: Likewise.
45738         * modules/unictype/category-P: Likewise.
45739         * modules/unictype/category-Pc: Likewise.
45740         * modules/unictype/category-Pd: Likewise.
45741         * modules/unictype/category-Pe: Likewise.
45742         * modules/unictype/category-Pf: Likewise.
45743         * modules/unictype/category-Pi: Likewise.
45744         * modules/unictype/category-Po: Likewise.
45745         * modules/unictype/category-Ps: Likewise.
45746         * modules/unictype/category-S: Likewise.
45747         * modules/unictype/category-Sc: Likewise.
45748         * modules/unictype/category-Sk: Likewise.
45749         * modules/unictype/category-Sm: Likewise.
45750         * modules/unictype/category-So: Likewise.
45751         * modules/unictype/category-Z: Likewise.
45752         * modules/unictype/category-Zl: Likewise.
45753         * modules/unictype/category-Zp: Likewise.
45754         * modules/unictype/category-Zs: Likewise.
45755         * modules/unictype/category-and: Likewise.
45756         * modules/unictype/category-and-not: Likewise.
45757         * modules/unictype/category-byname: Likewise.
45758         * modules/unictype/category-name: Likewise.
45759         * modules/unictype/category-none: Likewise.
45760         * modules/unictype/category-of: Likewise.
45761         * modules/unictype/category-or: Likewise.
45762         * modules/unictype/category-test: Likewise.
45763         * modules/unictype/combining-class: Likewise.
45764         * modules/unictype/ctype-alnum: Likewise.
45765         * modules/unictype/ctype-alpha: Likewise.
45766         * modules/unictype/ctype-blank: Likewise.
45767         * modules/unictype/ctype-cntrl: Likewise.
45768         * modules/unictype/ctype-digit: Likewise.
45769         * modules/unictype/ctype-graph: Likewise.
45770         * modules/unictype/ctype-lower: Likewise.
45771         * modules/unictype/ctype-print: Likewise.
45772         * modules/unictype/ctype-punct: Likewise.
45773         * modules/unictype/ctype-space: Likewise.
45774         * modules/unictype/ctype-upper: Likewise.
45775         * modules/unictype/ctype-xdigit: Likewise.
45776         * modules/unictype/decimal-digit: Likewise.
45777         * modules/unictype/digit: Likewise.
45778         * modules/unictype/mirror: Likewise.
45779         * modules/unictype/numeric: Likewise.
45780         * modules/unictype/property-alphabetic: Likewise.
45781         * modules/unictype/property-ascii-hex-digit: Likewise.
45782         * modules/unictype/property-bidi-arabic-digit: Likewise.
45783         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
45784         * modules/unictype/property-bidi-block-separator: Likewise.
45785         * modules/unictype/property-bidi-boundary-neutral: Likewise.
45786         * modules/unictype/property-bidi-common-separator: Likewise.
45787         * modules/unictype/property-bidi-control: Likewise.
45788         * modules/unictype/property-bidi-embedding-or-override: Likewise.
45789         * modules/unictype/property-bidi-eur-num-separator: Likewise.
45790         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
45791         * modules/unictype/property-bidi-european-digit: Likewise.
45792         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
45793         * modules/unictype/property-bidi-left-to-right: Likewise.
45794         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
45795         * modules/unictype/property-bidi-other-neutral: Likewise.
45796         * modules/unictype/property-bidi-pdf: Likewise.
45797         * modules/unictype/property-bidi-segment-separator: Likewise.
45798         * modules/unictype/property-bidi-whitespace: Likewise.
45799         * modules/unictype/property-byname: Likewise.
45800         * modules/unictype/property-combining: Likewise.
45801         * modules/unictype/property-composite: Likewise.
45802         * modules/unictype/property-currency-symbol: Likewise.
45803         * modules/unictype/property-dash: Likewise.
45804         * modules/unictype/property-decimal-digit: Likewise.
45805         * modules/unictype/property-default-ignorable-code-point: Likewise.
45806         * modules/unictype/property-deprecated: Likewise.
45807         * modules/unictype/property-diacritic: Likewise.
45808         * modules/unictype/property-extender: Likewise.
45809         * modules/unictype/property-format-control: Likewise.
45810         * modules/unictype/property-grapheme-base: Likewise.
45811         * modules/unictype/property-grapheme-extend: Likewise.
45812         * modules/unictype/property-grapheme-link: Likewise.
45813         * modules/unictype/property-hex-digit: Likewise.
45814         * modules/unictype/property-hyphen: Likewise.
45815         * modules/unictype/property-id-continue: Likewise.
45816         * modules/unictype/property-id-start: Likewise.
45817         * modules/unictype/property-ideographic: Likewise.
45818         * modules/unictype/property-ids-binary-operator: Likewise.
45819         * modules/unictype/property-ids-trinary-operator: Likewise.
45820         * modules/unictype/property-ignorable-control: Likewise.
45821         * modules/unictype/property-iso-control: Likewise.
45822         * modules/unictype/property-join-control: Likewise.
45823         * modules/unictype/property-left-of-pair: Likewise.
45824         * modules/unictype/property-line-separator: Likewise.
45825         * modules/unictype/property-logical-order-exception: Likewise.
45826         * modules/unictype/property-lowercase: Likewise.
45827         * modules/unictype/property-math: Likewise.
45828         * modules/unictype/property-non-break: Likewise.
45829         * modules/unictype/property-not-a-character: Likewise.
45830         * modules/unictype/property-numeric: Likewise.
45831         * modules/unictype/property-other-alphabetic: Likewise.
45832         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
45833         * modules/unictype/property-other-grapheme-extend: Likewise.
45834         * modules/unictype/property-other-id-continue: Likewise.
45835         * modules/unictype/property-other-id-start: Likewise.
45836         * modules/unictype/property-other-lowercase: Likewise.
45837         * modules/unictype/property-other-math: Likewise.
45838         * modules/unictype/property-other-uppercase: Likewise.
45839         * modules/unictype/property-paired-punctuation: Likewise.
45840         * modules/unictype/property-paragraph-separator: Likewise.
45841         * modules/unictype/property-pattern-syntax: Likewise.
45842         * modules/unictype/property-pattern-white-space: Likewise.
45843         * modules/unictype/property-private-use: Likewise.
45844         * modules/unictype/property-punctuation: Likewise.
45845         * modules/unictype/property-quotation-mark: Likewise.
45846         * modules/unictype/property-radical: Likewise.
45847         * modules/unictype/property-sentence-terminal: Likewise.
45848         * modules/unictype/property-soft-dotted: Likewise.
45849         * modules/unictype/property-space: Likewise.
45850         * modules/unictype/property-terminal-punctuation: Likewise.
45851         * modules/unictype/property-test: Likewise.
45852         * modules/unictype/property-titlecase: Likewise.
45853         * modules/unictype/property-unassigned-code-value: Likewise.
45854         * modules/unictype/property-unified-ideograph: Likewise.
45855         * modules/unictype/property-uppercase: Likewise.
45856         * modules/unictype/property-variation-selector: Likewise.
45857         * modules/unictype/property-white-space: Likewise.
45858         * modules/unictype/property-xid-continue: Likewise.
45859         * modules/unictype/property-xid-start: Likewise.
45860         * modules/unictype/property-zero-width: Likewise.
45861         * modules/unictype/scripts: Likewise.
45862         * modules/unictype/syntax-c-ident: Likewise.
45863         * modules/unictype/syntax-c-whitespace: Likewise.
45864         * modules/unictype/syntax-java-ident: Likewise.
45865         * modules/unictype/syntax-java-whitespace: Likewise.
45866         * modules/unilbrk/u8-possible-linebreaks: Likewise.
45867         * modules/unilbrk/u8-width-linebreaks: Likewise.
45868         * modules/unilbrk/u16-possible-linebreaks: Likewise.
45869         * modules/unilbrk/u16-width-linebreaks: Likewise.
45870         * modules/unilbrk/u32-possible-linebreaks: Likewise.
45871         * modules/unilbrk/u32-width-linebreaks: Likewise.
45872         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
45873         * modules/unilbrk/ulc-width-linebreaks: Likewise.
45874         * modules/uniname/uniname: Likewise.
45875         * modules/uninorm/canonical-decomposition: Likewise.
45876         * modules/uninorm/composition: Likewise.
45877         * modules/uninorm/decomposing-form: Likewise.
45878         * modules/uninorm/decomposition: Likewise.
45879         * modules/uninorm/filter: Likewise.
45880         * modules/uninorm/nfc: Likewise.
45881         * modules/uninorm/nfd: Likewise.
45882         * modules/uninorm/nfkc: Likewise.
45883         * modules/uninorm/nfkd: Likewise.
45884         * modules/uninorm/u8-normalize: Likewise.
45885         * modules/uninorm/u8-normcmp: Likewise.
45886         * modules/uninorm/u8-normcoll: Likewise.
45887         * modules/uninorm/u8-normxfrm: Likewise.
45888         * modules/uninorm/u16-normalize: Likewise.
45889         * modules/uninorm/u16-normcmp: Likewise.
45890         * modules/uninorm/u16-normcoll: Likewise.
45891         * modules/uninorm/u16-normxfrm: Likewise.
45892         * modules/uninorm/u32-normalize: Likewise.
45893         * modules/uninorm/u32-normcmp: Likewise.
45894         * modules/uninorm/u32-normcoll: Likewise.
45895         * modules/uninorm/u32-normxfrm: Likewise.
45896         * modules/unistdio/u8-asnprintf: Likewise.
45897         * modules/unistdio/u8-asprintf: Likewise.
45898         * modules/unistdio/u8-snprintf: Likewise.
45899         * modules/unistdio/u8-sprintf: Likewise.
45900         * modules/unistdio/u8-u8-asnprintf: Likewise.
45901         * modules/unistdio/u8-u8-asprintf: Likewise.
45902         * modules/unistdio/u8-u8-snprintf: Likewise.
45903         * modules/unistdio/u8-u8-sprintf: Likewise.
45904         * modules/unistdio/u8-u8-vasnprintf: Likewise.
45905         * modules/unistdio/u8-u8-vasprintf: Likewise.
45906         * modules/unistdio/u8-u8-vsnprintf: Likewise.
45907         * modules/unistdio/u8-u8-vsprintf: Likewise.
45908         * modules/unistdio/u8-vasnprintf: Likewise.
45909         * modules/unistdio/u8-vasprintf: Likewise.
45910         * modules/unistdio/u8-vsnprintf: Likewise.
45911         * modules/unistdio/u8-vsprintf: Likewise.
45912         * modules/unistdio/u16-asnprintf: Likewise.
45913         * modules/unistdio/u16-asprintf: Likewise.
45914         * modules/unistdio/u16-snprintf: Likewise.
45915         * modules/unistdio/u16-sprintf: Likewise.
45916         * modules/unistdio/u16-u16-asnprintf: Likewise.
45917         * modules/unistdio/u16-u16-asprintf: Likewise.
45918         * modules/unistdio/u16-u16-snprintf: Likewise.
45919         * modules/unistdio/u16-u16-sprintf: Likewise.
45920         * modules/unistdio/u16-u16-vasnprintf: Likewise.
45921         * modules/unistdio/u16-u16-vasprintf: Likewise.
45922         * modules/unistdio/u16-u16-vsnprintf: Likewise.
45923         * modules/unistdio/u16-u16-vsprintf: Likewise.
45924         * modules/unistdio/u16-vasnprintf: Likewise.
45925         * modules/unistdio/u16-vasprintf: Likewise.
45926         * modules/unistdio/u16-vsnprintf: Likewise.
45927         * modules/unistdio/u16-vsprintf: Likewise.
45928         * modules/unistdio/u32-asnprintf: Likewise.
45929         * modules/unistdio/u32-asprintf: Likewise.
45930         * modules/unistdio/u32-snprintf: Likewise.
45931         * modules/unistdio/u32-sprintf: Likewise.
45932         * modules/unistdio/u32-u32-asnprintf: Likewise.
45933         * modules/unistdio/u32-u32-asprintf: Likewise.
45934         * modules/unistdio/u32-u32-snprintf: Likewise.
45935         * modules/unistdio/u32-u32-sprintf: Likewise.
45936         * modules/unistdio/u32-u32-vasnprintf: Likewise.
45937         * modules/unistdio/u32-u32-vasprintf: Likewise.
45938         * modules/unistdio/u32-u32-vsnprintf: Likewise.
45939         * modules/unistdio/u32-u32-vsprintf: Likewise.
45940         * modules/unistdio/u32-vasnprintf: Likewise.
45941         * modules/unistdio/u32-vasprintf: Likewise.
45942         * modules/unistdio/u32-vsnprintf: Likewise.
45943         * modules/unistdio/u32-vsprintf: Likewise.
45944         * modules/unistdio/ulc-asnprintf: Likewise.
45945         * modules/unistdio/ulc-asprintf: Likewise.
45946         * modules/unistdio/ulc-fprintf: Likewise.
45947         * modules/unistdio/ulc-snprintf: Likewise.
45948         * modules/unistdio/ulc-sprintf: Likewise.
45949         * modules/unistdio/ulc-vasnprintf: Likewise.
45950         * modules/unistdio/ulc-vasprintf: Likewise.
45951         * modules/unistdio/ulc-vfprintf: Likewise.
45952         * modules/unistdio/ulc-vsnprintf: Likewise.
45953         * modules/unistdio/ulc-vsprintf: Likewise.
45954         * modules/unistr/u8-check: Likewise.
45955         * modules/unistr/u8-chr: Likewise.
45956         * modules/unistr/u8-cmp: Likewise.
45957         * modules/unistr/u8-cmp2: Likewise.
45958         * modules/unistr/u8-cpy: Likewise.
45959         * modules/unistr/u8-cpy-alloc: Likewise.
45960         * modules/unistr/u8-endswith: Likewise.
45961         * modules/unistr/u8-mblen: Likewise.
45962         * modules/unistr/u8-mbsnlen: Likewise.
45963         * modules/unistr/u8-mbtouc: Likewise.
45964         * modules/unistr/u8-mbtouc-unsafe: Likewise.
45965         * modules/unistr/u8-mbtoucr: Likewise.
45966         * modules/unistr/u8-move: Likewise.
45967         * modules/unistr/u8-next: Likewise.
45968         * modules/unistr/u8-prev: Likewise.
45969         * modules/unistr/u8-set: Likewise.
45970         * modules/unistr/u8-startswith: Likewise.
45971         * modules/unistr/u8-stpcpy: Likewise.
45972         * modules/unistr/u8-stpncpy: Likewise.
45973         * modules/unistr/u8-strcat: Likewise.
45974         * modules/unistr/u8-strchr: Likewise.
45975         * modules/unistr/u8-strcmp: Likewise.
45976         * modules/unistr/u8-strcoll: Likewise.
45977         * modules/unistr/u8-strcpy: Likewise.
45978         * modules/unistr/u8-strcspn: Likewise.
45979         * modules/unistr/u8-strdup: Likewise.
45980         * modules/unistr/u8-strlen: Likewise.
45981         * modules/unistr/u8-strmblen: Likewise.
45982         * modules/unistr/u8-strmbtouc: Likewise.
45983         * modules/unistr/u8-strncat: Likewise.
45984         * modules/unistr/u8-strncmp: Likewise.
45985         * modules/unistr/u8-strncpy: Likewise.
45986         * modules/unistr/u8-strnlen: Likewise.
45987         * modules/unistr/u8-strpbrk: Likewise.
45988         * modules/unistr/u8-strrchr: Likewise.
45989         * modules/unistr/u8-strspn: Likewise.
45990         * modules/unistr/u8-strstr: Likewise.
45991         * modules/unistr/u8-strtok: Likewise.
45992         * modules/unistr/u8-to-u16: Likewise.
45993         * modules/unistr/u8-to-u32: Likewise.
45994         * modules/unistr/u8-uctomb: Likewise.
45995         * modules/unistr/u16-check: Likewise.
45996         * modules/unistr/u16-chr: Likewise.
45997         * modules/unistr/u16-cmp: Likewise.
45998         * modules/unistr/u16-cmp2: Likewise.
45999         * modules/unistr/u16-cpy: Likewise.
46000         * modules/unistr/u16-cpy-alloc: Likewise.
46001         * modules/unistr/u16-endswith: Likewise.
46002         * modules/unistr/u16-mblen: Likewise.
46003         * modules/unistr/u16-mbsnlen: Likewise.
46004         * modules/unistr/u16-mbtouc: Likewise.
46005         * modules/unistr/u16-mbtouc-unsafe: Likewise.
46006         * modules/unistr/u16-mbtoucr: Likewise.
46007         * modules/unistr/u16-move: Likewise.
46008         * modules/unistr/u16-next: Likewise.
46009         * modules/unistr/u16-prev: Likewise.
46010         * modules/unistr/u16-set: Likewise.
46011         * modules/unistr/u16-startswith: Likewise.
46012         * modules/unistr/u16-stpcpy: Likewise.
46013         * modules/unistr/u16-stpncpy: Likewise.
46014         * modules/unistr/u16-strcat: Likewise.
46015         * modules/unistr/u16-strchr: Likewise.
46016         * modules/unistr/u16-strcmp: Likewise.
46017         * modules/unistr/u16-strcoll: Likewise.
46018         * modules/unistr/u16-strcpy: Likewise.
46019         * modules/unistr/u16-strcspn: Likewise.
46020         * modules/unistr/u16-strdup: Likewise.
46021         * modules/unistr/u16-strlen: Likewise.
46022         * modules/unistr/u16-strmblen: Likewise.
46023         * modules/unistr/u16-strmbtouc: Likewise.
46024         * modules/unistr/u16-strncat: Likewise.
46025         * modules/unistr/u16-strncmp: Likewise.
46026         * modules/unistr/u16-strncpy: Likewise.
46027         * modules/unistr/u16-strnlen: Likewise.
46028         * modules/unistr/u16-strpbrk: Likewise.
46029         * modules/unistr/u16-strrchr: Likewise.
46030         * modules/unistr/u16-strspn: Likewise.
46031         * modules/unistr/u16-strstr: Likewise.
46032         * modules/unistr/u16-strtok: Likewise.
46033         * modules/unistr/u16-to-u32: Likewise.
46034         * modules/unistr/u16-to-u8: Likewise.
46035         * modules/unistr/u16-uctomb: Likewise.
46036         * modules/unistr/u32-check: Likewise.
46037         * modules/unistr/u32-chr: Likewise.
46038         * modules/unistr/u32-cmp: Likewise.
46039         * modules/unistr/u32-cmp2: Likewise.
46040         * modules/unistr/u32-cpy: Likewise.
46041         * modules/unistr/u32-cpy-alloc: Likewise.
46042         * modules/unistr/u32-endswith: Likewise.
46043         * modules/unistr/u32-mblen: Likewise.
46044         * modules/unistr/u32-mbsnlen: Likewise.
46045         * modules/unistr/u32-mbtouc: Likewise.
46046         * modules/unistr/u32-mbtouc-unsafe: Likewise.
46047         * modules/unistr/u32-mbtoucr: Likewise.
46048         * modules/unistr/u32-move: Likewise.
46049         * modules/unistr/u32-next: Likewise.
46050         * modules/unistr/u32-prev: Likewise.
46051         * modules/unistr/u32-set: Likewise.
46052         * modules/unistr/u32-startswith: Likewise.
46053         * modules/unistr/u32-stpcpy: Likewise.
46054         * modules/unistr/u32-stpncpy: Likewise.
46055         * modules/unistr/u32-strcat: Likewise.
46056         * modules/unistr/u32-strchr: Likewise.
46057         * modules/unistr/u32-strcmp: Likewise.
46058         * modules/unistr/u32-strcoll: Likewise.
46059         * modules/unistr/u32-strcpy: Likewise.
46060         * modules/unistr/u32-strcspn: Likewise.
46061         * modules/unistr/u32-strdup: Likewise.
46062         * modules/unistr/u32-strlen: Likewise.
46063         * modules/unistr/u32-strmblen: Likewise.
46064         * modules/unistr/u32-strmbtouc: Likewise.
46065         * modules/unistr/u32-strncat: Likewise.
46066         * modules/unistr/u32-strncmp: Likewise.
46067         * modules/unistr/u32-strncpy: Likewise.
46068         * modules/unistr/u32-strnlen: Likewise.
46069         * modules/unistr/u32-strpbrk: Likewise.
46070         * modules/unistr/u32-strrchr: Likewise.
46071         * modules/unistr/u32-strspn: Likewise.
46072         * modules/unistr/u32-strstr: Likewise.
46073         * modules/unistr/u32-strtok: Likewise.
46074         * modules/unistr/u32-to-u16: Likewise.
46075         * modules/unistr/u32-to-u8: Likewise.
46076         * modules/unistr/u32-uctomb: Likewise.
46077         * modules/uniwbrk/u8-wordbreaks: Likewise.
46078         * modules/uniwbrk/u16-wordbreaks: Likewise.
46079         * modules/uniwbrk/u32-wordbreaks: Likewise.
46080         * modules/uniwbrk/ulc-wordbreaks: Likewise.
46081         * modules/uniwbrk/wordbreak-property: Likewise.
46082         * modules/uniwidth/u8-strwidth: Likewise.
46083         * modules/uniwidth/u8-width: Likewise.
46084         * modules/uniwidth/u16-strwidth: Likewise.
46085         * modules/uniwidth/u16-width: Likewise.
46086         * modules/uniwidth/u32-strwidth: Likewise.
46087         * modules/uniwidth/u32-width: Likewise.
46088         * modules/uniwidth/width: Likewise.
46089         * modules/unicase/cased-tests (Makefile.am): Link all test programs
46090         with $(LIBUNISTRING).
46091         * modules/unicase/ignorable-tests: Likewise.
46092         * modules/unicase/locale-language-tests: Likewise.
46093         * modules/unicase/tolower-tests: Likewise.
46094         * modules/unicase/totitle-tests: Likewise.
46095         * modules/unicase/toupper-tests: Likewise.
46096         * modules/unicase/u8-casecmp-tests: Likewise.
46097         * modules/unicase/u8-casecoll-tests: Likewise.
46098         * modules/unicase/u8-casefold-tests: Likewise.
46099         * modules/unicase/u8-is-cased-tests: Likewise.
46100         * modules/unicase/u8-is-casefolded-tests: Likewise.
46101         * modules/unicase/u8-is-lowercase-tests: Likewise.
46102         * modules/unicase/u8-is-titlecase-tests: Likewise.
46103         * modules/unicase/u8-is-uppercase-tests: Likewise.
46104         * modules/unicase/u8-tolower-tests: Likewise.
46105         * modules/unicase/u8-totitle-tests: Likewise.
46106         * modules/unicase/u8-toupper-tests: Likewise.
46107         * modules/unicase/u16-casecmp-tests: Likewise.
46108         * modules/unicase/u16-casecoll-tests: Likewise.
46109         * modules/unicase/u16-casefold-tests: Likewise.
46110         * modules/unicase/u16-is-cased-tests: Likewise.
46111         * modules/unicase/u16-is-casefolded-tests: Likewise.
46112         * modules/unicase/u16-is-lowercase-tests: Likewise.
46113         * modules/unicase/u16-is-titlecase-tests: Likewise.
46114         * modules/unicase/u16-is-uppercase-tests: Likewise.
46115         * modules/unicase/u16-tolower-tests: Likewise.
46116         * modules/unicase/u16-totitle-tests: Likewise.
46117         * modules/unicase/u16-toupper-tests: Likewise.
46118         * modules/unicase/u32-casecmp-tests: Likewise.
46119         * modules/unicase/u32-casecoll-tests: Likewise.
46120         * modules/unicase/u32-casefold-tests: Likewise.
46121         * modules/unicase/u32-is-cased-tests: Likewise.
46122         * modules/unicase/u32-is-casefolded-tests: Likewise.
46123         * modules/unicase/u32-is-lowercase-tests: Likewise.
46124         * modules/unicase/u32-is-titlecase-tests: Likewise.
46125         * modules/unicase/u32-is-uppercase-tests: Likewise.
46126         * modules/unicase/u32-tolower-tests: Likewise.
46127         * modules/unicase/u32-totitle-tests: Likewise.
46128         * modules/unicase/u32-toupper-tests: Likewise.
46129         * modules/unicase/ulc-casecmp-tests: Likewise.
46130         * modules/unicase/ulc-casecoll-tests: Likewise.
46131         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
46132         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
46133         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
46134         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
46135         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
46136         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
46137         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
46138         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
46139         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
46140         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
46141         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
46142         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
46143         * modules/unictype/bidicategory-byname-tests: Likewise.
46144         * modules/unictype/bidicategory-name-tests: Likewise.
46145         * modules/unictype/bidicategory-of-tests: Likewise.
46146         * modules/unictype/bidicategory-test-tests: Likewise.
46147         * modules/unictype/block-list-tests: Likewise.
46148         * modules/unictype/block-of-tests: Likewise.
46149         * modules/unictype/block-test-tests: Likewise.
46150         * modules/unictype/category-C-tests: Likewise.
46151         * modules/unictype/category-Cc-tests: Likewise.
46152         * modules/unictype/category-Cf-tests: Likewise.
46153         * modules/unictype/category-Cn-tests: Likewise.
46154         * modules/unictype/category-Co-tests: Likewise.
46155         * modules/unictype/category-Cs-tests: Likewise.
46156         * modules/unictype/category-L-tests: Likewise.
46157         * modules/unictype/category-Ll-tests: Likewise.
46158         * modules/unictype/category-Lm-tests: Likewise.
46159         * modules/unictype/category-Lo-tests: Likewise.
46160         * modules/unictype/category-Lt-tests: Likewise.
46161         * modules/unictype/category-Lu-tests: Likewise.
46162         * modules/unictype/category-M-tests: Likewise.
46163         * modules/unictype/category-Mc-tests: Likewise.
46164         * modules/unictype/category-Me-tests: Likewise.
46165         * modules/unictype/category-Mn-tests: Likewise.
46166         * modules/unictype/category-N-tests: Likewise.
46167         * modules/unictype/category-Nd-tests: Likewise.
46168         * modules/unictype/category-Nl-tests: Likewise.
46169         * modules/unictype/category-No-tests: Likewise.
46170         * modules/unictype/category-P-tests: Likewise.
46171         * modules/unictype/category-Pc-tests: Likewise.
46172         * modules/unictype/category-Pd-tests: Likewise.
46173         * modules/unictype/category-Pe-tests: Likewise.
46174         * modules/unictype/category-Pf-tests: Likewise.
46175         * modules/unictype/category-Pi-tests: Likewise.
46176         * modules/unictype/category-Po-tests: Likewise.
46177         * modules/unictype/category-Ps-tests: Likewise.
46178         * modules/unictype/category-S-tests: Likewise.
46179         * modules/unictype/category-Sc-tests: Likewise.
46180         * modules/unictype/category-Sk-tests: Likewise.
46181         * modules/unictype/category-Sm-tests: Likewise.
46182         * modules/unictype/category-So-tests: Likewise.
46183         * modules/unictype/category-Z-tests: Likewise.
46184         * modules/unictype/category-Zl-tests: Likewise.
46185         * modules/unictype/category-Zp-tests: Likewise.
46186         * modules/unictype/category-Zs-tests: Likewise.
46187         * modules/unictype/category-and-not-tests: Likewise.
46188         * modules/unictype/category-and-tests: Likewise.
46189         * modules/unictype/category-byname-tests: Likewise.
46190         * modules/unictype/category-name-tests: Likewise.
46191         * modules/unictype/category-none-tests: Likewise.
46192         * modules/unictype/category-of-tests: Likewise.
46193         * modules/unictype/category-or-tests: Likewise.
46194         * modules/unictype/category-test-withtable-tests: Likewise.
46195         * modules/unictype/combining-class-tests: Likewise.
46196         * modules/unictype/ctype-alnum-tests: Likewise.
46197         * modules/unictype/ctype-alpha-tests: Likewise.
46198         * modules/unictype/ctype-blank-tests: Likewise.
46199         * modules/unictype/ctype-cntrl-tests: Likewise.
46200         * modules/unictype/ctype-digit-tests: Likewise.
46201         * modules/unictype/ctype-graph-tests: Likewise.
46202         * modules/unictype/ctype-lower-tests: Likewise.
46203         * modules/unictype/ctype-print-tests: Likewise.
46204         * modules/unictype/ctype-punct-tests: Likewise.
46205         * modules/unictype/ctype-space-tests: Likewise.
46206         * modules/unictype/ctype-upper-tests: Likewise.
46207         * modules/unictype/ctype-xdigit-tests: Likewise.
46208         * modules/unictype/decimal-digit-tests: Likewise.
46209         * modules/unictype/digit-tests: Likewise.
46210         * modules/unictype/mirror-tests: Likewise.
46211         * modules/unictype/numeric-tests: Likewise.
46212         * modules/unictype/property-alphabetic-tests: Likewise.
46213         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
46214         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
46215         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
46216         * modules/unictype/property-bidi-block-separator-tests: Likewise.
46217         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
46218         * modules/unictype/property-bidi-common-separator-tests: Likewise.
46219         * modules/unictype/property-bidi-control-tests: Likewise.
46220         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
46221         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
46222         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
46223         * modules/unictype/property-bidi-european-digit-tests: Likewise.
46224         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
46225         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
46226         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
46227         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
46228         * modules/unictype/property-bidi-pdf-tests: Likewise.
46229         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
46230         * modules/unictype/property-bidi-whitespace-tests: Likewise.
46231         * modules/unictype/property-byname-tests: Likewise.
46232         * modules/unictype/property-combining-tests: Likewise.
46233         * modules/unictype/property-composite-tests: Likewise.
46234         * modules/unictype/property-currency-symbol-tests: Likewise.
46235         * modules/unictype/property-dash-tests: Likewise.
46236         * modules/unictype/property-decimal-digit-tests: Likewise.
46237         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
46238         * modules/unictype/property-deprecated-tests: Likewise.
46239         * modules/unictype/property-diacritic-tests: Likewise.
46240         * modules/unictype/property-extender-tests: Likewise.
46241         * modules/unictype/property-format-control-tests: Likewise.
46242         * modules/unictype/property-grapheme-base-tests: Likewise.
46243         * modules/unictype/property-grapheme-extend-tests: Likewise.
46244         * modules/unictype/property-grapheme-link-tests: Likewise.
46245         * modules/unictype/property-hex-digit-tests: Likewise.
46246         * modules/unictype/property-hyphen-tests: Likewise.
46247         * modules/unictype/property-id-continue-tests: Likewise.
46248         * modules/unictype/property-id-start-tests: Likewise.
46249         * modules/unictype/property-ideographic-tests: Likewise.
46250         * modules/unictype/property-ids-binary-operator-tests: Likewise.
46251         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
46252         * modules/unictype/property-ignorable-control-tests: Likewise.
46253         * modules/unictype/property-iso-control-tests: Likewise.
46254         * modules/unictype/property-join-control-tests: Likewise.
46255         * modules/unictype/property-left-of-pair-tests: Likewise.
46256         * modules/unictype/property-line-separator-tests: Likewise.
46257         * modules/unictype/property-logical-order-exception-tests: Likewise.
46258         * modules/unictype/property-lowercase-tests: Likewise.
46259         * modules/unictype/property-math-tests: Likewise.
46260         * modules/unictype/property-non-break-tests: Likewise.
46261         * modules/unictype/property-not-a-character-tests: Likewise.
46262         * modules/unictype/property-numeric-tests: Likewise.
46263         * modules/unictype/property-other-alphabetic-tests: Likewise.
46264         * modules/unictype/property-other-default-ignorable-code-point-tests:
46265         Likewise.
46266         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
46267         * modules/unictype/property-other-id-continue-tests: Likewise.
46268         * modules/unictype/property-other-id-start-tests: Likewise.
46269         * modules/unictype/property-other-lowercase-tests: Likewise.
46270         * modules/unictype/property-other-math-tests: Likewise.
46271         * modules/unictype/property-other-uppercase-tests: Likewise.
46272         * modules/unictype/property-paired-punctuation-tests: Likewise.
46273         * modules/unictype/property-paragraph-separator-tests: Likewise.
46274         * modules/unictype/property-pattern-syntax-tests: Likewise.
46275         * modules/unictype/property-pattern-white-space-tests: Likewise.
46276         * modules/unictype/property-private-use-tests: Likewise.
46277         * modules/unictype/property-punctuation-tests: Likewise.
46278         * modules/unictype/property-quotation-mark-tests: Likewise.
46279         * modules/unictype/property-radical-tests: Likewise.
46280         * modules/unictype/property-sentence-terminal-tests: Likewise.
46281         * modules/unictype/property-soft-dotted-tests: Likewise.
46282         * modules/unictype/property-space-tests: Likewise.
46283         * modules/unictype/property-terminal-punctuation-tests: Likewise.
46284         * modules/unictype/property-test-tests: Likewise.
46285         * modules/unictype/property-titlecase-tests: Likewise.
46286         * modules/unictype/property-unassigned-code-value-tests: Likewise.
46287         * modules/unictype/property-unified-ideograph-tests: Likewise.
46288         * modules/unictype/property-uppercase-tests: Likewise.
46289         * modules/unictype/property-variation-selector-tests: Likewise.
46290         * modules/unictype/property-white-space-tests: Likewise.
46291         * modules/unictype/property-xid-continue-tests: Likewise.
46292         * modules/unictype/property-xid-start-tests: Likewise.
46293         * modules/unictype/property-zero-width-tests: Likewise.
46294         * modules/unictype/scripts-tests: Likewise.
46295         * modules/unictype/syntax-c-ident-tests: Likewise.
46296         * modules/unictype/syntax-c-whitespace-tests: Likewise.
46297         * modules/unictype/syntax-java-ident-tests: Likewise.
46298         * modules/unictype/syntax-java-whitespace-tests: Likewise.
46299         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
46300         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
46301         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
46302         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
46303         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
46304         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
46305         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
46306         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
46307         * modules/uniname/uniname-tests: Likewise.
46308         * modules/uninorm/canonical-decomposition-tests: Likewise.
46309         * modules/uninorm/compat-decomposition-tests: Likewise.
46310         * modules/uninorm/composition-tests: Likewise.
46311         * modules/uninorm/decomposing-form-tests: Likewise.
46312         * modules/uninorm/decomposition-tests: Likewise.
46313         * modules/uninorm/filter-tests: Likewise.
46314         * modules/uninorm/nfc-tests: Likewise.
46315         * modules/uninorm/nfd-tests: Likewise.
46316         * modules/uninorm/nfkc-tests: Likewise.
46317         * modules/uninorm/nfkd-tests: Likewise.
46318         * modules/uninorm/u8-normcmp-tests: Likewise.
46319         * modules/uninorm/u8-normcoll-tests: Likewise.
46320         * modules/uninorm/u16-normcmp-tests: Likewise.
46321         * modules/uninorm/u16-normcoll-tests: Likewise.
46322         * modules/uninorm/u32-normcmp-tests: Likewise.
46323         * modules/uninorm/u32-normcoll-tests: Likewise.
46324         * modules/unistdio/u8-asnprintf-tests: Likewise.
46325         * modules/unistdio/u8-vasnprintf-tests: Likewise.
46326         * modules/unistdio/u8-vasprintf-tests: Likewise.
46327         * modules/unistdio/u8-vsnprintf-tests: Likewise.
46328         * modules/unistdio/u8-vsprintf-tests: Likewise.
46329         * modules/unistdio/u16-asnprintf-tests: Likewise.
46330         * modules/unistdio/u16-vasnprintf-tests: Likewise.
46331         * modules/unistdio/u16-vasprintf-tests: Likewise.
46332         * modules/unistdio/u16-vsnprintf-tests: Likewise.
46333         * modules/unistdio/u16-vsprintf-tests: Likewise.
46334         * modules/unistdio/u32-asnprintf-tests: Likewise.
46335         * modules/unistdio/u32-vasnprintf-tests: Likewise.
46336         * modules/unistdio/u32-vasprintf-tests: Likewise.
46337         * modules/unistdio/u32-vsnprintf-tests: Likewise.
46338         * modules/unistdio/u32-vsprintf-tests: Likewise.
46339         * modules/unistdio/ulc-asnprintf-tests: Likewise.
46340         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
46341         * modules/unistdio/ulc-vasprintf-tests: Likewise.
46342         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
46343         * modules/unistdio/ulc-vsprintf-tests: Likewise.
46344         * modules/unistr/u8-check-tests: Likewise.
46345         * modules/unistr/u8-chr-tests: Likewise.
46346         * modules/unistr/u8-cmp-tests: Likewise.
46347         * modules/unistr/u8-cmp2-tests: Likewise.
46348         * modules/unistr/u8-cpy-alloc-tests: Likewise.
46349         * modules/unistr/u8-cpy-tests: Likewise.
46350         * modules/unistr/u8-mblen-tests: Likewise.
46351         * modules/unistr/u8-mbsnlen-tests: Likewise.
46352         * modules/unistr/u8-mbtouc-tests: Likewise.
46353         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
46354         * modules/unistr/u8-mbtoucr-tests: Likewise.
46355         * modules/unistr/u8-move-tests: Likewise.
46356         * modules/unistr/u8-next-tests: Likewise.
46357         * modules/unistr/u8-prev-tests: Likewise.
46358         * modules/unistr/u8-set-tests: Likewise.
46359         * modules/unistr/u8-stpcpy-tests: Likewise.
46360         * modules/unistr/u8-stpncpy-tests: Likewise.
46361         * modules/unistr/u8-strcat-tests: Likewise.
46362         * modules/unistr/u8-strcmp-tests: Likewise.
46363         * modules/unistr/u8-strcoll-tests: Likewise.
46364         * modules/unistr/u8-strcpy-tests: Likewise.
46365         * modules/unistr/u8-strdup-tests: Likewise.
46366         * modules/unistr/u8-strlen-tests: Likewise.
46367         * modules/unistr/u8-strmblen-tests: Likewise.
46368         * modules/unistr/u8-strmbtouc-tests: Likewise.
46369         * modules/unistr/u8-strncat-tests: Likewise.
46370         * modules/unistr/u8-strncmp-tests: Likewise.
46371         * modules/unistr/u8-strncpy-tests: Likewise.
46372         * modules/unistr/u8-strnlen-tests: Likewise.
46373         * modules/unistr/u8-to-u16-tests: Likewise.
46374         * modules/unistr/u8-to-u32-tests: Likewise.
46375         * modules/unistr/u8-uctomb-tests: Likewise.
46376         * modules/unistr/u16-check-tests: Likewise.
46377         * modules/unistr/u16-chr-tests: Likewise.
46378         * modules/unistr/u16-cmp-tests: Likewise.
46379         * modules/unistr/u16-cmp2-tests: Likewise.
46380         * modules/unistr/u16-cpy-alloc-tests: Likewise.
46381         * modules/unistr/u16-cpy-tests: Likewise.
46382         * modules/unistr/u16-mblen-tests: Likewise.
46383         * modules/unistr/u16-mbsnlen-tests: Likewise.
46384         * modules/unistr/u16-mbtouc-tests: Likewise.
46385         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
46386         * modules/unistr/u16-mbtoucr-tests: Likewise.
46387         * modules/unistr/u16-move-tests: Likewise.
46388         * modules/unistr/u16-next-tests: Likewise.
46389         * modules/unistr/u16-prev-tests: Likewise.
46390         * modules/unistr/u16-set-tests: Likewise.
46391         * modules/unistr/u16-stpcpy-tests: Likewise.
46392         * modules/unistr/u16-stpncpy-tests: Likewise.
46393         * modules/unistr/u16-strcat-tests: Likewise.
46394         * modules/unistr/u16-strcmp-tests: Likewise.
46395         * modules/unistr/u16-strcoll-tests: Likewise.
46396         * modules/unistr/u16-strcpy-tests: Likewise.
46397         * modules/unistr/u16-strdup-tests: Likewise.
46398         * modules/unistr/u16-strlen-tests: Likewise.
46399         * modules/unistr/u16-strmblen-tests: Likewise.
46400         * modules/unistr/u16-strmbtouc-tests: Likewise.
46401         * modules/unistr/u16-strncat-tests: Likewise.
46402         * modules/unistr/u16-strncmp-tests: Likewise.
46403         * modules/unistr/u16-strncpy-tests: Likewise.
46404         * modules/unistr/u16-strnlen-tests: Likewise.
46405         * modules/unistr/u16-to-u32-tests: Likewise.
46406         * modules/unistr/u16-to-u8-tests: Likewise.
46407         * modules/unistr/u16-uctomb-tests: Likewise.
46408         * modules/unistr/u32-check-tests: Likewise.
46409         * modules/unistr/u32-chr-tests: Likewise.
46410         * modules/unistr/u32-cmp-tests: Likewise.
46411         * modules/unistr/u32-cmp2-tests: Likewise.
46412         * modules/unistr/u32-cpy-alloc-tests: Likewise.
46413         * modules/unistr/u32-cpy-tests: Likewise.
46414         * modules/unistr/u32-mblen-tests: Likewise.
46415         * modules/unistr/u32-mbsnlen-tests: Likewise.
46416         * modules/unistr/u32-mbtouc-tests: Likewise.
46417         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
46418         * modules/unistr/u32-mbtoucr-tests: Likewise.
46419         * modules/unistr/u32-move-tests: Likewise.
46420         * modules/unistr/u32-next-tests: Likewise.
46421         * modules/unistr/u32-prev-tests: Likewise.
46422         * modules/unistr/u32-set-tests: Likewise.
46423         * modules/unistr/u32-stpcpy-tests: Likewise.
46424         * modules/unistr/u32-stpncpy-tests: Likewise.
46425         * modules/unistr/u32-strcat-tests: Likewise.
46426         * modules/unistr/u32-strcmp-tests: Likewise.
46427         * modules/unistr/u32-strcoll-tests: Likewise.
46428         * modules/unistr/u32-strcpy-tests: Likewise.
46429         * modules/unistr/u32-strdup-tests: Likewise.
46430         * modules/unistr/u32-strlen-tests: Likewise.
46431         * modules/unistr/u32-strmblen-tests: Likewise.
46432         * modules/unistr/u32-strmbtouc-tests: Likewise.
46433         * modules/unistr/u32-strncat-tests: Likewise.
46434         * modules/unistr/u32-strncmp-tests: Likewise.
46435         * modules/unistr/u32-strncpy-tests: Likewise.
46436         * modules/unistr/u32-strnlen-tests: Likewise.
46437         * modules/unistr/u32-to-u16-tests: Likewise.
46438         * modules/unistr/u32-to-u8-tests: Likewise.
46439         * modules/unistr/u32-uctomb-tests: Likewise.
46440         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
46441         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
46442         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
46443         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
46444         * modules/uniwidth/u8-strwidth-tests: Likewise.
46445         * modules/uniwidth/u8-width-tests: Likewise.
46446         * modules/uniwidth/u16-strwidth-tests: Likewise.
46447         * modules/uniwidth/u16-width-tests: Likewise.
46448         * modules/uniwidth/u32-strwidth-tests: Likewise.
46449         * modules/uniwidth/u32-width-tests: Likewise.
46450         * modules/uniwidth/width-tests: Likewise.
46452 2010-05-18  Richard Jones  <rjones@redhat.com>
46454         doc: users.txt: list hivex
46455         * users.txt: Add hivex.
46457 2010-05-18  Richard Jones  <rjones@redhat.com>
46459         doc: users.txt: list febootstrap
46460         * users.txt: Add febootstrap.
46462 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
46464         bootstrap: fix an error when gnulib is not used as a git submodule
46465         * build-aux/bootstrap (gnulib_path): If its length is zero then
46466         assign "gnulib" to it.
46467         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
46469 2010-05-16  Bruno Haible  <bruno@clisp.org>
46471         Avoid autoconf warnings about AM_ICONV.
46472         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
46473         2.64.
46475 2010-05-16  Bruno Haible  <bruno@clisp.org>
46477         absolute-header: Make the macro usable in more situations.
46478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
46479         from gl_ABSOLUTE_HEADER.
46480         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
46482 2010-05-16  James Youngman  <jay@gnu.org>
46484         doc: update users.txt
46485         * users.txt: Add CSSC.
46487 2010-05-16  Jim Meyering  <meyering@redhat.com>
46489         init.sh: fix an error in the previous change; add more comments
46490         * tests/init.sh: Compare exit code in loop against 9, not 2.
46491         Patch by Bruno Haible.
46492         Make the two tests more similar by adding an empty "then" clause.
46493         Add comments.
46495         init.sh: avoid unnecessary shell re-exec
46496         * tests/init.sh: Improve the re-exec-required check to first test the
46497         current shell.  If it passes the test, do not search for a shell that
46498         does pass, and do not re-exec.  This test is particularly contorted to
46499         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
46500         of $(...) evokes a syntax error and causes immediate shell exit with
46501         status 2.  Bruno Haible reported that the re-exec made it impossible
46502         to single-step through any init.sh-using script.
46504 2010-05-16  Bruno Haible  <bruno@clisp.org>
46506         Fix collision between gnulib's and libintl's printf replacements.
46507         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
46508         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
46509         (printf): When using GNU C, map the __printf__ function to rpl_printf
46510         via __asm__. When not using GNU C, define rpl_printf instead of
46511         __printf__.
46512         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
46513         commit.
46514         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
46515         commit.
46516         * m4/asm-underscore.m4: New file.
46517         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
46518         * modules/stdio (Files): Add m4/asm-underscore.m4.
46519         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
46520         Reported by Ben Pfaff.
46522 2010-05-16  Bruno Haible  <bruno@clisp.org>
46524         verify: Avoid skipping the test on openSUSE 11.0.
46525         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
46527 2010-05-13  Bruno Haible  <bruno@clisp.org>
46529         Avoid useless warnings from G++.
46530         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
46531         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
46532         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46534 2010-05-11  Jim Meyering  <meyering@redhat.com>
46536         maint.mk: tweak preceding change
46537         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
46538         regexps tighter by anchoring at EOL, and make the new group "shy"
46539         for slightly decreased overhead.
46541 2010-05-11  Eric Blake  <eblake@redhat.com>
46543         maint.mk: gnulib doesn't guarantee NSIG
46544         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
46546 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
46548         test-pwrite.c: Remove unused variable declaration.
46549         * tests/test-pwrite.c (main): Remove read_buf declaration.
46551         Remove useless test-pwrite.sh file.
46552         * tests/test-pwrite.sh: Delete file.
46553         * modules/pwrite-tests: Remove references.
46554         Reported by Bruno Haible.
46556 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
46558         init.sh: fix a typo
46559         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
46561 2010-05-10  Jim Meyering  <meyering@redhat.com>
46563         maint.mk: avoid using a temporary file in the always-defined-macros check
46564         * top/maint.mk (.re-defmac): Remove rule.
46565         (gl_trap_): Remove definition.
46566         (sc_prohibit_always-defined_macros): Rewrite not to create and
46567         depend on a temporary file.  Instead, depend on GNU grep's ability
46568         to read a list of regular expressions from stdin when given "-f -".
46570 2010-05-09  Bruno Haible  <bruno@clisp.org>
46572         Update to GNU gettext 0.18, part 1.
46573         * m4/gettext.m4: Update to GNU gettext 0.18.
46574         * m4/intl.m4: Likewise.
46575         * m4/po.m4: Likewise.
46576         * modules/gettext (Files): Add m4/fcntl-o.m4.
46577         (configure.ac): Require gettext infrastructure from version 0.18.
46579 2010-05-09  Jim Meyering  <meyering@redhat.com>
46581         init.sh: enable MALLOC_PERTURB_
46582         * tests/init.sh: Enable glibc's malloc-perturbing option.
46584         maint.mk: improve sc_cross_check_PATH_usage_in_tests
46585         With my recent change in init.sh from the two-line form:
46586             -#   : ${srcdir=.}
46587             -#   . "$srcdir/init.sh"; path_prepend_ .
46588             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
46589         I noticed that using the one-line form would cause this test
46590         to fail with a false-positive, or to stop working altogether,
46591         depending on whether help-version changed or all the tests did.
46592         * top/maint.mk (_hv_regex): Remove this definition.
46593         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
46594         (_hv_regex_strong): Use a stronger regex to check for conformance.
46595         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
46596         Give a separate diagnostic for lack of conforming use.
46598         maint.mk: prohibit definition of symbols defined by gnulib
46599         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
46600         definition of symbols defined by gnulib.
46602 2010-05-09  Bruno Haible  <bruno@clisp.org>
46604         acl: Avoid test failure on Cygwin-hosted mingw.
46605         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
46607 2010-05-09  Bruno Haible  <bruno@clisp.org>
46609         error: Use system's fcntl function.
46610         * lib/error.c (fcntl): Undefine.
46612 2010-05-09  Jim Meyering  <meyering@redhat.com>
46614         verify: adjust formatting to be more consistent
46615         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
46616         argument-list '('s, and after one comma.
46618 2010-05-09  Bruno Haible  <bruno@clisp.org>
46620         error: More reliable output on mingw.
46621         * lib/error.c: Include <windows.h>.
46622         (is_open): New function.
46623         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
46624         defined.
46626 2010-05-09  Bruno Haible  <bruno@clisp.org>
46628         vasnprintf: Fix syntax errors in libintl build on mingw.
46629         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
46630         pad_ourselves and prec_ourselves after use.
46632 2010-05-08  Bruno Haible  <bruno@clisp.org>
46634         * lib/config.charset: Update comments for Cygwin 1.7.
46635         * lib/localcharset.c: Likewise.
46637 2010-05-07  Jim Meyering  <meyering@redhat.com>
46639         init.sh: improve comments
46640         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
46641         . "${srcdir=.}/init.sh"; path_prepend_ .
46642         Add a note about path_prepend_ and the alternative of using
46643         TESTS_ENVIRONMENT.
46645 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46647         exclude: Unescape hashed patterns in wildcard mode.
46648         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
46649         to the hash list.
46650         * tests/test-exclude8.sh: New test case.
46651         * modules/exclude-tests: Add new test.
46653 2010-05-05  Eric Blake  <eblake@redhat.com>
46655         verify: automate tests
46656         * modules/verify-tests: New module.
46657         * tests/test-verify.sh: New file.
46658         * tests/test-verify.c: Guard each negative test with a unique id.
46659         Also avoid warning about unused left hand of comma expressions.
46661 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
46663         Further improvements to verify.h, suggested by Eric Blake.
46664         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
46665         the GL_* versions, to avoid collision with OpenGL.
46666         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
46667         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
46668         than testing merely whether it's defined.
46670         Modify verify.h to pacify gcc -Wredundant_decls.
46671         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
46672         These use the prefix "GL_" since they're likely to be useful elsewhere.
46673         We may need to break them out into a different .h file.
46674         (__COUNTER__): Define to 0 if the compiler doesn't support it.
46675         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
46676         of verify_function__.
46678 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46680         Tests for module pwrite.
46681         * modules/pwrite-tests: New file.
46682         * tests/test-pwrite.sh: New file.
46683         * tests/test-pwrite.c: New file.
46685         New module pwrite.
46686         * lib/unistd.in.h (pwrite): New declaration.
46687         * lib/pwrite.c: New file, from glibc with modifications.
46688         * m4/pwrite.m4: New file.
46689         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
46690         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
46691         REPLACE_PWRITE.
46692         * modules/pwrite: New file.
46693         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
46694         REPLACE_PWRITE.
46695         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
46696         * doc/posix-functions/pwrite.texi: Mention the new module.
46698 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46700         pread: Update documentation.
46701         * doc/posix-functions/pread.texi: Mention the 'pread' module.
46703 2010-05-04  Eric Blake  <eblake@redhat.com>
46705         docs: update cygwin progress
46706         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
46707         this bug.
46708         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
46709         Added in cygwin 1.7.2.
46710         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
46711         Likewise.
46712         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
46713         Likewise.
46714         * doc/glibc-functions/dup3.texi (dup3): Likewise.
46715         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
46716         * doc/glibc-functions/accept4.texi (accept4): Likewise.
46717         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
46718         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
46719         Mention nproc module.
46720         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
46721         bug in cygwin 1.7.5 addition.
46722         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
46723         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
46724         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
46725         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
46726         1.7.5.
46727         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
46728         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
46729         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
46730         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
46731         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
46732         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
46733         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
46734         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
46735         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
46736         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
46737         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
46738         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
46739         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
46740         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
46741         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
46742         Likewise.
46743         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
46744         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
46745         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
46746         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
46747         Likewise.
46748         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
46749         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
46750         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
46751         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
46752         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
46753         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
46754         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
46755         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
46756         Likewise.
46757         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
46758         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
46759         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
46760         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
46761         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
46762         Likewise.
46763         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
46764         Likewise.
46765         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
46766         Likewise.
46767         * doc/glibc-functions/xdrrec_endofrecord.texi
46768         (xdrrec_endofrecord): Likewise.
46769         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
46770         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
46771         Likewise.
46772         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
46773         Likewise.
46775 2010-05-04  Jim Meyering  <meyering@redhat.com>
46777         gendocs.sh: make its "-s FILE" option more useful
46778         * build-aux/gendocs.sh: When honoring the -s FILE option, update
46779         $PACKAGE to reflect the probably-different basename of "FILE".
46781 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46783         bootstrap: don't ignore download_po_files failure
46784         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
46785         failure.
46787 2010-05-03  Jim Meyering  <meyering@redhat.com>
46789         maint.mk: allow to pass options to gendocs.sh
46790         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
46791         (gendocs_options_): New overridable variable.
46793         gnu-web-doc-update: don't ignore configure or build failure
46794         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
46796         announce-gen: backslash-escape '@'s in --help output
46797         * build-aux/announce-gen: Fix syntax errors.
46799         maint.mk, announce-gen: allow project-specific announcement mail headers
46800         * top/maint.mk (translation_project_): Define default.
46801         (announcement_Cc_, announcement_mail_headers_): Likewise.
46802         (announcement): Invoke announce-gen with new --mail-headers option.
46803         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
46805         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
46806         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
46807         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
46808         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
46809         line in the "err2" output file when running "make check" in verbose
46810         mode (i.e., with set -x enabled).
46812 2010-05-03  Bruno Haible  <bruno@clisp.org>
46814         wctob: Fix for weird platforms.
46815         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
46816         argument value.
46818 2010-05-03  Jim Meyering  <meyering@redhat.com>
46820         maint.mk: prohibit unwarranted use of <strings.h>
46821         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
46822         strings.h in a file that does not also use strcasecmp, strncasecmp,
46823         ffs or ffsll.
46825         maint.mk: remove obsolete comments
46826         * top/maint.mk: Remove stale, commented-out rules.
46828 2010-05-02  Bruno Haible  <bruno@clisp.org>
46830         wcwidth: Declare also when it's aliased.
46831         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
46832         macro.
46834 2010-05-02  Bruno Haible  <bruno@clisp.org>
46836         Fix regression from 2010-04-25.
46837         * gnulib-tool (func_modules_transitive_closure): Check the status of
46838         all modules, not only of the tests that are of the form foo-tests where
46839         foo is a module.
46841 2010-05-02  Bruno Haible  <bruno@clisp.org>
46843         wctob: Work around nasty Cygwin 1.7.2 bug.
46844         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
46845         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
46847 2010-05-01  Bruno Haible  <bruno@clisp.org>
46849         fpurge: Sharper test.
46850         * tests/test-fpurge.c (main): Add one more ftell check.
46851         * modules/fpurge-tests (Depends-on): Add ftell.
46852         Suggested by Eric Blake.
46854 2010-05-01  Bruno Haible  <bruno@clisp.org>
46856         ftello: Another test.
46857         * tests/test-ftello3.c: New file.
46858         * modules/ftello-tests (Files): Add it.
46859         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
46860         MOSTLYCLEANFILES.
46862         ftell: Another test.
46863         * tests/test-ftell3.c: New file.
46864         * modules/ftell-tests (Files): Add it.
46865         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
46866         MOSTLYCLEANFILES.
46868 2010-05-01  Bruno Haible  <bruno@clisp.org>
46870         ftell, ftello: Work around Solaris bug.
46871         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
46872         * lib/ftello.c: Include stdio-impl.h.
46873         (ftello): On Solaris, when _IOWRT is set, compute the result without
46874         looking at _IOREAD.
46875         * modules/ftello (Files): Add lib/stdio-impl.h.
46876         * doc/posix-functions/ftell.texi: Mention Solaris bug.
46877         * doc/posix-functions/ftello.texi: Likewise.
46878         Reported by Eric Blake.
46880 2010-05-01  Bruno Haible  <bruno@clisp.org>
46882         freading: Adapt to special meaning of _IOREAD flag on Solaris.
46883         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
46884         the _IOWRT flag is also set.
46886 2010-05-01  Bruno Haible  <bruno@clisp.org>
46888         Fix doc about a HP-UX stdio bug.
46889         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
46890         * doc/posix-functions/ftello.texi: Likewise.
46892 2010-05-01  Bruno Haible  <bruno@clisp.org>
46894         lseek test: Fix failure on Solaris.
46895         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
46896         output.
46898 2010-04-30  Jim Meyering  <meyering@redhat.com>
46900         bootstrap: don't ignore failure to generate po*/Makevars
46901         * build-aux/bootstrap (with_gettext): Don't ignore failure
46902         to create po/Makevars or runtime-po/Makevars.
46904 2010-04-29  Eric Blake  <eblake@redhat.com>
46906         headers: relax license to LGPLv2+
46907         * modules/fcntl-h (License): Relax license.
46908         * modules/getopt-posix (License): Likewise.
46909         * modules/locale (License): Likewise.
46910         * modules/math (License): Likewise.
46911         * modules/pty (License): Likewise.
46912         * modules/sched (License): Likewise.
46913         * modules/search (License): Likewise.
46914         * modules/spawn (License): Likewise.
46915         * modules/stdarg (License): Likewise.
46916         * modules/sysexits (License): Likewise.
46918 2010-04-29  Jim Meyering  <meyering@redhat.com>
46920         inttypes: relax license to LGPLv2+
46921         * modules/inttypes (License): Relax license.
46923 2010-04-29  Simon Josefsson  <simon@josefsson.org>
46925         * top/maint.mk (indent): Run twice to produce idempotent results.
46927 2010-04-28  Bruno Haible  <bruno@clisp.org>
46929         getdate: Generate getdate.c in the source directory.
46930         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
46931         MOSTLYCLEANFILES.
46932         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
46934 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
46936         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
46937         is not declared as a const *; avoid warnings in that case.
46939 2010-04-28  Eric Blake  <eblake@redhat.com>
46941         canonicalize-lgpl: avoid compiler warning
46942         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
46943         declaration' / 'extraneous semicolon' warning with some compilers.
46944         Reported by Andreas Gruenbacher.
46946 2010-04-28  Jim Meyering  <meyering@redhat.com>
46948         init.sh: ensure a more reliable exit status when exiting via trap
46949         * tests/init.sh (setup_): Don't rely on $? in signal handler.
46950         Inspired by patches from Dmitry V. Levin.
46951         Also trap on signal 3 (SIGQUIT).
46953 2010-04-27  Bruno Haible  <bruno@clisp.org>
46955         Update doc about utimes().
46956         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
46957         'utimens' module.
46958         Reported by Andreas Gruenbacher <agruen@suse.de>.
46960 2010-04-27  Eric Blake  <eblake@redhat.com>
46962         full-read, full-write: relax license
46963         * modules/full-read (License): Drop to LGPLv2+.
46964         * modules/full-write (License): Likewise.
46965         * modules/safe-read (License): Likewise.
46966         * modules/safe-write (License): Likewise.
46968         pthread: mention library for linking
46969         * modules/pthread (Link): Mention $(LIB_PTHREAD).
46971 2010-04-27  Jim Meyering  <meyering@redhat.com>
46973         maint.mk: fix a bug introduced in last change
46974         * top/maint.mk (gl_assured_headers_): Now that all names are on
46975         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
46976         is not anchored to end of word, it should be adequate.
46978         maint.mk: avoid side-effect in latest syntax-check
46979         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
46980         to run commands via $(shell...), and hence to incur cost only when
46981         the new rule is actually run.
46983         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
46984         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
46985         and use that to create a regexp used to detect all #if HAVE_..._H uses.
46986         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
46987         (gl_assured_headers_, az_, AZ_): Define.
46988         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
46990 2010-04-26  Jim Meyering  <jim@meyering.net>
46991             Bruno Haible  <bruno@clisp.org>
46993         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
46994         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
46995         Prompted by an exchange with Gilles Espinasse.
46997 2010-04-26  Jim Meyering  <meyering@redhat.com>
46999         git-version-gen: aesthetic tweak
47000         * build-aux/git-version-gen: Use "$nl" rather than a literal,
47001         so that the command remains on a single line.
47003 2010-04-26  Eric Blake  <eblake@redhat.com>
47005         git-version-gen: allow use on EBCDIC hosts
47006         * build-aux/git-version-gen (dirty): Use literal rather than tying
47007         ourselves to ascii.
47008         Reported by Steve Goetze.
47010 2010-04-25  Bruno Haible  <bruno@clisp.org>
47012         netdb: Add support for GNULIB_POSIXCHECK.
47013         * lib/netdb.in.h: Include warn-on-use.h.
47014         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
47015         functions are used when GNULIB_POSIXCHECK is defined and the
47016         getaddrinfo module is not in use.
47017         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
47018         freeaddrinfo, gai_strerror, getnameinfo are declared.
47019         * modules/netdb (Depends-on): Add warn-on-use.
47020         (Makefile.am): Include warn-on-use.h in netdb.h.
47022 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
47024         build: avoid "make check" failure without .git/ directory
47025         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
47026         there is no .git/ directory.
47028 2010-04-25  Bruno Haible  <bruno@clisp.org>
47030         ptsname: Fix misuse of ttyname_r.
47031         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
47032         of errno.
47034 2010-04-25  Bruno Haible  <bruno@clisp.org>
47036         ttyname_r: Make it work on Solaris 10.
47037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
47038         if the system function has the POSIX declaration. Test whether the
47039         function fails if the buffer is less than 128 bytes large.
47040         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
47041         system's ttyname_r function. Provide a reasonably large buffer.
47042         * modules/ttyname_r (Depends-on): Add extensions.
47043         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
47045 2010-04-25  Bruno Haible  <bruno@clisp.org>
47047         Use the 'extensions' module for some more functions on Solaris.
47048         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
47049         module.
47050         * doc/posix-functions/ctime_r.texi: Likewise.
47051         * doc/posix-functions/getgrgid_r.texi: Likewise.
47052         * doc/posix-functions/getgrnam_r.texi: Likewise.
47053         * doc/posix-functions/getpwnam_r.texi: Likewise.
47054         * doc/posix-functions/getpwuid_r.texi: Likewise.
47055         * doc/posix-functions/readdir_r.texi: Likewise.
47056         * doc/posix-functions/sigwait.texi: Likewise.
47057         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
47058         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
47060 2010-04-25  Bruno Haible  <bruno@clisp.org>
47062         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
47063         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
47064         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
47065         * lib/ttyname_r.c: Include <limits.h>.
47066         (ttyname_r): Define using the system's ttyname_r function, if it exists
47067         and not on Solaris.
47068         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
47069         set.
47070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
47071         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
47072         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
47073         Reported by Simon Josefsson.
47075 2010-04-25  Bruno Haible  <bruno@clisp.org>
47077         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
47078         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
47079         * doc/posix-functions/ctime_r.texi: Likewise.
47080         * doc/posix-functions/getgrgid_r.texi: Likewise.
47081         * doc/posix-functions/getgrnam_r.texi: Likewise.
47082         * doc/posix-functions/getlogin_r.texi: Likewise.
47083         * doc/posix-functions/getpwnam_r.texi: Likewise.
47084         * doc/posix-functions/getpwuid_r.texi: Likewise.
47085         * doc/posix-functions/readdir_r.texi: Likewise.
47086         * doc/posix-functions/sigwait.texi: Likewise.
47087         * doc/posix-functions/ttyname_r.texi: Likewise.
47088         Reported by Simon Josefsson.
47090 2010-04-25  Bruno Haible  <bruno@clisp.org>
47092         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
47093         * gnulib-tool (func_usage): Document that --with-*-tests options apply
47094         also to --create-testdir.
47095         (func_acceptable): Don't consider the status of *-tests modules here.
47096         (func_modules_transitive_closure): Consider it here, before including a
47097         test module.
47098         (func_import, func_create_testdir): Set inc_all_direct_tests,
47099         inc_all_indirect_tests.
47100         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
47101         --create-testdir and --create-megatestdir.
47103 2010-04-25  Bruno Haible  <bruno@clisp.org>
47105         gnulib-tool: Add --without-*-tests options.
47106         * gnulib-tool (func_usage): Document the --without-*-tests options.
47107         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
47108         excl_unportable_tests): New variables.
47109         Fail if they are specified with --import or --update.
47110         (func_acceptable): Respect the excl_*_tests variables.
47111         (func_import): Set the excl_*_tests variables to empty.
47113 2010-04-25  Simon Josefsson  <simon@josefsson.org>
47114             Bruno Haible  <bruno@clisp.org>
47116         Work around a MacOS X 10.4 bug with openpty.
47117         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
47118         * tests/test-openpty.c (main): Close the master side explicitly.
47120 2010-04-25  Bruno Haible  <bruno@clisp.org>
47122         strnlen: Fix a C++ test error on MacOS X and Solaris.
47123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
47124         the function is not declared.
47125         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
47126         Simon Josefsson.
47128 2010-04-24  Bruno Haible  <bruno@clisp.org>
47130         Avoid a gcc warning.
47131         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
47132         of correct type for %08lx directive.
47133         Reported by Eric Blake.
47135 2010-04-24  Bruno Haible  <bruno@clisp.org>
47137         vasnprintf: Correct errno value in case of out-of-memory.
47138         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
47139         or sprintf. Use the errno value from SNPRINTF or sprintf.
47140         Reported by Ian Beckwith <ianb@erislabs.net>.
47142 2010-04-24  Bruno Haible  <bruno@clisp.org>
47144         ansi-c++-opt: Find correct compiler when cross-compiling.
47145         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
47146         AC_CHECK_PROGS.
47147         Reported by Simon Josefsson.
47149 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
47151         vc-list-files: Add support for subversion
47152         * build-aux/vc-list-files: Use "svn list" to generate the list of
47153         files controlled by subversion.
47155 2010-04-23  Jim Meyering  <meyering@redhat.com>
47157         vc-list-files tests: convert to use init.sh
47158         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
47159         path_prepend_.
47160         Use Exit, not exit.
47161         Use skip_ rather than open coding it.
47162         Remove trap set-up and compare definitions.
47163         * tests/test-vc-list-files-git.sh: Likewise.
47164         * modules/vc-list-files-tests (Files): Add tests/init.sh.
47166 2010-04-22  Simon Josefsson  <simon@josefsson.org>
47168         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
47169         backup files.
47171 2010-04-21  Simon Josefsson  <simon@josefsson.org>
47173         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
47175 2010-04-20  Eric Blake  <eblake@redhat.com>
47177         tests: be robust to ignored SIGPIPE
47178         * tests/test-select-in.sh: Consume all output.
47179         * tests/test-lseek.sh: Check correct exit status, while avoiding
47180         EPIPE.
47182 2010-04-20  Simon Josefsson  <simon@josefsson.org>
47183             Bruno Haible  <bruno@clisp.org>
47185         visibility: Don't use -fvisibility if it leads to a warning.
47186         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
47187         yes, don't pretend that visibility works if it leads to a warning.
47188         Reported by Mike Gran <spk121@yahoo.com>.
47190 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
47192         * build-aux/bootstrap: Use "git -h" for testing for supported options
47193         instead of "git --help".  The short-form option only shows a summary,
47194         and doesn't layout the full man page.  Grep for the full option name
47195         in the summary, too.
47197 2010-04-19  Bruno Haible  <bruno@clisp.org>
47199         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
47200         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
47201         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
47202         mention of RELOCATABLE_STRIP.
47203         Reported by Sylvain Beucler <beuc@beuc.net>.
47205 2010-04-19  Bruno Haible  <bruno@clisp.org>
47207         * lib/diffseq.h: Fix typo in comment.
47208         Reported by Eric Blake.
47210 2010-04-19  Bruno Haible  <bruno@clisp.org>
47212         ioctl: Move autoconf macro to a .m4 file.
47213         * m4/ioctl.m4: New file, extracted from modules/ioctl.
47214         * modules/ioctl (Files): Add it.
47215         (configure.ac): Simply invoke gl_FUNC_IOCTL.
47216         Reported by Ian Beckwith <ianb@erislabs.net>.
47218 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
47219             Bruno Haible  <bruno@clisp.org>
47221         diffseq: Accommodate use-case with abstract arrays.
47222         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
47223         is not defined.
47224         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
47225         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
47227 2010-04-18  Bruno Haible  <bruno@clisp.org>
47229         * doc/posix-headers/stdbool.texi: More precise wording.
47231 2010-04-17  Jim Meyering  <meyering@redhat.com>
47233         maint.mk: use gnu-style indentation in an embedded perl script
47234         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
47235         Rename variable: s/two/last_two_bytes/
47237 2010-04-16  Eric Blake  <eblake@redhat.com>
47239         test-stdbool: skip test that fails with Solaris CC
47240         * tests/test-stdbool.c (f): Skip test that causes compilation
47241         error under buggy C++ compiler.
47242         * lib/stdbool.in.h: Document the limitation.
47243         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
47245         setenv: allow compilation with C++
47246         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
47247         register keyword.
47249         stdint: allow test to pass with C++
47250         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
47252         getopt: allow compilation with C++
47253         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
47254         struct.
47255         * lib/getopt.c (_getopt_internal_r): Use correct type.
47256         Reported by Dagobert Michelson, via Joel E. Denny.
47258 2010-04-16  Bruno Haible  <bruno@clisp.org>
47260         Override netdb.h always.
47261         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
47262         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
47263         Reported by Ludovic Courtès <ludo@gnu.org>.
47265 2010-04-15  Bruno Haible  <bruno@clisp.org>
47267         openpty: Fix mistake from 2010-03-21.
47268         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
47269         Reported by Simon Josefsson.
47271 2010-04-15  Eric Blake  <eblake@redhat.com>
47273         test-forkpty: fix expected signature
47274         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
47275         Reported by Simon Josefsson.
47277 2010-04-15  Jim Meyering  <meyering@redhat.com>
47279         maint.mk: texinfo_suffix_re_: correct the default regexp
47280         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
47282         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
47283         make it configurable via texinfo_suffix_re_.
47285 2010-04-14  Eric Blake  <eblake@redhat.com>
47287         strtok_r: relax license to LGPLv2+
47288         * modules/strtok_r (License): Relax license.
47289         Reported by Matthias Bolte.
47291 2010-04-14  Simon Josefsson  <simon@josefsson.org>
47293         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
47294         version 1.4.4 by default instead of requiring the libgcrypt
47295         version used during build.  This makes it possible to use the
47296         application with older but still binary compatible libgcrypt
47297         versions.
47299 2010-04-13  Eric Blake  <eblake@redhat.com>
47301         getopt-gnu: match recent glibc fixes and posix ruling
47302         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
47303         '+' handling, when requesting extensions.
47304         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
47305         'W;' handling.
47306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
47307         * doc/posix-functions/getopt.texi (getopt): Document this.
47308         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47309         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47310         Likewise.
47312         getopt: merge bug fixes from glibc
47313         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
47314         diagnostics.  Honor '+:' correctly.  Reject ';'.
47316         getopt-posix: detect MacOS bug
47317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
47318         optind when missing a required argument.
47319         * doc/posix-functions/getopt.texi (getopt): Document the bug.
47320         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47321         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47322         Likewise.
47324         getopt-posix: avoid spurious failure on Solaris
47325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
47326         an indicator that setting optind=1 is sufficient for reset.
47328         getopt-posix: avoid spurious failure on FreeBSD
47329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
47330         in POSIX mode, since the m4 test uses it.
47332         gnulib-tool: silence warning on BSD sh
47333         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
47335 2010-04-13  Jim Meyering  <meyering@redhat.com>
47337         doc: users.txt: GNU patch now uses gnulib
47338         * users.txt: Add patch.
47340 2010-04-12  Jim Meyering  <meyering@redhat.com>
47342         maint.mk: generate more concise timing data for syntax-check rules
47343         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
47344         " done" from each line that reports a syntax-check test duration.
47346 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
47348         git-version-gen: use "git update-index..." rather than "git status"
47349         * build-aux/git-version-gen: Use git update-index --refresh, not
47350         "git status".  With some versions of git, "git status" would fail
47351         to update the index and result in an unwarranted "-dirty" suffix.
47353 2010-04-11  Jim Meyering  <meyering@redhat.com>
47355         openat: correct formatting (no semantic change)
47356         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
47357         Suggested by Bruno Haible.
47359 2010-04-11  Bruno Haible  <bruno@clisp.org>
47361         Stricter declaration checking in testdirs.
47362         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47363         If for_tests is true, augment AM_CPPFLAGS to define
47364         GNULIB_STRICT_CHECKING.
47365         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
47366         GNULIB_STRICT_CHECKING is defined, verify that the function is
47367         declared.
47369 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
47370             Bruno Haible  <bruno@clisp.org>
47372         libunistring: Improve configure output.
47373         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
47374         Don't say "consider installing GNU libunistring" when checking again
47375         with libiconv.
47377 2010-04-11  Bruno Haible  <bruno@clisp.org>
47379         libunistring: Correct value of $LTLIBUNISTRING.
47380         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
47381         correct the value of $LTLIBUNISTRING.
47383 2010-04-11  Bruno Haible  <bruno@clisp.org>
47385         havelib: Add static libraries to LIBS in the right order.
47386         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
47387         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
47389 2010-04-11  Bruno Haible  <bruno@clisp.org>
47391         libunistring: Detect libunistring also when it depends on libiconv.
47392         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
47393         the second AC_LIB_HAVE_LINKFLAGS invocation.
47395 2010-04-11  James Youngman  <jay@gnu.org>
47397         close-stream: declare local scalars to be "const"
47398         * lib/close-stream.c (close_stream): Make boolean variables const
47399         to document the fact that we set but do not change them.
47401 2010-04-11  Bruno Haible  <bruno@clisp.org>
47403         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
47405 2010-04-11  Jim Meyering  <meyering@redhat.com>
47407         maint.mk: don't include dist-check.mk
47408         * top/maint.mk: Remove bogus include directive.
47410         maint.mk: improve empty-line-at-EOF check
47411         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
47412         solution, rather than tail+Perl-based one.  The latter would read
47413         a few kilobytes from the end of each file, and did not handle empty
47414         files properly.
47416         maint.mk: print the elapsed time for each syntax-check rule
47417         * top/maint.mk (sc_m_rules_): Save start time in a file.
47418         (sc_z_rules_): New rules: remove temp file and print elapsed time.
47419         (local-check): Interpose the .z rules
47421 2010-04-11  Jim Meyering  <meyering@redhat.com>
47423         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
47424         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
47425         empty file with one that ends in an empty line.
47427 2010-04-10  Bruno Haible  <bruno@clisp.org>
47429         mkdir: Make it work on mingw64.
47430         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
47431         * lib/mkdir.c: Update comment.
47432         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
47434 2010-04-10  Bruno Haible  <bruno@clisp.org>
47436         Don't override improved macro from newer autoconf.
47437         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
47438         autoconf >= 2.62.
47439         Reported by Joel E. Denny <jdenny@clemson.edu>.
47441 2010-04-10  Jim Meyering  <meyering@redhat.com>
47443         maint.mk: new syntax-check rule: prohibit empty lines at end of file
47444         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
47446         maint.mk: correct a diagnostic
47447         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
47448         in diagnostic; now use $prohibit.
47450 2010-04-10  Bruno Haible  <address@hidden>
47452         fchownat: Fix a C++ test error on Solaris 8.
47453         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
47454         the function does not exist.
47456 2010-04-10  Bruno Haible  <bruno@clisp.org>
47458         vasnprintf: Add more tests.
47459         * tests/test-vasnprintf-posix.c: Include <errno.h>.
47460         (test_function): Test converting an invalid wide string.
47462         vasnprintf: Correct handling of unconvertible wide string arguments.
47463         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
47464         VASNPRINTF.
47465         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
47466         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
47467         smaller than the expected maximum need for the directive. Set errno to
47468         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
47469         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
47470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
47471         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
47472         * modules/vasnprintf (Files): Add m4/printf.m4.
47473         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47475 2010-04-10  Bruno Haible  <bruno@clisp.org>
47477         vasnprintf: Fix crash in %ls directive.
47478         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
47479         string is passed as argument to %ls, with no precision and no width.
47480         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47482 2010-04-10  Bruno Haible  <bruno@clisp.org>
47484         vasnprintf: Fix multiple test failures on mingw.
47485         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
47486         _snprintf, or snwprintf, not _snwprintf.
47488 2010-04-10  Bruno Haible  <bruno@clisp.org>
47490         write: Fix a C++ test error on mingw.
47491         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
47493 2010-04-10  Bruno Haible  <bruno@clisp.org>
47495         vasnprintf test: Reduce code duplication.
47496         * tests/test-vasnprintf.c (test_function): New function, extracted from
47497         test_vasnprintf.
47498         (test_vasnprintf, test_asnprintf): Invoke it.
47500 2010-04-10  Bruno Haible  <bruno@clisp.org>
47502         strnlen: Fix warning in C++ mode on MacOS X.
47503         * lib/string.in.h (strnlen): Use the modern idiom.
47504         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
47505         defining strnlen as a macro already in <config.h>.
47506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47507         REPLACE_STRNLEN.
47508         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
47509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47511 2010-04-08  James Youngman  <jay@gnu.org>
47513         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
47514         the example.
47516 2010-04-09  Jim Meyering  <meyering@redhat.com>
47518         maint.mk: print better diagnostic when there is no $(_hv_file)
47519         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
47520         announce that when $(_hv_file) (aka help-version) does not exist.
47522         init.sh: run tr in the "C" locale to avoid multibyte interpretation
47523         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
47524         not try to interpret its random input bytes.  Jarno Rajahalme reported
47525         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
47526         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
47527         (mktempd_): Likewise, just in case.
47529         ftruncate: add two years to projected module removal date: 2012
47530         * m4/ftruncate.m4: Adjust comments.
47532         ftruncate: mark module as obsolete; even MinGW provides it, now
47533         * modules/ftruncate (Status): Obsolete.
47534         (Notice): Say that.
47535         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
47536         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
47538 2010-04-08  Bruno Haible  <bruno@clisp.org>
47540         Fix side effects from tests-related modules.
47541         * modules/dprintf-posix (Comment): New section.
47542         * modules/fprintf-posix (Comment): Likewise.
47543         * modules/obstack-printf-posix (Comment): Likewise.
47544         * modules/printf-posix (Comment): Likewise.
47545         * modules/snprintf-posix (Comment): Likewise.
47546         * modules/sprintf-posix (Comment): Likewise.
47547         * modules/vasnprintf-posix (Comment): Likewise.
47548         * modules/vasprintf-posix (Comment): Likewise.
47549         * modules/vdprintf-posix (Comment): Likewise.
47550         * modules/vfprintf-posix (Comment): Likewise.
47551         * modules/vprintf-posix (Comment): Likewise.
47552         * modules/vsnprintf-posix (Comment): Likewise.
47553         * modules/vsprintf-posix (Comment): Likewise.
47554         * modules/xprintf-posix (Comment): Likewise.
47555         * modules/xvasprintf-posix (Comment): Likewise.
47556         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
47557         * modules/floorf-tests (Depends-on): Likewise.
47558         * modules/round-tests (Depends-on): Likewise.
47559         * modules/roundf-tests (Depends-on): Likewise.
47560         * modules/trunc-tests (Depends-on): Likewise.
47561         * modules/truncf-tests (Depends-on): Likewise.
47562         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
47563         'fprintf-posix' module is not present.
47564         * tests/test-floorf2.c (check): Likewise.
47565         * tests/test-trunc2.c (check): Likewise.
47566         * tests/test-truncf2.c (check): Likewise.
47567         * tests/test-round2.c (equal): Likewise.
47568         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47570 2010-04-07  Karl Berry  <karl@gnu.org>
47572         * config/srclist.txt,
47573         * config/srclistvars.sh,
47574         * config/srclist-update: doc fixes.
47576 2010-04-07  Jim Meyering  <meyering@redhat.com>
47578         maint.mk: add a PATH crosschecking syntax-check rule
47579         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
47580         Useful if you use a test like the one in help-version (coreutils,
47581         diffutils, grep, gzip) that ensures $(VERSION) matches what is
47582         printed by prog --version.
47584 2010-04-06  Bruno Haible  <bruno@clisp.org>
47586         Fix link error on mingw.
47587         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
47588         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
47590 2010-04-06  Bruno Haible  <bruno@clisp.org>
47592         Assume rmdir exists.
47593         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
47595 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
47597         doc: update users.txt
47598         * users.txt: Add gcal.
47600 2010-04-06  Jim Meyering  <meyering@redhat.com>
47602         init.sh: simply unset TMPDIR rather than risking env -i
47603         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
47604         although it probably works fine on all Unix-based systems, some
47605         systems (Cygwin?) cannot tolerate a totally cleared environment.
47606         Suggestion from Eric Blake.
47608 2010-04-06  Jim Meyering  <meyering@redhat.com>
47610         init.sh: portability fix: use env's POSIX-specified -i option not -u
47611         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
47612         than unportable env -u.  Solaris 5.11's env lacks support for -u.
47614 2010-04-05  Bruno Haible  <bruno@clisp.org>
47616         btowc: Work around Cygwin 1.7.2 bug.
47617         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
47618         does not map NUL to 0.
47619         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
47621 2010-04-05  Bruno Haible  <bruno@clisp.org>
47623         Make the multithread modules work on Cygwin 1.7.2.
47624         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
47625         imported symbols can be declared weak, so that it returns "no" on
47626         Cygwin 1.7.2.
47628 2010-04-05  Bruno Haible  <bruno@clisp.org>
47630         Use the module 'strncat'.
47631         * modules/unistr/u8-strncat (Depends-on): Add strncat.
47633         Tests for module 'strncat'.
47634         * modules/strncat-tests: New file.
47635         * tests/test-strncat.c: New file.
47637         New module 'strncat'.
47638         * lib/string.in.h (strncat): New declaration.
47639         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
47640         * m4/strncat.m4: New file, based on m4/memchr.m4.
47641         * modules/strncat: New file.
47642         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
47643         is declared.
47644         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
47645         REPLACE_STRNCAT.
47646         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
47647         REPLACE_STRNCAT.
47648         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
47649         module.
47650         * tests/test-string-c++.cc: Check signature of strncat.
47652 2010-04-05  Jim Meyering  <meyering@redhat.com>
47654         xstrtoumax-tests: convert to use init.sh
47655         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
47656         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47657         Use Exit, not exit.
47658         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47660         xstrtoimax-tests: convert to use init.sh
47661         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
47662         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47663         Use Exit, not exit.
47664         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47666 2010-04-05  Bruno Haible  <bruno@clisp.org>
47668         sys_socket: Avoid #define replacements in C++ mode.
47669         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
47670         warning to the function if possible, rather than #defining the symbol
47671         to a dysfunctional alias.
47673 2010-04-05  Bruno Haible  <bruno@clisp.org>
47675         fseeko: Fix C++ test error on mingw.
47676         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
47677         gl_FUNC_FSEEKO.
47678         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
47679         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
47680         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
47681         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
47683 2010-04-05  Bruno Haible  <bruno@clisp.org>
47685         duplocale: Improve test output.
47686         * tests/test-duplocale.c (main): Print reason for skipped test.
47688 2010-04-05  Bruno Haible  <bruno@clisp.org>
47690         Assume rmdir exists.
47691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
47692         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
47694 2010-04-05  Bruno Haible  <bruno@clisp.org>
47696         Fix link error on Solaris 8 with cc.
47697         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
47699 2010-04-05  Bruno Haible  <bruno@clisp.org>
47701         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
47702         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
47704 2010-04-05  Bruno Haible  <bruno@clisp.org>
47706         vasprintf: Update documentation.
47707         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
47709 2010-04-05  Bruno Haible  <bruno@clisp.org>
47711         ptsname: Improve test.
47712         * tests/test-ptsname.c (main): Also try the various master names of BSD
47713         systems.
47715 2010-04-05  Bruno Haible  <bruno@clisp.org>
47717         memchr: Avoid a possible C++ test error.
47718         * lib/string.in.h (memchr): Provide declaration if function is missing.
47719         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
47720         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
47721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
47722         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
47724 2010-04-05  Bruno Haible  <bruno@clisp.org>
47726         strtok_r: Improve idiom.
47727         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
47728         AC_LIBOBJ is used.
47730 2010-04-05  Bruno Haible  <bruno@clisp.org>
47732         strdup: Improve idiom.
47733         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
47734         AC_LIBOBJ is used.
47735         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
47736         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
47737         when AC_LIBOBJ is used.
47739 2010-04-05  Bruno Haible  <bruno@clisp.org>
47741         mbsinit, mbrtowc, wcrtomb: Improve idioms.
47742         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
47743         don't set REPLACE_MBSINIT to 1.
47744         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
47745         don't set REPLACE_MBRTOWC to 1.
47746         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
47747         exist, don't set REPLACE_MBSRTOWCS to 1.
47748         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
47749         exist, don't set REPLACE_MBSNRTOWCS to 1.
47750         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
47751         don't set REPLACE_WCRTOMB to 1.
47752         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
47753         exist, don't set REPLACE_WCSRTOMBS to 1.
47754         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
47755         exist, don't set REPLACE_WCSNRTOMBS to 1.
47757 2010-04-05  Bruno Haible  <bruno@clisp.org>
47759         ldexpl: Improve idiom.
47760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
47761         make sure to set HAVE_DECL_LDEXPL to 0.
47763 2010-04-05  Jim Meyering  <meyering@redhat.com>
47765         xstrtol-tests: convert to use init.sh
47766         * modules/xstrtol-tests (Files): Add tests/init.sh.
47767         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47768         Use Exit, not exit.
47769         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47771         atexit-tests: convert to use init.sh
47772         * modules/atexit-tests (Files): Add tests/init.sh.
47773         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47774         Use Exit, not exit.
47775         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47777         init.sh: fix typo
47778         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
47780         init.sh: make it easier for a test script to write to the tty, ...
47781         when using automake's parallel-tests mode.
47782         * tests/init.sh (stderr_fileno_): Define overridable variable.
47783         (warn_): New function, to use it.
47784         (fail_, skip_, framework_failure_): Use warn_.
47786 2010-04-04  Bruno Haible  <bruno@clisp.org>
47788         btowc: Avoid warning.
47789         * lib/btowc.c: Include <stdlib.h>.
47790         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
47792 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47793             Bruno Haible  <bruno@clisp.org>
47795         wchar: Port to NetBSD 1.5.
47796         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
47797         * lib/wctype.in.h (WEOF): Likewise.
47799 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47800             Bruno Haible  <bruno@clisp.org>
47802         Port extended stdio to NetBSD 1.5.
47803         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
47804         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
47805         older.
47807 2010-04-04  Bruno Haible  <bruno@clisp.org>
47809         string: Remove unused substitution.
47810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47811         HAVE_DECL_STRERROR.
47812         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
47814 2010-04-04  Bruno Haible  <bruno@clisp.org>
47816         strtod: Avoid a possible C++ test error.
47817         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
47818         set REPLACE_STRTOD.
47820 2010-04-04  Bruno Haible  <bruno@clisp.org>
47822         strerror: Update documentation.
47823         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
47825 2010-04-04  Bruno Haible  <bruno@clisp.org>
47827         stdio: Fix some C++ test errors on Solaris 8 with GCC.
47828         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
47829         _GL_CXXALIAS_SYS_CAST.
47831 2010-04-04  Bruno Haible  <bruno@clisp.org>
47833         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
47834         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
47835         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
47836         REPLACE_FREXPL to 1.
47837         * doc/posix-functions/frexpl.texi: Update documentation.
47839 2010-04-04  Bruno Haible  <bruno@clisp.org>
47841         math: Fix some C++ test errors on Solaris 8 and Cygwin.
47842         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
47844 2010-04-04  Bruno Haible  <bruno@clisp.org>
47846         Implement nanosleep for native Windows.
47847         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
47849 2010-04-04  Bruno Haible  <bruno@clisp.org>
47851         math: Fix some C++ test errors on Solaris 8.
47852         * lib/math.in.h (truncf, trunc): Use simpler idiom.
47854 2010-04-04  Bruno Haible  <bruno@clisp.org>
47856         math: Fix some C++ test errors on Cygwin.
47857         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
47858         truncl): Provide declaration if the system does not have it.
47859         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
47860         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
47861         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
47862         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
47863         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
47864         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
47865         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
47866         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
47867         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
47868         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
47869         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
47870         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
47871         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
47872         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
47873         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
47874         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
47875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
47876         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
47877         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
47878         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
47879         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
47880         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
47882 2010-04-04  Bruno Haible  <bruno@clisp.org>
47884         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
47885         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47886         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47887         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47888         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47889         * m4/isinf.m4 (gl_ISINF): Likewise.
47890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47892 2010-04-04  Bruno Haible  <bruno@clisp.org>
47894         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
47895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47897 2010-04-04  Bruno Haible  <bruno@clisp.org>
47899         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
47900         * modules/tmpfile (configure.ac): Update.
47902         tmpfile: Fix C++ test error on mingw.
47903         * lib/stdio.in.h (tmpfile): New declaration.
47904         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
47905         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
47906         * modules/tmpfile (Depends-on): Add stdio.
47907         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47908         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
47909         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
47910         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
47911         REPLACE_TMPFILE.
47912         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
47914 2010-04-04  Bruno Haible  <bruno@clisp.org>
47916         ioctl: Fix C++ test error on mingw.
47917         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
47918         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
47919         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
47921 2010-04-03  Bruno Haible  <bruno@clisp.org>
47923         wcwidth: Fix C++ test error on mingw.
47924         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
47925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
47926         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
47928 2010-04-03  Bruno Haible  <bruno@clisp.org>
47930         nanosleep: Fix C++ test error on mingw.
47931         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
47932         * lib/time.in.h (nanosleep): Use modern idiom.
47933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
47934         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
47935         REPLACE_NANOSLEEP to 1.
47936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
47937         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
47939 2010-04-03  Bruno Haible  <bruno@clisp.org>
47941         strptime: Fix C++ test error on mingw.
47942         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
47943         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
47944         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
47945         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
47946         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
47947         not REPLACE_STRPTIME.
47948         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
47949         REPLACE_STRPTIME.
47951 2010-04-03  Bruno Haible  <bruno@clisp.org>
47953         timegm: Fix C++ test error on mingw.
47954         * lib/time.in.h (timegm): Use modern idiom.
47955         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
47956         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
47957         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
47958         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
47960 2010-04-03  Bruno Haible  <bruno@clisp.org>
47962         timegm: Assume declaration if function exists.
47963         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
47964         if it exists. Don't clobber ac_cv_func_timegm.
47966 2010-04-03  Bruno Haible  <bruno@clisp.org>
47968         time_r: Fix C++ test error on mingw.
47969         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
47970         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
47971         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
47972         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
47973         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
47975 2010-04-03  Bruno Haible  <bruno@clisp.org>
47977         time_r: Minor updates.
47978         * modules/time_r (Description): Mention the provided functions.
47979         * lib/time_r.c: Don't include <string.h>.
47980         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
47981         * doc/posix-functions/localtime_r.texi: Likewise.
47983 2010-04-03  Bruno Haible  <bruno@clisp.org>
47985         time: Fix regression introduced on 2010-03-08.
47986         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
47987         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
47989 2010-04-03  Jim Meyering  <meyering@redhat.com>
47991         maint.mk: don't silently disable project-specific syntax-check rules
47992         * top/maint.mk (_prohibit_regexp): Define, to help people realize
47993         that they need to convert their project-specific syntax-check rules
47994         to use the new _sc_search_regexp.
47996 2010-04-03  Bruno Haible  <bruno@clisp.org>
47998         fchdir: Fix regression introduced on 2010-03-08.
47999         * lib/unistd.in.h (fchdir): Fix declaration.
48000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
48001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
48002         REPLACE_FCHDIR.
48003         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
48004         REPLACE_FCHDIR.
48006 2010-04-03  Bruno Haible  <bruno@clisp.org>
48008         getpagesize: Fix C++ test error on mingw.
48009         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
48010         system does not declare the function.
48011         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
48012         declared.
48013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48014         HAVE_DECL_GETPAGESIZE.
48015         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
48017 2010-04-03  Bruno Haible  <bruno@clisp.org>
48019         stdio: Make C++ tests work on mingw.
48020         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
48021         does not declare the function.
48023 2010-04-03  Bruno Haible  <bruno@clisp.org>
48025         ftello: Fix C++ test error on mingw.
48026         * lib/stdio.in.h (ftello): Use modern idiom.
48027         * lib/ftello.c (ftello): Renamed from rpl_ftello.
48028         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
48029         is missing and that it needs to be replaced.
48030         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
48031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
48032         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
48034 2010-04-03  Bruno Haible  <bruno@clisp.org>
48036         fseeko: Fix C++ test error on mingw.
48037         * lib/stdio.in.h (fseeko): Use modern idiom.
48038         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
48039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
48040         is missing and that it needs to be replaced.
48041         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
48042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
48043         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
48045 2010-04-03  Bruno Haible  <bruno@clisp.org>
48047         mkstemp: Fix C++ test error on mingw.
48048         * lib/stdlib.in.h (mkstemp): Use modern idiom.
48049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
48050         function is missing and that it needs to be replaced.
48051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
48052         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
48054 2010-04-03  Bruno Haible  <bruno@clisp.org>
48056         stpncpy: Fix C++ test error on mingw.
48057         * lib/string.in.h (stpncpy): Use modern idiom.
48058         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
48059         function is missing and that it needs to be replaced.
48060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48061         REPLACE_STPNCPY.
48062         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
48064 2010-04-03  Bruno Haible  <bruno@clisp.org>
48066         sys_stat: Fix C++ test error on mingw.
48067         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
48068         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
48070 2010-04-03  Bruno Haible  <bruno@clisp.org>
48072         pty: Update doc.
48073         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
48075 2010-04-03  Bruno Haible  <bruno@clisp.org>
48077         unistd: Fix C++ test error on mingw.
48078         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
48080 2010-04-03  Bruno Haible  <bruno@clisp.org>
48082         Update doc regarding mingw.
48083         * doc/glibc-functions/openpty.texi: Update regarding mingw.
48084         * doc/glibc-functions/login_tty.texi: Likewise.
48085         * doc/glibc-functions/forkpty.texi: Likewise.
48087 2010-04-03  Bruno Haible  <bruno@clisp.org>
48089         stdlib: Avoid compilation failure of c-strtold on mingw.
48090         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
48092 2010-04-03  Bruno Haible  <bruno@clisp.org>
48094         locale: Make C++ tests work on Cygwin and mingw.
48095         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
48096         cannot provide the function.
48097         Reported by Simon Josefsson.
48099 2010-04-03  Bruno Haible  <bruno@clisp.org>
48101         localename: Port to MacOS X 10.6.
48102         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
48103         memory layout of the locales in MacOS X 10.6 as well.
48104         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
48106 2010-04-02  Bruno Haible  <bruno@clisp.org>
48108         gnulib-tool: Ensure that long-running tests are executed last.
48109         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
48110         running tests after the one for the other tests.
48112 2010-04-02  Bruno Haible  <bruno@clisp.org>
48114         gnulib-tool: Ensure the tests in the main directory are executed first.
48115         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
48116         start with the current directory.
48118 2010-04-02  Bruno Haible  <bruno@clisp.org>
48120         Tests for module 'havelib', moved here from GNU gettext.
48121         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
48122         modifications.
48123         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
48124         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
48125         with modifications.
48126         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
48127         modifications.
48128         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
48129         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
48130         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
48131         with modifications.
48132         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
48133         with modifications.
48134         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
48135         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
48136         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
48137         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
48138         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
48139         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
48140         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
48141         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
48142         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
48143         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
48144         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
48145         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
48146         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
48147         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
48148         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
48149         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
48150         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
48151         with modifications.
48152         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
48153         with modifications.
48154         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
48155         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
48156         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
48157         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
48158         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
48159         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
48160         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
48161         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
48162         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
48163         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
48164         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
48165         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
48166         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
48167         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
48168         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
48169         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
48170         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
48171         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
48172         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
48173         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
48174         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
48175         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
48176         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
48177         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
48178         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
48179         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
48180         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
48181         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
48182         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
48183         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
48184         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
48185         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
48186         * tests/havelib/rpathx/rpathx.c: New file, from
48187         gettext/autoconf-lib-link.
48188         * tests/havelib/rpathx/Makefile.am: New file, from
48189         gettext/autoconf-lib-link.
48190         * tests/havelib/rpathx/configure.ac: New file, from
48191         gettext/autoconf-lib-link with modifications.
48192         * tests/havelib/rpathy/rpathy.c: New file, from
48193         gettext/autoconf-lib-link.
48194         * tests/havelib/rpathy/Makefile.am: New file, from
48195         gettext/autoconf-lib-link.
48196         * tests/havelib/rpathy/configure.ac: New file, from
48197         gettext/autoconf-lib-link with modifications.
48198         * tests/havelib/rpathz/rpathz.c: New file, from
48199         gettext/autoconf-lib-link.
48200         * tests/havelib/rpathz/Makefile.am: New file, from
48201         gettext/autoconf-lib-link.
48202         * tests/havelib/rpathz/configure.ac: New file, from
48203         gettext/autoconf-lib-link with modifications.
48204         * tests/havelib/rpathlx/usex.c: New file, from
48205         gettext/autoconf-lib-link.
48206         * tests/havelib/rpathlx/Makefile.am: New file, from
48207         gettext/autoconf-lib-link.
48208         * tests/havelib/rpathlx/configure.ac: New file, from
48209         gettext/autoconf-lib-link with modifications.
48210         * tests/havelib/rpathly/usey.c: New file, from
48211         gettext/autoconf-lib-link.
48212         * tests/havelib/rpathly/Makefile.am: New file, from
48213         gettext/autoconf-lib-link.
48214         * tests/havelib/rpathly/configure.ac: New file, from
48215         gettext/autoconf-lib-link with modifications.
48216         * tests/havelib/rpathlz/usez.c: New file, from
48217         gettext/autoconf-lib-link.
48218         * tests/havelib/rpathlz/Makefile.am: New file, from
48219         gettext/autoconf-lib-link.
48220         * tests/havelib/rpathlz/configure.ac: New file, from
48221         gettext/autoconf-lib-link with modifications.
48222         * tests/havelib/rpathlyx/usey.c: New file, from
48223         gettext/autoconf-lib-link.
48224         * tests/havelib/rpathlyx/Makefile.am: New file, from
48225         gettext/autoconf-lib-link.
48226         * tests/havelib/rpathlyx/configure.ac: New file, from
48227         gettext/autoconf-lib-link with modifications.
48228         * tests/havelib/rpathlzyx/usez.c: New file, from
48229         gettext/autoconf-lib-link.
48230         * tests/havelib/rpathlzyx/Makefile.am: New file, from
48231         gettext/autoconf-lib-link.
48232         * tests/havelib/rpathlzyx/configure.ac: New file, from
48233         gettext/autoconf-lib-link with modifications.
48234         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
48235         with modifications.
48237 2010-04-02  Bruno Haible  <bruno@clisp.org>
48239         gnulib-tool: Create distributed built sources also for the tests.
48240         * gnulib-tool (func_create_testdir): Also generate distributed built
48241         sources in the tests directory.
48243 2010-04-02  Bruno Haible  <bruno@clisp.org>
48245         gnulib-tool: Obey user's environment variables.
48246         * gnulib-tool (func_create_testdir): When creating built sources,
48247         respect the environment variables for autoconf, automake, etc. given by
48248         the user.
48250 2010-04-02  Bruno Haible  <bruno@clisp.org>
48252         gnulib-tool: Provide the value of --m4-base to modules.
48253         * gnulib-tool (func_import, func_create_testdir): Emit a definition
48254         of gl_m4_base.
48256 2010-04-02  Eric Blake  <eblake@redhat.com>
48258         maint.mk: fix some fallout
48259         * NEWS: Document the incompatible change, and its effect on cfg.mk.
48260         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
48262 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
48264         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
48265         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
48266         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
48267         (sc_cast_of_x_alloc_return_value): Likewise.
48268         (sc_cast_of_alloca_return_value): Likewise.
48269         (sc_space_tab): Likewise.
48270         (sc_prohibit_atoi_atof): Likewise.
48271         (sc_prohibit_magic_number_exit): Likewise.
48272         (sc_error_exit_success): Likewise.
48273         (sc_file_system): Likewise.
48274         (sc_prohibit_have_config_h): Likewise.
48275         (sc_require_config_h): Likewise.
48276         (sc_prohibit_HAVE_MBRTOWC): Likewise.
48277         (sc_obsolete_symbols): Likewise.
48278         (sc_changelog): Likewise.
48279         (sc_program_name): Likewise.
48280         (sc_the_the): Likewise.
48281         (sc_trailing_blank): Likewise.
48282         (sc_two_space_separator_in_usage): Likewise.
48283         (sc_useless_cpp_parens): Likewise.
48284         (sc_GPL_version): Likewise.
48285         (sc_GFDL_version): Likewise.
48286         (sc_texinfo_acronym): Likewise.
48287         (sc_prohibit_cvs_keyword): Likewise.
48288         (sc_prohibit_stat_st_blocks): Likewise.
48289         (sc_prohibit_S_IS_definition): Likewise.
48290         (sc_redundant_const): Likewise.
48291         (sc_makefile_TAB_only_indentation): Likewise.
48292         (sc_m4_quote_check): Likewise.
48293         (sc_makefile_path_separator_check): Likewise.
48294         (sc_copyright_check): Likewise.
48295         (sc_Wundef_boolean): Likewise.
48296         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48298         maint.mk: match 0 or more whitespace-before-function-call '('
48299         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
48300         that have zero or two-and-more spaces between the function name
48301         and the open parenthesis.
48302         (sc_error_message_warn_fatal): Likewise.
48303         (sc_error_message_uppercase): Likewise.
48304         (sc_error_message_period): Likewise.
48306 2010-03-31  Eric Blake  <eblake@redhat.com>
48308         maint.mk: check for [ as well as test
48309         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
48310         Based on a libvirt report by Matthias Bolte.
48312         gnumakefile: don't squelch _version output
48313         * top/GNUmakefile (_version): Create one-shot dependency rather
48314         than using $(shell) when version must be regenerated.
48315         (_autoreconf): Run verbosely, by default.
48317         sys_time: avoid compiler warnings
48318         * lib/sys_time.in.h (includes): Ensure gcc pragma is
48319         unconditional, fixing regression from 2010-03-29.
48320         Reported by Simon Josefsson.
48322 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
48324         maint.mk: s/_header_without_use/_sc_header_without_use/
48325         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
48326         (sc_prohibit_assert_without_use): Use the new name.
48327         (sc_prohibit_close_stream_without_use): Likewise.
48328         (sc_prohibit_getopt_without_use): Likewise.
48329         (sc_prohibit_quotearg_without_use): Likewise.
48330         (sc_prohibit_quote_without_use): Likewise.
48331         (sc_prohibit_long_options_without_use): Likewise.
48332         (sc_prohibit_inttostr_without_use): Likewise.
48333         (sc_prohibit_ignore_value_without_use): Likewise.
48334         (sc_prohibit_error_without_use): Likewise.
48335         (sc_prohibit_xalloc_without_use): Likewise.
48336         (sc_prohibit_hash_without_use): Likewise.
48337         (sc_prohibit_hash_pjw_without_use): Likewise.
48338         (sc_prohibit_safe_read_without_use): Likewise.
48339         (sc_prohibit_argmatch_without_use): Likewise.
48340         (sc_prohibit_canonicalize_without_use): Likewise.
48341         (sc_prohibit_root_dev_ino_without_use): Likewise.
48342         (sc_prohibit_openat_without_use): Likewise.
48343         (sc_prohibit_c_ctype_without_use): Likewise.
48344         (sc_prohibit_signal_without_use): Likewise.
48345         (sc_prohibit_intprops_without_use): Likewise.
48347 2010-03-30  Eric Blake  <eblake@redhat.com>
48349         maint: improve module indicators
48350         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
48351         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
48352         columns, and avoid extra macro expansion.
48354         fdopendir: work around FreeBSD bug
48355         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
48356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
48357         * modules/dirent (Makefile.am): Substitute it.
48358         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
48359         declaration.
48360         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
48361         fix.
48362         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48364 2010-03-29  Bruno Haible  <bruno@clisp.org>
48366         Emit #pragma system_header after the inclusion guard, not before.
48367         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
48368         guard that spans the entire file, not before. This enables an
48369         optimization in GCC's preprocessor.
48370         * lib/ctype.in.h: Likewise.
48371         * lib/dirent.in.h: Likewise.
48372         * lib/errno.in.h: Likewise.
48373         * lib/float.in.h: Likewise.
48374         * lib/getopt.in.h: Likewise.
48375         * lib/iconv.in.h: Likewise.
48376         * lib/langinfo.in.h: Likewise.
48377         * lib/locale.in.h: Likewise.
48378         * lib/math.in.h: Likewise.
48379         * lib/netdb.in.h: Likewise.
48380         * lib/netinet_in.in.h: Likewise.
48381         * lib/pty.in.h: Likewise.
48382         * lib/sched.in.h: Likewise.
48383         * lib/se-selinux.in.h: Likewise.
48384         * lib/search.in.h: Likewise.
48385         * lib/spawn.in.h: Likewise.
48386         * lib/stdarg.in.h: Likewise.
48387         * lib/stdint.in.h: Likewise.
48388         * lib/string.in.h: Likewise.
48389         * lib/strings.in.h: Likewise.
48390         * lib/sys_file.in.h: Likewise.
48391         * lib/sys_ioctl.in.h: Likewise.
48392         * lib/sys_time.in.h: Likewise.
48393         * lib/sys_times.in.h: Likewise.
48394         * lib/sys_utsname.in.h: Likewise.
48395         * lib/sys_wait.in.h: Likewise.
48396         * lib/sysexits.in.h: Likewise.
48397         * lib/wctype.in.h: Likewise.
48399 2010-03-28  James Youngman  <jay@gnu.org>
48401         save-cwd: don't leak a file descriptor when the caller execs.
48402         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
48403         saved file descriptor.
48404         * modules/save-cwd (Depends-on): Depend on cloexec.
48406 2010-03-29  Bruno Haible  <bruno@clisp.org>
48408         Remove vestiges of fts-lgpl module.
48409         * lib/fts_.h: Assume GNULIB_FTS is 1.
48410         * lib/fts.c: Likewise.
48411         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
48413 2010-03-28  Bruno Haible  <bruno@clisp.org>
48415         Fix definition of tests witness macro.
48416         * gnulib-tool (func_import): Fix definition of witness macro.
48418 2010-03-28  Bruno Haible  <bruno@clisp.org>
48420         Fix ioctl's protoype on glibc systems.
48421         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
48422         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
48423         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
48424         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
48425         signature. If not, arrange to replace the ioctl function.
48426         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48427         REPLACE_IOCTL.
48428         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
48429         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
48430         Reported by Ludovic Courtès <ludo@gnu.org>.
48432 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
48434         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
48435         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
48436         made it so grep -r --include=GLOB* ... did not work.
48438 2010-03-26  Jim Meyering  <meyering@redhat.com>
48439             Eric Blake  <eblake@redhat.com>
48441         maint.mk: prohibit use of test's -o and -a operators
48442         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
48444 2010-03-28  Bruno Haible  <bruno@clisp.org>
48446         Remove unused GNULIB_XYZ macro definitions.
48447         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
48448         invocation.
48450 2010-03-28  Bruno Haible  <bruno@clisp.org>
48452         Mark privileged tests modules.
48453         * modules/idpriv-drop-tests (Status): New section.
48454         * modules/idpriv-droptemp-tests (Status): New section.
48456 2010-03-28  Bruno Haible  <bruno@clisp.org>
48458         Split C++ tests into separate tests modules.
48459         * modules/dirent-c++-tests: New file, extracted from
48460         modules/dirent-tests.
48461         * modules/dirent-tests: Depend on it.
48462         * modules/fcntl-h-c++-tests: New file, extracted from
48463         modules/fcntl-h-tests.
48464         * modules/fcntl-h-tests: Depend on it.
48465         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
48466         * modules/glob-tests: Depend on it.
48467         * modules/iconv-h-c++-tests: New file, extracted from
48468         modules/iconv-h-tests.
48469         * modules/iconv-h-tests: Depend on it.
48470         * modules/langinfo-c++-tests: New file, extracted from
48471         modules/langinfo-tests.
48472         * modules/langinfo-tests: Depend on it.
48473         * modules/locale-c++-tests: New file, extracted from
48474         modules/locale-tests.
48475         * modules/locale-tests: Depend on it.
48476         * modules/math-c++-tests: New file, extracted from modules/math-tests.
48477         * modules/math-tests: Depend on it.
48478         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
48479         * modules/pty-tests: Depend on it.
48480         * modules/search-c++-tests: New file, extracted from
48481         modules/search-tests.
48482         * modules/search-tests: Depend on it.
48483         * modules/signal-c++-tests: New file, extracted from
48484         modules/signal-tests.
48485         * modules/signal-tests: Depend on it.
48486         * modules/spawn-c++-tests: New file, extracted from
48487         modules/spawn-tests.
48488         * modules/spawn-tests: Depend on it.
48489         * modules/stdio-c++-tests: New file, extracted from
48490         modules/stdio-tests.
48491         * modules/stdio-tests: Depend on it.
48492         * modules/stdlib-c++-tests: New file, extracted from
48493         modules/stdlib-tests.
48494         * modules/stdlib-tests: Depend on it.
48495         * modules/string-c++-tests: New file, extracted from
48496         modules/string-tests.
48497         * modules/string-tests: Depend on it.
48498         * modules/sys_ioctl-c++-tests: New file, extracted from
48499         modules/sys_ioctl-tests.
48500         * modules/sys_ioctl-tests: Depend on it.
48501         * modules/sys_select-c++-tests: New file, extracted from
48502         modules/sys_select-tests.
48503         * modules/sys_select-tests: Depend on it.
48504         * modules/sys_socket-c++-tests: New file, extracted from
48505         modules/sys_socket-tests.
48506         * modules/sys_socket-tests: Depend on it.
48507         * modules/sys_stat-c++-tests: New file, extracted from
48508         modules/sys_stat-tests.
48509         * modules/sys_stat-tests: Depend on it.
48510         * modules/sys_time-c++-tests: New file, extracted from
48511         modules/sys_time-tests.
48512         * modules/sys_time-tests: Depend on it.
48513         * modules/time-c++-tests: New file, extracted from modules/time-tests.
48514         * modules/time-tests: Depend on it.
48515         * modules/unistd-c++-tests: New file, extracted from
48516         modules/unistd-tests.
48517         * modules/unistd-tests: Depend on it.
48518         * modules/wchar-c++-tests: New file, extracted from
48519         modules/wchar-tests.
48520         * modules/wchar-tests: Depend on it.
48521         * modules/wctype-c++-tests: New file, extracted from
48522         modules/wctype-tests.
48523         * modules/wctype-tests: Depend on it.
48524         Reported by Simon Josefsson.
48526 2010-03-28  Bruno Haible  <bruno@clisp.org>
48528         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
48529         * gnulib-tool (func_exists_module): New function, extracted from
48530         func_verify_module.
48531         (func_verify_module): Use it.
48532         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
48533         'foo' only if 'foo' exists.
48534         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
48535         module.
48537 2010-03-28  Bruno Haible  <bruno@clisp.org>
48539         gnulib-tool: Add support for special categories of tests.
48540         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
48541         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
48542         (func_usage): Document them.
48543         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
48544         inc_unportable_tests, inc_all_tests): New variables.
48545         (func_acceptable): Consider these variables.
48546         (func_modules_transitive_closure): Make it work when the 'Status' field
48547         consists of multiple words.
48548         (func_import): Store and restore the values of inc_cxx_tests,
48549         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
48550         inc_all_tests in gnulib-comp.m4.
48551         (func_create_testdir): Set inc_all_tests to true.
48552         * doc/gnulib.texi (Extra tests modules): New section.
48553         Suggested by Jim Meyering.
48555 2010-03-28  Bruno Haible  <bruno@clisp.org>
48557         ansi-c++-opt: Allow turning off the C++ build by default.
48558         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
48559         gl_CXX_CHOICE_DEFAULT_NO is defined.
48560         Requested by Eric Blake.
48562 2010-03-28  Bruno Haible  <bruno@clisp.org>
48564         unistd: Avoid #define replacements in C++ mode.
48565         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
48566         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
48567         setsockopt, shutdown, select): In C++, attach a warning to the function
48568         if possible, rather than #defining the symbol to a dysfunctional alias.
48569         Reported by John W. Eaton <jwe@gnu.org>.
48571 2010-03-28  Bruno Haible  <bruno@clisp.org>
48573         Fix link errors on mingw.
48574         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
48575         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
48576         $(LIBSOCKET).
48577         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
48578         $(LIBSOCKET).
48580 2010-03-28  Bruno Haible  <bruno@clisp.org>
48581             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48583         lib-ignore: Determine different options for different compilers.
48584         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
48585         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
48586         Add comments.
48587         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
48588         * NEWS: Mention the change.
48590 2010-03-27  Bruno Haible  <bruno@clisp.org>
48592         Remove unused GNULIB_XYZ macro definitions.
48593         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
48594         * modules/fseek (configure.ac): Likewise.
48595         * modules/ioctl (configure.ac): Likewise.
48596         * modules/open (configure.ac): Likewise.
48597         * modules/stdlib-safer (configure.ac): Likewise.
48599 2010-03-27  Bruno Haible  <bruno@clisp.org>
48601         Add a remark about certain modules.
48602         * modules/malloc (Comment): New section.
48603         * modules/realloc (Comment): Likewise.
48604         * modules/sigpipe (Comment): Likewise.
48606 2010-03-27  Bruno Haible  <bruno@clisp.org>
48608         Resolve conflict between the two kinds of module indicators.
48609         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
48610         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
48611         * modules/canonicalize (configure.ac): Invoke
48612         gl_MODULE_INDICATOR_FOR_TESTS.
48613         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
48614         GNULIB_XYZ.
48615         * tests/test-dirent-c++.cc: Likewise.
48616         * tests/test-dirent-safer.c: Likewise.
48617         * tests/test-dup2.c: Likewise.
48618         * tests/test-fchdir.c: Likewise.
48619         * tests/test-fcntl-h-c++.cc: Likewise.
48620         * tests/test-getopt.c: Likewise.
48621         * tests/test-getopt.h: Likewise.
48622         * tests/test-langinfo-c++.cc: Likewise.
48623         * tests/test-locale-c++.cc: Likewise.
48624         * tests/test-math-c++.cc: Likewise.
48625         * tests/test-pty-c++.cc: Likewise.
48626         * tests/test-search-c++.cc: Likewise.
48627         * tests/test-signal-c++.cc: Likewise.
48628         * tests/test-spawn-c++.cc: Likewise.
48629         * tests/test-stdio-c++.cc: Likewise.
48630         * tests/test-stdlib-c++.cc: Likewise.
48631         * tests/test-string-c++.cc: Likewise.
48632         * tests/test-sys_ioctl-c++.cc: Likewise.
48633         * tests/test-sys_select-c++.cc: Likewise.
48634         * tests/test-sys_socket-c++.cc: Likewise.
48635         * tests/test-sys_stat-c++.cc: Likewise.
48636         * tests/test-sys_time-c++.cc: Likewise.
48637         * tests/test-time-c++.cc: Likewise.
48638         * tests/test-unistd-c++.cc: Likewise.
48639         * tests/test-wchar-c++.cc: Likewise.
48640         * tests/uninorm/test-u8-nfc.c: Likewise.
48641         * tests/uninorm/test-u8-nfd.c: Likewise.
48642         * tests/uninorm/test-u8-nfkc.c: Likewise.
48643         * tests/uninorm/test-u8-nfkd.c: Likewise.
48644         * tests/uninorm/test-u16-nfc.c: Likewise.
48645         * tests/uninorm/test-u16-nfd.c: Likewise.
48646         * tests/uninorm/test-u16-nfkc.c: Likewise.
48647         * tests/uninorm/test-u16-nfkd.c: Likewise.
48648         * tests/uninorm/test-u32-nfc.c: Likewise.
48649         * tests/uninorm/test-u32-nfc-big.c: Likewise.
48650         * tests/uninorm/test-u32-nfd.c: Likewise.
48651         * tests/uninorm/test-u32-nfd-big.c: Likewise.
48652         * tests/uninorm/test-u32-nfkc.c: Likewise.
48653         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
48654         * tests/uninorm/test-u32-nfkd.c: Likewise.
48655         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
48656         * tests/uninorm/test-u32-normalize-big.c: Likewise.
48658 2010-03-27  Bruno Haible  <bruno@clisp.org>
48660         Distinguish two kinds of module indicators.
48661         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
48662         gl_MODULE_INDICATOR.
48663         (gl_MODULE_INDICATOR): New macro.
48664         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
48665         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
48666         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48667         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48668         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48669         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48670         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48671         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48672         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48673         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48674         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48675         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48677         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48678         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48679         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48680         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48681         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48682         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48683         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48684         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48685         * modules/cloexec (configure.ac): Likewise.
48686         * modules/getopt-gnu (configure.ac): Likewise.
48687         * modules/uninorm/u8-normalize (configure.ac): Likewise.
48688         * modules/uninorm/u16-normalize (configure.ac): Likewise.
48689         * modules/uninorm/u32-normalize (configure.ac): Likewise.
48690         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
48692 2010-03-27  Bruno Haible  <bruno@clisp.org>
48694         New module description field 'Comment'.
48695         * gnulib-tool: New option --extract-comment.
48696         (func_usage): Document it.
48697         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
48698         (func_get_comment): New function.
48699         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
48701 2010-03-27  Bruno Haible  <bruno@clisp.org>
48703         Addendum to 2010-02-07 commit.
48704         * gnulib-tool (func_usage): Document --extract-applicability option.
48706 2010-03-27  Bruno Haible  <bruno@clisp.org>
48708         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
48709         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
48710         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
48711         rather than link errors.
48713 2010-03-27  Bruno Haible  <bruno@clisp.org>
48715         Avoid side effects from tests-related modules on the compilation of lib.
48716         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
48717         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
48718         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
48719         parameter. Emit into AM_CPPFLAGS a definition of the designated C
48720         macro.
48721         (func_import): Define a witness macro. Assign it a value that depends
48722         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
48723         tests-related modules.
48724         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
48725         Reported by Jim Meyering.
48727 2010-03-27  Bruno Haible  <bruno@clisp.org>
48729         Factorize common .m4 code.
48730         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
48731         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
48732         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
48733         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
48734         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48735         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
48736         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
48737         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48738         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48739         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48740         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
48741         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48742         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48743         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48744         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48745         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
48746         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48747         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48749         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
48750         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
48751         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48752         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48754         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48755         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48756         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
48757         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
48758         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
48759         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48760         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48761         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48763 2010-03-27  Bruno Haible  <bruno@clisp.org>
48765         Fix a compilation error on Cygwin with g++ >= 4.3.
48766         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
48767         if it is undefined or if we alias it to chmod.
48768         (lstat): Don't warn about the use of this function if it is undefined
48769         or if we alias it to stat.
48770         Reported by Simon Josefsson.
48772 2010-03-27  Bruno Haible  <bruno@clisp.org>
48774         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
48775         * modules/getlogin (configure.ac): Update.
48777         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
48778         * modules/getlogin_r (configure.ac): Update.
48780         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
48781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
48782         * modules/inet_ntop (configure.ac): Update.
48784         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
48785         * modules/inet_pton (configure.ac): Update.
48787         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
48788         * modules/mbslen (configure.ac): Update.
48790         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
48791         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
48792         * modules/forkpty (configure.ac): Update.
48793         * modules/openpty (configure.ac): Update.
48795 2010-03-26  Simon Josefsson  <simon@josefsson.org>
48797         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
48798         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
48800 2010-03-25  Eric Blake  <eblake@redhat.com>
48802         maint: use pragma consistently across replacement headers
48803         * lib/ctype.in.h (system_header): Hoist for consistent placement.
48804         * lib/dirent.in.h (system_header): Likewise.
48805         * lib/errno.in.h (system_header): Likewise.
48806         * lib/float.in.h (system_header): Likewise.
48807         * lib/getopt.in.h (system_header): Likewise.
48808         * lib/iconv.in.h (system_header): Likewise.
48809         * lib/inttypes.in.h (system_header): Likewise.
48810         * lib/langinfo.in.h (system_header): Likewise.
48811         * lib/locale.in.h (system_header): Likewise.
48812         * lib/math.in.h (system_header): Likewise.
48813         * lib/netdb.in.h (system_header): Likewise.
48814         * lib/netinet_in.in.h (system_header): Likewise.
48815         * lib/pty.in.h (system_header): Likewise.
48816         * lib/sched.in.h (system_header): Likewise.
48817         * lib/se-selinux.in.h (system_header): Likewise.
48818         * lib/search.in.h (system_header): Likewise.
48819         * lib/spawn.in.h (system_header): Likewise.
48820         * lib/stdarg.in.h (system_header): Likewise.
48821         * lib/stdint.in.h (system_header): Likewise.
48822         * lib/string.in.h (system_header): Likewise.
48823         * lib/strings.in.h (system_header): Likewise.
48824         * lib/sys_file.in.h (system_header): Likewise.
48825         * lib/sys_ioctl.in.h (system_header): Likewise.
48826         * lib/sys_socket.in.h (system_header): Likewise.
48827         * lib/sys_times.in.h (system_header): Likewise.
48828         * lib/sys_utsname.in.h (system_header): Likewise.
48829         * lib/sys_wait.in.h (system_header): Likewise.
48830         * lib/sysexits.in.h (system_header): Likewise.
48831         * lib/unistd.in.h (system_header): Likewise.
48832         * lib/wctype.in.h (system_header): Likewise.
48834         arpa/inet: fix mingw compilation warning
48835         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
48836         Reported by Matthew Bolte.
48838 2010-03-25  Bruno Haible  <bruno@clisp.org>
48840         Avoid collision between gnulib wrapper and libintl wrapper.
48841         * lib/printf.c (printf): Don't define if a printf wrapper is already
48842         defined in intl/printf.c.
48843         Reported by Michel Boaventura <michel@michelboaventura.com>.
48845 2010-03-25  Bruno Haible  <bruno@clisp.org>
48847         Use ANSI C.
48848         * lib/readutmp.h (getutent): Provide ANSI C prototype.
48850 2010-03-25  Bruno Haible  <bruno@clisp.org>
48852         Minor formatting changes.
48853         * lib/acosl.c: Insert space before function argument list.
48854         * lib/argz.c: Likewise.
48855         * lib/asinl.c: Likewise.
48856         * lib/expl.c: Likewise.
48857         * lib/gen-uni-tables.c: Likewise.
48858         * lib/gettext.h: Likewise.
48859         * lib/glthread/lock.h: Likewise.
48860         * lib/tanl.c: Likewise.
48861         * lib/uniname/uniname.c: Likewise.
48862         * tests/test-idpriv-drop.c: Likewise.
48863         * tests/test-idpriv-droptemp.c: Likewise.
48864         * tests/test-lock.c: Likewise.
48865         * tests/test-tls.c: Likewise.
48866         * lib/argp-help.c: Insert space before function-like macro argument
48867         list.
48868         * lib/memcmp.c: Likewise.
48869         * tests/test-base64.c: Likewise.
48870         * lib/localename.c: Insert space before sizeof's argument list.
48871         * lib/safe-alloc.h: Likewise.
48872         * lib/file-set.h: Insert space before macro argument list.
48873         * tests/test-argp.c: Likewise.
48874         * lib/argp-namefrob.h: Insert space before function parameter list.
48875         * lib/getaddrinfo.c: Likewise.
48876         * lib/netdb.in.h: Likewise.
48877         * lib/parse-duration.h: Likewise.
48878         * lib/parse-duration.c: Likewise.
48879         * lib/poll.c: Likewise.
48880         * lib/select.c: Likewise.
48881         * lib/trim.h: Likewise.
48882         * tests/test-usleep.c: Likewise.
48883         * lib/ldexpl.c: Insert space before function parameter list and before
48884         function argument list.
48885         * lib/logl.c: Likewise.
48886         * lib/sqrtl.c: Likewise.
48887         * lib/trim.c: Likewise.
48888         * lib/cosl.c: Use GNU style indentation. Insert space before function
48889         argument list.
48890         * lib/sinl.c: Likewise.
48891         * lib/tsearch.c: Insert space after 'for'.
48892         Reported by Jim Meyering.
48894 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
48896         * maint.mk (sc_Wundef_boolean): Check for the presence of the
48897         config header before grepping, as it's not present before
48898         autoreconf/configure are run.  Reported by Simon Josefsson.
48900 2010-03-23  Bruno Haible  <bruno@clisp.org>
48902         pt_chown: Make it work with automake < 1.11.
48903         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
48904         Reported by Simon Josefsson.
48906 2010-03-23  Bruno Haible  <bruno@clisp.org>
48908         pt_chown: Don't depend on GPLed modules.
48909         * lib/pt_chown.c: Don't include idpriv.h.
48910         (main): Don't drop privileges.
48911         * modules/pt_chown (Depends-on): Remove idpriv-drop.
48912         Reported by Simon Josefsson.
48914 2010-03-24  Simon Josefsson  <simon@josefsson.org>
48916         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
48917         suggestions from karl@freefriends.org (Karl Berry).
48919 2010-03-22  Eric Blake  <eblake@redhat.com>
48921         gethostname: further tweaks
48922         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
48923         are overriding gethostname.
48924         Suggested by Bruno Haible.
48926 2010-03-21  Bruno Haible  <bruno@clisp.org>
48928         Fix comments.
48929         * lib/forkpty.c (rpl_forkpty): Fix comment.
48930         * lib/openpty.c (rpl_openpty): Likewise.
48931         Reported by Eric Blake.
48933 2010-03-22  Eric Blake  <eblake@redhat.com>
48935         gethostname: fix build on mingw
48936         * lib/unistd.in.h (includes): Work around fact that mingw
48937         <winsock2.h> re-includes <unistd.h>, by avoiding any
48938         redeclarations if we are being included by <winsock2.h>.
48939         Reported by Matthias Bolte.
48941 2010-03-21  Bruno Haible  <bruno@clisp.org>
48943         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
48944         * lib/forkpty.c (forkpty): New replacement function, from glibc with
48945         modifications.
48946         * lib/pty.in.h (forkpty): Update declaration. Add comments.
48947         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
48948         provide the replacement.
48949         * modules/forkpty (Depends-on): Add openpty, login_tty.
48950         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
48951         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
48952         * doc/glibc-functions/forkpty.texi: More supported platforms.
48953         * config/srclist.txt: Add forkpty.c (commented).
48955 2010-03-21  Bruno Haible  <bruno@clisp.org>
48957         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
48958         (Makefile.am): Verify that PTY_LIB is defined.
48960         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
48962 2010-03-21  Bruno Haible  <bruno@clisp.org>
48964         Tests for module 'login_tty'.
48965         * modules/login_tty-tests: New file.
48966         * tests/test-login_tty.c: New file.
48968         New module 'login_tty'.
48969         * lib/login_tty.c: New file.
48970         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
48971         * modules/login_tty: New file.
48972         * doc/glibc-functions/login_tty.texi: Mention the new module.
48974 2010-03-21  Bruno Haible  <bruno@clisp.org>
48976         login_tty: Documentation.
48977         * doc/glibc-functions/login_tty.texi: New file.
48978         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
48980 2010-03-21  Bruno Haible  <bruno@clisp.org>
48982         pty: Consistent macro naming.
48983         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
48984         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
48985         * modules/pty (configure.ac): Update.
48987 2010-03-21  Bruno Haible  <bruno@clisp.org>
48989         Tests for openpty: Make stricter.
48990         * tests/test-openpty.c (main): Add test of canonical processing and
48991         erase.
48992         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
48994         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
48995         * lib/openpty.c (openpty): New replacement function.
48996         * lib/pty.in.h: Include <termios.h>.
48997         (openpty): Update declaration. Add comments.
48998         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
48999         is not declared, arrange to provide the replacement. Check for _getpty
49000         and posix_openpt.
49001         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
49002         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
49003         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
49004         * modules/pty-tests (test_pty_c___LDADD): New variable.
49005         * doc/glibc-functions/openpty.texi: More supported platforms.
49007 2010-03-21  Bruno Haible  <bruno@clisp.org>
49009         setenv: Tweaks.
49010         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
49011         the test program.
49012         * doc/posix-functions/setenv.texi: Update platforms list.
49014 2010-03-21  Bruno Haible  <bruno@clisp.org>
49016         New module 'unlockpt'.
49017         * lib/unlockpt.c: New file, from glibc with modifications.
49018         * m4/unlockpt.m4: New file.
49019         * modules/unlockpt: New file.
49020         * lib/stdlib.in.h (unlockpt): New declaration.
49021         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
49022         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
49023         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
49024         HAVE_UNLOCKPT.
49025         * doc/posix-functions/unlockpt.texi: Mention the new module.
49026         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
49027         * config/srclist.txt: Add unlockpt.c (commented).
49029 2010-03-21  Jim Meyering  <meyering@redhat.com>
49031         maint.mk: prohibit inclusion of "intprops.h" without use
49032         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
49034 2010-03-21  Bruno Haible  <bruno@clisp.org>
49036         New module 'grantpt'.
49037         * lib/grantpt.c: New file, from glibc with modifications.
49038         * m4/grantpt.m4: New file.
49039         * modules/grantpt: New file.
49040         * lib/stdlib.in.h (grantpt): New declaration.
49041         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
49042         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
49043         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
49044         HAVE_GRANTPT.
49045         * doc/posix-functions/grantpt.texi: Mention the new module.
49046         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
49047         * config/srclist.txt: Add grantpt.c (commented).
49049 2010-03-21  Bruno Haible  <bruno@clisp.org>
49051         New module 'pt_chown'.
49052         * lib/pt_chown.c: New file, from glibc with modifications.
49053         * lib/pty-private.h: New file, from glibc with modifications.
49054         * modules/pt_chown: New file.
49055         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
49057 2010-03-21  Bruno Haible  <bruno@clisp.org>
49059         Tests for module 'ptsname'.
49060         * modules/ptsname-tests: New file.
49061         * tests/test-ptsname.c: New file.
49063         New module 'ptsname'.
49064         * lib/ptsname.c: New file, from glibc with modifications.
49065         * m4/ptsname.m4: New file.
49066         * modules/ptsname: New file.
49067         * lib/stdlib.in.h (ptsname): New declaration.
49068         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
49069         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
49070         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
49071         HAVE_PTSNAME.
49072         * doc/posix-functions/ptsname.texi: Mention the new module.
49073         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
49074         * config/srclist.txt: Add ptsname.c (commented).
49076 2010-03-21  Bruno Haible  <bruno@clisp.org>
49078         Tests for module 'ttyname_r'.
49079         * modules/ttyname_r-tests: New file.
49080         * tests/test-ttyname_r.c: New file.
49082         New module 'ttyname_r'.
49083         * lib/ttyname_r.c: New file.
49084         * m4/ttyname_r.m4: New file.
49085         * modules/ttyname_r: New file.
49086         * lib/unistd.in.h (ttyname_r): New declaration.
49087         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
49088         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
49089         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
49090         HAVE_TTYNAME_R.
49091         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
49092         * doc/posix-functions/ttyname_r.texi: Mention the new module.
49094 2010-03-20  Bruno Haible  <bruno@clisp.org>
49096         signal: Undefine macro definitions in C++ mode.
49097         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
49098         sigfillset): Undefine macro definitions from the system header in C++
49099         mode.
49100         Reported by John W. Eaton <jwe@gnu.org>.
49102 2010-03-20  Bruno Haible  <bruno@clisp.org>
49104         Ensure no #include statements inside extern "C" { ... }.
49105         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
49106         contain #include statements.
49107         * lib/time.in.h: Likewise.
49109 2010-03-20  Bruno Haible  <bruno@clisp.org>
49111         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
49112         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
49113         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
49114         Reported by John W. Eaton <jwe@gnu.org>.
49116 2010-03-20  Bruno Haible  <bruno@clisp.org>
49118         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
49119         Reported by Jim Meyering.
49121 2010-03-20  Bruno Haible  <bruno@clisp.org>
49123         pipe: Set errno upon failure.
49124         * lib/pipe.h: Specify that when -1 is returned, errno is set.
49125         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
49126         errno value in error message.
49128 2010-03-20  Bruno Haible  <bruno@clisp.org>
49129             Jim Meyering  <meyering@redhat.com>
49131         lchown: Avoid "unused variable" warning.
49132         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
49134 2010-03-20  Bruno Haible  <bruno@clisp.org>
49136         Work around unlink() bug on MacOS X 10.5.6.
49137         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
49138         attempting to unlink a parent directory.
49139         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
49140         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
49141         activate for the replacement function.
49142         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
49144 2010-03-20  Bruno Haible  <bruno@clisp.org>
49146         Fix link errors on Solaris 8.
49147         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
49148         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
49150 2010-03-19  Jim Meyering  <meyering@redhat.com>
49152         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
49153         The _LIBC implementation of build_range_exp correctly honors the
49154         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
49155         However, the non-_LIBC implementation would ignore that syntax-bit
49156         flag and return REG_ERANGE unconditionally.
49157         This change makes it honor that flag.
49158         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
49159         Make two pointer parameters "const".
49160         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
49161         (parse_bracket_exp): Update caller.
49163         regex.m4: correct the reversed range endpoint ([b-a]) test
49164         * m4/regex.m4: When requiring that [b-a] evoke failure,
49165         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
49166         test pass once again for x86-based systems.
49168 2010-03-19  Bruno Haible  <bruno@clisp.org>
49170         scandir: Fix link error on Solaris 8.
49171         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
49172         macros.
49174 2010-03-19  Bruno Haible  <bruno@clisp.org>
49176         getusershell: Fix documentation.
49177         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
49178         module.
49179         * doc/glibc-functions/setusershell.texi: Likewise.
49181         getusershell: Provide declaration, missing on Solaris 9.
49182         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
49183         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
49184         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
49185         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
49186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49187         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
49188         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
49189         HAVE_GETUSERSHELL.
49190         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
49192 2010-03-19  Bruno Haible  <bruno@clisp.org>
49194         wctype: Provide iswblank function.
49195         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
49196         exists and is fine.
49197         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
49198         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
49199         * tests/test-wctype.c (main): Re-enable the iswblank tests.
49200         * doc/posix-functions/iswblank.texi: Update.
49202 2010-03-19  Bruno Haible  <bruno@clisp.org>
49204         Tests of module 'pty' in C++ mode.
49205         * modules/pty-tests: New file.
49206         * tests/test-pty-c++.cc: New file.
49207         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49209 2010-03-19  Eric Blake  <eblake@redhat.com>
49211         logb: fix documentation
49212         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
49213         1.5 declaration bug.
49215         forkpty, openpty: prefer glibc's const-safe prototype
49216         * lib/forkpty.c (rpl_forkpty): New file.
49217         * lib/openpty.c (rpl_openpty): Likewise.
49218         * modules/forkpty (Files): Distribute it.
49219         * modules/openpty (Files): Likewise.
49220         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
49221         check...
49222         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
49223         replacement for non-const BSD signature.
49224         * modules/pty (Makefile.am): Substitute witnesses.
49225         * lib/pty.in.h (forkpty, openpty): Declare replacements.
49226         * tests/test-forkpty.c: Update signature check.
49227         * tests/test-openpty.c: Likewise.
49228         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
49229         * doc/glibc-functions/openpty.texi (openpty): Likewise.
49231         forkpty, openpty: split functions into new modules
49232         * modules/pty (Makefile.am): Substitute new witnesses.
49233         (Libraries): Move library detection...
49234         * modules/forkpty: ...into new module.
49235         * modules/openpty: Another new module.
49236         * modules/pty-tests: Rename and split...
49237         * modules/forkpty-tests: ...to this...
49238         * modules/openpty-tests: ...and this.
49239         * tests/test-pty.c: Rename and split...
49240         * tests/test-forkpty.c: ...to this...
49241         * tests/test-openpty.c: ...and this.
49242         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
49243         (gl_PTY): Split library searching...
49244         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
49245         (gl_FORKPTY, gl_OPENPTY): New macros.
49246         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
49247         * NEWS: Mention the split.
49248         * MODULES.html.sh (Misc): Document the modules.
49249         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
49250         * doc/glibc-functions/openpty.texi (openpty): Likewise.
49252         pty: improve replacement header
49253         * lib/pty.in.h: New file.
49254         * modules/pty (Files): Ship it.
49255         (Makefile.am): Always build replacement.
49256         * m4/pty.m4: Rename...
49257         * m4/pty_h.m4: ...to this.
49258         (gl_PTY): Modernize setting of witness macros; update check of
49259         forkpty to take proper advantage of cache.
49260         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
49262         getopt: avoid compiler warning
49263         * lib/getopt.c (attribute_hidden): Remove unused macro.
49265 2010-03-18  Bruno Haible  <bruno@clisp.org>
49267         Fix link errors on Solaris 8.
49268         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
49269         * modules/search-tests (test_search_c___LDADD): Likewise.
49270         * modules/signal-tests (test_signal_c___LDADD): Likewise.
49271         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
49272         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
49273         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
49274         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
49275         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
49276         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
49278 2010-03-18  Bruno Haible  <bruno@clisp.org>
49280         Fix bug introduced on 2010-03-14.
49281         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
49282         (gl_SPAWN_H): Require it.
49283         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
49284         Reported by Simon Josefsson.
49286 2010-03-18  Bruno Haible  <bruno@clisp.org>
49288         Fix typo introduced on 2009-12-31.
49289         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
49290         posix_spawn_file_actions_adddup2.
49292 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
49293         and Eric Blake  <eblake@redhat.com>
49295         test-vc-list-files-git: make more robust
49296         * tests/test-vc-list-files-git.sh: Unset problematic environment
49297         variables.  Chain commands together.
49299 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
49301         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
49302         `AC_CHECK_DECL' invocation.
49304 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
49306         * lib/inttostr.c (inttostr): Make sure the invocation of verify
49307         appears before executable statements. Suggested by Petr Sumbera
49308         <Petr.Sumbera@Sun.COM>.
49310 2010-03-14  Bruno Haible  <bruno@clisp.org>
49312         * tests/test-flock.c (test_exclusive): Comment out a test that causes
49313         portability problems. Instead use a simpler test.
49314         (main): Check that invalid arguments are rejected only on Linux.
49316 2010-03-14  Bruno Haible  <bruno@clisp.org>
49318         Fix bug introduced on 2009-12-31.
49319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
49320         gl_PREREQ_SYS_H_WINSOCK2 always.
49321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
49322         SYS_SOCKET_H variable.
49323         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
49324         Update comments.
49325         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
49326         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
49327         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49329         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49331 2010-03-14  Bruno Haible  <bruno@clisp.org>
49333         Fix values returned by sinl, cosl.
49334         * lib/trigl.h: Add specification comments.
49335         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
49336         that combines the values from the precomputed table with the values of
49337         the Chebyshev polynomials.
49339 2010-03-14  Bruno Haible  <bruno@clisp.org>
49341         Fix compilation error when modules 'posix_spawn[p]' are not used.
49342         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
49343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
49345 2010-03-14  Bruno Haible  <bruno@clisp.org>
49347         Fix compilation error on mingw when module 'time_r' is not used.
49348         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
49349         is 1.
49350         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
49351         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
49352         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
49353         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
49355 2010-03-14  Bruno Haible  <bruno@clisp.org>
49357         Fix compilation error with Sun C.
49358         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
49359         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
49360         instead of GCC specific ULONG_LONG_MAX.
49361         * lib/xstrtoll.c: Likewise.
49362         * lib/xstrtoull.c: Likewise.
49364 2010-03-13  Bruno Haible  <bruno@clisp.org>
49366         Allow the user to disable C++ code and tests.
49367         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
49368         (gl_PROG_ANSI_CXX): Require it.
49370 2010-03-13  Bruno Haible  <bruno@clisp.org>
49372         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
49373         cases.
49375 2010-03-13  Bruno Haible  <bruno@clisp.org>
49377         Test that gnulib does not break the standard C++ headers.
49378         * tests/test-locale-c++2.cc: New file.
49379         * modules/locale-tests (Files): Add it.
49380         (Makefile.am): Compile it for test-locale-c++.
49381         * tests/test-math-c++2.cc: New file.
49382         * modules/math-tests (Files): Add it.
49383         (Makefile.am): Compile it for test-math-c++.
49384         * tests/test-signal-c++2.cc: New file.
49385         * modules/signal-tests (Files): Add it.
49386         (Makefile.am): Compile it for test-signal-c++.
49387         * tests/test-stdio-c++2.cc: New file.
49388         * modules/stdio-tests (Files): Add it.
49389         (Makefile.am): Compile it for test-stdio-c++.
49390         * tests/test-stdlib-c++2.cc: New file.
49391         * modules/stdlib-tests (Files): Add it.
49392         (Makefile.am): Compile it for test-stdlib-c++.
49393         * tests/test-string-c++2.cc: New file.
49394         * modules/string-tests (Files): Add it.
49395         (Makefile.am): Compile it for test-string-c++.
49396         * tests/test-time-c++2.cc: New file.
49397         * modules/time-tests (Files): Add it.
49398         (Makefile.am): Compile it for test-time-c++.
49399         Reported by John W. Eaton <jwe@gnu.org>.
49401 2010-03-13  Bruno Haible  <bruno@clisp.org>
49403         * gnulib-tool (func_usage): Clarify which options are available for
49404         --create-testdir and --create-megatestdir.
49406 2010-03-13  Bruno Haible  <bruno@clisp.org>
49408         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
49409         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
49410         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
49411         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
49412         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
49413         when appropriate.
49414         Reported by Jim Meyering.
49416 2010-03-12  Simon Josefsson  <simon@josefsson.org>
49418         * gnulib-tool (func_import): Explain origin of code.
49420 2010-03-12  Bruno Haible  <bruno@clisp.org>
49422         Fix problem with automake's definition of CXXLINK.
49423         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
49424         Reported by Simon Josefsson and Ludovic Courtès.
49426 2010-03-12  Bruno Haible  <bruno@clisp.org>
49428         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
49429         stable releases.
49431 2010-03-11  Bruno Haible  <bruno@clisp.org>
49433         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
49434         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
49435         whether the system provides one variant or multiple variants of the
49436         function.
49437         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
49438         C++ compilers.
49439         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
49440         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
49441         Reported by Jim Meyering.
49443 2010-03-09  Simon Josefsson  <simon@josefsson.org>
49445         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
49447 2010-03-08  Bruno Haible  <bruno@clisp.org>
49449         gnulib-tool: Add support for --libtool in --create-testdir.
49450         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
49451         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
49453 2010-03-08  Eric Blake  <eblake@redhat.com>
49455         gnulib-tool.texi: mention possibility of git submodule
49456         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
49457         submodules.
49458         * doc/.gitignore: Ignore another generated file.
49460 2010-03-08  Karl Berry  <karl@gnu.org>
49462         * doc/gnulib-tool.texi (VCS Issues): Mention third option
49463         of committing gnulib files while skipping others.
49465 2010-03-07  Bruno Haible  <bruno@clisp.org>
49467         Tests of module 'wctype' in C++ mode.
49468         * tests/test-wctype-c++.cc: New file.
49469         * modules/wctype-tests (Files): Add it and tests/signature.h.
49470         (Depends-on): Add ansi-c++-opt.
49471         (Makefile.am): Arrange to compile and run test-wctype-c++.
49473         Tests of module 'wchar' in C++ mode.
49474         * tests/test-wchar-c++.cc: New file.
49475         * modules/wchar-tests (Files): Add it and tests/signature.h.
49476         (Depends-on): Add ansi-c++-opt.
49477         (Makefile.am): Arrange to compile and run test-wchar-c++.
49478         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
49479         gl_MODULE_INDICATOR.
49481         Tests of module 'unistd' in C++ mode.
49482         * tests/test-unistd-c++.cc: New file.
49483         * modules/unistd-tests (Files): Add it and tests/signature.h.
49484         (Depends-on): Add ansi-c++-opt.
49485         (Makefile.am): Arrange to compile and run test-unistd-c++.
49486         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
49487         gl_MODULE_INDICATOR.
49489         Tests of module 'time' in C++ mode.
49490         * tests/test-time-c++.cc: New file.
49491         * modules/time-tests (Files): Add it and tests/signature.h.
49492         (Depends-on): Add ansi-c++-opt.
49493         (Makefile.am): Arrange to compile and run test-time-c++.
49494         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49496         Tests of module 'sys_time' in C++ mode.
49497         * tests/test-sys_time-c++.cc: New file.
49498         * modules/sys_time-tests (Files): Add it and tests/signature.h.
49499         (Depends-on): Add ansi-c++-opt.
49500         (Makefile.am): Arrange to compile and run test-sys_time-c++.
49501         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
49502         gl_MODULE_INDICATOR.
49504         Tests of module 'sys_stat' in C++ mode.
49505         * tests/test-sys_stat-c++.cc: New file.
49506         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
49507         (Depends-on): Add ansi-c++-opt.
49508         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
49509         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
49510         gl_MODULE_INDICATOR.
49512         Tests of module 'sys_socket' in C++ mode.
49513         * tests/test-sys_socket-c++.cc: New file.
49514         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
49515         (Depends-on): Add ansi-c++-opt.
49516         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
49517         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
49518         gl_MODULE_INDICATOR.
49520         Tests of module 'sys_select' in C++ mode.
49521         * tests/test-sys_select-c++.cc: New file.
49522         * modules/sys_select-tests (Files): Add it and tests/signature.h.
49523         (Depends-on): Add ansi-c++-opt.
49524         (Makefile.am): Arrange to compile and run test-sys_select-c++.
49525         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
49526         gl_MODULE_INDICATOR.
49528         Tests of module 'sys_ioctl' in C++ mode.
49529         * tests/test-sys_ioctl-c++.cc: New file.
49530         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
49531         (Depends-on): Add ansi-c++-opt.
49532         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
49533         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
49534         gl_MODULE_INDICATOR.
49536         Tests of module 'string' in C++ mode.
49537         * tests/test-string-c++.cc: New file.
49538         * modules/string-tests (Files): Add it and tests/signature.h.
49539         (Depends-on): Add ansi-c++-opt.
49540         (Makefile.am): Arrange to compile and run test-string-c++.
49541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
49542         gl_MODULE_INDICATOR.
49544         Tests of module 'stdlib' in C++ mode.
49545         * tests/test-stdlib-c++.cc: New file.
49546         * modules/stdlib-tests (Files): Add it and tests/signature.h.
49547         (Depends-on): Add ansi-c++-opt.
49548         (Makefile.am): Arrange to compile and run test-stdlib-c++.
49549         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
49550         gl_MODULE_INDICATOR.
49552         Tests of module 'stdio' in C++ mode.
49553         * tests/test-stdio-c++.cc: New file.
49554         * modules/stdio-tests (Files): Add it and tests/signature.h.
49555         (Depends-on): Add ansi-c++-opt.
49556         (Makefile.am): Arrange to compile and run test-stdio-c++.
49557         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
49558         gl_MODULE_INDICATOR.
49560         Tests of module 'spawn' in C++ mode.
49561         * tests/test-spawn-c++.cc: New file.
49562         * modules/spawn-tests (Files): Add it and tests/signature.h.
49563         (Depends-on): Add ansi-c++-opt.
49564         (Makefile.am): Arrange to compile and run test-spawn-c++.
49565         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
49566         gl_MODULE_INDICATOR.
49568         Tests of module 'signal' in C++ mode.
49569         * tests/test-signal-c++.cc: New file.
49570         * modules/signal-tests (Files): Add it and tests/signature.h.
49571         (Depends-on): Add ansi-c++-opt.
49572         (Makefile.am): Arrange to compile and run test-signal-c++.
49573         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
49574         gl_MODULE_INDICATOR.
49576         Tests of module 'search' in C++ mode.
49577         * tests/test-search-c++.cc: New file.
49578         * modules/search-tests (Files): Add it and tests/signature.h.
49579         (Depends-on): Add ansi-c++-opt.
49580         (Makefile.am): Arrange to compile and run test-search-c++.
49581         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
49582         gl_MODULE_INDICATOR.
49584         Tests of module 'math' in C++ mode.
49585         * tests/test-math-c++.cc: New file.
49586         * modules/math-tests (Files): Add it and tests/signature.h.
49587         (Depends-on): Add ansi-c++-opt.
49588         (Makefile.am): Arrange to compile and run test-math-c++.
49589         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49591         Tests of module 'locale' in C++ mode.
49592         * tests/test-locale-c++.cc: New file.
49593         * modules/locale-tests (Files): Add it and tests/signature.h.
49594         (Depends-on): Add ansi-c++-opt.
49595         (Makefile.am): Arrange to compile and run test-locale-c++.
49596         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
49597         gl_MODULE_INDICATOR.
49599         Tests of module 'langinfo' in C++ mode.
49600         * tests/test-langinfo-c++.cc: New file.
49601         * modules/langinfo-tests (Files): Add it and tests/signature.h.
49602         (Depends-on): Add ansi-c++-opt.
49603         (Makefile.am): Arrange to compile and run test-langinfo-c++.
49604         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
49605         gl_MODULE_INDICATOR.
49607         Tests of module 'iconv-h' in C++ mode.
49608         * tests/test-iconv-h-c++.cc: New file.
49609         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
49610         (Depends-on): Add ansi-c++-opt.
49611         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
49613         Tests of module 'glob' in C++ mode.
49614         * tests/test-glob-c++.cc: New file.
49615         * modules/glob-tests (Files): Add it.
49616         (Depends-on): Add ansi-c++-opt.
49617         (Makefile.am): Arrange to compile and run test-glob-c++.
49619         Tests of module 'fcntl-h' in C++ mode.
49620         * tests/test-fcntl-h-c++.cc: New file.
49621         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
49622         (Depends-on): Add ansi-c++-opt.
49623         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
49624         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
49625         gl_MODULE_INDICATOR.
49627         Tests of module 'dirent' in C++ mode.
49628         * tests/test-dirent-c++.cc: New file.
49629         * modules/dirent-tests (Files): Add it and tests/signature.h.
49630         (Depends-on): Add ansi-c++-opt.
49631         (Makefile.am): Arrange to compile and run test-dirent-c++.
49632         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
49633         gl_MODULE_INDICATOR.
49635         New module 'ansi-c++-opt'.
49636         * modules/ansi-c++-opt: New file.
49637         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
49639         Document C++ namespace mode.
49640         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
49642         wctype: Avoid #define replacements in C++ mode.
49643         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
49644         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
49645         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
49646         In C++, define a namespaced alias symbol.
49647         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
49648         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
49649         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
49650         rule.
49652         wchar: Avoid #define replacements in C++ mode.
49653         * lib/wchar.in.h: Include c++defs.h.
49654         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
49655         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
49656         symbol.
49657         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
49658         * modules/wchar (Depends-on): Add c++defs.
49659         (Makefile.am): Update wchar.h rule.
49661         unistd: Avoid #define replacements in C++ mode.
49662         * lib/unistd.in.h: Include c++defs.h.
49663         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
49664         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
49665         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
49666         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
49667         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
49668         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
49669         symbol.
49670         (environ): Update.
49671         * modules/unistd (Depends-on): Add c++defs.
49672         (Makefile.am): Update unistd.h rule.
49674         time: Avoid #define replacements in C++ mode.
49675         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
49676         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
49677         define a namespaced alias symbol.
49678         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
49679         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
49680         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
49681         * modules/time (Depends-on): Add c++defs, warn-on-use.
49682         (Makefile.am): Update time.h rule.
49683         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
49684         * modules/nanosleep (configure.ac): Likewise.
49685         * modules/strptime (configure.ac): Likewise.
49686         * modules/timegm (configure.ac): Likewise.
49688         sys_time: Avoid #define replacements in C++ mode.
49689         * lib/sys_time.in.h: Include c++defs.h.
49690         (gettimeofday): In C++, define a namespaced alias symbol.
49691         * modules/sys_time (Depends-on): Add c++defs.
49692         (Makefile.am): Update sys/time.h rule.
49694         sys_stat: Avoid #define replacements in C++ mode.
49695         * lib/sys_stat.in.h: Include c++defs.h.
49696         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
49697         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
49698         namespaced alias symbol.
49699         In C++, define a namespaced alias symbol.
49700         * modules/sys_stat (Depends-on): Add c++defs.
49701         (Makefile.am): Update sys/stat.h rule.
49703         sys_socket: Avoid #define replacements in C++ mode.
49704         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
49705         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
49706         definitions also when the system has a <sys/socket.h>.
49707         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49708         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
49709         In C++, define a namespaced alias symbol.
49710         * modules/sys_socket (Depends-on): Add c++defs.
49711         (Makefile.am): Update sys/socket.h rule.
49713         sys_select: Avoid #define replacements in C++ mode.
49714         * lib/sys_select.in.h: Include c++defs.h. Enable the function
49715         definitions also when the system has a <sys/select.h>.
49716         (select): In C++, define a namespaced alias symbol.
49717         * modules/sys_select (Depends-on): Add c++defs.
49718         (Makefile.am): Update sys/select.h rule.
49720         sys_ioctl: Avoid #define replacements in C++ mode.
49721         * lib/sys_ioctl.in.h: Include c++defs.h.
49722         (ioctl): In C++, define a namespaced alias symbol.
49723         * modules/sys_ioctl (Depends-on): Add c++defs.
49724         (Makefile.am): Update sys/ioctl.h rule.
49726         string: Avoid #define replacements in C++ mode.
49727         * lib/string.in.h: Include c++defs.h.
49728         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
49729         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
49730         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
49731         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
49732         strsignal, strverscmp): In C++, define a namespaced alias symbol.
49733         * modules/string (Depends-on): Add c++defs.
49734         (Makefile.am): Update string.h rule.
49736         stdlib: Avoid #define replacements in C++ mode.
49737         * lib/stdlib.in.h: Include c++defs.h.
49738         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
49739         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
49740         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
49741         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
49742         symbol.
49743         * modules/stdlib (Depends-on): Add c++defs.
49744         (Makefile.am): Update stdlib.h rule.
49746         stdio: Avoid #define replacements in C++ mode.
49747         * lib/stdio.in.h: Include c++defs.h.
49748         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
49749         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
49750         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
49751         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
49752         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
49753         namespaced alias symbol.
49754         * modules/stdio (Depends-on): Add c++defs.
49755         (Makefile.am): Update stdio.h rule.
49757         spawn: Avoid #define replacements in C++ mode.
49758         * lib/spawn.in.h: Include c++defs.h.
49759         (posix_spawn, posix_spawnp, posix_spawnattr_init,
49760         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
49761         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
49762         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
49763         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
49764         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
49765         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
49766         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
49767         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
49768         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
49769         In C++, define a namespaced alias symbol.
49770         * modules/spawn (Depends-on): Add c++defs.
49771         (Makefile.am): Update spawn.h rule.
49773         signal: Avoid #define replacements in C++ mode.
49774         * lib/signal.in.h: Include c++defs.h.
49775         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
49776         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
49777         namespaced alias symbol.
49778         * modules/signal (Depends-on): Add c++defs.
49779         (Makefile.am): Update signal.h rule.
49781         search: Avoid #define replacements in C++ mode.
49782         * lib/search.in.h: Include c++defs.h.
49783         (_gl_search_compar_fn, _gl_search_action_fn): New types.
49784         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
49785         symbol.
49786         * modules/search (Depends-on): Add c++defs.
49787         (Makefile.am): Update search.h rule.
49789         math: Avoid #define replacements in C++ mode.
49790         * lib/math.in.h: Include c++defs.h.
49791         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
49792         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
49793         trunc, truncl): In C++, define a namespaced alias symbol.
49794         * modules/math (Depends-on): Add c++defs.
49795         (Makefile.am): Update math.h rule.
49797         locale: Avoid #define replacements in C++ mode.
49798         * lib/locale.in.h: Include c++defs.h.
49799         (duplocale): In C++, define a namespaced alias symbol.
49800         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
49801         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
49802         * modules/locale (Depends-on): Add c++defs.
49803         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
49805         langinfo: Avoid #define replacements in C++ mode.
49806         * lib/langinfo.in.h: Include c++defs.h.
49807         (nl_langinfo): In C++, define a namespaced alias symbol.
49808         * modules/langinfo (Depends-on): Add c++defs.
49809         (Makefile.am): Update langinfo.h rule.
49811         iconv-h: Avoid #define replacements in C++ mode.
49812         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
49813         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
49814         symbol.
49815         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49816         whenever iconv is present.
49817         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
49818         (Makefile.am): Update iconv.h rule.
49820         glob: Avoid #define replacements in C++ mode.
49821         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
49822         (_gl_glob_errfunc_fn): New type.
49823         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
49824         symbol.
49825         * modules/glob (Depends-on): Add c++defs, warn-on-use.
49826         (Makefile.am): Update glob.h rule.
49828         fcntl-h: Avoid #define replacements in C++ mode.
49829         * lib/fcntl.in.h: Include c++defs.h.
49830         (fcntl, open, openat): In C++, define a namespaced alias symbol.
49831         * modules/fcntl-h (Depends-on): Add c++defs.
49832         (Makefile.am): Update fcntl.h rule.
49834         dirent: Avoid #define replacements in C++ mode.
49835         * lib/dirent.in.h: Include c++defs.h.
49836         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
49837         namespaced alias symbol.
49838         (dirfd): Update declaration.
49839         * modules/dirent (Depends-on): Add c++defs.
49840         (Makefile.am): Update dirent.h rule.
49842         ctype: Make it usable in C++ code.
49843         * lib/ctype.in.h: Include c++defs.h.
49844         (isblank): Declare as extern "C".
49845         * modules/ctype (Depends-on): Add c++defs.
49846         (Makefile.am): Update ctype.h rule.
49848         New module 'c++defs'.
49849         * modules/c++defs: New file.
49850         * build-aux/c++defs.h: New file.
49851         Reported by John W. Eaton <jwe@gnu.org>.
49853 2010-03-07  Bruno Haible  <bruno@clisp.org>
49855         logb: Provide missing declaration for Cygwin.
49856         * lib/math.in.h (logb): New declaration.
49857         * m4/logb.m4: New file.
49858         * modules/logb (Files): Add m4/logb.m4.
49859         (Depends-on): Add math.
49860         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
49861         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
49862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
49863         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
49864         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
49866 2010-03-07  Bruno Haible  <bruno@clisp.org>
49868         Fix test-cond link error.
49869         * tests/test-cond.c: Include <stdio.h>.
49871 2010-03-07  Bruno Haible  <bruno@clisp.org>
49873         Fix test-dirent-safer link error.
49874         * modules/dirent-safer-tests (Makefile.am): Define
49875         test_dirent_safer_LDADD.
49877 2010-03-07  Bruno Haible  <bruno@clisp.org>
49879         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
49880         among default module list.
49882 2010-03-07  Bruno Haible  <bruno@clisp.org>
49884         Fix link error on platforms with GNU libiconv.
49885         * modules/unistr/u8-strcoll-tests (Makefile): Define
49886         test_u8_strcoll_LDADD.
49887         * modules/unistr/u16-strcoll-tests (Makefile): Define
49888         test_u16_strcoll_LDADD.
49889         * modules/unistr/u32-strcoll-tests (Makefile): Define
49890         test_u32_strcoll_LDADD.
49892 2010-03-07  Bruno Haible  <bruno@clisp.org>
49894         Use POSIX declarations for socket functions.
49895         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
49896         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
49897         rpl_sendto): Change declaration to match POSIX.
49898         * lib/connect.c (rpl_connect): Likewise.
49899         * lib/accept.c (rpl_accept): Likewise.
49900         * lib/bind.c (rpl_bind): Likewise.
49901         * lib/getpeername.c (rpl_getpeername): Likewise.
49902         * lib/getsockname.c (rpl_getsockname): Likewise.
49903         * lib/recv.c (rpl_recv): Likewise.
49904         * lib/send.c (rpl_send): Likewise.
49905         * lib/recvfrom.c (rpl_recvfrom): Likewise.
49906         * lib/sendto.c (rpl_sendto): Likewise.
49908 2010-03-06  Bruno Haible  <bruno@clisp.org>
49910         Clarify access, euidaccess, faccessat.
49911         * doc/posix-functions/faccessat.texi: Mention security problem under
49912         "Other problems", not "Portability problems".
49913         * doc/posix-functions/access.texi: Likewise. Mention a related security
49914         problem.
49915         * doc/glibc-functions/euidaccess.texi: Mention security problems.
49916         * lib/euidaccess.c: Add comments about platforms.
49917         * lib/unistd.in.h (access, euidaccess): Add warnings.
49919 2010-03-07  Bruno Haible  <bruno@clisp.org>
49921         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
49922         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
49923         (POSIX_SPAWN_SETSCHEDULER): Likewise.
49924         (POSIX_SPAWN_USEVFORK): Define in a way that works when
49925         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
49926         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
49927         declare when POSIX_SPAWN_SETSCHEDULER is zero.
49928         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
49929         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
49930         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
49931         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
49932         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
49933         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
49934         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
49935         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
49936         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
49937         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
49938         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
49939         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
49940         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
49941         Likewise.
49942         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
49943         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
49944         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
49945         Likewise.
49946         * tests/test-spawn.c (main): Make it work when
49947         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
49949 2010-03-07  Bruno Haible  <bruno@clisp.org>
49951         Fix incorrect Makefile.am generation in German locale.
49952         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49953         Execute sed command with character range in C locale.
49955 2010-03-06  Bruno Haible  <bruno@clisp.org>
49957         Tests for module 'iconv-h'.
49958         * modules/iconv-h-tests: New file.
49959         * tests/test-iconv-h.c: New file.
49961         New module 'iconv-h'.
49962         * modules/iconv-h: New file.
49963         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
49964         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
49965         (configure.ac): Remove gl_ICONV_H.
49966         (Makefile.am): Remove rule for iconv.h.
49968 2010-03-06  Bruno Haible  <bruno@clisp.org>
49970         More consistent naming of *.m4 files.
49971         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
49972         * modules/wctype (Files): Update.
49974         More consistent naming of *.m4 files.
49975         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
49976         * modules/wchar (Files): Update.
49978 2010-03-06  Jim Meyering  <meyering@redhat.com>
49980         euidaccess: relax license to LGPLv2+
49981         * modules/euidaccess (License): Relax to LGPLv2+.
49983 2010-03-06  Bruno Haible  <bruno@clisp.org>
49985         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
49986         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
49987         (Makefile.am): Augment lib_SOURCES instead.
49989 2010-03-04  Jim Meyering  <meyering@redhat.com>
49991         utime: remove obsolete module
49992         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
49993         unnecessary for years, and has been marked as obsolete for 10 months.
49994         * modules/utime: Remove file.
49995         * lib/utime.c: Remove file.
49996         * m4/utime.m4: Remove file.
49997         * m4/utimes-null.m4: Remove file.
49998         * doc/posix-functions/utime.texi (utime): Remove reference to
49999         the module.  Move the sole "fixed by gnulib" item into the
50000         "problems not fixed by Gnulib" list.
50001         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
50003 2010-03-05  Simon Josefsson  <simon@josefsson.org>
50005         * modules/exit (License): Relax license to LGPLv2+.
50006         (Status): Mark as obsolete.
50007         * NEWS: Mention deprecated 'exit' module.
50008         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
50009         of now obsolete 'exit'.
50011 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50013         fts-lgpl: remove unused module
50014         * modules/fts-lgpl: Remove.
50015         * MODULES.html.sh (func_all_modules): Adjust.
50016         * check-module (find_included_lib_files): Adjust.
50017         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
50019 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
50021         copy-acl: enhance Solaris ACL error handling
50022         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
50023         * lib/set-mode-acl.c (qset_acl): Likewise.
50025 2010-03-02  Bruno Haible  <bruno@clisp.org>
50027         spawn: Don't override the system defined values on FreeBSD 8.
50028         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
50029         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
50030         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
50031         if HAVE_POSIX_SPAWN is 1.
50032         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
50034 2010-03-01  Bruno Haible  <bruno@clisp.org>
50036         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
50037         regarding Automake.
50039 2010-02-25  Bruno Haible  <bruno@clisp.org>
50041         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
50042         * gnulib-tool: Define 'echo' as a function only before the ksh alias
50043         setting, not afterwards.
50044         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
50046 2010-02-24  Eric Blake  <eblake@redhat.com>
50048         bootstrap, git-version-gen: use timestamp
50049         * build-aux/git-version-gen (scriptversion): Force UTC.
50050         * build-aux/bootstrap (scriptversion): New variable.
50052         bootstrap: allow older git
50053         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
50054         older than 1.6.4.  Requested by the libvirt project.
50056 2010-02-23  Eric Blake  <eblake@redhat.com>
50058         warn-on-use: work with old autoconf
50059         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
50060         AS_VAR semantics of autoconf 2.60.
50061         Reported by Bruno Haible.
50063         bootstrap: improve some comments
50064         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
50065         clarification comments.
50067         gettimeofday: provide correct function
50068         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
50069         when replacement is declared, otherwise provide gettimeofday.
50070         Reported by Michael Goffioul.
50072 2010-02-23  Jim Meyering  <meyering@redhat.com>
50074         lib-ignore: relax license to "unlimited", not LGPLv2+
50075         * modules/lib-ignore (License): Relax to "unlimited".
50077 2010-02-23  Jim Meyering  <meyering@redhat.com>
50079         lib-ignore: relax license to LGPLv2+
50080         * modules/lib-ignore (License): Relax to LGPLv2+.
50082 2010-02-22  Eric Blake  <eblake@redhat.com>
50084         lseek: avoid bash 3.2 broken pipe bug
50085         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
50086         warning from bash 3.2.
50087         Reported by Ben Pfaff, with analysis from Bruno Haible.
50089         bootstrap: support non-FSF copyright holder
50090         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
50091         bootstrap.conf override of COPYRIGHT_HOLDER.
50092         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
50094         bootstrap: interoperate with gettext 0.14.1
50095         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
50097         bootstrap: allow for alternate submodule location
50098         * build-aux/bootstrap (gnulib_path): New variable; use instead of
50099         hardcoding submodule location.
50100         (gnulib_mk): Allow direct use of Makefile.am.
50102         bootstrap: use GNULIB_SRCDIR to reduce disk usage
50103         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
50104         rather than reconfiguring where the submodule points.
50106         gettimeofday: restore support for platforms that lack function
50107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
50108         replacement if function is missing.
50109         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
50110         * modules/sys_time (Makefile.am): Substitute it.
50111         * lib/sys_time.in.h (gettimeofday): Check it.
50112         Reported by Michael Goffioul.
50114 2010-02-21  Bruno Haible  <bruno@clisp.org>
50116         * lib/stdio.in.h (obstack_printf): Fix typo.
50118 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
50120         vc-list-files: use bzr ls's -R option
50121         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
50122         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
50124 2010-02-21  Jim Meyering  <meyering@redhat.com>
50126         init.sh: fix EXEEXT shims to work also for names like test-prog
50127         * tests/init.sh: Re-exec a better shell, when needed.
50128         If the current shell lacks support for posix $(...), an init.sh-using
50129         test will now try to find a shell that supports that.  If EXEEXT is
50130         nonempty, we also require support for hyphen-in-alias-name and shell
50131         substitutions like ${var#glob}.  Failure to find such a shell results
50132         in a skipped test.
50134 2010-02-21  Bruno Haible  <bruno@clisp.org>
50136         Really work around "broken pipe" error message from bash 3.2.
50137         * gnulib-tool (func_reset_sigpipe): Remove function.
50138         (echo): In bash 3.2, define to a function that uses printf.
50139         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
50141 2010-02-20  Bruno Haible  <bruno@clisp.org>
50143         Restore support for automake 1.9.6 with autoconf 2.61.
50144         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
50145         Reported by James Youngman <jay@gnu.org>.
50147 2010-02-20  Bruno Haible  <bruno@clisp.org>
50149         Improve *printf warning condition.
50150         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
50151         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
50152         and the function is overridden due to SIGPIPE emulation.
50154 2010-02-20  Bruno Haible  <bruno@clisp.org>
50156         * lib/stdio.in.h: Tweak comments.
50158 2010-02-19  Bruno Haible  <bruno@clisp.org>
50160         Make it easier to find modules. New gnulib-tool option '--find'.
50161         * gnulib-tool: New option --find.
50162         (func_usage): Document it.
50163         (func_sanitize_modulelist): New function, extracted from
50164         func_all_modules.
50165         (func_all_modules): Invoke it.
50166         * doc/gnulib-tool.texi (Which modules?): New node.
50168 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
50170         * lib/sys_select.in.h: Provide select replacement even if
50171         sys/select.h exists on a system, for Interix.
50173 2010-02-18  Jim Meyering  <meyering@redhat.com>
50175         init.sh: don't use $(...) just yet
50176         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
50177         to accommodate e.g., Solaris' /bin/sh.
50179 2010-02-17  Bruno Haible  <bruno@clisp.org>
50181         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
50182         Reported by Ludovic Courtès <ludo@gnu.org>.
50184 2010-02-16  Simon Josefsson  <simon@josefsson.org>
50186         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
50187         linking with -lintl.
50189 2010-02-17  Simon Josefsson  <simon@josefsson.org>
50191         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
50192         if not provided by the system's netdb.h.  Reported by
50193         ludo@gnu.org (Ludovic Courtès).
50195 2010-02-15  Jim Meyering  <meyering@redhat.com>
50197         init.sh: improve portability and efficiency
50198         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
50199         "dummy" in a for loop.
50200         Use '!', not '^' to select the complement of a character set used
50201         in a "case" statement.
50202         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
50203         Suggestions from Eric Blake.
50205         init.sh: automatically accommodate programs with the .exe suffix
50206         Automatically arrange for an invocation of "prog" to execute the
50207         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
50208         may use the simpler "prog", yet still work when built on a system
50209         that requires specifying the added suffix.
50210         Do this by constructing a function named "prog" that invokes
50211         "prog.exe" for each .exe file in selected directories.
50212         * tests/init.sh (find_exe_basenames_): New function.
50213         (create_exe_shim_functions_): New function.
50214         (path_prepend_): Use it.
50216         maint.mk: mark syntax-check sc_*.m rules as .PHONY
50217         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
50218         "make -t syntax-check" doesn't create a ton of sc_*.m files.
50220 2010-02-14  Jim Meyering  <meyering@redhat.com>
50222         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
50223         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
50224         (sc_prohibit_hash_pjw_without_use): New rule.
50226         maint.mk: allow the default upload destination dir to be overridden
50227         * top/maint.mk (upload_dest_dir_): Define with a default that
50228         preserves the status quo.
50229         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
50230         Reported by Peter Simons.
50232         maint.mk: prohibit inclusion of "hash.h" without_use
50233         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
50235 2010-02-10  Jim Meyering  <meyering@redhat.com>
50237         maint.mk: prohibit inclusion of "ignore-value.h" without_use
50238         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
50240 2010-02-09  Eric Blake  <ebb9@byu.net>
50241         and Bruno Haible  <bruno@clisp.org>
50243         obstack-printf-posix: ensure declaration
50244         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
50245         extracted from gl_FUNC_OBSTACK_PRINTF.
50246         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
50247         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50248         Likewise.
50249         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
50250         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
50251         0.
50253 2010-02-08  Bruno Haible  <bruno@clisp.org>
50255         gnulib-tool: Fix typo in 2010-02-07 commit.
50256         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
50257         Reported by Eric Blake.
50259 2010-02-07  Bruno Haible  <bruno@clisp.org>
50261         gnulib-tool: Fix up caching patches.
50262         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
50263         option --no-cache. Use associative arrays when supported by the shell.
50264         (sed_comments): New variable.
50265         (modcache): Renamed from do_cache.
50266         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
50267         abbreviate unnecessarily.
50268         (have_associative): New variable.
50269         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
50270         way also for ksh and zsh.
50271         (func_init_sed_convert_to_cache_statements): New function, extracted
50272         from func_cache_lookup_module. Add support for associative arrays.
50273         Don't set the c_MODULE_cached variable here. Ignore all lines before
50274         the first field header. Remove only the final newline, not all trailing
50275         newlines. Support empty fields correctly. Limit the use of 'eval' to
50276         assignments.
50277         (func_get_description, func_get_status, func_get_notice,
50278         func_get_applicability, func_get_filelist, func_get_dependencies,
50279         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
50280         func_get_automake_snippet, func_get_include_directive,
50281         func_get_link_directive, func_get_license, func_get_maintainer):
50282         Update documentation. List the unoptimized code first. Add support for
50283         associative arrays. Limit the use of 'eval' to assignments.
50284         (func_get_applicability): Undo stylistic pessimisations.
50285         (func_get_automake_snippet, func_get_include_directive): Reduce code
50286         duplication.
50287         (func_modules_transitive_closure, func_modules_add_dummy,
50288         func_modules_notice, func_modules_to_filelist, func_add_file,
50289         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
50290         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
50291         func_create_testdir, func_create_megatestdir): Update documentation.
50293 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50295         * gnulib-tool (func_cache_lookup_module): Store the module name
50296         belonging to the cache variable; error out if two different
50297         module names map to the same cache variable name.
50299 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50301         gnulib-tool: Make caching optional.
50302         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
50303         Update matching short versions of --no-changelog.
50304         (func_usage): Update.
50305         (sed_extract_cache_prog): Renamed from ...
50306         (sed_extract_prog): ... this; revert to old extraction script.
50307         (func_get_description, func_get_status)
50308         (func_get_notice, func_get_applicability, func_get_filelist)
50309         (func_get_dependencies, func_get_autoconf_early_snippet)
50310         (func_get_autoconf_snippet, func_get_automake_snippet)
50311         (func_get_include_directive, func_get_link_directive)
50312         (func_get_license, func_get_maintainer): If $do_cache is false,
50313         use old, non-caching extraction scripts.
50314         Suggestion by Bruno Haible.
50316 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50318         gnulib-tool: cache module metainformation.
50319         * gnulib-tool (sed_extract_prog): Match newline before each
50320         header, and rewrite header to a shell variable suffix.
50321         (func_cache_var, func_cache_lookup_module): New functions,
50322         to turn a module name into a cache variable prefix, and to
50323         look up and cache module metainformation.
50324         (func_get_description, func_get_status)
50325         (func_get_notice, func_get_applicability, func_get_filelist)
50326         (func_get_dependencies, func_get_autoconf_early_snippet)
50327         (func_get_autoconf_snippet, func_get_automake_snippet)
50328         (func_get_include_directive, func_get_link_directive)
50329         (func_get_license, func_get_maintainer): Use
50330         func_cache_lookup_module.
50332 2010-02-07  Bruno Haible  <bruno@clisp.org>
50334         fnctl: Fix missing dependency.
50335         * modules/fcntl (Depends-on): Add getdtablesize.
50336         Reported by John W. Eaton <jwe@gnu.org>.
50338 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50340         Argp: fix recognition of short alias options.
50342         * lib/argp-parse.c (convert_options): Fix improper use of
50343         `|' between character values.
50344         * tests/test-argp.c (group1_option): New alias option
50345         --read (-r).
50346         (group1_parser): Special handling for 'r'.
50347         (test15): New test case.
50348         (test_fun): Add test15.
50349         * tests/test-argp-2.sh: Update expected --help and --usage
50350         outputs.
50352 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50354         * tests/test-argp.c: Fix indentation.
50356 2010-02-04  Eric Blake  <ebb9@byu.net>
50358         gettimeofday: expose type of second argument
50359         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
50360         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
50361         * tests/test-gettimeofday.c: Use it to silence warning.
50362         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
50363         the issue.
50365 2010-02-03  Jim Meyering  <meyering@redhat.com>
50367         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
50368         * lib/regcomp.c (TYPE_SIGNED): Define.
50369         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
50371         regcomp.c: avoid a new -Wshadow warning
50372         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
50374 2010-02-01  Jim Meyering  <meyering@redhat.com>
50376         removing useless parentheses in cpp #define directives
50377         For motivation, see commit c0221df4, "define STREQ(a,b)
50378         consistently, removing useless parentheses"
50379         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
50380         * lib/mountlist.c (MNT_IGNORE): Likewise.
50381         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
50383 2010-02-01  Eric Blake  <ebb9@byu.net>
50385         sys_time: use link-warning
50386         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
50387         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
50388         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
50389         * modules/sys_time (Depends-on): Add warn-on-use.
50390         (Makefile.am): Always build replacement.
50391         (configure.ac): Update substitutions.
50392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
50393         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
50394         bother with SYS_TIME_H.
50395         * modules/gettimeofday (configure.ac): Declare indicator.
50396         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
50397         in use.
50399         closein-tests: silence compiler warning
50400         * tests/test-closein.c (main): Ignore fread result.
50401         * modules/closein-tests (Depends-on): Add ignore-value.
50403         tests: silence warning about system return
50404         * tests/test-areadlink-with-size.c (main): Ignore system result.
50405         * tests/test-areadlink.c (main): Likewise.
50406         * tests/test-areadlinkat-with-size.c (main): Likewise.
50407         * tests/test-areadlinkat.c (main): Likewise.
50408         * tests/test-canonicalize-lgpl.c (main): Likewise.
50409         * tests/test-canonicalize.c (main): Likewise.
50410         * tests/test-chown.c (main): Likewise.
50411         * tests/test-fchownat.c (main): Likewise.
50412         * tests/test-fdutimensat.c (main): Likewise.
50413         * tests/test-fstatat.c (main): Likewise.
50414         * tests/test-futimens.c (main): Likewise.
50415         * tests/test-lchown.c (main): Likewise.
50416         * tests/test-link.c (main): Likewise.
50417         * tests/test-linkat.c (main): Likewise.
50418         * tests/test-lstat.c (main): Likewise.
50419         * tests/test-mkdir.c (main): Likewise.
50420         * tests/test-mkdirat.c (main): Likewise.
50421         * tests/test-mkfifo.c (main): Likewise.
50422         * tests/test-mkfifoat.c (main): Likewise.
50423         * tests/test-mknod.c (main): Likewise.
50424         * tests/test-readlink.c (main): Likewise.
50425         * tests/test-remove.c (main): Likewise.
50426         * tests/test-rename.c (main): Likewise.
50427         * tests/test-renameat.c (main): Likewise.
50428         * tests/test-rmdir.c (main): Likewise.
50429         * tests/test-symlink.c (main): Likewise.
50430         * tests/test-symlinkat.c (main): Likewise.
50431         * tests/test-unlink.c (main): Likewise.
50432         * tests/test-unlinkat.c (main): Likewise.
50433         * tests/test-utimens.c (main): Likewise.
50434         * tests/test-utimensat.c (main): Likewise.
50435         * modules/areadlink-tests (Depends-on): Add ignore-value.
50436         * modules/areadlink-with-size-tests (Depends-on): Likewise.
50437         * modules/areadlinkat-tests (Depends-on): Likewise.
50438         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
50439         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
50440         * modules/canonicalize-tests (Depends-on): Likewise.
50441         * modules/chown-tests (Depends-on): Likewise.
50442         * modules/fdutimensat-tests (Depends-on): Likewise.
50443         * modules/futimens-tests (Depends-on): Likewise.
50444         * modules/lchown-tests (Depends-on): Likewise.
50445         * modules/link-tests (Depends-on): Likewise.
50446         * modules/linkat-tests (Depends-on): Likewise.
50447         * modules/lstat-tests (Depends-on): Likewise.
50448         * modules/mkdir-tests (Depends-on): Likewise.
50449         * modules/mkfifo-tests (Depends-on): Likewise.
50450         * modules/mkfifoat-tests (Depends-on): Likewise.
50451         * modules/mknod-tests (Depends-on): Likewise.
50452         * modules/openat-tests (Depends-on): Likewise.
50453         * modules/readlink-tests (Depends-on): Likewise.
50454         * modules/remove-tests (Depends-on): Likewise.
50455         * modules/rename-tests (Depends-on): Likewise.
50456         * modules/renameat-tests (Depends-on): Likewise.
50457         * modules/rmdir-tests (Depends-on): Likewise.
50458         * modules/symlink-tests (Depends-on): Likewise.
50459         * modules/symlinkat-tests (Depends-on): Likewise.
50460         * modules/unlink-tests (Depends-on): Likewise.
50461         * modules/utimens-tests (Depends-on): Likewise.
50462         * modules/utimensat-tests (Depends-on): Likewise.
50464 2010-01-31  Bruno Haible  <bruno@clisp.org>
50466         Perform the same test for many <math.h> functions.
50467         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
50468         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
50469         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
50470         of gl_MATHFUNC.
50471         * modules/acos (configure.ac): Likewise.
50472         * modules/asin (configure.ac): Likewise.
50473         * modules/atan (configure.ac): Likewise.
50474         * modules/atan2 (configure.ac): Likewise.
50475         * modules/cbrt (configure.ac): Likewise.
50476         * modules/copysign (configure.ac): Likewise.
50477         * modules/cos (configure.ac): Likewise.
50478         * modules/cosh (configure.ac): Likewise.
50479         * modules/erf (configure.ac): Likewise.
50480         * modules/erfc (configure.ac): Likewise.
50481         * modules/exp (configure.ac): Likewise.
50482         * modules/fmod (configure.ac): Likewise.
50483         * modules/hypot (configure.ac): Likewise.
50484         * modules/j0 (configure.ac): Likewise.
50485         * modules/j1 (configure.ac): Likewise.
50486         * modules/jn (configure.ac): Likewise.
50487         * modules/lgamma (configure.ac): Likewise.
50488         * modules/log (configure.ac): Likewise.
50489         * modules/log10 (configure.ac): Likewise.
50490         * modules/log1p (configure.ac): Likewise.
50491         * modules/pow (configure.ac): Likewise.
50492         * modules/remainder (configure.ac): Likewise.
50493         * modules/sin (configure.ac): Likewise.
50494         * modules/sinh (configure.ac): Likewise.
50495         * modules/tan (configure.ac): Likewise.
50496         * modules/tanh (configure.ac): Likewise.
50497         * modules/y0 (configure.ac): Likewise.
50498         * modules/y1 (configure.ac): Likewise.
50499         * modules/yn (configure.ac): Likewise.
50500         Suggested by Paolo Bonzini.
50502 2010-01-31  Bruno Haible  <bruno@clisp.org>
50504         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
50506 2010-01-31  Bruno Haible  <bruno@clisp.org>
50508         Work around getdelim() bug on FreeBSD 8.0.
50509         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
50510         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
50511         not work.
50512         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
50513         is 1.
50514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
50515         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
50516         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
50517         a non-zero size.
50518         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
50520 2010-01-31  Bruno Haible  <bruno@clisp.org>
50522         Work around getline() bug on FreeBSD 8.0.
50523         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
50524         and a non-zero size.
50525         * tests/test-getline.c (main): Likewise.
50526         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
50527         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
50529 2010-01-28  Eric Blake  <ebb9@byu.net>
50531         regex: fix build failure
50532         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
50533         platforms.
50535 2010-01-28  Jim Meyering  <meyering@redhat.com>
50537         regex: do not ignore memory allocation failure
50538         * lib/regex_internal.c (create_cd_newstate): Detect
50539         re_node_set_init_copy failure.   Extracted from glibc commit
50540         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50542         regex: sync more white-space changes from libc
50543         * lib/regex_internal.c: White-space only changes.
50544         * lib/regexec.c: Likewise.
50546         regex: add many uses of __attribute_warn_unused_result__
50547         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
50548         * lib/regexec.c: Likewise.
50549         Extracted from a messy glibc commit.
50551         regcomp.c: spelling and merge-artifact from glibc
50552         * lib/regcomp.c: Merge remainder of glibc's
50553         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50555         regcomp.c: sync white-space changes from glibc
50556         * lib/regcomp.c: Merge to accommodate white space
50557         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50559         regcomp.c: do not ignore internal return values
50560         * lib/regcomp.c: Do not ignore internal return values.
50561         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
50562         but without its white-space changes and spelling fixes.
50564         regex_internal.h: define __attribute_warn_unused_result__
50565         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
50567         maint: add a syntax-check rule to check for vulnerable Makefile.in
50568         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
50570 2010-01-27  Jim Meyering  <meyering@redhat.com>
50572         ncftpput-ftp: clean up spaces
50573         * build-aux/ncftpput-ftp: Make Copyright line consistent.
50574         Remove trailing blanks.
50576 2010-01-27  Simon Josefsson  <simon@josefsson.org>
50578         * build-aux/git-version-gen: Fix copyright statement.
50579         * build-aux/gnupload: Likewise.
50580         * tests/test-arcfour.c: Likewise.
50581         * tests/test-arctwo.c: Likewise.
50582         * tests/test-count-one-bits.c: Likewise.
50583         * tests/test-crc.c: Likewise.
50584         * tests/test-des.c: Likewise.
50585         * tests/test-gc-arcfour.c: Likewise.
50586         * tests/test-gc-arctwo.c: Likewise.
50587         * tests/test-gc-des.c: Likewise.
50588         * tests/test-gc-hmac-md5.c: Likewise.
50589         * tests/test-gc-hmac-sha1.c: Likewise.
50590         * tests/test-gc-md2.c: Likewise.
50591         * tests/test-gc-md4.c: Likewise.
50592         * tests/test-gc-md5.c: Likewise.
50593         * tests/test-gc-pbkdf2-sha1.c: Likewise.
50594         * tests/test-gc-rijndael.c: Likewise.
50595         * tests/test-gc-sha1.c: Likewise.
50596         * tests/test-gc.c: Likewise.
50597         * tests/test-gethostname.c: Likewise.
50598         * tests/test-gettimeofday.c: Likewise.
50599         * tests/test-hash.c: Likewise.
50600         * tests/test-hmac-md5.c: Likewise.
50601         * tests/test-hmac-sha1.c: Likewise.
50602         * tests/test-md2.c: Likewise.
50603         * tests/test-md4.c: Likewise.
50604         * tests/test-md5.c: Likewise.
50605         * tests/test-memchr.c: Likewise.
50606         * tests/test-memchr2.c: Likewise.
50607         * tests/test-memcmp.c: Likewise.
50608         * tests/test-memmem.c: Likewise.
50609         * tests/test-memrchr.c: Likewise.
50610         * tests/test-rawmemchr.c: Likewise.
50611         * tests/test-read-file.c: Likewise.
50612         * tests/test-rijndael.c: Likewise.
50613         * tests/test-sockets.c: Likewise.
50614         * tests/test-strchrnul.c: Likewise.
50615         * tests/test-strstr.c: Likewise.
50616         * tests/test-strtod.c: Likewise.
50617         * build-aux/ncftpput-ftp: Likewise.
50619 2010-01-26  Eric Blake  <ebb9@byu.net>
50621         ignore-value: update recommended header name
50622         * modules/ignore-value (Include): Only use <> for headers that
50623         exist in glibc.
50625 2010-01-26  Jim Meyering  <meyering@redhat.com>
50627         test-userspec.c: avoid compiler warnings
50628         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
50629         and "initialization discards qualifiers..." warnings.
50630         Put the first "uid" in its own scope, and make char* members "const".
50632 2010-01-25  Bruno Haible  <bruno@clisp.org>
50634         gnulib-tool: Make warning diagnostics consistent.
50635         * gnulib-tool (func_warning): New function.
50636         Use it everywhere where gnulib-tool produces output to stderr and it is
50637         not a fatal error.
50639 2010-01-25  Bruno Haible  <bruno@clisp.org>
50641         Fix test dependencies.
50642         * modules/xstrtol-tests (Depends-on): Add inttypes.
50643         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
50645 2010-01-25  Pádraig Brady  <P@draigBrady.com>
50647         syntax-check: detect incorrect boolean macro values in config.h
50648         * modules/maintainer-makefile (configure.ac): Parameterize the location
50649         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
50650         The logic is from Eric Blake and the location indicated by Jim Meyering.
50651         Note the more natural CONFIG_HEADER name is prohibited by automake
50652         for backwards compatibility reasons.
50653         * top/maint.mk (sc_Wundef_boolean): New rule.
50655 2010-01-25  Jim Meyering  <meyering@redhat.com>
50657         bootstrap: detect MacOS 10.6's shasum, too
50658         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
50659         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
50661 2010-01-23  Jim Meyering  <meyering@redhat.com>
50663         xstrtoll: new module
50664         * modules/xstrtoll: New file.
50665         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
50666         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
50667         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
50668         ./configure fails if you use this module and lack "long long".
50669         * modules/xstrtoll-tests: New module.
50670         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
50671         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
50672         new init.sh-based test framework.
50674 2010-01-24  Bruno Haible  <bruno@clisp.org>
50676         Tests for module 'yn'.
50677         * modules/yn-tests: New file.
50678         * tests/test-yn.c: New file.
50680         Tests for module 'y1'.
50681         * modules/y1-tests: New file.
50682         * tests/test-y1.c: New file.
50684         Tests for module 'y0'.
50685         * modules/y0-tests: New file.
50686         * tests/test-y0.c: New file.
50688         Tests for module 'tanh'.
50689         * modules/tanh-tests: New file.
50690         * tests/test-tanh.c: New file.
50692         Tests for module 'tan'.
50693         * modules/tan-tests: New file.
50694         * tests/test-tan.c: New file.
50696         Tests for module 'sqrt'.
50697         * modules/sqrt-tests: New file.
50698         * tests/test-sqrt.c: New file.
50700         Tests for module 'sinh'.
50701         * modules/sinh-tests: New file.
50702         * tests/test-sinh.c: New file.
50704         Tests for module 'sin'.
50705         * modules/sin-tests: New file.
50706         * tests/test-sin.c: New file.
50708         Tests for module 'rint'.
50709         * modules/rint-tests: New file.
50710         * tests/test-rint.c: New file.
50712         Tests for module 'remainder'.
50713         * modules/remainder-tests: New file.
50714         * tests/test-remainder.c: New file.
50716         Tests for module 'pow'.
50717         * modules/pow-tests: New file.
50718         * tests/test-pow.c: New file.
50720         Tests for module 'nextafter'.
50721         * modules/nextafter-tests: New file.
50722         * tests/test-nextafter.c: New file.
50724         Tests for module 'modf'.
50725         * modules/modf-tests: New file.
50726         * tests/test-modf.c: New file.
50728         Tests for module 'logb'.
50729         * modules/logb-tests: New file.
50730         * tests/test-logb.c: New file.
50732         Tests for module 'log1p'.
50733         * modules/log1p-tests: New file.
50734         * tests/test-log1p.c: New file.
50736         Tests for module 'log10'.
50737         * modules/log10-tests: New file.
50738         * tests/test-log10.c: New file.
50740         Tests for module 'log'.
50741         * modules/log-tests: New file.
50742         * tests/test-log.c: New file.
50744         Tests for module 'lgamma'.
50745         * modules/lgamma-tests: New file.
50746         * tests/test-lgamma.c: New file.
50748         Tests for module 'ldexp'.
50749         * modules/ldexp-tests: New file.
50750         * tests/test-ldexp.c: New file.
50752         Tests for module 'jn'.
50753         * modules/jn-tests: New file.
50754         * tests/test-jn.c: New file.
50756         Tests for module 'j1'.
50757         * modules/j1-tests: New file.
50758         * tests/test-j1.c: New file.
50760         Tests for module 'j0'.
50761         * modules/j0-tests: New file.
50762         * tests/test-j0.c: New file.
50764         Tests for module 'hypot'.
50765         * modules/hypot-tests: New file.
50766         * tests/test-hypot.c: New file.
50768         Tests for module 'fmod'.
50769         * modules/fmod-tests: New file.
50770         * tests/test-fmod.c: New file.
50772         Tests for module 'fabs'.
50773         * modules/fabs-tests: New file.
50774         * tests/test-fabs.c: New file.
50776         Tests for module 'exp'.
50777         * modules/exp-tests: New file.
50778         * tests/test-exp.c: New file.
50780         Tests for module 'erfc'.
50781         * modules/erfc-tests: New file.
50782         * tests/test-erfc.c: New file.
50784         Tests for module 'erf'.
50785         * modules/erf-tests: New file.
50786         * tests/test-erf.c: New file.
50788         Tests for module 'cosh'.
50789         * modules/cosh-tests: New file.
50790         * tests/test-cosh.c: New file.
50792         Tests for module 'cos'.
50793         * modules/cos-tests: New file.
50794         * tests/test-cos.c: New file.
50796         Tests for module 'copysign'.
50797         * modules/copysign-tests: New file.
50798         * tests/test-copysign.c: New file.
50800         Tests for module 'cbrt'.
50801         * modules/cbrt-tests: New file.
50802         * tests/test-cbrt.c: New file.
50804         Tests for module 'atan2'.
50805         * modules/atan2-tests: New file.
50806         * tests/test-atan2.c: New file.
50808         Tests for module 'atan'.
50809         * modules/atan-tests: New file.
50810         * tests/test-atan.c: New file.
50812         Tests for module 'asin'.
50813         * modules/asin-tests: New file.
50814         * tests/test-asin.c: New file.
50816         Tests for module 'acos'.
50817         * modules/acos-tests: New file.
50818         * tests/test-acos.c: New file.
50820 2010-01-24  Bruno Haible  <bruno@clisp.org>
50822         Fix tests for common <math.h> functions.
50823         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
50824         code snippet that references the function pointer, rather than merely
50825         calling the function. Substitute the FUNC_LIBM variable.
50826         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
50827         * modules/acos (configure.ac): Likewise.
50828         * modules/asin (configure.ac): Likewise.
50829         * modules/atan (configure.ac): Likewise.
50830         * modules/atan2 (configure.ac): Likewise.
50831         * modules/cbrt (configure.ac): Likewise.
50832         * modules/copysign (configure.ac): Likewise.
50833         * modules/cos (configure.ac): Likewise.
50834         * modules/cosh (configure.ac): Likewise.
50835         * modules/erf (configure.ac): Likewise.
50836         * modules/erfc (configure.ac): Likewise.
50837         * modules/exp (configure.ac): Likewise.
50838         * modules/fabs (configure.ac): Likewise.
50839         * modules/fmod (configure.ac): Likewise.
50840         * modules/hypot (configure.ac): Likewise.
50841         * modules/j0 (configure.ac): Likewise.
50842         * modules/j1 (configure.ac): Likewise.
50843         * modules/jn (configure.ac): Likewise.
50844         * modules/ldexp (configure.ac): Likewise.
50845         * modules/lgamma (configure.ac): Likewise.
50846         * modules/log (configure.ac): Likewise.
50847         * modules/log10 (configure.ac): Likewise.
50848         * modules/log1p (configure.ac): Likewise.
50849         * modules/logb (configure.ac): Likewise.
50850         * modules/modf (configure.ac): Likewise.
50851         * modules/nextafter (configure.ac): Likewise.
50852         * modules/pow (configure.ac): Likewise.
50853         * modules/remainder (configure.ac): Likewise.
50854         * modules/rint (configure.ac): Likewise.
50855         * modules/sin (configure.ac): Likewise.
50856         * modules/sinh (configure.ac): Likewise.
50857         * modules/tan (configure.ac): Likewise.
50858         * modules/tanh (configure.ac): Likewise.
50859         * modules/y0 (configure.ac): Likewise.
50860         * modules/y1 (configure.ac): Likewise.
50861         * modules/yn (configure.ac): Likewise.
50863 2010-01-24  Bruno Haible  <bruno@clisp.org>
50865         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
50866         * tests/test-acosl.c (x): New variable.
50867         (main): Store argument in x and fetch it from x.
50868         * tests/test-asinl.c (x): New variable.
50869         (main): Store argument in x and fetch it from x.
50870         * tests/test-atanl.c (x): New variable.
50871         (main): Store argument in x and fetch it from x.
50872         * tests/test-cosl.c (x): New variable.
50873         (main): Store argument in x and fetch it from x.
50874         * tests/test-expl.c (x): New variable.
50875         (main): Store argument in x and fetch it from x.
50876         * tests/test-logl.c (x): New variable.
50877         (main): Store argument in x and fetch it from x.
50878         * tests/test-sinl.c (x): New variable.
50879         (main): Store argument in x and fetch it from x.
50880         * tests/test-sqrtl.c (x): New variable.
50881         (main): Store argument in x and fetch it from x.
50882         * tests/test-tanl.c (x): New variable.
50883         (main): Store argument in x and fetch it from x.
50885 2010-01-24  Bruno Haible  <bruno@clisp.org>
50887         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
50888         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
50889         assignments to the initial TESTS_ENVIRONMENT.
50890         * doc/gnulib.texi (Unit test modules): Document it.
50891         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
50892         TESTS_ENVIRONMENT.
50893         * modules/btowc-tests (Makefile.am): Likewise.
50894         * modules/c-stack-tests (Makefile.am): Likewise.
50895         * modules/c-strcase-tests (Makefile.am): Likewise.
50896         * modules/copy-file-tests (Makefile.am): Likewise.
50897         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
50898         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
50899         * modules/mbrtowc-tests (Makefile.am): Likewise.
50900         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50901         * modules/mbscasestr-tests (Makefile.am): Likewise.
50902         * modules/mbschr-tests (Makefile.am): Likewise.
50903         * modules/mbscspn-tests (Makefile.am): Likewise.
50904         * modules/mbsinit-tests (Makefile.am): Likewise.
50905         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50906         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
50907         * modules/mbspbrk-tests (Makefile.am): Likewise.
50908         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50909         * modules/mbsrchr-tests (Makefile.am): Likewise.
50910         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
50911         * modules/mbsspn-tests (Makefile.am): Likewise.
50912         * modules/mbsstr-tests (Makefile.am): Likewise.
50913         * modules/nl_langinfo-tests (Makefile.am): Likewise.
50914         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
50915         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50916         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50917         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50918         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50919         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
50920         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50921         * modules/wcrtomb-tests (Makefile.am): Likewise.
50922         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
50923         * modules/wcsrtombs-tests (Makefile.am): Likewise.
50924         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
50925         assignments from TESTS_ENVIRONMENT.
50926         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
50927         augmentation.
50928         * modules/argp-version-etc-tests (Makefile.am): Likewise.
50929         * modules/atexit-tests (Makefile.am): Likewise.
50930         * modules/binary-io-tests (Makefile.am): Likewise.
50931         * modules/closein-tests (Makefile.am): Likewise.
50932         * modules/dprintf-posix-tests (Makefile.am): Likewise.
50933         * modules/exclude-tests (Makefile.am): Likewise.
50934         * modules/fflush-tests (Makefile.am): Likewise.
50935         * modules/fpending-tests (Makefile.am): Likewise.
50936         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50937         * modules/freadahead-tests (Makefile.am): Likewise.
50938         * modules/freadptr-tests (Makefile.am): Likewise.
50939         * modules/freadseek-tests (Makefile.am): Likewise.
50940         * modules/fseek-tests (Makefile.am): Likewise.
50941         * modules/fseeko-tests (Makefile.am): Likewise.
50942         * modules/ftell-tests (Makefile.am): Likewise.
50943         * modules/ftello-tests (Makefile.am): Likewise.
50944         * modules/idpriv-drop-tests (Makefile.am): Likewise.
50945         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
50946         * modules/lseek-tests (Makefile.am): Likewise.
50947         * modules/parse-duration-tests (Makefile.am): Likewise.
50948         * modules/perror-tests (Makefile.am): Likewise.
50949         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
50950         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
50951         * modules/pipe-tests (Makefile.am): Likewise.
50952         * modules/pread-tests (Makefile.am): Likewise.
50953         * modules/printf-posix-tests (Makefile.am): Likewise.
50954         * modules/select-tests (Makefile.am): Likewise.
50955         * modules/sigpipe-tests (Makefile.am): Likewise.
50956         * modules/tsearch-tests (Makefile.am): Likewise.
50957         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
50958         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
50959         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50960         * modules/uniwidth/width-tests (Makefile.am): Likewise.
50961         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
50962         * modules/version-etc-tests (Makefile.am): Likewise.
50963         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50964         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50965         * modules/xalloc-die-tests (Makefile.am): Likewise.
50966         * modules/xprintf-posix-tests (Makefile.am): Likewise.
50967         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50968         * modules/xstrtol-tests (Makefile.am): Likewise.
50969         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50970         * modules/yesno-tests (Makefile.am): Likewise.
50971         Suggested by Jim Meyering.
50973 2010-01-24  Bruno Haible  <bruno@clisp.org>
50975         More documentation.
50976         * doc/gnulib.texi (Writing modules): New chapter.
50977         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
50978         the new chapter.
50980 2010-01-24  Jim Meyering  <meyering@redhat.com>
50982         maint.mk: do not prepend "./" after filtering
50983         * top/maint.mk (_prepend_srcdir_prefix): New variable
50984         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
50985         "./" when $(srcdir) is ".".
50987         define STREQ(a,b) consistently, removing useless parentheses
50988         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
50989         since the only risk is that "a" or "b" contains an unparenthesized
50990         comma, but if either did that, STREQ would have 3 or more arguments.
50991         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
50992         * lib/fts.c (STREQ): Remove unnecessary parentheses.
50993         * lib/hash-triple.c (STREQ): Likewise.
50994         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
50995         * lib/getugroups.c (STREQ): Likewise.
50997 2010-01-23  Jim Meyering  <meyering@redhat.com>
50999         maint.mk: fix syntax-check in a non-srcdir build directory
51000         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
51001         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
51003 2010-01-22  Jim Meyering  <meyering@redhat.com>
51005         userspec: add unit tests
51006         * tests/test-userspec.c: New file.
51007         * modules/userspec-tests: Likewise.
51009 2010-01-21  Jim Meyering  <meyering@redhat.com>
51011         maint.mk: handle source file names containing "." robustly
51012         * top/maint.mk (_dot_escaped_srcdir): Define.
51013         (VC_LIST): Use it in LHS of sed substitution.
51015 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
51017         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
51018         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
51019         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
51020         from a non-srcdir build.
51022 2010-01-20  Eric Blake  <ebb9@byu.net>
51024         warn-on-use: use instead of link-warning
51025         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
51026         * modules/unistd (Depends-on, Makefile.am): Likewise.
51027         * modules/arpa_inet (Depends-on): Replace link-warning with
51028         warn-on-use.
51029         (Makefile.am): Update rules accordingly.
51030         * modules/ctype (Depends-on, Makefile.am): Likewise.
51031         * modules/dirent (Depends-on, Makefile.am): Likewise.
51032         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
51033         * modules/inttypes (Depends-on, Makefile.am): Likewise.
51034         * modules/langinfo (Depends-on, Makefile.am): Likewise.
51035         * modules/locale (Depends-on, Makefile.am): Likewise.
51036         * modules/math (Depends-on, Makefile.am): Likewise.
51037         * modules/search (Depends-on, Makefile.am): Likewise.
51038         * modules/signal (Depends-on, Makefile.am): Likewise.
51039         * modules/spawn (Depends-on, Makefile.am): Likewise.
51040         * modules/stdlib (Depends-on, Makefile.am): Likewise.
51041         * modules/string (Depends-on, Makefile.am): Likewise.
51042         * modules/strings (Depends-on, Makefile.am): Likewise.
51043         * modules/sys_file (Depends-on, Makefile.am): Likewise.
51044         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
51045         * modules/sys_select (Depends-on, Makefile.am): Likewise.
51046         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
51047         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
51048         * modules/sys_times (Depends-on, Makefile.am): Likewise.
51049         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
51050         * modules/wchar (Depends-on, Makefile.am): Likewise.
51051         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
51052         should be poisoned.
51053         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
51054         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
51055         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
51056         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51057         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51058         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51059         * m4/math_h.m4 (gl_MATH_H): Likewise.
51060         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51061         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51062         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
51063         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51064         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51065         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51066         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
51067         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
51068         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
51069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51070         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51072         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51073         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51074         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51075         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51076         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
51077         GL_LINK_WARNING.
51078         * lib/ctype.in.h: Likewise.
51079         * lib/dirent.in.h: Likewise.
51080         * lib/fcntl.in.h: Likewise.
51081         * lib/inttypes.in.h: Likewise.
51082         * lib/langinfo.in.h: Likewise.
51083         * lib/locale.in.h: Likewise.
51084         * lib/math.in.h: Likewise.
51085         * lib/search.in.h: Likewise.
51086         * lib/signal.in.h: Likewise.
51087         * lib/spawn.in.h: Likewise.
51088         * lib/stdio.in.h: Likewise.
51089         * lib/stdlib.in.h: Likewise.
51090         * lib/string.in.h: Likewise.
51091         * lib/strings.in.h: Likewise.
51092         * lib/sys_file.in.h: Likewise.
51093         * lib/sys_ioctl.in.h: Likewise.
51094         * lib/sys_select.in.h: Likewise.
51095         * lib/sys_socket.in.h: Likewise.
51096         * lib/sys_stat.in.h: Likewise.
51097         * lib/sys_times.in.h: Likewise.
51098         * lib/sys_utsname.in.h: Likewise.
51099         * lib/unistd.in.h: Likewise.
51100         * lib/wchar.in.h: Likewise.
51102 2010-01-20  Bruno Haible  <bruno@clisp.org>
51104         Avoid duplicate -lm.
51105         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
51106         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
51107         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
51108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
51109         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
51110         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
51111         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
51112         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
51113         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
51114         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
51115         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
51116         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
51117         Reported by Paolo Bonzini.
51119 2010-01-19  Bruno Haible  <bruno@clisp.org>
51121         langinfo, nl_langinfo: Relicense under LGPLv2+.
51122         * modules/langinfo (License): Change to LGPLv2+.
51123         * modules/nl_langinfo (License): Likewise.
51124         Patch by David Lutterkort <lutter@redhat.com>.
51126 2010-01-19  Bruno Haible  <bruno@clisp.org>
51128         Avoid compilation error with cc on OSF/1 5.1.
51129         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
51130         statement, not before.
51131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51133 2010-01-18  Bruno Haible  <bruno@clisp.org>
51135         Avoid a link error due to the __printf__ symbol.
51136         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
51137         and 2.6.x.
51138         (__format__, __printf__): Remove definitions.
51139         * lib/argp-fmtstream.h: Likewise.
51140         * lib/argp.h: Likewise.
51141         * lib/error.h: Likewise.
51142         * lib/vasnprintf.h: Likewise.
51143         * lib/xprintf.h: Likewise.
51144         * lib/xvasprintf.h: Likewise.
51145         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51147 2010-01-18  Bruno Haible  <bruno@clisp.org>
51149         Tests for module 'tanl'.
51150         * modules/tanl-tests: New file.
51151         * tests/test-tanl.c: New file.
51153         Tests for module 'sqrtl'.
51154         * modules/sqrtl-tests: New file.
51155         * tests/test-sqrtl.c: New file.
51157         Tests for module 'sinl'.
51158         * modules/sinl-tests: New file.
51159         * tests/test-sinl.c: New file.
51161         Tests for module 'logl'.
51162         * modules/logl-tests: New file.
51163         * tests/test-logl.c: New file.
51165         Tests for module 'expl'.
51166         * modules/expl-tests: New file.
51167         * tests/test-expl.c: New file.
51169         Tests for module 'cosl'.
51170         * modules/cosl-tests: New file.
51171         * tests/test-cosl.c: New file.
51173         Tests for module 'atanl'.
51174         * modules/atanl-tests: New file.
51175         * tests/test-atanl.c: New file.
51177         Tests for module 'asinl'.
51178         * modules/asinl-tests: New file.
51179         * tests/test-asinl.c: New file.
51181         Tests for module 'acosl'.
51182         * modules/acosl-tests: New file.
51183         * tests/test-acosl.c: New file.
51185         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
51186         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
51187         tanl): Use the standard gnulib idiom.
51188         * lib/cosl.c: Don't include trigl.c and sincosl.c.
51189         * lib/sinl.c: Likewise.
51190         * lib/tanl.c: Don't include trigl.c.
51191         (kernel_tanl): Make static.
51192         * lib/sincosl.c: Include trigl.h first.
51193         * lib/trigl.c: Likewise.
51194         * m4/acosl.m4: New file.
51195         * m4/asinl.m4: New file.
51196         * m4/atanl.m4: New file.
51197         * m4/cosl.m4: New file.
51198         * m4/expl.m4: New file.
51199         * m4/logl.m4: New file.
51200         * m4/sinl.m4: New file.
51201         * m4/sqrtl.m4: New file.
51202         * m4/tanl.m4: New file.
51203         * m4/mathl.m4: Remove file.
51204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
51205         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
51206         Don't initialize GNULIB_MATHL.
51207         * modules/acosl: New file.
51208         * modules/asinl: New file.
51209         * modules/atanl: New file.
51210         * modules/cosl: New file.
51211         * modules/expl: New file.
51212         * modules/logl: New file.
51213         * modules/sinl: New file.
51214         * modules/sqrtl: New file.
51215         * modules/tanl: New file.
51216         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
51217         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
51218         substitute GNULIB_MATHL.
51219         * modules/mathl: Rewritten.
51220         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
51221         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
51222         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
51223         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
51224         * doc/posix-functions/expl.texi: Mention the 'expl' module.
51225         * doc/posix-functions/logl.texi: Mention the 'logl' module.
51226         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
51227         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
51228         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
51230 2010-01-18  Bruno Haible  <bruno@clisp.org>
51232         sqrt: Make gl_FUNC_SQRT requirable.
51233         * m4/sqrt.m4: New file.
51234         * modules/sqrt (Files): Add it.
51235         (configure.ac): Invoke gl_FUNC_SQRT.
51237 2010-01-18  Bruno Haible  <bruno@clisp.org>
51239         New modules for common <math.h> functions.
51240         * m4/mathfunc.m4: New file.
51241         * modules/acos: New file.
51242         * modules/asin: New file.
51243         * modules/atan: New file.
51244         * modules/atan2: New file.
51245         * modules/cbrt: New file.
51246         * modules/copysign: New file.
51247         * modules/cos: New file.
51248         * modules/cosh: New file.
51249         * modules/erf: New file.
51250         * modules/erfc: New file.
51251         * modules/exp: New file.
51252         * modules/fabs: New file.
51253         * modules/fmod: New file.
51254         * modules/hypot: New file.
51255         * modules/j0: New file.
51256         * modules/j1: New file.
51257         * modules/jn: New file.
51258         * modules/ldexp: New file.
51259         * modules/lgamma: New file.
51260         * modules/log: New file.
51261         * modules/log10: New file.
51262         * modules/log1p: New file.
51263         * modules/logb: New file.
51264         * modules/modf: New file.
51265         * modules/nextafter: New file.
51266         * modules/pow: New file.
51267         * modules/remainder: New file.
51268         * modules/rint: New file.
51269         * modules/sin: New file.
51270         * modules/sinh: New file.
51271         * modules/sqrt: New file.
51272         * modules/tan: New file.
51273         * modules/tanh: New file.
51274         * modules/y0: New file.
51275         * modules/y1: New file.
51276         * modules/yn: New file.
51277         * doc/posix-functions/acos.texi: Mention the 'acos' module.
51278         * doc/posix-functions/asin.texi: Mention the 'asin' module.
51279         * doc/posix-functions/atan.texi: Mention the 'atan' module.
51280         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
51281         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
51282         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
51283         * doc/posix-functions/cos.texi: Mention the 'cos' module.
51284         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
51285         * doc/posix-functions/erf.texi: Mention the 'erf' module.
51286         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
51287         * doc/posix-functions/exp.texi: Mention the 'exp' module.
51288         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
51289         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
51290         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
51291         * doc/posix-functions/j0.texi: Mention the 'j0' module.
51292         * doc/posix-functions/j1.texi: Mention the 'j1' module.
51293         * doc/posix-functions/jn.texi: Mention the 'jn' module.
51294         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
51295         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
51296         * doc/posix-functions/log.texi: Mention the 'log' module.
51297         * doc/posix-functions/log10.texi: Mention the 'log10' module.
51298         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
51299         * doc/posix-functions/logb.texi: Mention the 'logb' module.
51300         * doc/posix-functions/modf.texi: Mention the 'modf' module.
51301         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
51302         * doc/posix-functions/pow.texi: Mention the 'pow' module.
51303         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
51304         * doc/posix-functions/rint.texi: Mention the 'rint' module.
51305         * doc/posix-functions/sin.texi: Mention the 'sin' module.
51306         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
51307         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
51308         * doc/posix-functions/tan.texi: Mention the 'tan' module.
51309         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
51310         * doc/posix-functions/y0.texi: Mention the 'y0' module.
51311         * doc/posix-functions/y1.texi: Mention the 'y1' module.
51312         * doc/posix-functions/yn.texi: Mention the 'yn' module.
51314 2010-01-18  Jim Meyering  <meyering@redhat.com>
51316         ignore-value: relax license to LGPLv2+
51317         * modules/ignore-value (License): Relax to LGPLv2+.
51319         getdate: don't leak when TZ contains two or more '"'s
51320         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
51321         double quote in TZ after the first one.
51323         readtokens: do not leak internal token_lengths buffer
51324         * lib/readtokens.c (readtokens): Free the local, lengths,
51325         when the supplied "token_lengths" parameter is NULL.
51327 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51329         Fix a couple of missing LIBTHREAD link failures on AIX.
51330         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
51331         $(LIBTHREAD).
51332         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
51334         Link test-poll against INET_PTON_LIB.
51335         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
51336         for inet_pton on Solaris 10.
51338 2010-01-17  Bruno Haible  <bruno@clisp.org>
51340         unistdio/*-sprintf: Fix typo in module description.
51341         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
51342         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
51343         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
51344         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
51345         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
51346         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
51347         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
51348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51350 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51352         gnulib-tool: fix filelist for AIX, HP-UX ksh.
51353         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
51354         variables in shell case patterns, for AIX and HP-UX ksh.
51356         Split large sed scripts, for HP-UX sed.
51357         * modules/stdio: Split sed scripts around 50 sed commands,
51358         to avoid HP-UX limit of 99 commands, in the near future.
51359         * modules/string: Likewise.
51360         * modules/unistd: Likewise.
51362         gnulib-tool: avoid writing in the current directory.
51363         * gnulib-tool (func_emit_lib_Makefile_am)
51364         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
51365         not in the current directory, so concurrent gnulib-tool
51366         instances do not interfere.
51368 2010-01-16  Jim Meyering  <meyering@redhat.com>
51370         doc: update users.txt
51371         * users.txt: Add grep.
51372         (diffutils, gzip): Update URLs.
51374 2010-01-12  Bruno Haible  <bruno@clisp.org>
51376         posix_spawn: Avoid test failure on Cygwin.
51377         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
51378         characters.
51379         Reported by Simon Josefsson.
51381 2010-01-12  Bruno Haible  <bruno@clisp.org>
51383         * tests/test-cond.c (main): When skipping the test, show the reason.
51385 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51387         * lib/striconv.c (str_cd_iconv): Avoid if before free.
51389 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51391         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
51392         VC_LIST_ALWAYS_EXCLUDE_REGEX.
51394 2010-01-12  Eric Blake  <ebb9@byu.net>
51396         build: guarantee AS_VAR_IF
51397         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
51398         (gl_AS_VAR_IF): Move...
51399         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
51400         Reported by Simon Josefsson.
51402 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51404         * lib/stdio.in.h: Fix typo.
51406 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51408         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
51409         libgpg-error.
51411 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51413         * tests/test-xalloc-die.sh: Use $EXEEXT.
51415 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51416             Bruno Haible  <bruno@clisp.org>
51418         getlogin, getlogin_r: Avoid test failure.
51419         * tests/test-getlogin.c: Include <stdio.h>.
51420         (main): Skip the test when the function fails because stdin is not a
51421         tty.
51422         * tests/test-getlogin_r.c: Include <stdio.h>.
51423         (main): Skip the test when the function fails because stdin is not a
51424         tty.
51426 2010-01-11  Eric Blake  <ebb9@byu.net>
51428         tests: avoid more large file warnings
51429         * tests/test-fflush.c: Avoid warning about ftell use.
51430         * tests/test-fseek.c: Avoid warning about fseek use.
51432 2010-01-10  Bruno Haible  <bruno@clisp.org>
51434         nproc: Work better on Linux when /proc and /sys are not mounted.
51435         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
51436         as lower bound when, on glibc/Linux systems,
51437         sysconf (_SC_NPROCESSORS_CONF) returns 1.
51438         Suggested by Pádraig Brady <P@draigbrady.com>.
51439         Reported by Dmitry V. Levin <ldv@altlinux.org>.
51441         nproc: Refactor.
51442         * lib/nproc.c (num_processors_via_affinity_mask): New function,
51443         extracted from num_processors.
51444         (num_processors): Call it.
51446 2010-01-11  Jim Meyering  <meyering@redhat.com>
51448         utimecmp: avoid new warning from upcoming gcc-4.5.0
51449         * lib/utimecmp.c (BILLION): Define using #define rather than an
51450         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
51452 2010-01-11  Eric Blake  <ebb9@byu.net>
51454         math: add portability warnings for classification macros
51455         * modules/math (Depends-on): Add warn-on-use.
51456         (Makefile.am): Provide new substitutions.
51457         * m4/math_h.m4 (gl_MATH_H): Require inline.
51458         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
51459         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
51460         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
51461         implement warnings.
51463         unistd: warn on use of environ without module
51464         * modules/unistd (Depends-on): Add warn-on-use.
51465         (Makefile.am): Provide new substitutions.
51466         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
51467         * lib/unistd.in.h (environ): Wrap with a warning helper function.
51469         stdio: warn on suspicious uses
51470         * modules/stdio (Depends-on): Add warn-on-use.
51471         (Makefile.am): Provide new substitutions.
51472         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
51473         fseeko.
51474         * lib/stdio.in.h (gets): Always warn on use.
51475         (fseek, ftell): Adjust when warnings are issued, and honor
51476         _GL_NO_LARGE_FILES as a way to silence the warning.
51477         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
51478         any warning about large file offsets.
51479         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
51480         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
51481         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
51482         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
51483         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
51484         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
51485         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
51486         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
51488         warn-on-use: new module
51489         * modules/warn-on-use: New file.
51490         * build-aux/warn-on-use.h: Likewise.
51491         * m4/warn-on-use.m4: Likewise.
51492         * MODULES.html.sh (Support for building): Mention it.
51494 2010-01-10  Bruno Haible  <bruno@clisp.org>
51496         Tests for module 'unistr/u32-strdup'.
51497         * modules/unistr/u32-strdup-tests: New file.
51498         * tests/unistr/test-u32-strdup.c: New file.
51500         Tests for module 'unistr/u16-strdup'.
51501         * modules/unistr/u16-strdup-tests: New file.
51502         * tests/unistr/test-u16-strdup.c: New file.
51504         Tests for module 'unistr/u8-strdup'.
51505         * modules/unistr/u8-strdup-tests: New file.
51506         * tests/unistr/test-u8-strdup.c: New file.
51507         * tests/unistr/test-strdup.h: New file.
51509         Tests for module 'unistr/u32-strncmp'.
51510         * modules/unistr/u32-strncmp-tests: New file.
51511         * tests/unistr/test-u32-strncmp.c: New file.
51513         Tests for module 'unistr/u16-strncmp'.
51514         * modules/unistr/u16-strncmp-tests: New file.
51515         * tests/unistr/test-u16-strncmp.c: New file.
51517         Tests for module 'unistr/u8-strncmp'.
51518         * modules/unistr/u8-strncmp-tests: New file.
51519         * tests/unistr/test-u8-strncmp.c: New file.
51520         * tests/unistr/test-strncmp.h: New file.
51522         Tests for module 'unistr/u32-strcoll'.
51523         * modules/unistr/u32-strcoll-tests: New file.
51524         * tests/unistr/test-u32-strcoll.c: New file.
51526         Tests for module 'unistr/u16-strcoll'.
51527         * modules/unistr/u16-strcoll-tests: New file.
51528         * tests/unistr/test-u16-strcoll.c: New file.
51530         Tests for module 'unistr/u8-strcoll'.
51531         * modules/unistr/u8-strcoll-tests: New file.
51532         * tests/unistr/test-u8-strcoll.c: New file.
51534         Tests for module 'unistr/u32-strcmp'.
51535         * modules/unistr/u32-strcmp-tests: New file.
51536         * tests/unistr/test-u32-strcmp.c: New file.
51537         * tests/unistr/test-u32-strcmp.h: New file.
51539         Tests for module 'unistr/u16-strcmp'.
51540         * modules/unistr/u16-strcmp-tests: New file.
51541         * tests/unistr/test-u16-strcmp.c: New file.
51542         * tests/unistr/test-u16-strcmp.h: New file.
51544         Tests for module 'unistr/u8-strcmp'.
51545         * modules/unistr/u8-strcmp-tests: New file.
51546         * tests/unistr/test-u8-strcmp.c: New file.
51547         * tests/unistr/test-u8-strcmp.h: New file.
51548         * tests/unistr/test-strcmp.h: New file.
51550         Tests for module 'unistr/u32-strncat'.
51551         * modules/unistr/u32-strncat-tests: New file.
51552         * tests/unistr/test-u32-strncat.c: New file.
51554         Tests for module 'unistr/u16-strncat'.
51555         * modules/unistr/u16-strncat-tests: New file.
51556         * tests/unistr/test-u16-strncat.c: New file.
51558         Tests for module 'unistr/u8-strncat'.
51559         * modules/unistr/u8-strncat-tests: New file.
51560         * tests/unistr/test-u8-strncat.c: New file.
51561         * tests/unistr/test-strncat.h: New file.
51563         Tests for module 'unistr/u32-strcat'.
51564         * modules/unistr/u32-strcat-tests: New file.
51565         * tests/unistr/test-u32-strcat.c: New file.
51567         Tests for module 'unistr/u16-strcat'.
51568         * modules/unistr/u16-strcat-tests: New file.
51569         * tests/unistr/test-u16-strcat.c: New file.
51571         Tests for module 'unistr/u8-strcat'.
51572         * modules/unistr/u8-strcat-tests: New file.
51573         * tests/unistr/test-u8-strcat.c: New file.
51574         * tests/unistr/test-strcat.h: New file.
51576         Tests for module 'unistr/u32-stpncpy'.
51577         * modules/unistr/u32-stpncpy-tests: New file.
51578         * tests/unistr/test-u32-stpncpy.c: New file.
51580         Tests for module 'unistr/u16-stpncpy'.
51581         * modules/unistr/u16-stpncpy-tests: New file.
51582         * tests/unistr/test-u16-stpncpy.c: New file.
51584         Tests for module 'unistr/u8-stpncpy'.
51585         * modules/unistr/u8-stpncpy-tests: New file.
51586         * tests/unistr/test-u8-stpncpy.c: New file.
51587         * tests/unistr/test-stpncpy.h: New file.
51589         Tests for module 'unistr/u32-strncpy'.
51590         * modules/unistr/u32-strncpy-tests: New file.
51591         * tests/unistr/test-u32-strncpy.c: New file.
51593         Tests for module 'unistr/u16-strncpy'.
51594         * modules/unistr/u16-strncpy-tests: New file.
51595         * tests/unistr/test-u16-strncpy.c: New file.
51597         Tests for module 'unistr/u8-strncpy'.
51598         * modules/unistr/u8-strncpy-tests: New file.
51599         * tests/unistr/test-u8-strncpy.c: New file.
51600         * tests/unistr/test-strncpy.h: New file.
51602         Tests for module 'unistr/u32-stpcpy'.
51603         * modules/unistr/u32-stpcpy-tests: New file.
51604         * tests/unistr/test-u32-stpcpy.c: New file.
51606         Tests for module 'unistr/u16-stpcpy'.
51607         * modules/unistr/u16-stpcpy-tests: New file.
51608         * tests/unistr/test-u16-stpcpy.c: New file.
51610         Tests for module 'unistr/u8-stpcpy'.
51611         * modules/unistr/u8-stpcpy-tests: New file.
51612         * tests/unistr/test-u8-stpcpy.c: New file.
51613         * tests/unistr/test-stpcpy.h: New file.
51615         Tests for module 'unistr/u32-strcpy'.
51616         * modules/unistr/u32-strcpy-tests: New file.
51617         * tests/unistr/test-u32-strcpy.c: New file.
51619         Tests for module 'unistr/u16-strcpy'.
51620         * modules/unistr/u16-strcpy-tests: New file.
51621         * tests/unistr/test-u16-strcpy.c: New file.
51623         Tests for module 'unistr/u8-strcpy'.
51624         * modules/unistr/u8-strcpy-tests: New file.
51625         * tests/unistr/test-u8-strcpy.c: New file.
51626         * tests/unistr/test-strcpy.h: New file.
51628         Tests for module 'unistr/u32-strnlen'.
51629         * modules/unistr/u32-strnlen-tests: New file.
51630         * tests/unistr/test-u32-strnlen.c: New file.
51632         Tests for module 'unistr/u16-strnlen'.
51633         * modules/unistr/u16-strnlen-tests: New file.
51634         * tests/unistr/test-u16-strnlen.c: New file.
51636         Tests for module 'unistr/u8-strnlen'.
51637         * modules/unistr/u8-strnlen-tests: New file.
51638         * tests/unistr/test-u8-strnlen.c: New file.
51639         * tests/unistr/test-strnlen.h: New file.
51641         Tests for module 'unistr/u32-strlen'.
51642         * modules/unistr/u32-strlen-tests: New file.
51643         * tests/unistr/test-u32-strlen.c: New file.
51645         Tests for module 'unistr/u16-strlen'.
51646         * modules/unistr/u16-strlen-tests: New file.
51647         * tests/unistr/test-u16-strlen.c: New file.
51649         Tests for module 'unistr/u8-strlen'.
51650         * modules/unistr/u8-strlen-tests: New file.
51651         * tests/unistr/test-u8-strlen.c: New file.
51653         Tests for module 'unistr/u32-prev'.
51654         * modules/unistr/u32-prev-tests: New file.
51655         * tests/unistr/test-u32-prev.c: New file.
51657         Tests for module 'unistr/u16-prev'.
51658         * modules/unistr/u16-prev-tests: New file.
51659         * tests/unistr/test-u16-prev.c: New file.
51661         Tests for module 'unistr/u8-prev'.
51662         * modules/unistr/u8-prev-tests: New file.
51663         * tests/unistr/test-u8-prev.c: New file.
51665         Tests for module 'unistr/u32-next'.
51666         * modules/unistr/u32-next-tests: New file.
51667         * tests/unistr/test-u32-next.c: New file.
51669         Tests for module 'unistr/u16-next'.
51670         * modules/unistr/u16-next-tests: New file.
51671         * tests/unistr/test-u16-next.c: New file.
51673         Tests for module 'unistr/u8-next'.
51674         * modules/unistr/u8-next-tests: New file.
51675         * tests/unistr/test-u8-next.c: New file.
51677         Tests for module 'unistr/u32-strmbtouc'.
51678         * modules/unistr/u32-strmbtouc-tests: New file.
51679         * tests/unistr/test-u32-strmbtouc.c: New file.
51681         Tests for module 'unistr/u16-strmbtouc'.
51682         * modules/unistr/u16-strmbtouc-tests: New file.
51683         * tests/unistr/test-u16-strmbtouc.c: New file.
51685         Tests for module 'unistr/u8-strmbtouc'.
51686         * modules/unistr/u8-strmbtouc-tests: New file.
51687         * tests/unistr/test-u8-strmbtouc.c: New file.
51689         Tests for module 'unistr/u32-strmblen'.
51690         * modules/unistr/u32-strmblen-tests: New file.
51691         * tests/unistr/test-u32-strmblen.c: New file.
51693         Tests for module 'unistr/u16-strmblen'.
51694         * modules/unistr/u16-strmblen-tests: New file.
51695         * tests/unistr/test-u16-strmblen.c: New file.
51697         Tests for module 'unistr/u8-strmblen'.
51698         * modules/unistr/u8-strmblen-tests: New file.
51699         * tests/unistr/test-u8-strmblen.c: New file.
51701         Tests for module 'unistr/u32-cpy-alloc'.
51702         * modules/unistr/u32-cpy-alloc-tests: New file.
51703         * tests/unistr/test-u32-cpy-alloc.c: New file.
51705         Tests for module 'unistr/u16-cpy-alloc'.
51706         * modules/unistr/u16-cpy-alloc-tests: New file.
51707         * tests/unistr/test-u16-cpy-alloc.c: New file.
51709         Tests for module 'unistr/u8-cpy-alloc'.
51710         * modules/unistr/u8-cpy-alloc-tests: New file.
51711         * tests/unistr/test-u8-cpy-alloc.c: New file.
51712         * tests/unistr/test-cpy-alloc.h: New file.
51714         Tests for module 'unistr/u32-mbsnlen'.
51715         * modules/unistr/u32-mbsnlen-tests: New file.
51716         * tests/unistr/test-u32-mbsnlen.c: New file.
51718         Tests for module 'unistr/u16-mbsnlen'.
51719         * modules/unistr/u16-mbsnlen-tests: New file.
51720         * tests/unistr/test-u16-mbsnlen.c: New file.
51722         Tests for module 'unistr/u8-mbsnlen'.
51723         * modules/unistr/u8-mbsnlen-tests: New file.
51724         * tests/unistr/test-u8-mbsnlen.c: New file.
51726         Tests for module 'unistr/u32-chr'.
51727         * modules/unistr/u32-chr-tests: New file.
51728         * tests/unistr/test-u32-chr.c: New file.
51730         Tests for module 'unistr/u16-chr'.
51731         * modules/unistr/u16-chr-tests: New file.
51732         * tests/unistr/test-u16-chr.c: New file.
51734         Tests for module 'unistr/u8-chr'.
51735         * modules/unistr/u8-chr-tests: New file.
51736         * tests/unistr/test-u8-chr.c: New file.
51737         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
51739         Tests for module 'unistr/u32-cmp2'.
51740         * modules/unistr/u32-cmp2-tests: New file.
51741         * tests/unistr/test-u32-cmp2.c: New file.
51743         Tests for module 'unistr/u16-cmp2'.
51744         * modules/unistr/u16-cmp2-tests: New file.
51745         * tests/unistr/test-u16-cmp2.c: New file.
51747         Tests for module 'unistr/u8-cmp2'.
51748         * modules/unistr/u8-cmp2-tests: New file.
51749         * tests/unistr/test-u8-cmp2.c: New file.
51750         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
51752         Tests for module 'unistr/u32-cmp'.
51753         * modules/unistr/u32-cmp-tests: New file.
51754         * tests/unistr/test-u32-cmp.c: New file.
51756         Tests for module 'unistr/u16-cmp'.
51757         * modules/unistr/u16-cmp-tests: New file.
51758         * tests/unistr/test-u16-cmp.c: New file.
51760         Tests for module 'unistr/u8-cmp'.
51761         * modules/unistr/u8-cmp-tests: New file.
51762         * tests/unistr/test-u8-cmp.c: New file.
51763         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
51765         Tests for module 'unistr/u32-set'.
51766         * modules/unistr/u32-set-tests: New file.
51767         * tests/unistr/test-u32-set.c: New file.
51769         Tests for module 'unistr/u16-set'.
51770         * modules/unistr/u16-set-tests: New file.
51771         * tests/unistr/test-u16-set.c: New file.
51773         Tests for module 'unistr/u8-set'.
51774         * modules/unistr/u8-set-tests: New file.
51775         * tests/unistr/test-u8-set.c: New file.
51776         * tests/unistr/test-set.h: New file.
51778         Tests for module 'unistr/u32-move'.
51779         * modules/unistr/u32-move-tests: New file.
51780         * tests/unistr/test-u32-move.c: New file.
51782         Tests for module 'unistr/u16-move'.
51783         * modules/unistr/u16-move-tests: New file.
51784         * tests/unistr/test-u16-move.c: New file.
51786         Tests for module 'unistr/u8-move'.
51787         * modules/unistr/u8-move-tests: New file.
51788         * tests/unistr/test-u8-move.c: New file.
51789         * tests/unistr/test-move.h: New file.
51791         Tests for module 'unistr/u32-cpy'.
51792         * modules/unistr/u32-cpy-tests: New file.
51793         * tests/unistr/test-u32-cpy.c: New file.
51795         Tests for module 'unistr/u16-cpy'.
51796         * modules/unistr/u16-cpy-tests: New file.
51797         * tests/unistr/test-u16-cpy.c: New file.
51799         Tests for module 'unistr/u8-cpy'.
51800         * modules/unistr/u8-cpy-tests: New file.
51801         * tests/unistr/test-u8-cpy.c: New file.
51802         * tests/unistr/test-cpy.h: New file.
51804 2010-01-09  Bruno Haible  <bruno@clisp.org>
51806         Tests for module 'unistr/u32-uctomb'.
51807         * modules/unistr/u32-uctomb-tests: New file.
51808         * tests/unistr/test-u32-uctomb.c: New file.
51810         Tests for module 'unistr/u16-uctomb'.
51811         * modules/unistr/u16-uctomb-tests: New file.
51812         * tests/unistr/test-u16-uctomb.c: New file.
51814         Tests for module 'unistr/u8-uctomb'.
51815         * modules/unistr/u8-uctomb-tests: New file.
51816         * tests/unistr/test-u8-uctomb.c: New file.
51818         Tests for module 'unistr/u32-mbtoucr'.
51819         * modules/unistr/u32-mbtoucr-tests: New file.
51820         * tests/unistr/test-u32-mbtoucr.c: New file.
51822         Tests for module 'unistr/u16-mbtoucr'.
51823         * modules/unistr/u16-mbtoucr-tests: New file.
51824         * tests/unistr/test-u16-mbtoucr.c: New file.
51826         Tests for module 'unistr/u8-mbtoucr'.
51827         * modules/unistr/u8-mbtoucr-tests: New file.
51828         * tests/unistr/test-u8-mbtoucr.c: New file.
51830         Tests for module 'unistr/u32-mbtouc'.
51831         * modules/unistr/u32-mbtouc-tests: New file.
51832         * tests/unistr/test-u32-mbtouc.c: New file.
51834         Tests for module 'unistr/u16-mbtouc'.
51835         * modules/unistr/u16-mbtouc-tests: New file.
51836         * tests/unistr/test-u16-mbtouc.c: New file.
51838         Tests for module 'unistr/u8-mbtouc'.
51839         * modules/unistr/u8-mbtouc-tests: New file.
51840         * tests/unistr/test-u8-mbtouc.c: New file.
51842         Tests for module 'unistr/u32-mbtouc-unsafe'.
51843         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
51844         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
51845         * tests/unistr/test-u32-mbtouc.h: New file.
51847         Tests for module 'unistr/u16-mbtouc-unsafe'.
51848         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
51849         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
51850         * tests/unistr/test-u16-mbtouc.h: New file.
51852         Tests for module 'unistr/u8-mbtouc-unsafe'.
51853         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
51854         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
51855         * tests/unistr/test-u8-mbtouc.h: New file.
51857         Tests for module 'unistr/u32-mblen'.
51858         * modules/unistr/u32-mblen-tests: New file.
51859         * tests/unistr/test-u32-mblen.c: New file.
51861         Tests for module 'unistr/u16-mblen'.
51862         * modules/unistr/u16-mblen-tests: New file.
51863         * tests/unistr/test-u16-mblen.c: New file.
51865         Tests for module 'unistr/u8-mblen'.
51866         * modules/unistr/u8-mblen-tests: New file.
51867         * tests/unistr/test-u8-mblen.c: New file.
51869         Tests for module 'unistr/u32-to-u16'.
51870         * modules/unistr/u32-to-u16-tests: New file.
51871         * tests/unistr/test-u32-to-u16.c: New file.
51873         Tests for module 'unistr/u32-to-u8'.
51874         * modules/unistr/u32-to-u8-tests: New file.
51875         * tests/unistr/test-u32-to-u8.c: New file.
51877         Tests for module 'unistr/u16-to-u32'.
51878         * modules/unistr/u16-to-u32-tests: New file.
51879         * tests/unistr/test-u16-to-u32.c: New file.
51881         Tests for module 'unistr/u16-to-u8'.
51882         * modules/unistr/u16-to-u8-tests: New file.
51883         * tests/unistr/test-u16-to-u8.c: New file.
51885         Tests for module 'unistr/u8-to-u32'.
51886         * modules/unistr/u8-to-u32-tests: New file.
51887         * tests/unistr/test-u8-to-u32.c: New file.
51889         Tests for module 'unistr/u8-to-u16'.
51890         * modules/unistr/u8-to-u16-tests: New file.
51891         * tests/unistr/test-u8-to-u16.c: New file.
51893         Tests for module 'unistr/u32-check'.
51894         * modules/unistr/u32-check-tests: New file.
51895         * tests/unistr/test-u32-check.c: New file.
51897         Tests for module 'unistr/u16-check'.
51898         * modules/unistr/u16-check-tests: New file.
51899         * tests/unistr/test-u16-check.c: New file.
51901         Tests for module 'unistr/u8-check'.
51902         * modules/unistr/u8-check-tests: New file.
51903         * tests/unistr/test-u8-check.c: New file.
51905         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
51906         (category_equals): New function.
51907         (main): Add more tests.
51908         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
51910         * tests/unictype/test-bidi_byname.c (main): Add more tests.
51912 2010-01-10  Bruno Haible  <bruno@clisp.org>
51914         unistr/u*-strcoll: Try harder to distinguish different strings.
51915         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
51916         compare s1 and s2 to see if they are different.
51918 2010-01-10  Bruno Haible  <bruno@clisp.org>
51920         unistr/u*-stpncpy: Fix the return value.
51921         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
51922         description of the return value consistent with stpncpy in glibc.
51923         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
51924         written non-NUL unit.
51926 2010-01-10  Bruno Haible  <bruno@clisp.org>
51928         unistr/u*-next: Add missing dependencies.
51929         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
51930         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
51931         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
51933 2010-01-10  Bruno Haible  <bruno@clisp.org>
51935         unistr/u8-mbsnlen: Fix return value for incomplete character.
51936         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
51937         u8_mblen.
51938         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
51939         Remove unistr/u8-mblen.
51940         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
51941         u16_mblen.
51942         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
51943         Remove unistr/u16-mblen.
51945 2010-01-10  Bruno Haible  <bruno@clisp.org>
51947         wchar: Fix compilation error when <wchar.h> is used from coreutils.
51948         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
51949         Reported by Brian Gough <bjg@gnu.org> and
51950         Chris Clayton <chris2553@googlemail.com> via
51951         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
51953 2010-01-09  Bruno Haible  <bruno@clisp.org>
51955         unistr/u16-to-u32: Reject invalid input.
51956         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
51957         u16_mbtouc.
51958         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
51959         Remove unistr/u16-mbtouc.
51961         unistr/u16-to-u8: Reject invalid input.
51962         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
51963         u16_mbtouc.
51964         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
51965         Remove unistr/u16-mbtouc.
51967         unistr/u8-to-u32: Reject invalid input.
51968         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
51969         u8_mbtouc.
51970         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
51971         Remove unistr/u8-mbtouc.
51973         unistr/u8-to-u16: Reject invalid input.
51974         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
51975         u8_mbtouc.
51976         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
51977         Remove unistr/u8-mbtouc.
51979 2010-01-09  Bruno Haible  <bruno@clisp.org>
51981         Tests for module 'getlogin'.
51982         * modules/getlogin-tests: New file.
51983         * tests/test-getlogin.c: New file.
51985         New module 'getlogin'.
51986         * lib/unistd.in.h (getlogin): New declaration.
51987         * lib/getlogin.c: New file.
51988         * m4/getlogin.m4: New file.
51989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
51990         HAVE_GETLOGIN.
51991         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
51992         HAVE_GETLOGIN.
51993         * modules/getlogin: New file.
51994         * doc/posix-functions/getlogin.texi: Mention the new module.
51995         Reported by John W. Eaton <jwe@gnu.org>.
51997 2010-01-09  Bruno Haible  <bruno@clisp.org>
51999         getlogin_r: Support for native Windows.
52000         * lib/getlogin_r.c: Include <windows.h>
52001         (getlogin_r): Implement for native Windows.
52002         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
52003         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
52004         via John W. Eaton <jwe@gnu.org>.
52006 2010-01-09  Bruno Haible  <bruno@clisp.org>
52008         getlogin_r: Small fixes.
52009         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
52010         succeeds.
52011         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
52012         before testing whether getlogin_r is declared. No need to set
52013         HAVE_DECL_GETLOGIN_R to 1.
52014         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
52016 2010-01-09  Bruno Haible  <bruno@clisp.org>
52018         * lib/unistd.in.h (getlogin_r): Add comment.
52020 2010-01-09  Bruno Haible  <bruno@clisp.org>
52022         Tests for module 'getlogin_r'.
52023         * modules/getlogin_r-tests: New file.
52024         * tests/test-getlogin_r.c: New file.
52026 2010-01-09  Jim Meyering  <meyering@redhat.com>
52028         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
52029         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
52030         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
52032 2010-01-08  Simon Josefsson  <simon@josefsson.org>
52034         * lib/dup2.c (rpl_dup2): Improve comment.
52036 2010-01-08  Eric Blake  <ebb9@byu.net>
52038         maint.mk: allow packages to add makefile @@ exceptions
52039         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
52040         (sc_makefile_check): Rename...
52041         (sc_makefile_at_at_check): ...to this, and use hook.
52043         dup2: work around mingw bug
52044         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
52045         Reported by Simon Josefsson.
52047 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
52049         glob: Fix C++ compilation.
52050         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
52051         C++.
52053 2010-01-07  Bruno Haible  <bruno@clisp.org>
52055         Fix indentation of wctype.in.h, broken since 2007-01-06.
52056         * lib/wctype.in.h: Fix indentation of preprocessor directives.
52058 2010-01-07  Bruno Haible  <bruno@clisp.org>
52060         mbslen: Avoid collision with system function.
52061         * lib/string.in.h [MirBSD]: Include <wchar.h>.
52062         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
52063         * m4/mbslen.m4: New file.
52064         * modules/mbslen (Files): Add it.
52065         (configure.ac): Invoke gl_MBSLEN.
52066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
52067         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
52068         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
52069         via Ian Beckwith <ianb@erislabs.net>.
52071 2010-01-07  Bruno Haible  <bruno@clisp.org>
52073         dirent: Document the last fix.
52074         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
52076 2010-01-07  Bruno Haible  <bruno@clisp.org>
52078         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
52079         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
52080         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
52081         va_list are defined.
52082         * doc/posix-headers/stdio.texi: Document the bug of missing types.
52083         Reported by Eric Blake.
52085 2010-01-07  Bruno Haible  <bruno@clisp.org>
52087         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
52088         * modules/xlist (Depends-on): Add 'list',
52089         * modules/xoset (Depends-on): Add 'oset'.
52090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52092 2010-01-07  Bruno Haible  <bruno@clisp.org>
52094         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
52095         * doc/posix-functions/strncasecmp.texi: Likewise.
52097 2010-01-07  Bruno Haible  <bruno@clisp.org>
52099         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
52101 2010-01-07  John W. Eaton  <jwe@octave.org>
52103         wctype: allow C++ use
52104         * lib/wctype.in.h: Add extern "C" block for C++.
52106 2010-01-06  Eric Blake  <ebb9@byu.net>
52108         maint.mk: detect incorrect GFDL usage
52109         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
52111 2010-01-06  Jim Meyering  <meyering@redhat.com>
52112         and Eric Blake  <ebb9@byu.net>
52114         maint.mk: ignore multi-line copyright in NEWS
52115         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
52117 2010-01-06  Eric Blake  <ebb9@byu.net>
52119         select: add missing dependency
52120         * modules/select-tests (Depends-on): Move sockets dependency...
52121         * modules/select (Depends-on): ...here.
52122         Reported by Ian Beckwith.
52124         doc: regenerate INSTALL
52125         * doc/INSTALL: Reflect recent autoconf update.
52126         * doc/INSTALL.ISO: Likewise.
52127         * doc/INSTALL.UTF-8: Likewise.
52129         pread: fix compilation on glibc
52130         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
52131         Reported by Ralf Wildenhues.
52133         dirent: fix test failure
52134         * lib/dirent.in.h (includes): Guarantee ino_t.
52135         Reported by Ralf Wildenhues.
52137 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
52139         linkat, renameat: avoid bad free
52140         * lib/at-func2.c (at_func2): Fix typo.
52141         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
52143 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52145         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
52146         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
52147         to avoid failure of symlink test later.
52149 2010-01-06  Eric Blake  <ebb9@byu.net>
52151         stdio, unistd: guarantee ssize_t
52152         * lib/unistd.in.h (includes): Ensure that types required by POSIX
52153         2008 are exposed when needed.
52154         * lib/stdio.in.h (includes): Likewise.
52155         Reported by Ralf Wildenhues.
52157 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
52159         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
52160         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
52161         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
52163 2010-01-06  Jim Meyering  <meyering@redhat.com>
52165         readtokens: this module *does* require xalloc.h
52166         It uses only functions that were omitted by the old syntax-check rule.
52167         * lib/readtokens.c: Include "xalloc.h" once again.
52168         * modules/readtokens (Depends-on): Add xalloc.
52169         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
52171 2010-01-05  Eric Blake  <ebb9@byu.net>
52173         maint: support 'make announcement' from a VPATH build
52174         * top/maint.mk (announcement): Look for correct NEWS file.
52176 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
52178         utimens (fdutimens): ignore a negative FD, per contract
52179         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
52180         when we have a valid file descriptor.  Otherwise, using a brand
52181         new glibc (with just-patched futimens that now fails with EBADF)
52182         would cause this function to fail with ENOSYS.
52183         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
52184         See also http://bugzilla.redhat.com/552320.
52186 2010-01-05  Eric Blake  <ebb9@byu.net>
52188         strcase: document what it provides
52189         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
52190         gnulib module.
52191         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
52192         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
52194 2010-01-05  Jim Meyering  <meyering@redhat.com>
52196         maint: remove useless inclusions of "xalloc.h"
52197         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
52198         * lib/readtokens.c: Likewise.
52199         * lib/same.c: Likewise.
52200         * modules/getloadavg (Depends-on): Remove xalloc.
52201         * modules/readtokens: Likewise.
52202         * modules/same: Likewise.
52204         maint.mk: include 4 more function names in alloca.h-checking regexp
52205         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
52206         regexp.  Before, we would give a false-positive (saying alloca.h
52207         is included unnecessarily) when the only uses involved omitted symbols.
52209         xalloc.h: use consistent formatting
52210         * lib/xalloc.h: Move declarations to start in the first column.
52212 2010-01-05  Eric Blake  <ebb9@byu.net>
52214         mkdir: avoid xalloc
52215         * lib/mkdir.c (includes): Drop unused header.
52216         Reported by John W. Eaton.
52218 2010-01-04  Jim Meyering  <meyering@redhat.com>
52220         nl_langinfo: avoid configure-time syntax error
52221         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
52222         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
52223         the empty string.  Don't let that provoke a shell syntax error.
52225         regcomp, regexec, fnmatch: avoid array bounds read error
52226         * lib/regcomp.c (build_equiv_class): From glibc:
52227         Use only the low 24 bits of a findidx return value as an index
52228         into the weights array.  Patch by Ulrich Drepper:
52229         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
52230         * lib/regexec.c (check_node_accept_bytes): Likewise.
52231         * lib/fnmatch_loop.c (FCT): Likewise.
52233         regcomp: skip collseq lookup when there are no rules
52234         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
52235         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
52237         regcomp: recognize ill-formed { } expressions
52238         * lib/regcomp.c (parse_dup_op): From glibc:
52239         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
52241         regcomp: fix typo in comment
52242         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
52243         s/satisfy/satisfies/.
52245         regcomp: sync from glibc: remove dead store
52246         * lib/regcomp.c (duplicate_node_closure): Remove useless
52247         search_duplicated_node call and dead store.
52249         regcomp: sync from glibc; always use nl_langinfo
52250         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
52251         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
52252         * modules/regex (Depends-on): Add nl_langinfo.
52254 2010-01-04  Eric Blake  <ebb9@byu.net>
52256         fdopendir: fix configure test
52257         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
52259 2010-01-01  Bruno Haible  <bruno@clisp.org>
52261         wchar: Remove unused configure check.
52262         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
52264 2010-01-01  Eric Blake  <ebb9@byu.net>
52266         headers: make check of system header explicit
52267         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
52268         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
52269         ourselves.
52270         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52272         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
52274         internals.
52275         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
52276         missing.
52277         Suggested by Bruno Haible.
52279 2010-01-01  Jim Meyering  <meyering@redhat.com>
52281         ChangeLog: tweak to eliminate unnecessary copyright line
52282         * ChangeLog: Remove a copyright line that was mistakenly updated
52283         by today's update-copyright run.  Reported by Eric Blake.
52285         test-update-copyright: don't let envvar setting cause test failure
52286         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
52288 2010-01-01  Bruno Haible  <bruno@clisp.org>
52290         localename: Avoid gcc warning.
52291         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
52292         function if it is not used.
52294 2010-01-01  Jim Meyering  <meyering@redhat.com>
52296         update nearly all FSF copyright year lists to include 2010
52297         Use the same procedure as for 2009, outlined in
52298         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
52300         version-etc: set COPYRIGHT_YEAR to 2010
52301         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
52303 2009-12-31  Eric Blake  <ebb9@byu.net>
52305         doc: correct availability of cygwin 1.5.x getopt
52306         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
52307         variables.
52308         * doc/posix-functions/opterr.texi (opterr): Likewise.
52309         * doc/posix-functions/optind.texi (optind): Likewise.
52310         * doc/posix-functions/optopt.texi (optopt): Likewise.
52311         * doc/posix-functions/tzname.texi (tzname): Likewise.
52313         openat: update maintainer
52314         * modules/openat (Maintainer): Add myself.
52316         utimens: avoid shadowing warning
52317         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
52318         buffers into one, to avoid shadowing, as well as avoiding a
52319         redundant stat.
52320         Reported by Jim Meyering.
52322         test-dup2: avoid compiler warning
52323         * tests/test-dup2.c (is_inheritable): Only define if used.
52325 2010-01-01  Bruno Haible  <bruno@clisp.org>
52327         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
52328         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
52329         defined, use wctomb instead of wcrtomb.
52331 2010-01-01  Bruno Haible  <bruno@clisp.org>
52333         iconv: Reject native Solaris iconv.
52334         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
52335         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
52337 2009-12-31  Bruno Haible  <bruno@clisp.org>
52339         * tests/test-signal.c (main): Remove test of 'SIG'.
52341 2009-12-31  Bruno Haible  <bruno@clisp.org>
52343         spawn: Fix incomplete fix.
52344         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
52345         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
52346         warnings for GNULIB_POSIXCHECK again.
52347         Reported by Eric Blake.
52349 2009-12-31  Bruno Haible  <bruno@clisp.org>
52351         Avoid namespace pollution on glibc systems.
52352         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
52353         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
52354         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
52355         glibc systems.
52357 2009-12-31  Bruno Haible  <bruno@clisp.org>
52359         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
52360         (gl_REPLACE_WCHAR_H): Turn into a no-op.
52361         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
52362         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52363         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52364         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52365         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52367 2009-12-31  Bruno Haible  <bruno@clisp.org>
52369         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52370         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
52371         afterwards.
52373 2009-12-31  Bruno Haible  <bruno@clisp.org>
52375         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
52376         SYS_UTSNAME_H.
52378 2009-12-31  Bruno Haible  <bruno@clisp.org>
52380         spawn: Fix misapplied patch.
52381         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
52382         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
52383         warnings for GNULIB_POSIXCHECK.
52385 2009-12-31  Bruno Haible  <bruno@clisp.org>
52387         times: Update after sys_times changed.
52388         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
52389         * modules/times (Files): Add it.
52390         (configure.ac): Invoke gl_FUNC_TIMES.
52392 2009-12-31  Bruno Haible  <bruno@clisp.org>
52394         Use AC_C_INLINE where necessary.
52395         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
52396         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52397         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52398         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52399         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52400         * m4/mbiter.m4 (gl_MBITER): Likewise.
52401         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52402         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52403         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
52404         * modules/u64 (configure.ac): Likewise.
52406 2009-12-31  Bruno Haible  <bruno@clisp.org>
52408         Use AC_C_INLINE instead of module 'inline' where possible.
52409         * modules/inline (Description): Clarify purpose.
52410         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
52411         * modules/count-one-bits (Depends-on): Remove inline.
52412         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
52413         * modules/openat (Depends-on): Remove inline.
52414         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
52415         instead of depending on module 'inline'.
52416         * modules/filevercmp (Depends-on, configure.ac): Likewise.
52417         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
52418         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
52419         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
52420         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
52421         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
52422         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
52423         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
52424         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
52425         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
52426         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
52427         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
52428         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
52429         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
52430         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
52431         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
52432         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
52433         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
52434         Likewise.
52435         * modules/unictype/property-ascii-hex-digit (Depends-on,
52436         configure.ac): Likewise.
52437         * modules/unictype/property-bidi-arabic-digit (Depends-on,
52438         configure.ac): Likewise.
52439         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
52440         configure.ac): Likewise.
52441         * modules/unictype/property-bidi-block-separator (Depends-on,
52442         configure.ac): Likewise.
52443         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
52444         configure.ac): Likewise.
52445         * modules/unictype/property-bidi-common-separator (Depends-on,
52446         configure.ac): Likewise.
52447         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
52448         Likewise.
52449         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
52450         configure.ac): Likewise.
52451         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
52452         configure.ac): Likewise.
52453         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
52454         configure.ac): Likewise.
52455         * modules/unictype/property-bidi-european-digit (Depends-on,
52456         configure.ac): Likewise.
52457         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
52458         configure.ac): Likewise.
52459         * modules/unictype/property-bidi-left-to-right (Depends-on,
52460         configure.ac): Likewise.
52461         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
52462         configure.ac): Likewise.
52463         * modules/unictype/property-bidi-other-neutral (Depends-on,
52464         configure.ac): Likewise.
52465         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
52466         Likewise.
52467         * modules/unictype/property-bidi-segment-separator (Depends-on,
52468         configure.ac): Likewise.
52469         * modules/unictype/property-bidi-whitespace (Depends-on,
52470         configure.ac): Likewise.
52471         * modules/unictype/property-combining (Depends-on, configure.ac):
52472         Likewise.
52473         * modules/unictype/property-composite (Depends-on, configure.ac):
52474         Likewise.
52475         * modules/unictype/property-currency-symbol (Depends-on,
52476         configure.ac): Likewise.
52477         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
52478         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
52479         Likewise.
52480         * modules/unictype/property-default-ignorable-code-point (Depends-on,
52481         configure.ac): Likewise.
52482         * modules/unictype/property-deprecated (Depends-on, configure.ac):
52483         Likewise.
52484         * modules/unictype/property-diacritic (Depends-on, configure.ac):
52485         Likewise.
52486         * modules/unictype/property-extender (Depends-on, configure.ac):
52487         Likewise.
52488         * modules/unictype/property-format-control (Depends-on, configure.ac):
52489         Likewise.
52490         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
52491         Likewise.
52492         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
52493         Likewise.
52494         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
52495         Likewise.
52496         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
52497         Likewise.
52498         * modules/unictype/property-hyphen (Depends-on, configure.ac):
52499         Likewise.
52500         * modules/unictype/property-id-continue (Depends-on, configure.ac):
52501         Likewise.
52502         * modules/unictype/property-id-start (Depends-on, configure.ac):
52503         Likewise.
52504         * modules/unictype/property-ideographic (Depends-on, configure.ac):
52505         Likewise.
52506         * modules/unictype/property-ids-binary-operator (Depends-on,
52507         configure.ac): Likewise.
52508         * modules/unictype/property-ids-trinary-operator (Depends-on,
52509         configure.ac): Likewise.
52510         * modules/unictype/property-ignorable-control (Depends-on,
52511         configure.ac): Likewise.
52512         * modules/unictype/property-iso-control (Depends-on, configure.ac):
52513         Likewise.
52514         * modules/unictype/property-join-control (Depends-on, configure.ac):
52515         Likewise.
52516         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
52517         Likewise.
52518         * modules/unictype/property-line-separator (Depends-on, configure.ac):
52519         Likewise.
52520         * modules/unictype/property-logical-order-exception (Depends-on,
52521         configure.ac): Likewise.
52522         * modules/unictype/property-lowercase (Depends-on, configure.ac):
52523         Likewise.
52524         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
52525         * modules/unictype/property-non-break (Depends-on, configure.ac):
52526         Likewise.
52527         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
52528         Likewise.
52529         * modules/unictype/property-numeric (Depends-on, configure.ac):
52530         Likewise.
52531         * modules/unictype/property-other-alphabetic (Depends-on,
52532         configure.ac): Likewise.
52533         * modules/unictype/property-other-default-ignorable-code-point
52534         (Depends-on, configure.ac): Likewise.
52535         * modules/unictype/property-other-grapheme-extend (Depends-on,
52536         configure.ac): Likewise.
52537         * modules/unictype/property-other-id-continue (Depends-on,
52538         configure.ac): Likewise.
52539         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
52540         Likewise.
52541         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
52542         Likewise.
52543         * modules/unictype/property-other-math (Depends-on, configure.ac):
52544         Likewise.
52545         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
52546         Likewise.
52547         * modules/unictype/property-paired-punctuation (Depends-on,
52548         configure.ac): Likewise.
52549         * modules/unictype/property-paragraph-separator (Depends-on,
52550         configure.ac): Likewise.
52551         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
52552         Likewise.
52553         * modules/unictype/property-pattern-white-space (Depends-on,
52554         configure.ac): Likewise.
52555         * modules/unictype/property-private-use (Depends-on, configure.ac):
52556         Likewise.
52557         * modules/unictype/property-punctuation (Depends-on, configure.ac):
52558         Likewise.
52559         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
52560         Likewise.
52561         * modules/unictype/property-radical (Depends-on, configure.ac):
52562         Likewise.
52563         * modules/unictype/property-sentence-terminal (Depends-on,
52564         configure.ac): Likewise.
52565         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
52566         Likewise.
52567         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
52568         * modules/unictype/property-terminal-punctuation (Depends-on,
52569         configure.ac): Likewise.
52570         * modules/unictype/property-titlecase (Depends-on, configure.ac):
52571         Likewise.
52572         * modules/unictype/property-unassigned-code-value (Depends-on,
52573         configure.ac): Likewise.
52574         * modules/unictype/property-unified-ideograph (Depends-on,
52575         configure.ac): Likewise.
52576         * modules/unictype/property-uppercase (Depends-on, configure.ac):
52577         Likewise.
52578         * modules/unictype/property-variation-selector (Depends-on,
52579         configure.ac): Likewise.
52580         * modules/unictype/property-white-space (Depends-on, configure.ac):
52581         Likewise.
52582         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
52583         Likewise.
52584         * modules/unictype/property-xid-start (Depends-on, configure.ac):
52585         Likewise.
52586         * modules/unictype/property-zero-width (Depends-on, configure.ac):
52587         Likewise.
52588         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
52589         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
52590         Likewise.
52592 2009-12-31  Bruno Haible  <bruno@clisp.org>
52594         Remove unnecessary AC_C_INLINE invocation.
52595         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
52596         since 2009-08-21.
52598 2009-12-31  Jim Meyering  <meyering@redhat.com>
52600         maint.mk: don't require explicit gpg_key_ID in cfg.mk
52601         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
52602         With this change, we can all remove the gpg_key_ID = ... definition
52603         from our respective cfg.mk files.
52605         maint.mk: create announcement template in ~/, not in /tmp
52606         * top/maint.mk (emit_upload_commands): Adjust.
52607         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
52608         Remove temporary file, .ci-msg.
52610 2009-12-31  Eric Blake  <ebb9@byu.net>
52612         link-warning: always build headers with link warnings
52613         * modules/arpa_inet (Makefile.am): Always build replacement
52614         header.
52615         * modules/ctype (Makefile.am): Likewise.
52616         * modules/dirent (Makefile.am): Likewise.
52617         * modules/inttypes (Makefile.am): Likewise.
52618         * modules/langinfo (Makefile.am): Likewise.
52619         * modules/locale (Makefile.am): Likewise.
52620         * modules/spawn (Makefile.am): Likewise.
52621         * modules/sys_file (Makefile.am): Likewise.
52622         * modules/sys_ioctl (Makefile.am): Likewise.
52623         * modules/sys_select (Makefile.am): Likewise.
52624         * modules/sys_socket (Makefile.am): Likewise.
52625         * modules/sys_times (Makefile.am): Likewise.
52626         * modules/sys_utsname (Makefile.am): Likewise.
52627         * modules/sys_wait (Makefile.am): Likewise.
52628         * modules/wchar (Makefile.am): Likewise.
52629         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
52630         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
52631         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
52632         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
52633         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
52634         Likewise.
52635         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52636         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52637         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
52638         Likewise.
52639         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
52640         Likewise.
52641         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
52642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
52643         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
52644         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52645         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52646         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
52647         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
52648         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
52649         (gl_WCHAR_H_DEFAULTS): Likewise.
52651 2009-12-31  Eric Blake  <ebb9@byu.net>
52653         signal, spawn: use link warnings
52654         * lib/signal.in.h (sigset_t): Make unconditional.
52655         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
52656         (sigpending, sigprocmask, sigaction): Add link warnings.
52657         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
52658         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
52659         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
52660         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
52661         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
52662         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
52663         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
52664         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
52665         (posix_spawn_file_actions_destroy)
52666         (posix_spawn_file_actions_addopen)
52667         (posix_spawn_file_actions_addclose)
52668         (posix_spawn_file_actions_adddup2): Likewise.
52669         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
52670         * tests/test-signal.c (main): Enhance test.
52672         spawn: improve wrapper support
52673         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
52674         (gl_SPAWN_H_DEFAULTS): New defaults.
52675         * modules/spawn (Makefile.am): Substitute them.
52676         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
52677         Only declare if missing or broken.
52679         sys_times, sys_utsname: use include_next
52680         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
52681         header.
52682         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
52683         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
52684         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
52685         * modules/sys_times (Depends-on): Add include_next.
52686         (Makefile.am): Substitute additional values.
52687         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52688         * lib/sys_times.in.h (includes): Include native header, if
52689         available.
52690         * lib/sys_utsname.in.h (includes): Likewise.
52691         * tests/test-sys_times.c (main): Enhance test.
52693         fdutimensat: revert prior patch
52694         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
52695         utimens.h.
52696         Reported by Bruno Haible.
52698 2009-12-30  Eric Blake  <ebb9@byu.net>
52700         sys_wait: drop link-warning dependency
52701         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
52702         link-warning efforts.
52703         * lib/sys_wait.in.h: Likewise.
52705         fdutimensat: remove bogus dependency
52706         * modules/fdutimensat (Depends-on): Drop inline.
52708         unistd: fix typo
52709         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
52711 2009-12-30  Bruno Haible  <bruno@clisp.org>
52713         Fix compilation error with Solaris cc.
52714         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
52715         * lib/unicase/u16-is-invariant.c: Likewise.
52716         * lib/unicase/u32-is-invariant.c: Likewise.
52717         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52719 2009-12-30  Bruno Haible  <bruno@clisp.org>
52721         Fix test crash.
52722         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
52723         locales.
52724         Reported by Simon Josefsson <simon@josefsson.org>.
52726 2009-12-30  Bruno Haible  <bruno@clisp.org>
52728         Fix compilation error on most platforms.
52729         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
52730         Reported by Simon Josefsson <simon@josefsson.org>
52731         and Nelson H. F. Beebe <beebe@math.utah.edu>.
52733 2009-12-30  Eric Blake  <ebb9@byu.net>
52735         futimens, utimensat: work around ntfs-3g bug
52736         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
52737         a ctime bug is present, and expand workaround to cover ntfs-3g.
52738         * lib/utimens.c (fdutimens, lutimens): Likewise.
52739         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
52740         (validate_timespec): Adjust return value.
52741         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
52742         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52743         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
52745 2009-12-29  Eric Blake  <ebb9@byu.net>
52747         link-warning: make usage consistent
52748         * modules/ctype (Depends-on): Add link-warning.
52749         (Makefile.am): Update rules accordingly.
52750         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52751         * modules/locale (Depends-on, Makefile.am): Likewise.
52752         * modules/sys_file (Makefile.am): Likewise.
52753         * modules/getopt-posix (Makefile.am): Delete unused link warning
52754         efforts.
52755         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
52756         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
52757         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
52758         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
52760         stdio: remove unused variables
52761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
52762         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
52763         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
52765         tests: test more substitute headers
52766         * modules/ctype-tests: New file.
52767         * modules/dirent-tests: Likewise.
52768         * modules/spawn-tests: Likewise.
52769         * modules/sys_file-tests: Likewise.
52770         * modules/sys_ioctl-tests: Likewise.
52771         * modules/sys_wait-tests: Likewise.
52772         * tests/test-ctype.c: Likewise.
52773         * tests/test-dirent.c: Likewise.
52774         * tests/test-spawn.c: Likewise.
52775         * tests/test-sys_file.c: Likewise.
52776         * tests/test-sys_ioctl.c: Likewise.
52777         * tests/test-sys_wait.c: Likewise.
52778         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
52779         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
52780         whether or not flock is in use.
52782         tests: remove License section from module
52783         * modules/arpa_inet-tests: Remove unneeded section.
52784         * modules/byteswap-tests: Likewise.
52785         * modules/ceilf-tests: Likewise.
52786         * modules/ceill-tests: Likewise.
52787         * modules/crypto/des-tests: Likewise.
52788         * modules/crypto/gc-arcfour-tests: Likewise.
52789         * modules/crypto/gc-arctwo-tests: Likewise.
52790         * modules/crypto/gc-des-tests: Likewise.
52791         * modules/crypto/gc-hmac-md5-tests: Likewise.
52792         * modules/crypto/gc-hmac-sha1-tests: Likewise.
52793         * modules/crypto/gc-md2-tests: Likewise.
52794         * modules/crypto/gc-md4-tests: Likewise.
52795         * modules/crypto/gc-md5-tests: Likewise.
52796         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
52797         * modules/crypto/gc-rijndael-tests: Likewise.
52798         * modules/crypto/gc-sha1-tests: Likewise.
52799         * modules/crypto/gc-tests: Likewise.
52800         * modules/crypto/md2-tests: Likewise.
52801         * modules/crypto/md4-tests: Likewise.
52802         * modules/fcntl-h-tests: Likewise.
52803         * modules/floorf-tests: Likewise.
52804         * modules/floorl-tests: Likewise.
52805         * modules/frexp-nolibm-tests: Likewise.
52806         * modules/frexp-tests: Likewise.
52807         * modules/frexpl-nolibm-tests: Likewise.
52808         * modules/frexpl-tests: Likewise.
52809         * modules/getaddrinfo-tests: Likewise.
52810         * modules/inttypes-tests: Likewise.
52811         * modules/isfinite-tests: Likewise.
52812         * modules/isinf-tests: Likewise.
52813         * modules/ldexpl-tests: Likewise.
52814         * modules/locale-tests: Likewise.
52815         * modules/math-tests: Likewise.
52816         * modules/netdb-tests: Likewise.
52817         * modules/netinet_in-tests: Likewise.
52818         * modules/printf-frexp-tests: Likewise.
52819         * modules/printf-frexpl-tests: Likewise.
52820         * modules/priv-set-tests: Likewise.
52821         * modules/random_r-tests: Likewise.
52822         * modules/round-tests: Likewise.
52823         * modules/roundf-tests: Likewise.
52824         * modules/roundl-tests: Likewise.
52825         * modules/search-tests: Likewise.
52826         * modules/select-tests: Likewise.
52827         * modules/signal-tests: Likewise.
52828         * modules/stdbool-tests: Likewise.
52829         * modules/stddef-tests: Likewise.
52830         * modules/stdint-tests: Likewise.
52831         * modules/stdio-tests: Likewise.
52832         * modules/stdlib-tests: Likewise.
52833         * modules/string-tests: Likewise.
52834         * modules/strings-tests: Likewise.
52835         * modules/sys_select-tests: Likewise.
52836         * modules/sys_socket-tests: Likewise.
52837         * modules/sys_stat-tests: Likewise.
52838         * modules/sys_time-tests: Likewise.
52839         * modules/sys_utsname-tests: Likewise.
52840         * modules/sysexits-tests: Likewise.
52841         * modules/time-tests: Likewise.
52842         * modules/trunc-tests: Likewise.
52843         * modules/truncf-tests: Likewise.
52844         * modules/truncl-tests: Likewise.
52845         * modules/tsearch-tests: Likewise.
52846         * modules/unistd-tests: Likewise.
52847         * modules/wchar-tests: Likewise.
52848         * modules/wctype-tests: Likewise.
52850         tests: fix license on several tests
52851         * tests/test-des.c: Update to GPLv3+.
52852         * tests/test-flock.c: Likewise.
52853         * tests/test-fsync.c: Likewise.
52854         * tests/test-futimens.h: Likewise.
52855         * tests/test-gc-arcfour.c: Likewise.
52856         * tests/test-gc-arctwo.c: Likewise.
52857         * tests/test-gc-des.c: Likewise.
52858         * tests/test-gc-hmac-md5.c: Likewise.
52859         * tests/test-gc-hmac-sha1.c: Likewise.
52860         * tests/test-gc-md2.c: Likewise.
52861         * tests/test-gc-md4.c: Likewise.
52862         * tests/test-gc-md5.c: Likewise.
52863         * tests/test-gc-pbkdf2-sha1.c: Likewise.
52864         * tests/test-gc-rijndael.c: Likewise.
52865         * tests/test-gc-sha1.c: Likewise.
52866         * tests/test-gc.c: Likewise.
52867         * tests/test-getcwd.c: Likewise.
52868         * tests/test-link.c: Likewise.
52869         * tests/test-link.h: Likewise.
52870         * tests/test-lutimens.h: Likewise.
52871         * tests/test-md2.c: Likewise.
52872         * tests/test-md4.c: Likewise.
52873         * tests/test-mkdir.h: Likewise.
52874         * tests/test-rename.c: Likewise.
52875         * tests/test-rename.h: Likewise.
52876         * tests/test-safe-alloc.c: Likewise.
52877         * tests/test-utimens-common.h: Likewise.
52878         * tests/test-utimens.h: Likewise.
52880         maint: sync license texts
52881         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
52882         * doc/gpl-3.0.texi: Revert copyright year update.
52883         * doc/lgpl-3.0.texi: Likewise.
52885 2009-12-29  Jim Meyering  <meyering@redhat.com>
52887         update nearly all FSF copyright year lists to include 2009
52888         The files named by the following are exempted:
52889             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
52890               test -f "$dst" && { echo "$dst"; continue; }
52891               test -d "$dst" || continue
52892               echo "$dst"/$(basename "$src")
52893             done > exempt
52894             git ls-files tests/unictype >> exempt
52895         In the remaining files, convert to all-interval notation if
52896         - there is already at least one year interval like 2000-2003
52897         - the file is maintained by me
52898         - the file is in lib/uni*/, where that style already prevails
52899         Otherwise, use update-copyright's default.
52901 2009-12-29  Simon Josefsson  <simon@josefsson.org>
52902         and Eric Blake  <ebb9@byu.net>
52904         tests: don't require debug system() to pass
52905         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
52906         * tests/test-rmdir.h (test_rmdir_func): Likewise.
52907         * tests/test-unlink.h (test_unlink_func): Likewise.
52908         * tests/test-fstatat.c (main): ...into callers.
52909         * tests/test-lstat.c (main): Likewise.
52910         * tests/test-rmdir.c (main): Likewise.
52911         * tests/test-unlink.c (main): Likewise.
52912         * tests/test-unlinkat.c (main): Likewise.
52913         * tests/test-areadlink-with-size.c (main): Don't require a
52914         debug-only system call to pass, aiding cross-testing to mingw.
52915         * tests/test-areadlink.c (main): Likewise.
52916         * tests/test-areadlinkat-with-size.c (main): Likewise.
52917         * tests/test-areadlinkat.c (main): Likewise.
52918         * tests/test-canonicalize-lgpl.c (main): Likewise.
52919         * tests/test-canonicalize.c (main): Likewise.
52920         * tests/test-chown.c (main): Likewise.
52921         * tests/test-fchownat.c (main): Likewise.
52922         * tests/test-lchown.c (main): Likewise.
52923         * tests/test-fdutimensat.c (main): Likewise.
52924         * tests/test-futimens.c (main): Likewise.
52925         * tests/test-link.c (main): Likewise.
52926         * tests/test-linkat.c (main): Likewise.
52927         * tests/test-mkdir.c (main): Likewise.
52928         * tests/test-mkdirat.c (main): Likewise.
52929         * tests/test-mkfifo.c (main): Likewise.
52930         * tests/test-mkfifoat.c (main): Likewise.
52931         * tests/test-mknod.c (main): Likewise.
52932         * tests/test-readlink.c (main): Likewise.
52933         * tests/test-remove.c (main): Likewise.
52934         * tests/test-rename.c (main): Likewise.
52935         * tests/test-renameat.c (main): Likewise.
52936         * tests/test-symlink.c (main): Likewise.
52937         * tests/test-symlinkat.c (main): Likewise.
52938         * tests/test-utimens.c (main): Likewise.
52939         * tests/test-utimensat.c (main): Likewise.
52941 2009-12-29  Simon Josefsson  <simon@josefsson.org>
52943         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
52944         on $(UNUSED_PARAMETER_H) to avoid build failure.
52946 2009-12-28  Jim Meyering  <meyering@redhat.com>
52948         update-copyright: you may specify a max. line length other than 72
52949         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
52951         maint: use consistent FSF copyright line syntax
52952         * lib/posixtm.c: Add missing comma in FSF copyright line.
52953         * lib/posixtm.h: Likewise.
52954         * lib/getugroups.c: Add missing ", Inc.".
52956         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
52957         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
52958         FSF copyright line.  Remove trailing blanks.
52960 2009-12-28  Eric Blake  <ebb9@byu.net>
52962         test-dup2: reduce dependencies
52963         * modules/cloexec (Configure.ac): Set witness.
52964         * modules/dup2-tests (Depends-on): Drop cloexec.
52965         * tests/test-dup2.c (main): Skip portion of test if cloexec module
52966         not present.
52967         Suggested by Bruno Haible.
52969 2009-12-26  Bruno Haible  <bruno@clisp.org>
52971         Remove an unneeded dependency.
52972         * modules/fseterr (Depends-on): Remove dup2.
52974 2009-12-26  Eric Blake  <ebb9@byu.net>
52976         tests: use macros.h in more places
52977         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
52978         (ASSERT_STREAM): Provide default of stderr.
52979         * tests/test-dirent-safer.c: Include macros.h, using alternate
52980         stream for assertions.
52981         * tests/test-dup-safer.c: Likewise.
52982         * tests/test-freopen-safer.c: Likewise.
52983         * tests/test-getopt.c: Likewise.
52984         * tests/test-openat-safer.c: Likewise.
52985         * tests/test-pipe.c: Likewise.
52986         * tests/test-popen-safer.c: Likewise.
52987         * modules/dirent-safer-tests (Files): Include macros.h.
52988         * modules/unistd-safer-tests (Files): Likewise.
52989         * modules/freopen-safer-tests (Files): Likewise.
52990         * modules/getopt-posix-tests (Files): Likewise.
52991         * modules/openat-safer-tests (Files): Likewise.
52992         * modules/pipe-tests (Files): Likewise.
52994 2009-12-26  Bruno Haible  <bruno@clisp.org>
52996         javacomp: Portability fix.
52997         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
52998         that it also works on Solaris.
53000 2009-12-26  Bruno Haible  <bruno@clisp.org>
53002         localename: Fix storage allocation of gl_locale_name_thread's result.
53003         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
53004         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
53005         all platforms that have 'uselocale'.
53006         (gl_locale_name_thread_unsafe): New function, extracted from
53007         gl_locale_name_thread.
53008         (gl_locale_name_thread): Call struniq on all platforms that have
53009         'uselocale'.
53010         * tests/test-localename.c (test_locale_name_thread): Check that the
53011         resulting strings are permanently allocated.
53012         * modules/localename-tests (Depends-on): Add strdup.
53014 2009-12-26  Bruno Haible  <bruno@clisp.org>
53016         * tests/test-localename.c (categories): Fill in the strings.
53018 2009-12-26  Jim Meyering  <meyering@redhat.com>
53020         isdir: complete the removal of m4/isdir.m4
53021         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
53023         isdir: clean up, since at least grep still uses it
53024         * lib/isdir.c: Include "isdir.h".
53025         (S_ISDIR): Remove now-unneeded definition.
53026         * modules/isdir (Files): Add lib/isdir.h.
53027         * lib/isdir.h: New file, with declaration.
53028         * m4/isdir.m4: Remove file -- unneeded.
53030 2009-12-25  Bruno Haible  <bruno@clisp.org>
53032         selinux-h: Make generated .h files standalone.
53033         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
53034         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
53035         * lib/se-selinux.in.h: Likewise.
53036         * modules/selinux-h (Depends-on): Add unused-parameter.
53037         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
53038         selinux/selinux.h and selinux/context.h.
53039         Suggested by Eric Blake.
53041 2009-12-25  Bruno Haible  <bruno@clisp.org>
53043         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
53044         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
53045         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
53046         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
53047         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
53049 2009-12-24  Bruno Haible  <bruno@clisp.org>
53051         openat: Fix warning.
53052         * lib/openat-proc.c: Include <unistd.h>.
53054 2009-12-24  Bruno Haible  <bruno@clisp.org>
53056         New module 'unused-parameter'.
53057         * build-aux/unused-parameter.h: New file, extracted from earlier
53058         gnulib-common.m4.
53059         * modules/unused-parameter: New file.
53060         * lib/unistr.h: Include unused-parameter.h.
53061         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
53062         _GL_UNUSED.
53063         * modules/unistr/base (Depends-on): Add unused-parameter.
53065 2009-12-24  Bruno Haible  <bruno@clisp.org>
53067         Add missing dependencies to 'extensions' module.
53068         * m4/extensions.m4: Add comment.
53069         * modules/accept4 (Depends-on): Add extensions.
53070         * modules/dup3 (Depends-on): Likewise.
53071         * modules/fcntl (Depends-on): Likewise.
53072         * modules/futimens (Depends-on): Likewise.
53073         * modules/mknod (Depends-on): Likewise.
53074         * modules/pipe2 (Depends-on): Likewise.
53075         * modules/stat-time (Depends-on): Likewise.
53076         * modules/strcasestr-simple (Depends-on): Likewise.
53077         * modules/strsignal (Depends-on): Likewise.
53078         * modules/utimensat (Depends-on): Likewise.
53079         * modules/localcharset (Depends-on): Likewise. Needed because of
53080         gl_FCNTL_O_FLAGS.
53081         * modules/wcrtomb (Depends-on): Likewise. Needed because of
53082         AC_TYPE_MBSTATE_T.
53083         * modules/wcsnrtombs (Depends-on): Likewise.
53084         * modules/wcsrtombs (Depends-on): Likewise.
53086 2009-12-24  Bruno Haible  <bruno@clisp.org>
53088         binary-io: Avoid gcc warning due to SET_BINARY.
53089         * lib/binary-io.h (SET_BINARY): Cast the result to void.
53090         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
53092 2009-12-24  Bruno Haible  <bruno@clisp.org>
53094         Avoid future namespace pollution on glibc systems.
53095         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
53096         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
53097         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
53098         glibc systems.
53100 2009-12-24  Bruno Haible  <bruno@clisp.org>
53102         Refactor common macros used in tests.
53103         * tests/macros.h: New file.
53104         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
53105         and/or <stdlib.h>, if appropriate.
53106         (ASSERT, SIZEOF): Remove macros.
53107         * tests/test-areadlink-with-size.c: Likewise.
53108         * tests/test-areadlinkat.c: Likewise.
53109         * tests/test-areadlinkat-with-size.c: Likewise.
53110         * tests/test-argmatch.c: Likewise.
53111         * tests/test-argv-iter.c: Likewise.
53112         * tests/test-array-mergesort.c: Likewise.
53113         * tests/test-array_list.c: Likewise.
53114         * tests/test-array_oset.c: Likewise.
53115         * tests/test-avltree_list.c: Likewise.
53116         * tests/test-avltree_oset.c: Likewise.
53117         * tests/test-avltreehash_list.c: Likewise.
53118         * tests/test-base64.c: Likewise.
53119         * tests/test-binary-io.c: Likewise.
53120         * tests/test-bitrotate.c: Likewise.
53121         * tests/test-btowc.c: Likewise.
53122         * tests/test-byteswap.c: Likewise.
53123         * tests/test-c-ctype.c: Likewise.
53124         * tests/test-c-stack.c: Likewise.
53125         * tests/test-c-strcasecmp.c: Likewise.
53126         * tests/test-c-strcasestr.c: Likewise.
53127         * tests/test-c-strncasecmp.c: Likewise.
53128         * tests/test-c-strstr.c: Likewise.
53129         * tests/test-canonicalize-lgpl.c: Likewise.
53130         * tests/test-canonicalize.c: Likewise.
53131         * tests/test-carray_list.c: Likewise.
53132         * tests/test-ceilf1.c: Likewise.
53133         * tests/test-ceilf2.c: Likewise.
53134         * tests/test-ceill.c: Likewise.
53135         * tests/test-chown.c: Likewise.
53136         * tests/test-cloexec.c: Likewise.
53137         * tests/test-copy-acl.c: Likewise.
53138         * tests/test-copy-file.c: Likewise.
53139         * tests/test-count-one-bits.c: Likewise.
53140         * tests/test-dprintf-posix.c: Likewise.
53141         * tests/test-dup2.c: Likewise.
53142         * tests/test-dup3.c: Likewise.
53143         * tests/test-duplocale.c: Likewise.
53144         * tests/test-fbufmode.c: Likewise.
53145         * tests/test-fchdir.c: Likewise.
53146         * tests/test-fchownat.c: Likewise.
53147         * tests/test-fcntl-safer.c: Likewise.
53148         * tests/test-fcntl.c: Likewise.
53149         * tests/test-fdopendir.c: Likewise.
53150         * tests/test-fdutimensat.c: Likewise.
53151         * tests/test-fflush2.c: Likewise.
53152         * tests/test-file-has-acl.c: Likewise.
53153         * tests/test-filevercmp.c: Likewise.
53154         * tests/test-flock.c: Likewise.
53155         * tests/test-floorf1.c: Likewise.
53156         * tests/test-floorf2.c: Likewise.
53157         * tests/test-floorl.c: Likewise.
53158         * tests/test-fnmatch.c: Likewise.
53159         * tests/test-fopen.h: Likewise.
53160         * tests/test-fpending.c: Likewise.
53161         * tests/test-fprintf-posix.c: Likewise.
53162         * tests/test-fpurge.c: Likewise.
53163         * tests/test-freadable.c: Likewise.
53164         * tests/test-freadahead.c: Likewise.
53165         * tests/test-freading.c: Likewise.
53166         * tests/test-freadptr.c: Likewise.
53167         * tests/test-freadptr2.c: Likewise.
53168         * tests/test-freadseek.c: Likewise.
53169         * tests/test-freopen.c: Likewise.
53170         * tests/test-frexp.c: Likewise.
53171         * tests/test-frexpl.c: Likewise.
53172         * tests/test-fseek.c: Likewise.
53173         * tests/test-fseeko.c: Likewise.
53174         * tests/test-fstatat.c: Likewise.
53175         * tests/test-fstrcmp.c: Likewise.
53176         * tests/test-fsync.c: Likewise.
53177         * tests/test-ftell.c: Likewise.
53178         * tests/test-ftello.c: Likewise.
53179         * tests/test-func.c: Likewise.
53180         * tests/test-futimens.c: Likewise.
53181         * tests/test-fwritable.c: Likewise.
53182         * tests/test-fwriting.c: Likewise.
53183         * tests/test-getcwd.c: Likewise.
53184         * tests/test-getdate.c: Likewise.
53185         * tests/test-getdelim.c: Likewise.
53186         * tests/test-getdtablesize.c: Likewise.
53187         * tests/test-getgroups.c: Likewise.
53188         * tests/test-getline.c: Likewise.
53189         * tests/test-getndelim2.c: Likewise.
53190         * tests/test-glob.c: Likewise.
53191         * tests/test-hash.c: Likewise.
53192         * tests/test-i-ring.c: Likewise.
53193         * tests/test-iconv-utf.c: Likewise.
53194         * tests/test-iconv.c: Likewise.
53195         * tests/test-idpriv-drop.c: Likewise.
53196         * tests/test-idpriv-droptemp.c: Likewise.
53197         * tests/test-inet_ntop.c: Likewise.
53198         * tests/test-inet_pton.c: Likewise.
53199         * tests/test-isblank.c: Likewise.
53200         * tests/test-isfinite.c: Likewise.
53201         * tests/test-isinf.c: Likewise.
53202         * tests/test-isnan.c: Likewise.
53203         * tests/test-isnand.h: Likewise.
53204         * tests/test-isnanf.h: Likewise.
53205         * tests/test-isnanl.h: Likewise.
53206         * tests/test-lchown.c: Likewise.
53207         * tests/test-ldexpl.c: Likewise.
53208         * tests/test-link.c: Likewise.
53209         * tests/test-linkat.c: Likewise.
53210         * tests/test-linked_list.c: Likewise.
53211         * tests/test-linkedhash_list.c: Likewise.
53212         * tests/test-localename.c: Likewise.
53213         * tests/test-lseek.c: Likewise.
53214         * tests/test-lstat.c: Likewise.
53215         * tests/test-mbmemcasecmp.c: Likewise.
53216         * tests/test-mbmemcasecoll.c: Likewise.
53217         * tests/test-mbrtowc.c: Likewise.
53218         * tests/test-mbscasecmp.c: Likewise.
53219         * tests/test-mbscasestr1.c: Likewise.
53220         * tests/test-mbscasestr2.c: Likewise.
53221         * tests/test-mbscasestr3.c: Likewise.
53222         * tests/test-mbscasestr4.c: Likewise.
53223         * tests/test-mbschr.c: Likewise.
53224         * tests/test-mbscspn.c: Likewise.
53225         * tests/test-mbsinit.c: Likewise.
53226         * tests/test-mbsncasecmp.c: Likewise.
53227         * tests/test-mbsnrtowcs.c: Likewise.
53228         * tests/test-mbspbrk.c: Likewise.
53229         * tests/test-mbspcasecmp.c: Likewise.
53230         * tests/test-mbsrchr.c: Likewise.
53231         * tests/test-mbsrtowcs.c: Likewise.
53232         * tests/test-mbsspn.c: Likewise.
53233         * tests/test-mbsstr1.c: Likewise.
53234         * tests/test-mbsstr2.c: Likewise.
53235         * tests/test-mbsstr3.c: Likewise.
53236         * tests/test-memchr.c: Likewise.
53237         * tests/test-memchr2.c: Likewise.
53238         * tests/test-memcmp.c: Likewise.
53239         * tests/test-memmem.c: Likewise.
53240         * tests/test-memrchr.c: Likewise.
53241         * tests/test-mkdir.c: Likewise.
53242         * tests/test-mkdirat.c: Likewise.
53243         * tests/test-mkfifo.c: Likewise.
53244         * tests/test-mkfifoat.c: Likewise.
53245         * tests/test-mknod.c: Likewise.
53246         * tests/test-nanosleep.c: Likewise.
53247         * tests/test-nl_langinfo.c: Likewise.
53248         * tests/test-obstack-printf.c: Likewise.
53249         * tests/test-open.c: Likewise.
53250         * tests/test-openat.c: Likewise.
53251         * tests/test-pipe-filter-gi1.c: Likewise.
53252         * tests/test-pipe-filter-gi2-main.c: Likewise.
53253         * tests/test-pipe-filter-ii1.c: Likewise.
53254         * tests/test-pipe-filter-ii2-main.c: Likewise.
53255         * tests/test-pipe2.c: Likewise.
53256         * tests/test-popen.h: Likewise.
53257         * tests/test-posixtm.c: Likewise.
53258         * tests/test-pread.c: Likewise.
53259         * tests/test-printf-frexp.c: Likewise.
53260         * tests/test-printf-frexpl.c: Likewise.
53261         * tests/test-printf-posix.c: Likewise.
53262         * tests/test-priv-set.c: Likewise.
53263         * tests/test-quotearg.c: Likewise.
53264         * tests/test-random_r.c: Likewise.
53265         * tests/test-rawmemchr.c: Likewise.
53266         * tests/test-rbtree_list.c: Likewise.
53267         * tests/test-rbtree_oset.c: Likewise.
53268         * tests/test-rbtreehash_list.c: Likewise.
53269         * tests/test-readlink.c: Likewise.
53270         * tests/test-remove.c: Likewise.
53271         * tests/test-rename.c: Likewise.
53272         * tests/test-renameat.c: Likewise.
53273         * tests/test-rmdir.c: Likewise.
53274         * tests/test-round1.c: Likewise.
53275         * tests/test-roundf1.c: Likewise.
53276         * tests/test-roundl.c: Likewise.
53277         * tests/test-safe-alloc.c: Likewise.
53278         * tests/test-sameacls.c: Likewise.
53279         * tests/test-set-mode-acl.c: Likewise.
53280         * tests/test-setenv.c: Likewise.
53281         * tests/test-sigaction.c: Likewise.
53282         * tests/test-signbit.c: Likewise.
53283         * tests/test-sleep.c: Likewise.
53284         * tests/test-snprintf-posix.c: Likewise.
53285         * tests/test-snprintf.c: Likewise.
53286         * tests/test-sprintf-posix.c: Likewise.
53287         * tests/test-stat-time.c: Likewise.
53288         * tests/test-stat.c: Likewise.
53289         * tests/test-strcasestr.c: Likewise.
53290         * tests/test-strchrnul.c: Likewise.
53291         * tests/test-strerror.c: Likewise.
53292         * tests/test-striconv.c: Likewise.
53293         * tests/test-striconveh.c: Likewise.
53294         * tests/test-striconveha.c: Likewise.
53295         * tests/test-strsignal.c: Likewise.
53296         * tests/test-strstr.c: Likewise.
53297         * tests/test-strtod.c: Likewise.
53298         * tests/test-strverscmp.c: Likewise.
53299         * tests/test-symlink.c: Likewise.
53300         * tests/test-symlinkat.c: Likewise.
53301         * tests/test-trunc1.c: Likewise.
53302         * tests/test-trunc2.c: Likewise.
53303         * tests/test-truncf1.c: Likewise.
53304         * tests/test-truncf2.c: Likewise.
53305         * tests/test-truncl.c: Likewise.
53306         * tests/test-uname.c: Likewise.
53307         * tests/test-unlink.c: Likewise.
53308         * tests/test-unlinkat.c: Likewise.
53309         * tests/test-unsetenv.c: Likewise.
53310         * tests/test-usleep.c: Likewise.
53311         * tests/test-utimens.c: Likewise.
53312         * tests/test-utimensat.c: Likewise.
53313         * tests/test-vasnprintf-posix.c: Likewise.
53314         * tests/test-vasnprintf-posix2.c: Likewise.
53315         * tests/test-vasnprintf.c: Likewise.
53316         * tests/test-vasprintf-posix.c: Likewise.
53317         * tests/test-vasprintf.c: Likewise.
53318         * tests/test-vdprintf-posix.c: Likewise.
53319         * tests/test-vfprintf-posix.c: Likewise.
53320         * tests/test-vprintf-posix.c: Likewise.
53321         * tests/test-vsnprintf-posix.c: Likewise.
53322         * tests/test-vsnprintf.c: Likewise.
53323         * tests/test-vsprintf-posix.c: Likewise.
53324         * tests/test-wcrtomb.c: Likewise.
53325         * tests/test-wcsnrtombs.c: Likewise.
53326         * tests/test-wcsrtombs.c: Likewise.
53327         * tests/test-wctype.c: Likewise.
53328         * tests/test-wcwidth.c: Likewise.
53329         * tests/test-xfprintf-posix.c: Likewise.
53330         * tests/test-xmemdup0.c: Likewise.
53331         * tests/test-xprintf-posix.c: Likewise.
53332         * tests/test-xvasprintf.c: Likewise.
53333         * tests/unicase/test-locale-language.c: Likewise.
53334         * tests/unicase/test-mapping-part1.h: Likewise.
53335         * tests/unicase/test-predicate-part1.h: Likewise.
53336         * tests/unicase/test-u8-casecmp.c: Likewise.
53337         * tests/unicase/test-u8-casecoll.c: Likewise.
53338         * tests/unicase/test-u8-casefold.c: Likewise.
53339         * tests/unicase/test-u8-is-cased.c: Likewise.
53340         * tests/unicase/test-u8-is-casefolded.c: Likewise.
53341         * tests/unicase/test-u8-is-lowercase.c: Likewise.
53342         * tests/unicase/test-u8-is-titlecase.c: Likewise.
53343         * tests/unicase/test-u8-is-uppercase.c: Likewise.
53344         * tests/unicase/test-u8-tolower.c: Likewise.
53345         * tests/unicase/test-u8-totitle.c: Likewise.
53346         * tests/unicase/test-u8-toupper.c: Likewise.
53347         * tests/unicase/test-u16-casecmp.c: Likewise.
53348         * tests/unicase/test-u16-casecoll.c: Likewise.
53349         * tests/unicase/test-u16-casefold.c: Likewise.
53350         * tests/unicase/test-u16-is-cased.c: Likewise.
53351         * tests/unicase/test-u16-is-casefolded.c: Likewise.
53352         * tests/unicase/test-u16-is-lowercase.c: Likewise.
53353         * tests/unicase/test-u16-is-titlecase.c: Likewise.
53354         * tests/unicase/test-u16-is-uppercase.c: Likewise.
53355         * tests/unicase/test-u16-tolower.c: Likewise.
53356         * tests/unicase/test-u16-totitle.c: Likewise.
53357         * tests/unicase/test-u16-toupper.c: Likewise.
53358         * tests/unicase/test-u32-casecmp.c: Likewise.
53359         * tests/unicase/test-u32-casecoll.c: Likewise.
53360         * tests/unicase/test-u32-casefold.c: Likewise.
53361         * tests/unicase/test-u32-is-cased.c: Likewise.
53362         * tests/unicase/test-u32-is-casefolded.c: Likewise.
53363         * tests/unicase/test-u32-is-lowercase.c: Likewise.
53364         * tests/unicase/test-u32-is-titlecase.c: Likewise.
53365         * tests/unicase/test-u32-is-uppercase.c: Likewise.
53366         * tests/unicase/test-u32-tolower.c: Likewise.
53367         * tests/unicase/test-u32-totitle.c: Likewise.
53368         * tests/unicase/test-u32-toupper.c: Likewise.
53369         * tests/unicase/test-ulc-casecmp.c: Likewise.
53370         * tests/unicase/test-ulc-casecoll.c: Likewise.
53371         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53372         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53373         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53374         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53375         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53376         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53377         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53378         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53379         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53380         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53381         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53382         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53383         * tests/unictype/test-bidi_byname.c: Likewise.
53384         * tests/unictype/test-bidi_name.c: Likewise.
53385         * tests/unictype/test-bidi_of.c: Likewise.
53386         * tests/unictype/test-bidi_test.c: Likewise.
53387         * tests/unictype/test-block_list.c: Likewise.
53388         * tests/unictype/test-block_of.c: Likewise.
53389         * tests/unictype/test-block_test.c: Likewise.
53390         * tests/unictype/test-categ_and.c: Likewise.
53391         * tests/unictype/test-categ_and_not.c: Likewise.
53392         * tests/unictype/test-categ_byname.c: Likewise.
53393         * tests/unictype/test-categ_name.c: Likewise.
53394         * tests/unictype/test-categ_none.c: Likewise.
53395         * tests/unictype/test-categ_of.c: Likewise.
53396         * tests/unictype/test-categ_or.c: Likewise.
53397         * tests/unictype/test-categ_test_withtable.c: Likewise.
53398         * tests/unictype/test-combining.c: Likewise.
53399         * tests/unictype/test-decdigit.c: Likewise.
53400         * tests/unictype/test-digit.c: Likewise.
53401         * tests/unictype/test-mirror.c: Likewise.
53402         * tests/unictype/test-numeric.c: Likewise.
53403         * tests/unictype/test-pr_byname.c: Likewise.
53404         * tests/unictype/test-pr_test.c: Likewise.
53405         * tests/unictype/test-predicate-part1.h: Likewise.
53406         * tests/unictype/test-scripts.c: Likewise.
53407         * tests/unictype/test-sy_c_ident.c: Likewise.
53408         * tests/unictype/test-sy_java_ident.c: Likewise.
53409         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
53410         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
53411         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
53412         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
53413         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
53414         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
53415         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
53416         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
53417         * tests/uninorm/test-canonical-decomposition.c: Likewise.
53418         * tests/uninorm/test-compat-decomposition.c: Likewise.
53419         * tests/uninorm/test-composition.c: Likewise.
53420         * tests/uninorm/test-decomposing-form.c: Likewise.
53421         * tests/uninorm/test-decomposition.c: Likewise.
53422         * tests/uninorm/test-u8-nfc.c: Likewise.
53423         * tests/uninorm/test-u8-nfd.c: Likewise.
53424         * tests/uninorm/test-u8-nfkc.c: Likewise.
53425         * tests/uninorm/test-u8-nfkd.c: Likewise.
53426         * tests/uninorm/test-u8-normcmp.c: Likewise.
53427         * tests/uninorm/test-u8-normcoll.c: Likewise.
53428         * tests/uninorm/test-u16-nfc.c: Likewise.
53429         * tests/uninorm/test-u16-nfd.c: Likewise.
53430         * tests/uninorm/test-u16-nfkc.c: Likewise.
53431         * tests/uninorm/test-u16-nfkd.c: Likewise.
53432         * tests/uninorm/test-u16-normcmp.c: Likewise.
53433         * tests/uninorm/test-u16-normcoll.c: Likewise.
53434         * tests/uninorm/test-u32-nfc.c: Likewise.
53435         * tests/uninorm/test-u32-nfd.c: Likewise.
53436         * tests/uninorm/test-u32-nfkc.c: Likewise.
53437         * tests/uninorm/test-u32-nfkd.c: Likewise.
53438         * tests/uninorm/test-u32-normalize-big.c: Likewise.
53439         * tests/uninorm/test-u32-normcmp.c: Likewise.
53440         * tests/uninorm/test-u32-normcoll.c: Likewise.
53441         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
53442         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53443         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53444         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53445         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53446         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53447         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53448         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53449         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53450         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53451         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53452         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53453         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53454         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53455         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53456         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53457         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53458         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53459         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53460         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53461         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53462         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53463         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53464         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53465         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53466         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53467         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53468         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53469         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53470         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
53471         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
53472         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
53473         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
53474         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53475         * tests/uniwidth/test-u8-width.c: Likewise.
53476         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53477         * tests/uniwidth/test-u16-width.c: Likewise.
53478         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53479         * tests/uniwidth/test-u32-width.c: Likewise.
53480         * tests/uniwidth/test-uc_width.c: Likewise.
53481         * tests/uniwidth/test-uc_width2.c: Likewise.
53482         * modules/acl-tests (Files): Add tests/macros.h.
53483         * modules/areadlink-tests (Files): Likewise.
53484         * modules/areadlink-with-size-tests (Files): Likewise.
53485         * modules/areadlinkat-tests (Files): Likewise.
53486         * modules/areadlinkat-with-size-tests (Files): Likewise.
53487         * modules/argmatch-tests (Files): Likewise.
53488         * modules/argv-iter-tests (Files): Likewise.
53489         * modules/array-list-tests (Files): Likewise.
53490         * modules/array-mergesort-tests (Files): Likewise.
53491         * modules/array-oset-tests (Files): Likewise.
53492         * modules/avltree-list-tests (Files): Likewise.
53493         * modules/avltree-oset-tests (Files): Likewise.
53494         * modules/avltreehash-list-tests (Files): Likewise.
53495         * modules/base64-tests (Files): Likewise.
53496         * modules/binary-io-tests (Files): Likewise.
53497         * modules/bitrotate-tests (Files): Likewise.
53498         * modules/btowc-tests (Files): Likewise.
53499         * modules/byteswap-tests (Files): Likewise.
53500         * modules/c-ctype-tests (Files): Likewise.
53501         * modules/c-stack-tests (Files): Likewise.
53502         * modules/c-strcase-tests (Files): Likewise.
53503         * modules/c-strcasestr-tests (Files): Likewise.
53504         * modules/c-strstr-tests (Files): Likewise.
53505         * modules/canonicalize-lgpl-tests (Files): Likewise.
53506         * modules/canonicalize-tests (Files): Likewise.
53507         * modules/carray-list-tests (Files): Likewise.
53508         * modules/ceilf-tests (Files): Likewise.
53509         * modules/ceill-tests (Files): Likewise.
53510         * modules/chown-tests (Files): Likewise.
53511         * modules/cloexec-tests (Files): Likewise.
53512         * modules/copy-file-tests (Files): Likewise.
53513         * modules/count-one-bits-tests (Files): Likewise.
53514         * modules/dprintf-posix-tests (Files): Likewise.
53515         * modules/dup2-tests (Files): Likewise.
53516         * modules/dup3-tests (Files): Likewise.
53517         * modules/duplocale-tests (Files): Likewise.
53518         * modules/fbufmode-tests (Files): Likewise.
53519         * modules/fchdir-tests (Files): Likewise.
53520         * modules/fcntl-safer-tests (Files): Likewise.
53521         * modules/fcntl-tests (Files): Likewise.
53522         * modules/fdopendir-tests (Files): Likewise.
53523         * modules/fdutimensat-tests (Files): Likewise.
53524         * modules/fflush-tests (Files): Likewise.
53525         * modules/filevercmp-tests (Files): Likewise.
53526         * modules/flock-tests (Files): Likewise.
53527         * modules/floorf-tests (Files): Likewise.
53528         * modules/floorl-tests (Files): Likewise.
53529         * modules/fnmatch-tests (Files): Likewise.
53530         * modules/fopen-safer-tests (Files): Likewise.
53531         * modules/fopen-tests (Files): Likewise.
53532         * modules/fpending-tests (Files): Likewise.
53533         * modules/fprintf-posix-tests (Files): Likewise.
53534         * modules/fpurge-tests (Files): Likewise.
53535         * modules/freadable-tests (Files): Likewise.
53536         * modules/freadahead-tests (Files): Likewise.
53537         * modules/freading-tests (Files): Likewise.
53538         * modules/freadptr-tests (Files): Likewise.
53539         * modules/freadseek-tests (Files): Likewise.
53540         * modules/freopen-tests (Files): Likewise.
53541         * modules/frexp-nolibm-tests (Files): Likewise.
53542         * modules/frexp-tests (Files): Likewise.
53543         * modules/frexpl-nolibm-tests (Files): Likewise.
53544         * modules/frexpl-tests (Files): Likewise.
53545         * modules/fseek-tests (Files): Likewise.
53546         * modules/fseeko-tests (Files): Likewise.
53547         * modules/fstrcmp-tests (Files): Likewise.
53548         * modules/fsync-tests (Files): Likewise.
53549         * modules/ftell-tests (Files): Likewise.
53550         * modules/ftello-tests (Files): Likewise.
53551         * modules/func-tests (Files): Likewise.
53552         * modules/futimens-tests (Files): Likewise.
53553         * modules/fwritable-tests (Files): Likewise.
53554         * modules/fwriting-tests (Files): Likewise.
53555         * modules/getcwd-tests (Files): Likewise.
53556         * modules/getdate-tests (Files): Likewise.
53557         * modules/getdelim-tests (Files): Likewise.
53558         * modules/getdtablesize-tests (Files): Likewise.
53559         * modules/getgroups-tests (Files): Likewise.
53560         * modules/getline-tests (Files): Likewise.
53561         * modules/getndelim2-tests (Files): Likewise.
53562         * modules/glob-tests (Files): Likewise.
53563         * modules/hash-tests (Files): Likewise.
53564         * modules/i-ring-tests (Files): Likewise.
53565         * modules/iconv-tests (Files): Likewise.
53566         * modules/iconv_open-utf-tests (Files): Likewise.
53567         * modules/idpriv-drop-tests (Files): Likewise.
53568         * modules/idpriv-droptemp-tests (Files): Likewise.
53569         * modules/inet_ntop-tests (Files): Likewise.
53570         * modules/inet_pton-tests (Files): Likewise.
53571         * modules/isblank-tests (Files): Likewise.
53572         * modules/isfinite-tests (Files): Likewise.
53573         * modules/isinf-tests (Files): Likewise.
53574         * modules/isnan-tests (Files): Likewise.
53575         * modules/isnand-nolibm-tests (Files): Likewise.
53576         * modules/isnand-tests (Files): Likewise.
53577         * modules/isnanf-nolibm-tests (Files): Likewise.
53578         * modules/isnanf-tests (Files): Likewise.
53579         * modules/isnanl-nolibm-tests (Files): Likewise.
53580         * modules/isnanl-tests (Files): Likewise.
53581         * modules/lchown-tests (Files): Likewise.
53582         * modules/ldexpl-tests (Files): Likewise.
53583         * modules/link-tests (Files): Likewise.
53584         * modules/linkat-tests (Files): Likewise.
53585         * modules/linked-list-tests (Files): Likewise.
53586         * modules/linkedhash-list-tests (Files): Likewise.
53587         * modules/localename-tests (Files): Likewise.
53588         * modules/lseek-tests (Files): Likewise.
53589         * modules/lstat-tests (Files): Likewise.
53590         * modules/mbmemcasecmp-tests (Files): Likewise.
53591         * modules/mbmemcasecoll-tests (Files): Likewise.
53592         * modules/mbrtowc-tests (Files): Likewise.
53593         * modules/mbscasecmp-tests (Files): Likewise.
53594         * modules/mbscasestr-tests (Files): Likewise.
53595         * modules/mbschr-tests (Files): Likewise.
53596         * modules/mbscspn-tests (Files): Likewise.
53597         * modules/mbsinit-tests (Files): Likewise.
53598         * modules/mbsncasecmp-tests (Files): Likewise.
53599         * modules/mbsnrtowcs-tests (Files): Likewise.
53600         * modules/mbspbrk-tests (Files): Likewise.
53601         * modules/mbspcasecmp-tests (Files): Likewise.
53602         * modules/mbsrchr-tests (Files): Likewise.
53603         * modules/mbsrtowcs-tests (Files): Likewise.
53604         * modules/mbsspn-tests (Files): Likewise.
53605         * modules/mbsstr-tests (Files): Likewise.
53606         * modules/memchr-tests (Files): Likewise.
53607         * modules/memchr2-tests (Files): Likewise.
53608         * modules/memcmp-tests (Files): Likewise.
53609         * modules/memmem-tests (Files): Likewise.
53610         * modules/memrchr-tests (Files): Likewise.
53611         * modules/mkdir-tests (Files): Likewise.
53612         * modules/mkfifo-tests (Files): Likewise.
53613         * modules/mkfifoat-tests (Files): Likewise.
53614         * modules/mknod-tests (Files): Likewise.
53615         * modules/nanosleep-tests (Files): Likewise.
53616         * modules/nl_langinfo-tests (Files): Likewise.
53617         * modules/obstack-printf-tests (Files): Likewise.
53618         * modules/open-tests (Files): Likewise.
53619         * modules/openat-tests (Files): Likewise.
53620         * modules/pipe-filter-gi-tests (Files): Likewise.
53621         * modules/pipe-filter-ii-tests (Files): Likewise.
53622         * modules/pipe2-tests (Files): Likewise.
53623         * modules/popen-safer-tests (Files): Likewise.
53624         * modules/popen-tests (Files): Likewise.
53625         * modules/posixtm-tests (Files): Likewise.
53626         * modules/pread-tests (Files): Likewise.
53627         * modules/printf-frexp-tests (Files): Likewise.
53628         * modules/printf-frexpl-tests (Files): Likewise.
53629         * modules/printf-posix-tests (Files): Likewise.
53630         * modules/priv-set-tests (Files): Likewise.
53631         * modules/quotearg-tests (Files): Likewise.
53632         * modules/random_r-tests (Files): Likewise.
53633         * modules/rawmemchr-tests (Files): Likewise.
53634         * modules/rbtree-list-tests (Files): Likewise.
53635         * modules/rbtree-oset-tests (Files): Likewise.
53636         * modules/rbtreehash-list-tests (Files): Likewise.
53637         * modules/readlink-tests (Files): Likewise.
53638         * modules/remove-tests (Files): Likewise.
53639         * modules/rename-tests (Files): Likewise.
53640         * modules/renameat-tests (Files): Likewise.
53641         * modules/rmdir-tests (Files): Likewise.
53642         * modules/round-tests (Files): Likewise.
53643         * modules/roundf-tests (Files): Likewise.
53644         * modules/roundl-tests (Files): Likewise.
53645         * modules/safe-alloc-tests (Files): Likewise.
53646         * modules/setenv-tests (Files): Likewise.
53647         * modules/sigaction-tests (Files): Likewise.
53648         * modules/signbit-tests (Files): Likewise.
53649         * modules/sleep-tests (Files): Likewise.
53650         * modules/snprintf-posix-tests (Files): Likewise.
53651         * modules/snprintf-tests (Files): Likewise.
53652         * modules/sprintf-posix-tests (Files): Likewise.
53653         * modules/stat-tests (Files): Likewise.
53654         * modules/stat-time-tests (Files): Likewise.
53655         * modules/strcasestr-tests (Files): Likewise.
53656         * modules/strchrnul-tests (Files): Likewise.
53657         * modules/strerror-tests (Files): Likewise.
53658         * modules/striconv-tests (Files): Likewise.
53659         * modules/striconveh-tests (Files): Likewise.
53660         * modules/striconveha-tests (Files): Likewise.
53661         * modules/strsignal-tests (Files): Likewise.
53662         * modules/strstr-tests (Files): Likewise.
53663         * modules/strtod-tests (Files): Likewise.
53664         * modules/strverscmp-tests (Files): Likewise.
53665         * modules/symlink-tests (Files): Likewise.
53666         * modules/symlinkat-tests (Files): Likewise.
53667         * modules/trunc-tests (Files): Likewise.
53668         * modules/truncf-tests (Files): Likewise.
53669         * modules/truncl-tests (Files): Likewise.
53670         * modules/uname-tests (Files): Likewise.
53671         * modules/unicase/cased-tests (Files): Likewise.
53672         * modules/unicase/ignorable-tests (Files): Likewise.
53673         * modules/unicase/locale-language-tests (Files): Likewise.
53674         * modules/unicase/tolower-tests (Files): Likewise.
53675         * modules/unicase/totitle-tests (Files): Likewise.
53676         * modules/unicase/toupper-tests (Files): Likewise.
53677         * modules/unicase/u8-casecmp-tests (Files): Likewise.
53678         * modules/unicase/u8-casecoll-tests (Files): Likewise.
53679         * modules/unicase/u8-casefold-tests (Files): Likewise.
53680         * modules/unicase/u8-is-cased-tests (Files): Likewise.
53681         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
53682         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
53683         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
53684         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
53685         * modules/unicase/u8-tolower-tests (Files): Likewise.
53686         * modules/unicase/u8-totitle-tests (Files): Likewise.
53687         * modules/unicase/u8-toupper-tests (Files): Likewise.
53688         * modules/unicase/u16-casecmp-tests (Files): Likewise.
53689         * modules/unicase/u16-casecoll-tests (Files): Likewise.
53690         * modules/unicase/u16-casefold-tests (Files): Likewise.
53691         * modules/unicase/u16-is-cased-tests (Files): Likewise.
53692         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
53693         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
53694         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
53695         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
53696         * modules/unicase/u16-tolower-tests (Files): Likewise.
53697         * modules/unicase/u16-totitle-tests (Files): Likewise.
53698         * modules/unicase/u16-toupper-tests (Files): Likewise.
53699         * modules/unicase/u32-casecmp-tests (Files): Likewise.
53700         * modules/unicase/u32-casecoll-tests (Files): Likewise.
53701         * modules/unicase/u32-casefold-tests (Files): Likewise.
53702         * modules/unicase/u32-is-cased-tests (Files): Likewise.
53703         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
53704         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
53705         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
53706         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
53707         * modules/unicase/u32-tolower-tests (Files): Likewise.
53708         * modules/unicase/u32-totitle-tests (Files): Likewise.
53709         * modules/unicase/u32-toupper-tests (Files): Likewise.
53710         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
53711         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
53712         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
53713         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
53714         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
53715         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
53716         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
53717         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
53718         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
53719         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
53720         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
53721         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
53722         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
53723         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
53724         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
53725         * modules/unictype/bidicategory-name-tests (Files): Likewise.
53726         * modules/unictype/bidicategory-of-tests (Files): Likewise.
53727         * modules/unictype/bidicategory-test-tests (Files): Likewise.
53728         * modules/unictype/block-list-tests (Files): Likewise.
53729         * modules/unictype/block-of-tests (Files): Likewise.
53730         * modules/unictype/block-test-tests (Files): Likewise.
53731         * modules/unictype/category-C-tests (Files): Likewise.
53732         * modules/unictype/category-Cc-tests (Files): Likewise.
53733         * modules/unictype/category-Cf-tests (Files): Likewise.
53734         * modules/unictype/category-Cn-tests (Files): Likewise.
53735         * modules/unictype/category-Co-tests (Files): Likewise.
53736         * modules/unictype/category-Cs-tests (Files): Likewise.
53737         * modules/unictype/category-L-tests (Files): Likewise.
53738         * modules/unictype/category-Ll-tests (Files): Likewise.
53739         * modules/unictype/category-Lm-tests (Files): Likewise.
53740         * modules/unictype/category-Lo-tests (Files): Likewise.
53741         * modules/unictype/category-Lt-tests (Files): Likewise.
53742         * modules/unictype/category-Lu-tests (Files): Likewise.
53743         * modules/unictype/category-M-tests (Files): Likewise.
53744         * modules/unictype/category-Mc-tests (Files): Likewise.
53745         * modules/unictype/category-Me-tests (Files): Likewise.
53746         * modules/unictype/category-Mn-tests (Files): Likewise.
53747         * modules/unictype/category-N-tests (Files): Likewise.
53748         * modules/unictype/category-Nd-tests (Files): Likewise.
53749         * modules/unictype/category-Nl-tests (Files): Likewise.
53750         * modules/unictype/category-No-tests (Files): Likewise.
53751         * modules/unictype/category-P-tests (Files): Likewise.
53752         * modules/unictype/category-Pc-tests (Files): Likewise.
53753         * modules/unictype/category-Pd-tests (Files): Likewise.
53754         * modules/unictype/category-Pe-tests (Files): Likewise.
53755         * modules/unictype/category-Pf-tests (Files): Likewise.
53756         * modules/unictype/category-Pi-tests (Files): Likewise.
53757         * modules/unictype/category-Po-tests (Files): Likewise.
53758         * modules/unictype/category-Ps-tests (Files): Likewise.
53759         * modules/unictype/category-S-tests (Files): Likewise.
53760         * modules/unictype/category-Sc-tests (Files): Likewise.
53761         * modules/unictype/category-Sk-tests (Files): Likewise.
53762         * modules/unictype/category-Sm-tests (Files): Likewise.
53763         * modules/unictype/category-So-tests (Files): Likewise.
53764         * modules/unictype/category-Z-tests (Files): Likewise.
53765         * modules/unictype/category-Zl-tests (Files): Likewise.
53766         * modules/unictype/category-Zp-tests (Files): Likewise.
53767         * modules/unictype/category-Zs-tests (Files): Likewise.
53768         * modules/unictype/category-and-not-tests (Files): Likewise.
53769         * modules/unictype/category-and-tests (Files): Likewise.
53770         * modules/unictype/category-byname-tests (Files): Likewise.
53771         * modules/unictype/category-name-tests (Files): Likewise.
53772         * modules/unictype/category-none-tests (Files): Likewise.
53773         * modules/unictype/category-of-tests (Files): Likewise.
53774         * modules/unictype/category-or-tests (Files): Likewise.
53775         * modules/unictype/category-test-withtable-tests (Files): Likewise.
53776         * modules/unictype/combining-class-tests (Files): Likewise.
53777         * modules/unictype/ctype-alnum-tests (Files): Likewise.
53778         * modules/unictype/ctype-alpha-tests (Files): Likewise.
53779         * modules/unictype/ctype-blank-tests (Files): Likewise.
53780         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
53781         * modules/unictype/ctype-digit-tests (Files): Likewise.
53782         * modules/unictype/ctype-graph-tests (Files): Likewise.
53783         * modules/unictype/ctype-lower-tests (Files): Likewise.
53784         * modules/unictype/ctype-print-tests (Files): Likewise.
53785         * modules/unictype/ctype-punct-tests (Files): Likewise.
53786         * modules/unictype/ctype-space-tests (Files): Likewise.
53787         * modules/unictype/ctype-upper-tests (Files): Likewise.
53788         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
53789         * modules/unictype/decimal-digit-tests (Files): Likewise.
53790         * modules/unictype/digit-tests (Files): Likewise.
53791         * modules/unictype/mirror-tests (Files): Likewise.
53792         * modules/unictype/numeric-tests (Files): Likewise.
53793         * modules/unictype/property-alphabetic-tests (Files): Likewise.
53794         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
53795         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
53796         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
53797         Likewise.
53798         * modules/unictype/property-bidi-block-separator-tests (Files):
53799         Likewise.
53800         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
53801         Likewise.
53802         * modules/unictype/property-bidi-common-separator-tests (Files):
53803         Likewise.
53804         * modules/unictype/property-bidi-control-tests (Files): Likewise.
53805         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
53806         Likewise.
53807         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
53808         Likewise.
53809         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
53810         Likewise.
53811         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
53812         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
53813         Likewise.
53814         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
53815         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
53816         Likewise.
53817         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
53818         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
53819         * modules/unictype/property-bidi-segment-separator-tests (Files):
53820         Likewise.
53821         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
53822         * modules/unictype/property-byname-tests (Files): Likewise.
53823         * modules/unictype/property-combining-tests (Files): Likewise.
53824         * modules/unictype/property-composite-tests (Files): Likewise.
53825         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
53826         * modules/unictype/property-dash-tests (Files): Likewise.
53827         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
53828         * modules/unictype/property-default-ignorable-code-point-tests (Files):
53829         Likewise.
53830         * modules/unictype/property-deprecated-tests (Files): Likewise.
53831         * modules/unictype/property-diacritic-tests (Files): Likewise.
53832         * modules/unictype/property-extender-tests (Files): Likewise.
53833         * modules/unictype/property-format-control-tests (Files): Likewise.
53834         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
53835         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
53836         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
53837         * modules/unictype/property-hex-digit-tests (Files): Likewise.
53838         * modules/unictype/property-hyphen-tests (Files): Likewise.
53839         * modules/unictype/property-id-continue-tests (Files): Likewise.
53840         * modules/unictype/property-id-start-tests (Files): Likewise.
53841         * modules/unictype/property-ideographic-tests (Files): Likewise.
53842         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
53843         * modules/unictype/property-ids-trinary-operator-tests (Files):
53844         Likewise.
53845         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
53846         * modules/unictype/property-iso-control-tests (Files): Likewise.
53847         * modules/unictype/property-join-control-tests (Files): Likewise.
53848         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
53849         * modules/unictype/property-line-separator-tests (Files): Likewise.
53850         * modules/unictype/property-logical-order-exception-tests (Files):
53851         Likewise.
53852         * modules/unictype/property-lowercase-tests (Files): Likewise.
53853         * modules/unictype/property-math-tests (Files): Likewise.
53854         * modules/unictype/property-non-break-tests (Files): Likewise.
53855         * modules/unictype/property-not-a-character-tests (Files): Likewise.
53856         * modules/unictype/property-numeric-tests (Files): Likewise.
53857         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
53858         * modules/unictype/property-other-default-ignorable-code-point-tests
53859         (Files): Likewise.
53860         * modules/unictype/property-other-grapheme-extend-tests (Files):
53861         Likewise.
53862         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
53863         * modules/unictype/property-other-id-start-tests (Files): Likewise.
53864         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
53865         * modules/unictype/property-other-math-tests (Files): Likewise.
53866         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
53867         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
53868         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
53869         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
53870         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
53871         * modules/unictype/property-private-use-tests (Files): Likewise.
53872         * modules/unictype/property-punctuation-tests (Files): Likewise.
53873         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
53874         * modules/unictype/property-radical-tests (Files): Likewise.
53875         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
53876         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
53877         * modules/unictype/property-space-tests (Files): Likewise.
53878         * modules/unictype/property-terminal-punctuation-tests (Files):
53879         Likewise.
53880         * modules/unictype/property-test-tests (Files): Likewise.
53881         * modules/unictype/property-titlecase-tests (Files): Likewise.
53882         * modules/unictype/property-unassigned-code-value-tests (Files):
53883         Likewise.
53884         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
53885         * modules/unictype/property-uppercase-tests (Files): Likewise.
53886         * modules/unictype/property-variation-selector-tests (Files): Likewise.
53887         * modules/unictype/property-white-space-tests (Files): Likewise.
53888         * modules/unictype/property-xid-continue-tests (Files): Likewise.
53889         * modules/unictype/property-xid-start-tests (Files): Likewise.
53890         * modules/unictype/property-zero-width-tests (Files): Likewise.
53891         * modules/unictype/scripts-tests (Files): Likewise.
53892         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
53893         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
53894         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
53895         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
53896         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
53897         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
53898         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
53899         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
53900         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
53901         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
53902         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
53903         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
53904         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
53905         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
53906         * modules/uninorm/composition-tests (Files): Likewise.
53907         * modules/uninorm/decomposing-form-tests (Files): Likewise.
53908         * modules/uninorm/decomposition-tests (Files): Likewise.
53909         * modules/uninorm/filter-tests (Files): Likewise.
53910         * modules/uninorm/nfc-tests (Files): Likewise.
53911         * modules/uninorm/nfd-tests (Files): Likewise.
53912         * modules/uninorm/nfkc-tests (Files): Likewise.
53913         * modules/uninorm/nfkd-tests (Files): Likewise.
53914         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
53915         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
53916         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
53917         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
53918         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
53919         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
53920         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
53921         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53922         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
53923         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
53924         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
53925         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
53926         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53927         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
53928         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
53929         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
53930         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
53931         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53932         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
53933         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
53934         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
53935         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
53936         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53937         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
53938         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
53939         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
53940         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
53941         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
53942         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
53943         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
53944         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
53945         * modules/uniwidth/u8-width-tests (Files): Likewise.
53946         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
53947         * modules/uniwidth/u16-width-tests (Files): Likewise.
53948         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
53949         * modules/uniwidth/u32-width-tests (Files): Likewise.
53950         * modules/uniwidth/width-tests (Files): Likewise.
53951         * modules/unlink-tests (Files): Likewise.
53952         * modules/unsetenv-tests (Files): Likewise.
53953         * modules/usleep-tests (Files): Likewise.
53954         * modules/utimens-tests (Files): Likewise.
53955         * modules/utimensat-tests (Files): Likewise.
53956         * modules/vasnprintf-posix-tests (Files): Likewise.
53957         * modules/vasnprintf-tests (Files): Likewise.
53958         * modules/vasprintf-posix-tests (Files): Likewise.
53959         * modules/vasprintf-tests (Files): Likewise.
53960         * modules/vdprintf-posix-tests (Files): Likewise.
53961         * modules/vfprintf-posix-tests (Files): Likewise.
53962         * modules/vprintf-posix-tests (Files): Likewise.
53963         * modules/vsnprintf-posix-tests (Files): Likewise.
53964         * modules/vsnprintf-tests (Files): Likewise.
53965         * modules/vsprintf-posix-tests (Files): Likewise.
53966         * modules/wcrtomb-tests (Files): Likewise.
53967         * modules/wcsnrtombs-tests (Files): Likewise.
53968         * modules/wcsrtombs-tests (Files): Likewise.
53969         * modules/wctype-tests (Files): Likewise.
53970         * modules/wcwidth-tests (Files): Likewise.
53971         * modules/xmemdup0-tests (Files): Likewise.
53972         * modules/xprintf-posix-tests (Files): Likewise.
53973         * modules/xvasprintf-tests (Files): Likewise.
53975 2009-12-24  Eric Blake  <ebb9@byu.net>
53977         test-nanosleep: fix typo
53978         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
53979         patch.
53980         Reported by Bruno Haible.
53982 2009-12-24  Bruno Haible  <bruno@clisp.org>
53984         Reduce namespace pollution on glibc systems.
53985         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
53986         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
53987         systems.
53988         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
53989         <getopt.h> on glibc systems.
53990         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
53991         systems.
53992         * lib/fcntl.c: Include <unistd.h> here instead.
53994 2009-12-24  Bruno Haible  <bruno@clisp.org>
53996         * lib/stdlib.in.h (includes): Fix typo in today's commit.
53998 2009-12-24  Eric Blake  <ebb9@byu.net>
54000         tests: add signature checks
54001         * tests/signature.h (SIGNATURE_CHECK): New file.
54002         * modules/atexit-tests (Files): Use it.
54003         * modules/btowc-tests (Files): Likewise.
54004         * modules/canonicalize-lgpl-tests (Files): Likewise.
54005         * modules/ceilf-tests (Files): Likewise.
54006         * modules/ceill-tests (Files): Likewise.
54007         * modules/chown-tests (Files): Likewise.
54008         * modules/dprintf-posix-tests (Files): Likewise.
54009         * modules/dup2-tests (Files): Likewise.
54010         * modules/dup3-tests (Files): Likewise.
54011         * modules/duplocale-tests (Files): Likewise.
54012         * modules/fchdir-tests (Files): Likewise.
54013         * modules/fcntl-tests (Files): Likewise.
54014         * modules/fdopendir-tests (Files): Likewise.
54015         * modules/fflush-tests (Files): Likewise.
54016         * modules/flock-tests (Files): Likewise.
54017         * modules/floorf-tests (Files): Likewise.
54018         * modules/floorl-tests (Files): Likewise.
54019         * modules/fnmatch-tests (Files): Likewise.
54020         * modules/fopen-tests (Files): Likewise.
54021         * modules/fprintf-posix-tests (Files): Likewise.
54022         * modules/freopen-tests (Files): Likewise.
54023         * modules/frexp-nolibm-tests (Files): Likewise.
54024         * modules/frexp-tests (Files): Likewise.
54025         * modules/frexpl-nolibm-tests (Files): Likewise.
54026         * modules/frexpl-tests (Files): Likewise.
54027         * modules/fseek-tests (Files): Likewise.
54028         * modules/fseeko-tests (Files): Likewise.
54029         * modules/fsync-tests (Files): Likewise.
54030         * modules/ftell-tests (Files): Likewise.
54031         * modules/ftello-tests (Files): Likewise.
54032         * modules/futimens-tests (Files): Likewise.
54033         * modules/getaddrinfo-tests (Files): Likewise.
54034         * modules/getcwd-tests (Files): Likewise.
54035         * modules/getdelim-tests (Files): Likewise.
54036         * modules/getdtablesize-tests (Files): Likewise.
54037         * modules/getgroups-tests (Files): Likewise.
54038         * modules/gethostname-tests (Files): Likewise.
54039         * modules/getline-tests (Files): Likewise.
54040         * modules/getopt-posix-tests (Files): Likewise.
54041         * modules/gettimeofday-tests (Files): Likewise.
54042         * modules/glob-tests (Files): Likewise.
54043         * modules/iconv-tests (Files): Likewise.
54044         * modules/inet_ntop-tests (Files): Likewise.
54045         * modules/inet_pton-tests (Files): Likewise.
54046         * modules/isblank-tests (Files): Likewise.
54047         * modules/lchown-tests (Files): Likewise.
54048         * modules/ldexpl-tests (Files): Likewise.
54049         * modules/link-tests (Files): Likewise.
54050         * modules/linkat-tests (Files): Likewise.
54051         * modules/lseek-tests (Files): Likewise.
54052         * modules/lstat-tests (Files): Likewise.
54053         * modules/mbrtowc-tests (Files): Likewise.
54054         * modules/mbsinit-tests (Files): Likewise.
54055         * modules/mbsnrtowcs-tests (Files): Likewise.
54056         * modules/mbsrtowcs-tests (Files): Likewise.
54057         * modules/memchr-tests (Files): Likewise.
54058         * modules/memcmp-tests (Files): Likewise.
54059         * modules/memmem-tests (Files): Likewise.
54060         * modules/memrchr-tests (Files): Likewise.
54061         * modules/mkdir-tests (Files): Likewise.
54062         * modules/mkfifo-tests (Files): Likewise.
54063         * modules/mkfifoat-tests (Files): Likewise.
54064         * modules/mknod-tests (Files): Likewise.
54065         * modules/nanosleep-tests (Files): Likewise.
54066         * modules/nl_langinfo-tests (Files): Likewise.
54067         * modules/obstack-printf-tests (Files): Likewise.
54068         * modules/open-tests (Files): Likewise.
54069         * modules/openat-tests (Files): Likewise.
54070         * modules/perror-tests (Files): Likewise.
54071         * modules/pipe2-tests (Files): Likewise.
54072         * modules/poll-tests (Files): Likewise.
54073         * modules/popen-tests (Files): Likewise.
54074         * modules/posix_spawn-tests (Files): Likewise.
54075         * modules/posix_spawnp-tests (Files): Likewise.
54076         * modules/pread-tests (Files): Likewise.
54077         * modules/printf-posix-tests (Files): Likewise.
54078         * modules/pty-tests (Files): Likewise.
54079         * modules/random_r-tests (Files): Likewise.
54080         * modules/rawmemchr-tests (Files): Likewise.
54081         * modules/readlink-tests (Files): Likewise.
54082         * modules/remove-tests (Files): Likewise.
54083         * modules/rename-tests (Files): Likewise.
54084         * modules/renameat-tests (Files): Likewise.
54085         * modules/rmdir-tests (Files): Likewise.
54086         * modules/round-tests (Files): Likewise.
54087         * modules/roundf-tests (Files): Likewise.
54088         * modules/roundl-tests (Files): Likewise.
54089         * modules/select-tests (Files): Likewise.
54090         * modules/setenv-tests (Files): Likewise.
54091         * modules/sigaction-tests (Files): Likewise.
54092         * modules/sleep-tests (Files): Likewise.
54093         * modules/snprintf-posix-tests (Files): Likewise.
54094         * modules/snprintf-tests (Files): Likewise.
54095         * modules/sprintf-posix-tests (Files): Likewise.
54096         * modules/stat-tests (Files): Likewise.
54097         * modules/strcasestr-tests (Files): Likewise.
54098         * modules/strchrnul-tests (Files): Likewise.
54099         * modules/strerror-tests (Files): Likewise.
54100         * modules/strsignal-tests (Files): Likewise.
54101         * modules/strstr-tests (Files): Likewise.
54102         * modules/strtod-tests (Files): Likewise.
54103         * modules/strverscmp-tests (Files): Likewise.
54104         * modules/symlink-tests (Files): Likewise.
54105         * modules/symlinkat-tests (Files): Likewise.
54106         * modules/times-tests (Files): Likewise.
54107         * modules/trunc-tests (Files): Likewise.
54108         * modules/truncf-tests (Files): Likewise.
54109         * modules/truncl-tests (Files): Likewise.
54110         * modules/tsearch-tests (Files): Likewise.
54111         * modules/uname-tests (Files): Likewise.
54112         * modules/unlink-tests (Files): Likewise.
54113         * modules/unsetenv-tests (Files): Likewise.
54114         * modules/usleep-tests (Files): Likewise.
54115         * modules/utimensat-tests (Files): Likewise.
54116         * modules/vasprintf-tests (Files): Likewise.
54117         * modules/vdprintf-posix-tests (Files): Likewise.
54118         * modules/vfprintf-posix-tests (Files): Likewise.
54119         * modules/vprintf-posix-tests (Files): Likewise.
54120         * modules/vsnprintf-posix-tests (Files): Likewise.
54121         * modules/vsnprintf-tests (Files): Likewise.
54122         * modules/vsprintf-posix-tests (Files): Likewise.
54123         * modules/wcrtomb-tests (Files): Likewise.
54124         * modules/wcsnrtombs-tests (Files): Likewise.
54125         * modules/wcsrtombs-tests (Files): Likewise.
54126         * modules/wcwidth-tests (Files): Likewise.
54127         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
54128         * tests/test-isinf.c (isinf): Likewise.
54129         * tests/test-isnan.c (isnan): Likewise.
54130         * tests/test-signbit.c (signbit): Likewise.
54131         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
54132         declaration, either as macro or with correct signature.
54133         (select): Ensure function under test is declared with correct
54134         signature in correct header.
54135         * tests/test-atexit.c (atexit): Likewise.
54136         * tests/test-btowc.c (btowc): Likewise.
54137         * tests/test-canonicalize-lgpl.c (realpath)
54138         (canonicalize_file_name): Likewise.
54139         * tests/test-ceilf1.c (ceilf): Likewise.
54140         * tests/test-ceill.c (ceill): Likewise.
54141         * tests/test-chown.c (chown): Likewise.
54142         * tests/test-dprintf-posix.c (dprintf): Likewise.
54143         * tests/test-dup2.c (dup2): Likewise.
54144         * tests/test-dup3.c (dup3): Likewise.
54145         * tests/test-duplocale.c (duplocale): Likewise.
54146         * tests/test-fchdir.c (fchdir): Likewise.
54147         * tests/test-fchownat.c (fchownat): Likewise.
54148         * tests/test-fcntl.c (fcntl): Likewise.
54149         * tests/test-fdopendir.c (fdopendir): Likewise.
54150         * tests/test-fflush.c (fflush): Likewise.
54151         * tests/test-flock.c (flock): Likewise.
54152         * tests/test-floorf1.c (floorf): Likewise.
54153         * tests/test-floorl.c (floorl): Likewise.
54154         * tests/test-fnmatch.c (fnmatch): Likewise.
54155         * tests/test-fopen.c (fopen): Likewise.
54156         * tests/test-fprintf-posix.c (fprintf): Likewise.
54157         * tests/test-freopen.c (freopen): Likewise.
54158         * tests/test-frexp.c (frexp): Likewise.
54159         * tests/test-frexpl.c (frexpl): Likewise.
54160         * tests/test-fseek.c (fseek): Likewise.
54161         * tests/test-fseeko.c (fseeko): Likewise.
54162         * tests/test-fstatat.c (fstatat): Likewise.
54163         * tests/test-fsync.c (fsync): Likewise.
54164         * tests/test-ftell.c (ftell): Likewise.
54165         * tests/test-ftello.c (ftello): Likewise.
54166         * tests/test-futimens.c (futimens): Likewise.
54167         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
54168         (gai_strerror): Likewise.
54169         * tests/test-getcwd.c (getcwd): Likewise.
54170         * tests/test-getdelim.c (getdelim): Likewise.
54171         * tests/test-getdtablesize.c (getdtablesize): Likewise.
54172         * tests/test-getgroups.c (getgroups): Likewise.
54173         * tests/test-gethostname.c (gethostname): Likewise.
54174         * tests/test-getline.c (getline): Likewise.
54175         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
54176         Likewise.
54177         * tests/test-gettimeofday.c (gettimeofday): Likewise.
54178         * tests/test-glob.c (glob, globfree): Likewise.
54179         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
54180         * tests/test-inet_ntop.c (inet_ntop): Likewise.
54181         * tests/test-inet_pton.c (inet_pton): Likewise.
54182         * tests/test-isblank.c (isblank): Likewise.
54183         * tests/test-lchown.c (lchown): Likewise.
54184         * tests/test-ldexpl.c (ldexpl): Likewise.
54185         * tests/test-link.c (link): Likewise.
54186         * tests/test-linkat.c (linkat): Likewise.
54187         * tests/test-lseek.c (lseek): Likewise.
54188         * tests/test-lstat.c (lstat): Likewise.
54189         * tests/test-mbrtowc.c (mbrtowc): Likewise.
54190         * tests/test-mbsinit.c (mbsinit): Likewise.
54191         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
54192         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
54193         * tests/test-memchr.c (memchr): Likewise.
54194         * tests/test-memcmp.c (memcmp): Likewise.
54195         * tests/test-memmem.c (memmem): Likewise.
54196         * tests/test-memrchr.c (memrchr): Likewise.
54197         * tests/test-mkdir.c (mkdir): Likewise.
54198         * tests/test-mkdirat.c (mkdirat): Likewise.
54199         * tests/test-mkfifo.c (mkfifo): Likewise.
54200         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
54201         * tests/test-mknod.c (mknod): Likewise.
54202         * tests/test-nanosleep.c (nanosleep): Likewise.
54203         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
54204         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
54205         Likewise.
54206         * tests/test-open.c (open): Likewise.
54207         * tests/test-openat.c (openat): Likewise.
54208         * tests/test-perror.c (perror): Likewise.
54209         * tests/test-pipe2.c (pipe2): Likewise.
54210         * tests/test-poll.c (poll): Likewise.
54211         * tests/test-popen.c (popen, pclose): Likewise.
54212         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
54213         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
54214         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
54215         (posix_spawn_file_actions_destroy)
54216         (posix_spawn_file_actions_addclose)
54217         (posix_spawn_file_actions_addopen)
54218         (posix_spawn_file_actions_adddup2): Likewise.
54219         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
54220         * tests/test-pread.c (pread): Likewise.
54221         * tests/test-printf-posix.c (printf): Likewise.
54222         * tests/test-pty.c (openpty, forkpty): Likewise.
54223         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
54224         (random_r): Likewise.
54225         * tests/test-rawmemchr.c (rawmemchr): Likewise.
54226         * tests/test-readlink.c (readlink): Likewise.
54227         * tests/test-remove.c (remove): Likewise.
54228         * tests/test-rename.c (rename): Likewise.
54229         * tests/test-renameat.c (renameat): Likewise.
54230         * tests/test-rmdir.c (rmdir): Likewise.
54231         * tests/test-round1.c (round): Likewise.
54232         * tests/test-roundf1.c (roundf): Likewise.
54233         * tests/test-roundl.c (roundl): Likewise.
54234         * tests/test-setenv.c (setenv): Likewise.
54235         * tests/test-sigaction.c (sigaction): Likewise.
54236         * tests/test-sleep.c (sleep): Likewise.
54237         * tests/test-snprintf.c (snprintf): Likewise.
54238         * tests/test-sprintf-posix.c (sprintf): Likewise.
54239         * tests/test-stat.c (stat): Likewise.
54240         * tests/test-stpncpy.c (stpncpy): Likewise.
54241         * tests/test-strcasestr.c (strcasestr): Likewise.
54242         * tests/test-strchrnul.c (strchrnul): Likewise.
54243         * tests/test-strerror.c (strerror): Likewise.
54244         * tests/test-strsignal.c (strsignal): Likewise.
54245         * tests/test-strstr.c (strstr): Likewise.
54246         * tests/test-strtod.c (strtod): Likewise.
54247         * tests/test-strverscmp.c (strverscmp): Likewise.
54248         * tests/test-symlink.c (symlink): Likewise.
54249         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
54250         * tests/test-times.c (times): Likewise.
54251         * tests/test-trunc1.c (trunc): Likewise.
54252         * tests/test-truncf1.c (truncf): Likewise.
54253         * tests/test-truncl.c (truncl): Likewise.
54254         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
54255         Likewise.
54256         * tests/test-uname.c (uname): Likewise.
54257         * tests/test-unlink.c (unlink): Likewise.
54258         * tests/test-unlinkat.c (unlinkat): Likewise.
54259         * tests/test-unsetenv.c (unsetenv): Likewise.
54260         * tests/test-usleep.c (usleep): Likewise.
54261         * tests/test-utimensat.c (utimensat): Likewise.
54262         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
54263         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
54264         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
54265         * tests/test-vprintf-posix.c (vprintf): Likewise.
54266         * tests/test-vsnprintf.c (vsnprintf): Likewise.
54267         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
54268         * tests/test-wcrtomb.c (wcrtomb): Likewise.
54269         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
54270         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
54271         * tests/test-wcwidth.c (wcwidth): Likewise.
54273         build: pull in conditional headers during GNULIB_POSIXCHECK
54274         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
54275         definitions from any conditionally-included headers.
54276         * lib/stdlib.in.h (includes): Likewise.
54277         * lib/unistd.in.h (includes): Likewise.
54279 2009-12-24  Bruno Haible  <bruno@clisp.org>
54281         * tests/test-argv-iter.c: Include header file being tested immediately
54282         after config.h.
54283         * tests/test-base64.c: Likewise.
54284         * tests/test-flock.c: Likewise.
54285         * tests/test-fsync.c: Likewise.
54286         * tests/test-getdate.c: Likewise.
54287         * tests/test-getndelim2.c: Likewise.
54288         * tests/test-isfinite.c: Likewise.
54289         * tests/test-isinf.c: Likewise.
54290         * tests/test-strerror.c: Likewise.
54291         * tests/test-strsignal.c: Likewise.
54293 2009-12-23  Eric Blake  <ebb9@byu.net>
54295         unistd: work around cygwin bug
54296         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
54297         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
54298         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
54300 2009-12-23  Bruno Haible  <bruno@clisp.org>
54302         localename: More tests.
54303         * tests/test-localename.c (SIZEOF): New macro.
54304         (categories): New variable.
54305         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
54306         test_locale_name_default): Add test w.r.t. thread locale.
54307         (test_locale_name_thread): New function.
54308         (main): Invoke it.
54310         localename: Make aware of thread locale.
54311         * lib/localename.h (gl_locale_name_thread): New declaration.
54312         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
54313         behaviour with respect to thread locale.
54314         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
54315         <langinfo.h>, glthread/lock.h.
54316         (SIZE_BITS): New macro.
54317         (string_hash): New function.
54318         (struct hash_node): New type.
54319         (HASH_TABLE_SIZE): New macro.
54320         (struniq_hash_table, struniq_lock): New variables.
54321         (struniq): New function.
54322         (gl_locale_name_thread): New function.
54323         (gl_locale_name): Invoke it.
54324         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
54325         * modules/localename (Depends-on): Add lock.
54326         Reported by Mike Gran <spk121@yahoo.com>.
54328 2009-12-23  Eric Blake  <ebb9@byu.net>
54330         va-args: new module
54331         * modules/va-args: New file.
54332         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
54333         * MODULES.html.sh (Core language properties): Mention it.
54335         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
54336         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
54337         named alias for __attribute__((__unused__)).
54338         * lib/chown.c: Update client.
54339         * lib/fchmodat.c: Likewise.
54340         * lib/fts.c: Likewise.
54341         * lib/getdate.y: Likewise.
54342         * lib/getgroups.c: Likewise.
54343         * lib/getopt.c: Likewise.
54344         * lib/getugroups.c: Likewise.
54345         * lib/mkdir.c: Likewise.
54346         * lib/mkfifo.c: Likewise.
54347         * lib/mkfifoat.c: Likewise.
54348         * lib/mknod.c: Likewise.
54349         * lib/mknodat.c: Likewise.
54350         * lib/readlink.c: Likewise.
54351         * lib/se-context.in.h: Likewise.
54352         * lib/se-selinux.in.h: Likewise.
54353         * lib/sockets.c: Likewise.
54354         * lib/symlink.c: Likewise.
54355         * lib/symlinkat.c: Likewise.
54356         * lib/unicodeio.c: Likewise.
54357         * lib/unistr.h: Likewise.
54358         * tests/test-areadlink.c: Likewise.
54359         * tests/test-areadlinkat.c: Likewise.
54360         * tests/test-filenamecat.c: Likewise.
54361         * tests/test-fseeko.c: Likewise.
54362         * tests/test-ftello.c: Likewise.
54363         * tests/test-getdate.c: Likewise.
54364         * tests/test-getgroups.c: Likewise.
54365         * tests/test-gethostname.c: Likewise.
54366         * tests/test-quotearg.c: Likewise.
54367         * tests/test-version-etc.c: Likewise.
54368         * tests/test-xalloc-die.c: Likewise.
54369         * tests/test-xfprintf-posix.c: Likewise.
54370         * tests/test-xprintf-posix.c: Likewise.
54371         * tests/test-xvasprintf.c: Likewise.
54373         tests: avoid compiler warnings
54374         * tests/test-fcntl.c (main): Delete unused parameters.
54375         * tests/test-freopen-safer.c (main): Likewise.
54376         * tests/test-xalloc-die.c (main): Mark unused parameters.
54377         * tests/test-fseeko.c (main): Likewise.
54378         * tests/test-ftello.c (main): Likewise.
54379         * tests/test-nanosleep.c (main): Avoid declaration warning.
54380         * tests/test-sleep.c (main): Likewise.
54381         * tests/test-unsetenv.c (main): Silence warning about string
54382         literal.
54383         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
54385 2009-12-23  Bruno Haible  <bruno@clisp.org>
54387         * tests/test-localename.c (test_locale_name): New function, extracted
54388         from main. Also test mixed situations.
54389         (test_locale_name_posix, test_locale_name_environ,
54390         test_locale_name_default): New functions.
54391         (main): Invoke them all.
54392         * modules/localename-tests (configure.ac): Test for newlocale.
54394 2009-12-23  Bruno Haible  <bruno@clisp.org>
54396         unistd: Ensure getcwd gets declared before being overridden.
54397         * lib/unistd.in.h: Conditionally include <io.h>.
54399 2009-12-22  Bruno Haible  <bruno@clisp.org>
54401         wchar: Diagnose broken combination of glibc and gcc versions and flags.
54402         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
54403         (gl_WCHAR_H): Invoke it.
54404         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
54405         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
54406         Reported by Karl Berry <karl@freefriends.org>.
54408 2009-12-22  Eric Blake  <ebb9@byu.net>
54410         math, unistd: avoid redundant includes
54411         * lib/math.in.h (isnan): No need to re-include <math.h>.
54412         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
54414         getsubopt: work around cygwin bug
54415         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
54416         avoid conflicting with system getsubopt.
54417         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
54418         bug.
54420         getopt: synchronize from glibc
54421         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
54422         parameter order.  Adjust all callers.
54423         (_getopt_internal_r, main): Adjust quoting in error messages.
54424         Drop considerations for outdated POSIX 1003.2 error message.
54425         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
54426         callers.
54427         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
54429         test-getopt: test stderr behavior
54430         * modules/getopt-posix-tests (Depends-on): Add dup2.
54431         * tests/test-getopt.c (ASSERT): Avoid stderr.
54432         (main): Move stderr to a temporary file.
54433         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
54434         Instead, add parameter to inform caller if output occurred.
54435         (test_getopt): Adjust all existing tests to expect silence, and
54436         add new tests of leading ":".
54437         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
54438         glibc shortcomings with leading "-:" or "+:" in optstring.
54439         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54440         Likewise.
54441         * doc/posix-functions/getopt.texi (getopt): Likewise.
54443         test-getopt: enhance test
54444         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
54445         supports optind=0.
54446         * tests/test-getopt.c (OPTIND_MIN): Move...
54447         * tests/test-getopt.h (OPTIND_MIN): ...here.
54448         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
54449         Require that optind=0 works, since modern BSD supports it in
54450         addition to optreset, and since coreutils expects it.
54451         (test_getopt_long_only): New test.
54452         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
54453         glibc shortcomings with 'W;', and enforcement of optind=0.
54454         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54455         Likewise.
54457 2009-12-21  Bruno Haible  <bruno@clisp.org>
54459         localename: Improvements for MacOS X and Cygwin.
54460         * lib/localename.h (gl_locale_name_environ): New declaration.
54461         * lib/localename.c (gl_locale_name_environ): New function, extracted from
54462         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
54463         (gl_locale_name_posix): Invoke it.
54464         (gl_locale_name_default): Add comments. Use Windows native API also on
54465         Cygwin.
54467 2009-12-21  Bruno Haible  <bruno@clisp.org>
54469         Update list of Win32 locale ids.
54470         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
54471         (LANG_SAMI): Renamed from LANG_SAAMI.
54472         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
54473         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
54474         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
54475         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
54476         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
54477         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
54478         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
54479         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
54480         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
54481         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
54482         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
54483         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
54484         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
54485         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
54486         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
54487         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
54488         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
54489         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
54490         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
54491         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
54492         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
54493         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
54494         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
54495         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
54496         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
54497         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
54498         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
54499         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
54500         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
54501         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
54502         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
54503         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
54504         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
54505         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
54506         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
54507         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
54508         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
54509         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
54510         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
54511         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
54512         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
54513         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
54514         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
54515         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
54516         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
54517         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
54518         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
54519         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
54520         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
54521         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
54522         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
54523         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
54524         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
54525         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
54526         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
54527         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
54528         Add more languages and countries for Sami, Sorbian. Add more countries
54529         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
54530         for Pashto. Change country for Syriac, Tswana.
54532 2009-12-21  Eric Blake  <ebb9@byu.net>
54534         test-utimens: avoid spurious failure
54535         * tests/test-chown.h (nap): Factor...
54536         * tests/nap.h: ...into new file.
54537         * tests/test-lchown.h (nap): Avoid duplication.
54538         * tests/test-utimens-common.h (nap): Use shared implementation,
54539         necessary on file systems with 1-second resolution.
54540         * modules/chown-tests (Files): Include new file.
54541         * modules/fdutimensat-tests (Files): Likewise.
54542         * modules/futimens-tests (Files): Likewise.
54543         * modules/lchown-tests (Files): Likewise.
54544         * modules/openat-tests (Files): Likewise.
54545         * modules/utimens-tests (Files): Likewise.
54546         * modules/utimensat-tests (Files): Likewise.
54548 2009-12-19  Eric Blake  <ebb9@byu.net>
54550         futimens, utimensat: work around Linux bug
54551         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
54552         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54553         * lib/utimensat.c (rpl_utimensat): Work around it.
54554         * lib/futimens.c (rpl_futimens): Adjust comment.
54556         utimens: work around Linux ctime bug
54557         * lib/utimens.c (detect_ctime_bug): New helper function.
54558         (update_timespec): Differentiate between workaround needed for
54559         this bug vs. what is needed for systems that lack utimensat.
54560         (fdutimens, lutimens): Work around bug.
54562         utimens: check for ctime update
54563         * tests/test-utimens-common.h (check_ctime): Define.
54564         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
54565         * tests/test-futimens.h (test_futimens): Likewise.
54566         * tests/test-lutimens.h (test_lutimens): Likewise.
54567         * doc/posix-functions/futimens.texi (futimens): Document the bug.
54568         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
54570 2009-12-19  Bruno Haible  <bruno@clisp.org>
54572         dprintf-posix: Check against memory leak fixed on 2009-12-15.
54573         * tests/test-dprintf-posix2.sh: New file.
54574         * tests/test-dprintf-posix2.c: New file.
54575         * modules/dprintf-posix-tests (Files): Add them.
54576         (configure.ac): Check for getrlimit and setrlimit.
54577         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
54579 2009-12-19  Bruno Haible  <bruno@clisp.org>
54581         fprintf-posix: Check against memory leak fixed on 2009-12-15.
54582         * tests/test-fprintf-posix3.sh: New file.
54583         * tests/test-fprintf-posix3.c: New file.
54584         * modules/fprintf-posix-tests (Files): Add them.
54585         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
54587 2009-12-19  Eric Blake  <ebb9@byu.net>
54589         dirfd: fix prototype
54590         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
54591         * lib/dirfd.c (dirfd): Likewise.
54593         canonicalize: reduce memory usage
54594         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
54595         allocation to size.
54596         Reported by Solar Designer <solar@openwall.com>.
54598 2009-12-19  Bruno Haible  <bruno@clisp.org>
54600         New module attribute 'Applicability'.
54601         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
54602         * gnulib-tool: New option --extract-applicability.
54603         (func_usage): Document it.
54604         (sed_extract_prog): Recognize it.
54605         (func_get_applicability): New function.
54606         (func_import): Generalize handling of 'link-warning' module.
54607         * modules/link-warning (Applicability): New section.
54608         * modules/arg-nonnull (Applicability): New section.
54609         Repoted by Simon Josefsson <simon@josefsson.org>.
54611 2009-12-19  Bruno Haible  <bruno@clisp.org>
54613         fflush: tweak
54614         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
54615         * lib/fseeko.c (rpl_fseeko): Likewise.
54617 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
54619         * lib/gl_list.h: Fix typo in comment.
54621 2009-12-16  Eric Blake  <ebb9@byu.net>
54623         fcntl: use to simplify other modules
54624         * modules/cloexec (Depends-on): Add fcntl.
54625         * modules/fchdir (Depends-on): Likewise.
54626         * modules/fd-safer-flag (Depends-on): Likewise.
54627         * modules/unistd-safer (Depends-on): Likewise.
54628         * modules/dup3 (configure.ac): Set module indicator.
54629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
54630         missing.
54631         * lib/fchdir.c (_gl_register_dup): Fix comment.
54632         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
54633         * lib/dup-safer.c (dup_safer): Likewise.
54634         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
54635         * lib/dup3.c (dup3): Likewise.
54636         * tests/test-fchdir.c (main): Enhance test.
54637         Fixes a dup_cloexec bug reported by Ondřej Vašík.
54639         fcntl: port portions of fcntl to mingw
54640         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
54641         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
54642         replacement for mingw.
54643         * modules/fcntl (Description): Update.
54644         (Depends-on): Add dup2.
54645         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
54646         * modules/fcntl-h (Makefile.am): Substitute it.
54647         * lib/fcntl.in.h (fcntl): Update declaration.
54648         (F_DUPFD, F_GETFD): New macros, when needed.
54649         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
54650         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
54651         * tests/test-fcntl.c (check_flags, main): Enhance test for items
54652         we now guarantee.
54654         fcntl: work around cygwin bug in F_DUPFD
54655         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
54656         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
54657         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
54658         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
54659         * doc/posix-functions/fcntl.texi (fcntl): Document it.
54661         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
54662         * modules/fcntl (Files): List new files.
54663         (configure.ac): Run a test.
54664         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
54665         * lib/fcntl.c (rpl_fcntl): Likewise.
54666         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
54667         (gl_FCNTL_H): Always replace fcntl.h.
54668         * modules/fcntl-h (Makefile.am): Substitute witnesses.
54669         * lib/fcntl.in.h (fcntl): Declare replacement.
54670         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
54671         needed, plus a witness.
54672         * doc/posix-functions/fcntl.texi (fcntl): Document this.
54673         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
54674         * tests/test-fcntl.c: New file.
54675         * modules/fcntl-tests: Likewise.
54677         binary-io: avoid potential compilation warning
54678         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
54679         directives.
54681         fflush: avoid compilation error on NetBSD
54682         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
54683         between off_t and fpos_t, since the latter is sometimes a struct.
54684         * lib/fseeko.c (rpl_fseeko): Likewise.
54685         Reported by Alexander Nasonov <alnsn@yandex.ru>.
54687 2009-12-15  Eric Blake  <ebb9@byu.net>
54689         fcntl-h, stdio, sys_ioctl: fix declarations
54690         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
54691         function must not take arguments.
54692         * lib/sys_ioctl.in.h (ioctl): Likewise.
54693         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
54694         (open): Add a link warning.
54696 2009-12-15  Jim Meyering  <meyering@redhat.com>
54698         areadlink, areadlink-with-size: relax license to LGPLv2+
54699         * modules/areadlink (License): Relax to LGPLv2+.
54700         * modules/areadlink-with-size (License): Likewise.
54702 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
54703             Bruno Haible  <bruno@clisp.org>
54705         *printf: Fix memory leak.
54706         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
54707         * lib/vfprintf.c (vfprintf): Likewise.
54708         * lib/dprintf.c (dprintf): Likewise.
54709         * lib/vdprintf.c (vdprintf): Likewise.
54711 2009-12-14  Eric Blake  <ebb9@byu.net>
54713         accept4: adjust module dependencies
54714         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
54716         utimens: one more try at avoiding compiler warning
54717         * lib/utimens.c (lutimens): Lower scope of result.
54719 2009-12-13  Bruno Haible  <bruno@clisp.org>
54721         Move the malloc checking from module 'list' to new module 'xlist'.
54722         * modules/xlist: New file.
54723         * lib/gl_xlist.h: New file.
54724         * lib/gl_xlist.c: New file.
54725         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
54726         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
54727         gl_list_add_last, gl_list_add_before, gl_list_add_after,
54728         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
54729         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
54730         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
54731         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
54732         gl_sortedlist_nx_add): New declarations.
54733         (struct gl_list_implementation): Rename and change methods accordingly.
54734         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
54735         (gl_list_nx_create): Renamed from gl_list_create.
54736         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54737         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54738         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54739         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54740         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54741         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54742         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54743         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54744         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
54745         gl_list_create_empty.
54746         (gl_list_nx_create): Renamed from gl_list_create.
54747         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54748         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54749         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54750         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54751         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54752         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54753         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54754         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54755         * lib/gl_array_list.c: Don't include xalloc.h.
54756         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
54757         NULL upon out-of-memory.
54758         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
54759         out-of-memory.
54760         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
54761         Change return type to 'int'.
54762         (gl_array_nx_set_at): Renamed from gl_array_set_at.
54763         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54764         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
54765         upon out-of-memory.
54766         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
54767         upon out-of-memory.
54768         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
54769         upon out-of-memory.
54770         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
54771         upon out-of-memory.
54772         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
54773         out-of-memory.
54774         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
54775         Update.
54776         (gl_array_list_implementation): Update.
54777         * lib/gl_carray_list.c: Don't include xalloc.h.
54778         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
54779         Return NULL upon out-of-memory.
54780         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
54781         out-of-memory.
54782         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
54783         Change return type to 'int'.
54784         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
54785         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54786         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
54787         upon out-of-memory.
54788         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
54789         upon out-of-memory.
54790         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
54791         out-of-memory.
54792         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
54793         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
54794         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
54795         Update.
54796         (gl_carray_list_implementation): Update.
54797         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
54798         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
54799         gl_linked_create_empty. Return NULL upon out-of-memory.
54800         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
54801         out-of-memory.
54802         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
54803         Change return type to 'int'. Return -1 upon out-of-memory.
54804         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
54805         out-of-memory.
54806         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
54807         upon out-of-memory.
54808         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
54809         upon out-of-memory.
54810         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
54811         NULL upon out-of-memory.
54812         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
54813         upon out-of-memory.
54814         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
54815         out-of-memory.
54816         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
54817         Update.
54818         * lib/gl_linked_list.c: Don't include xalloc.h.
54819         (gl_linked_list_implementation): Update.
54820         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
54821         (add_to_bucket): Change return type to 'int'.
54822         (gl_linkedhash_list_implementation): Update.
54823         * lib/gl_anytree_list1.h (free_subtree): New function.
54824         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
54825         gl_tree_create_empty. Return NULL upon out-of-memory.
54826         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
54827         Change return type to 'int'. Return -1 upon out-of-memory.
54828         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
54829         out-of-memory.
54830         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
54831         (gl_tree_remove_node): New function, moved here from
54832         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
54833         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
54834         Update.
54835         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
54836         malloc, not xmalloc. Return NULL upon out-of-memory.
54837         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
54838         out-of-memory.
54839         (gl_tree_remove_node_from_tree): New function, extracted from
54840         gl_tree_remove_node.
54841         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
54842         upon out-of-memory.
54843         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
54844         out-of-memory.
54845         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
54846         upon out-of-memory.
54847         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
54848         upon out-of-memory.
54849         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
54850         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
54851         not xmalloc. Return NULL upon out-of-memory.
54852         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
54853         out-of-memory.
54854         (gl_tree_remove_node_from_tree): New function, extracted from
54855         gl_tree_remove_node.
54856         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
54857         upon out-of-memory.
54858         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
54859         out-of-memory.
54860         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
54861         upon out-of-memory.
54862         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
54863         upon out-of-memory.
54864         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
54865         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
54866         gl_anytree_list1.h before gl_anyavltree_list2.h.
54867         (gl_avltree_list_implementation): Update.
54868         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
54869         gl_anytree_list1.h before gl_anyavltree_list2.h.
54870         (gl_rbtree_list_implementation): Update.
54871         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
54872         Change return type to 'int'. Return -1 upon out-of-memory. Use
54873         __builtin_expect.
54874         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
54875         (gl_avltreehash_list_implementation): Update.
54876         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
54877         (gl_rbtreehash_list_implementation): Update.
54878         * modules/array-list (Depends-on): Remove xalloc.
54879         * modules/carray-list (Depends-on): Likewise.
54880         * modules/linked-list (Depends-on): Likewise.
54881         * modules/linkedhash-list (Depends-on): Likewise.
54882         * modules/avltree-list (Depends-on): Likewise.
54883         * modules/rbtree-list (Depends-on): Likewise.
54884         * modules/avltreehash-list (Depends-on): Likewise.
54885         * modules/rbtreehash-list (Depends-on): Likewise.
54887         * modules/xsublist: New file.
54888         * lib/gl_xsublist.h: New file.
54889         * lib/gl_xsublist.c: New file.
54890         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
54891         (gl_sublist_nx_create): New declaration.
54892         * lib/gl_sublist.c: Don't include xalloc.h.
54893         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
54894         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
54895         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
54896         Change return type to 'int'. Return -1 upon out-of-memory.
54897         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
54898         upon out-of-memory.
54899         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
54900         NULL upon out-of-memory.
54901         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
54902         upon out-of-memory.
54903         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
54904         NULL upon out-of-memory.
54905         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
54906         NULL upon out-of-memory.
54907         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
54908         upon out-of-memory.
54909         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
54910         (gl_sublist_list_implementation): Update.
54911         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
54912         upon out-of-memory.
54913         * modules/sublist (Depends-on): Remove xalloc.
54915         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
54916         * tests/test-carray_list.c: Likewise.
54917         * tests/test-linked_list.c: Likewise.
54918         * tests/test-linkedhash_list.c: Likewise.
54919         * tests/test-avltree_list.c: Likewise.
54920         * tests/test-rbtree_list.c: Likewise.
54921         * tests/test-avltreehash_list.c: Likewise.
54922         * tests/test-rbtreehash_list.c: Likewise.
54923         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
54924         * modules/carray-list-tests (Makefile.am): Likewise.
54925         * modules/linked-list-tests (Makefile.am): Likewise.
54926         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54927         * modules/avltree-list-tests (Makefile.am): Likewise.
54928         * modules/rbtree-list-tests (Makefile.am): Likewise.
54929         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54930         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54932         * NEWS: Mention the changes.
54934         * lib/clean-temp.c: Include gl_xlist.h.
54935         * modules/clean-temp (Depends-on): Add xlist.
54937         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
54938         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
54940         * tests/test-array_oset.c: Include gl_xlist.h.
54941         * modules/array-oset-tests (Depends-on): Add xlist.
54943         Reported by José E. Marchesi <jemarch@gnu.org>.
54945 2009-12-13  Bruno Haible  <bruno@clisp.org>
54947         Move the malloc checking from module 'oset' to new module 'xoset'.
54948         * modules/xoset: New file.
54949         * lib/gl_xoset.h: New file.
54950         * lib/gl_xoset.c: New file.
54951         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
54952         declarations.
54953         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
54954         (struct gl_oset_implementation): Rename and change methods accordingly.
54955         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
54956         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
54957         'int'. Mark as __warn_unused_result__.
54958         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
54959         gl_oset_create_empty.
54960         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
54961         'int'.
54962         * lib/gl_array_oset.c: Don't include xalloc.h.
54963         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
54964         malloc, not xmalloc.
54965         (grow): Change return type to 'int'. Don't call xalloc_die.
54966         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
54967         to 'int'.
54968         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
54969         'int'.
54970         (gl_array_oset_implementation): Update.
54971         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
54972         gl_tree_create_empty.
54973         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
54974         'int'.
54975         * lib/gl_avltree_oset.c: Don't include xalloc.h.
54976         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
54977         xmalloc.
54978         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
54979         not xmalloc.
54980         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
54981         xmalloc.
54982         (gl_avltree_oset_implementation): Update.
54983         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
54984         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
54985         xmalloc.
54986         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
54987         not xmalloc.
54988         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
54989         xmalloc.
54990         (gl_rbtree_oset_implementation): Update.
54991         * modules/array-oset (Depends-on): Remove xalloc.
54992         * modules/avltree-oset (Depends-on): Likewise.
54993         * modules/rbtree-oset (Depends-on): Likewise.
54994         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
54995         * tests/test-avltree_oset.c: Likewise.
54996         * tests/test-rbtree_oset.c: Likewise.
54997         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54998         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
54999         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55000         * NEWS: Mention the change.
55002 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
55004         maint.mk: allow a project to override release-prep commands
55005         * top/maint.mk (alpha, beta, stable): Move release-preparatory
55006         commands into a new rule.
55007         (release-prep): New rule.
55008         (release-prep-hook): New overridable variable.
55010 2009-12-13  Bruno Haible  <bruno@clisp.org>
55012         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
55014 2009-12-13  Jim Meyering  <meyering@redhat.com>
55016         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
55017         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
55019 2009-12-12  Bruno Haible  <bruno@clisp.org>
55021         duplocale: Tweak.
55022         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
55024 2009-12-12  Karl Berry  <karl@gnu.org>
55026         * config/srclist.txt (strtoll.c): tab changes, no more sync.
55028 2009-12-12  Bruno Haible  <bruno@clisp.org>
55030         * m4/po.m4: Undo incorrect untabification.
55032 2009-12-12  Bruno Haible  <bruno@clisp.org>
55034         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
55035         * modules/c-strtod (Depends-on): Add locale.
55036         * modules/c-strtold (Depends-on): Likewise.
55038 2009-12-12  Bruno Haible  <bruno@clisp.org>
55040         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
55042 2009-12-11  Eric Blake  <ebb9@byu.net>
55044         setenv: relax requirement in light of POSIX ruling
55045         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
55046         not NULL.
55047         * tests/test-setenv.c (main): Relax test.
55048         * tests/test-unsetenv.c (main): Likewise.
55049         * doc/posix-functions/setenv.texi (setenv): Document this.
55050         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
55052 2009-12-11  Bruno Haible  <bruno@clisp.org>
55054         New module 'fd-safer-flag'.
55055         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
55056         * lib/dup-safer.c (dup_safer_flag): Remove function.
55057         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
55058         * lib/fd-safer.c (fd_safer_flag): Remove function.
55059         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
55060         * modules/cloexec (configure.ac): Drop indicator macro.
55061         * modules/fd-safer-flag: New file.
55062         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
55063         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
55064         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
55066 2009-12-11  Bruno Haible  <bruno@clisp.org>
55068         Tests for module 'nl_langinfo'.
55069         * modules/nl_langinfo-tests: New file.
55070         * tests/test-nl_langinfo.sh: New file.
55071         * tests/test-nl_langinfo.c: New file.
55073         New module 'nl_langinfo'.
55074         * lib/nl_langinfo.c: New file.
55075         * m4/nl_langinfo.m4: New file.
55076         * modules/nl_langinfo: New file.
55077         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
55079 2009-12-11  Bruno Haible  <bruno@clisp.org>
55081         Tests for module 'langinfo'.
55082         * modules/langinfo-tests: New file.
55083         * tests/test-langinfo.c: New file.
55085         New module 'langinfo'.
55086         * lib/langinfo.in.h: New file.
55087         * m4/langinfo_h.m4: New file.
55088         * modules/langinfo: New file.
55089         * doc/posix-headers/langinfo.texi: Mention the new module.
55091 2009-12-11  Bruno Haible  <bruno@clisp.org>
55093         * lib/config.charset: Untabify.
55095 2009-12-11  Bruno Haible  <bruno@clisp.org>
55097         * modules/unistd-safer (configure.ac): Drop indicator macro.
55099 2009-12-11  Bruno Haible  <bruno@clisp.org>
55101         Move pipe2-safer code to its own file.
55102         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
55103         * lib/pipe-safer.c (pipe2_safer): Remove function.
55104         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
55105         (Makefile.am): Add it to lib_SOURCES.
55107 2009-12-10  Bruno Haible  <bruno@clisp.org>
55109         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
55111 2009-12-10  Bruno Haible  <bruno@clisp.org>
55113         Declare which arguments expect non-NULL values, for GCC and clang.
55114         * build-aux/arg-nonnull.h: New file.
55115         * modules/arg-nonnull: New file.
55116         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
55117         (inet_ntop, inet_pton): Use it.
55118         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
55119         (closedir, dirfd, opendir, scandir, alphasort): Use it.
55120         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
55121         (open, openat): Use it.
55122         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
55123         (fnmatch): Use it.
55124         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
55125         (getopt, getopt_long, getopt_long_only): Use it.
55126         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
55127         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
55128         Use it.
55129         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
55130         (iconv_open): Use it.
55131         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
55132         (strtoimax, strtoumax): Use it.
55133         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
55134         (duplocale): Use it.
55135         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
55136         (frexp, frexpl): Use it.
55137         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
55138         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
55139         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
55140         (tsearch, tfind, tdelete, twalk): Use it.
55141         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
55142         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55143         sigpending): Use it.
55144         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
55145         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55146         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55147         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55148         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55149         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55150         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55151         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55152         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55153         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55154         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55155         Use it.
55156         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
55157         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
55158         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
55159         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
55160         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
55161         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
55162         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
55163         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
55164         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
55165         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
55166         strtoull, unsetenv): Use it.
55167         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
55168         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55169         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55170         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
55171         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
55172         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
55173         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
55174         (strcasecmp, strncasecmp): Use it.
55175         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
55176         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
55177         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
55178         rpl_setsockopt): Use it.
55179         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
55180         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
55181         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
55182         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
55183         (gettimeofday): Use it.
55184         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
55185         (times): Use it.
55186         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
55187         (uname): Use it.
55188         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
55189         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
55190         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
55191         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
55192         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
55193         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
55194         unlinkat, write): Use it.
55195         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
55196         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
55197         * lib/argv-iter.h: Include arg-nonnull.h.
55198         (_ATTRIBUTE_NONNULL_): Remove macro.
55199         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
55200         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
55201         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
55202         optimization.
55203         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
55204         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
55205         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
55206         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
55207         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
55208         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
55209         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
55210         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
55211         * modules/arpa_inet (Depends-on): Add arg-nonnull.
55212         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
55213         * modules/dirent (Depends-on): Add arg-nonnull.
55214         (Makefile.am): Insert arg-nonnull.h into dirent.h.
55215         * modules/fcntl-h (Depends-on): Add arg-nonnull.
55216         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
55217         * modules/fnmatch (Depends-on): Add arg-nonnull.
55218         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
55219         * modules/getopt-posix (Depends-on): Add arg-nonnull.
55220         (Makefile.am): Insert arg-nonnull.h into getopt.h.
55221         * modules/glob (Depends-on): Add arg-nonnull.
55222         (Makefile.am): Insert arg-nonnull.h into glob.h.
55223         * modules/iconv_open (Depends-on): Add arg-nonnull.
55224         (Makefile.am): Insert arg-nonnull.h into iconv.h.
55225         * modules/inttypes (Depends-on): Add arg-nonnull.
55226         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
55227         * modules/locale (Depends-on): Add arg-nonnull.
55228         (Makefile.am): Insert arg-nonnull.h into locale.h.
55229         * modules/math (Depends-on): Add arg-nonnull.
55230         (Makefile.am): Insert arg-nonnull.h into math.h.
55231         * modules/netdb (Depends-on): Add arg-nonnull.
55232         (Makefile.am): Insert arg-nonnull.h into netdb.h.
55233         * modules/search (Depends-on): Add arg-nonnull.
55234         (Makefile.am): Insert arg-nonnull.h into search.h.
55235         * modules/signal (Depends-on): Add arg-nonnull.
55236         (Makefile.am): Insert arg-nonnull.h into signal.h.
55237         * modules/spawn (Depends-on): Add arg-nonnull.
55238         (Makefile.am): Insert arg-nonnull.h into spawn.h.
55239         * modules/stdio (Depends-on): Add arg-nonnull.
55240         (Makefile.am): Insert arg-nonnull.h into stdio.h.
55241         * modules/stdlib (Depends-on): Add arg-nonnull.
55242         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
55243         * modules/string (Depends-on): Add arg-nonnull.
55244         (Makefile.am): Insert arg-nonnull.h into string.h.
55245         * modules/strings (Depends-on): Add arg-nonnull.
55246         (Makefile.am): Insert arg-nonnull.h into strings.h.
55247         * modules/sys_socket (Depends-on): Add arg-nonnull.
55248         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
55249         * modules/sys_stat (Depends-on): Add arg-nonnull.
55250         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
55251         * modules/sys_time (Depends-on): Add arg-nonnull.
55252         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
55253         * modules/sys_times (Depends-on): Add arg-nonnull.
55254         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
55255         * modules/sys_utsname (Depends-on): Add arg-nonnull.
55256         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
55257         * modules/time (Depends-on): Add arg-nonnull.
55258         (Makefile.am): Insert arg-nonnull.h into time.h.
55259         * modules/unistd (Depends-on): Add arg-nonnull.
55260         (Makefile.am): Insert arg-nonnull.h into unistd.h.
55261         * modules/wchar (Depends-on): Add arg-nonnull.
55262         (Makefile.am): Insert arg-nonnull.h into wchar.h.
55263         * modules/argv-iter (Depends-on): Add arg-nonnull.
55264         * tests/test-canonicalize.c (null_ptr): New function.
55265         (main): Use it.
55266         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
55267         (main): Use it.
55268         * tests/test-memmem.c (null_ptr): New function.
55269         (main): Use it.
55270         Reported by Jim Meyering.
55272 2009-12-10  Bruno Haible  <bruno@clisp.org>
55274         Use spaces for indentation, not tabs.
55275         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
55276         * m4/*.m4: Untabify.
55277         * build-aux/*.h: Untabify.
55278         * tests/**/*.[hc]: Untabify.
55279         * README: New section "Indent with spaces, not TABs", based on
55280         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
55281         * NEWS: Mention the change.
55283 2009-12-10  Bruno Haible  <bruno@clisp.org>
55285         pty test: Fix link error.
55286         * modules/pty-tests (Makefile.am): Add the default LDADD value to
55287         test_pty_LDADD.
55289 2009-12-07  Simon Josefsson  <simon@josefsson.org>
55291         * modules/pty: New file.
55292         * modules/pty-tests: New file.
55293         * m4/pty.m4: New file.
55294         * tests/test-pty.c: New file.
55295         * doc/glibc-headers/pty.texi: Modified.
55296         * doc/glibc-functions/forkpty.texi: Modified.
55297         * doc/glibc-functions/openpty.texi: Modified.
55299 2009-12-10  Bruno Haible  <bruno@clisp.org>
55301         Avoid syntax error in C++ mode.
55302         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
55304 2009-12-10  Bruno Haible  <bruno@clisp.org>
55306         Use sed with option -e.
55307         * gnulib-tool (func_version, func_emit_copyright_notice,
55308         func_emit_initmacro_end, func_import, func_create_testdir): Pass
55309         option -e to sed.
55310         * modules/link-warning (Makefile.am): Likewise.
55312 2009-12-10  Jim Meyering  <meyering@redhat.com>
55314         mgetgroups: do not write bytes beyond end of malloc'd buffer
55315         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
55316         username, we call getgroups with a one-element-shorter buffer,
55317         but still told it the length was original, max_n_groups.
55319 2009-12-09  Eric Blake  <ebb9@byu.net>
55321         cloexec: relax license
55322         * modules/cloexec (Maintainer): Add myself.
55323         (License): Use LGPL, not GPL.
55325         link-warning: optimize generation
55326         * modules/link-warning (Makefile.am): Reduce process usage.
55328 2009-12-09  Bruno Haible  <bruno@clisp.org>
55330         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
55331         workaround was added on 2009-11-17.
55333 2009-12-09  Jim Meyering  <meyering@redhat.com>
55334             Bruno Haible  <bruno@clisp.org>
55336         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
55337         * modules/link-warning (Makefile.am): Make the comment-removing sed
55338         command more robust in the face of bootstrap-prepended comment lines.
55340 2009-12-09  Bruno Haible  <bruno@clisp.org>
55342         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
55343         most one group.
55345 2009-12-09  Simon Josefsson  <simon@josefsson.org>
55346             Bruno Haible  <bruno@clisp.org>
55348         * build-aux/link-warning.h: Add copyright notice.
55349         * modules/link-warning (Makefile.am): Generate link-warning.h from
55350         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
55351         * NEWS: Mention change in link-warning module.
55352         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
55353         * modules/dirent (Makefile.am): Add dependency to dirent.h.
55354         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
55355         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
55356         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
55357         * modules/math (Makefile.am): Add dependency to math.h.
55358         * modules/search (Makefile.am): Add dependency to search.h.
55359         * modules/signal (Makefile.am): Add dependency to signal.h.
55360         * modules/spawn (Makefile.am): Add dependency to spawn.h.
55361         * modules/stdio (Makefile.am): Add dependency to stdio.h.
55362         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
55363         * modules/string (Makefile.am): Add dependency to string.h.
55364         * modules/strings (Makefile.am): Add dependency to strings.h.
55365         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
55366         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
55367         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
55368         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
55369         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
55370         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
55371         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
55372         * modules/unistd (Makefile.am): Add dependency to unistd.h.
55373         * modules/wchar (Makefile.am): Add dependency to wchar.h.
55375 2009-12-09  Bruno Haible  <bruno@clisp.org>
55377         fchdir: Optimize away rpl_fstat when possible.
55378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
55379         REPLACE_OPEN_DIRECTORY.
55380         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
55382 2009-12-09  Bruno Haible  <bruno@clisp.org>
55384         * lib/fchdir.c: Update comment.
55386 2009-12-09  Bruno Haible  <bruno@clisp.org>
55388         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
55390 2009-12-08  Eric Blake  <ebb9@byu.net>
55392         fchdir: avoid memory leak on re-registration.
55393         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
55395 2009-12-08  Jim Meyering  <meyering@redhat.com>
55397         init.sh: avoid Solaris 10 /bin/sh portability problem
55398         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
55399         sourced script:
55400           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
55401           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
55402           bar
55403         tests/init.sh relied on that, accepting a --set-path=DIR argument,
55404         and two tests used that idiom.
55405         * tests/init.sh: Update suggested usage comments.
55406         (path_prepend_): New function, to be used in place
55407         of the --src-path=DIR option.
55408         (setup_): Move PATH-prepending code into path_prepend_.
55409         * tests/test-pread.sh: Adapt to new usage.
55410         * tests/test-xalloc-die.sh: Likewise.
55412 2009-12-08  Simon Josefsson  <simon@josefsson.org>
55414         * doc/gnulib.texi (Glibc pty.h): Add.
55415         * doc/glibc-functions/forkpty.texi: Add.
55416         * doc/glibc-functions/openpty.texi: Add.
55417         Suggested by Bruno Haible.
55419 2009-12-08  Eric Blake  <ebb9@byu.net>
55421         fchdir: fix logic bugs
55422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
55423         * tests/test-fchdir.c (main): Enhance test.
55424         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
55425         is in use.
55427         dup2: fix logic bugs
55428         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
55429         REPLACE_DUP2 to decide when rpl_dup2 is needed.
55430         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
55431         exists.
55432         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
55434 2009-12-07  Eric Blake  <ebb9@byu.net>
55436         unlink: fix m4 detection
55437         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
55439         unistd-safer: add unit test
55440         * modules/unistd-safer-tests: New file.
55441         * tests/test-dup-safer.c: Likewise.
55442         * tests/test-cloexec.c (setmode): Avoid compiler warning.
55443         * tests/test-dup2.c (setmode): Likewise.
55444         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
55446         cloexec: preserve text vs. binary across dup_cloexec
55447         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
55448         mode.
55449         * modules/dup2-tests (Depends-on): Add binary-io.
55450         * modules/cloexec-tests (Depends-on): Likewise.
55451         * tests/test-dup2.c (setmode, is_mode): New helpers.
55452         (main): Add tests that translation mode is preserved.
55453         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
55454         Reported by Bruno Haible.
55456         mgetgroups: reduce duplicate listings
55457         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
55458         resulting array.
55459         * tests/test-chown.h (test_chown): Simplify client.
55460         * tests/test-lchown.h (test_lchown): Likewise.
55462 2009-12-06  Bruno Haible  <bruno@clisp.org>
55464         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
55465         value.
55467 2009-12-06  Bruno Haible  <bruno@clisp.org>
55469         * lib/progname.c: Include stdio.h, stdlib.h.
55470         (set_program_name): Reject a NULL argument.
55472 2009-12-05  Eric Blake  <ebb9@byu.net>
55474         pipe2-safer: new module
55475         * modules/pipe2-safer: New file.
55476         * lib/unistd-safer.h (pipe2_safer): New prototype.
55477         * lib/unistd--.h (pipe2): New wrapper.
55478         * lib/pipe-safer.c (pipe2_safer): New function.
55479         * modules/pipe (Depends-on): Add pipe2-safer.
55480         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
55482         stdlib-safer: preserve cloexec flag for mkostemp[s]
55483         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
55484         fd_safer_flag.
55486         unistd-safer: allow preservation of cloexec status via flag
55487         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
55488         prototypes.
55489         * lib/dup-safer.c (dup_safer_flag): New function.
55490         * lib/fd-safer.c (fd_safer_flag): Likewise.
55491         * modules/cloexec (configure.ac): Set witness.
55493         test-dup2: enhance test
55494         * modules/dup2-tests (Depends-on): Add cloexec.
55495         * tests/test-dup2.c (main): Enhance test.
55497         cloexec: add dup_cloexec
55498         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
55499         header and comments.
55500         * lib/cloexec.c (set_cloexec_flag): Add comments.
55501         (dup_cloexec): New function, with mingw implementation borrowed
55502         from...
55503         * lib/w32spawn.h (dup_noinherit): ...here.
55504         * modules/execute (Depends-on): Add cloexec.
55505         * modules/pipe (Depends-on): Likewise.
55506         * modules/cloexec (Depends-on): Add dup2.
55507         * modules/cloexec-tests (Files): New file.
55508         * tests/test-cloexec.c: Likewise.
55510         test-xalloc-die: fix test for mingw
55511         * modules/xalloc-die-tests (Files): Add tests/init.sh.
55512         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
55513         directory and .exe suffix off argv[0] output.
55515         test-fseeko: fix test for mingw
55516         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
55517         than undefining fseek, so test will pass on mingw.
55519 2009-12-05  Bruno Haible  <bruno@clisp.org>
55521         * lib/progname.h (set_program_name): Clarify specification.
55522         * lib/progname.c (set_program_name): Likewise.
55523         Reported by Jim Meyering.
55525 2009-12-05  Jim Meyering  <meyering@redhat.com>
55527         maint.mk: backslash-escape parens in default regexp
55528         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
55529         backslash-escape the literal parentheses.
55531         maint.mk: news-date-check: use grep -E
55532         * top/maint.mk (today): Define a Make variable, not a...
55533         (news-date-check): ...shell variable.
55534         (news-date-regexp): Use the Make variable.
55535         Use grep's -E option.  Change the failing diagnostic to mention
55536         the variable, $(news-date-regexp).
55538 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
55540         maintainer-makefile: allow customization of NEWS entry format
55541         * top/maint.mk (news-date-regexp): New overridable variable.
55542         (news-date-check): Use it.
55544 2009-12-04  Eric Blake  <ebb9@byu.net>
55546         mgetgroups: add xgetgroups, and avoid ENOSYS failures
55547         * lib/mgetgroups.h (xgetgroups): New prototype.
55548         * lib/mgetgroups.c (xgetgroups): New wrapper.
55549         (mgetgroups): Handle ENOSYS.
55550         * modules/mgetgroups (Depends-on): Add realloc.
55551         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
55553         mgetgroups: avoid argument promotion issues with -1
55554         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
55555         for invalid gid_t.
55556         * tests/test-chown.h (getegid, test_chown): Likewise.
55557         * tests/test-lchown.h (getegid, test_lchown): Likewise.
55559 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
55561         exclude: Fix header file problems.
55562         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
55564 2009-12-01  Jim Meyering  <meyering@redhat.com>
55566         fts: fts_open: do not let an empty string cause immediate failure
55567         This is required in support of GNU rm, for which the command
55568         "rm A '' B" must process and remove both A and B, in spite of
55569         the empty string argument.
55570         * lib/fts.c (fts_open): Do not let the presence of an empty string
55571         cause fts_open to fail immediately.  Most fts-using tools must be
55572         able to process all arguments, in order, and can be expected to
55573         diagnose such arguments themselves.
55575 2009-11-30  Eric Blake  <ebb9@byu.net>
55577         utimens: fix compilation error
55578         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
55579         Declare variable at right scope.
55581 2009-11-29  Jim Meyering  <meyering@redhat.com>
55583         bootstrap: handle perl-5.11's changed --version output
55584         * build-aux/bootstrap (get_version): Handle perl separately,
55585         since perl-5.11's --version output is different.
55587 2009-11-28  Jim Meyering  <meyering@redhat.com>
55589         userspec: depend on the inttostr module, too
55590         * modules/userspec (Depends-on): Add inttostr.
55592         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
55593         * lib/userspec.c (parse_with_separator): Do not accept a user ID
55594         number of MAXUID when it evaluates to (uid_t) -1.
55595         Likewise for group ID.  Reported by Matt McCutchen in
55596         <http://savannah.gnu.org/bugs/?28113>
55598         userspec: reformat to use spaces, not TABs
55599         * lib/userspec.c: Expand TABs to spaces.
55600         Add Emacs' "indent-tabs-mode: nil" hint.
55602 2009-11-27  Eric Blake  <ebb9@byu.net>
55604         getopt-gnu: flush out another BSD bug
55605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
55606         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
55607         flush out BSD bug.
55608         * tests/test-getopt.h (test_getopt): End lists with NULL.
55609         * tests/test-getopt_long.h (test_getopt_long): Likewise.
55610         (test_getopt_long_posix): Enhance test.
55611         * modules/getopt-posix-tests (Depends-on): Add stdbool.
55612         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
55613         getopt-gnu.
55614         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
55615         Likewise.
55617 2009-11-27  Simon Josefsson  <simon@josefsson.org>
55619         * modules/idpriv-droptemp-tests (Notice): Fix text.
55621 2009-11-27  Jim Meyering  <meyering@redhat.com>
55623         test-xalloc-die: avoid spurious failure due to libtool argv difference
55624         In a libtool-enabled project, this test would fail due to a difference
55625         in the emitted program name, e.g.,
55626         -test-xalloc-die: memory exhausted
55627         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
55628         Use program to avoid that.
55629         * modules/xalloc-die-tests (Depends-on): Add progname.
55630         * tests/test-xalloc-die.c: Include progname.h".
55631         (program_name): Remove decl.
55632         (main): Call set_program_name.
55633         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
55635 2009-11-26  Richard Jones  <rjones@redhat.com>
55637         w32sock: leave win32 error in place.
55638         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
55640 2009-11-26  Eric Blake  <ebb9@byu.net>
55642         init.sh: suggest to use skip_ and fail_ functions in comments
55643         * tests/init.sh: Add a sentence.
55645 2009-11-25  Bruno Haible  <bruno@clisp.org>
55647         init.sh: add documentation in comments
55648         * tests/init.sh: Add some developer and user documentation.
55650 2009-11-26  Jim Meyering  <meyering@redhat.com>
55652         init.sh: accommodate even those who specify bogus srcdir manually
55653         * tests/init.sh: Normally, srcdir is guaranteed by automake and
55654         configure-time tests to be sanitized, so that there is no need to
55655         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
55656         (with no double quotes) suffices.  However, since tests may be
55657         invoked manually, and since you may explicitly set srcdir to the
55658         name of a directory containing spaces, do quote its uses here.
55659         * tests/test-pread.sh: Likewise.
55660         Suggested by Bruno Haible.
55662         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
55663         * tests/test-pread.sh: Write no data into the pipe, because
55664         test-pread actually reads none.  This avoids a diagnostic,
55665         "bash: echo: write error: Broken pipe", that arises in the unusual
55666         event something is ignoring SIGPIPE, and might be interpreted
55667         as some sort of failure.  Reported by Bruno Haible.
55669 2009-11-25  Jim Meyering  <meyering@redhat.com>
55671         test-pread: cover failure with ESPIPE and EINVAL
55672         * tests/test-pread.c (main): Test for failure, too.
55673         * tests/test-pread.sh: Invoke with stdin on a pipe.
55674         Suggested by Eric Blake.
55676         pread: improvement and fix
55677         * modules/pread (Depends-on): Depend on lseek, for portability to
55678         e.g., mingw.  Suggested by Eric Blake.
55679         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
55681         unistd.in.h: correct declaration of pread
55682         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
55683         Reported by Richard W.M. Jones.
55685         test-pread.sh: distribute the test script
55686         * modules/pread-tests (Files): Include test-pread.sh.
55688         test-pread.sh: clean up
55689         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
55690         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
55691         That is unnecessary, since it's always ".".
55692         Suggestion from Eric Blake.
55694         test-pread.sh: make executable
55695         * tests/test-pread.sh: Set executable bit.
55696         Reported by Eric Blake.
55698         correct typo in test-pread.sh
55699         * tests/test-pread.sh: Add #! line.
55701         test pread
55702         * tests/test-pread.c: New file.
55703         * tests/test-pread.sh: Likewise.
55704         * modules/pread-tests: Likewise.
55706         pread: new module
55707         * modules/pread: New file.
55708         * lib/unistd.in.h (pread): Define/declare.
55709         * lib/pread.c (pread): New file.
55710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
55711         * modules/unistd (Makefile.am): Substitute witnesses.
55712         * doc/posix-functions/pread.texi (pread): Update.
55713         * MODULES.html.sh: Add pread.
55715 2009-11-25  Jim Meyering  <meyering@redhat.com>
55717         tests/init.sh: new file to be used via most *.sh tests
55718         * tests/init.sh: New file.
55720 2009-11-25  Eric Blake  <ebb9@byu.net>
55722         utimens: work around older Linux failure with symlinks
55723         * lib/utimens.c (lutimensat_works_really): New variable.
55724         (fdutimens, lutimens): Use it to manage kernels that support
55725         nanosecond times on files, but not on symlinks.
55726         Reported by Ondřej Vašík.
55728         utimes: fix configure grammar
55729         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
55731 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
55733         regex: Fix fastmap for multibyte character ranges.
55734         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
55735         characters when a multibyte character range is included.
55737 2009-11-22  Andy Wingo  <wingo@pobox.com>
55739         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
55740         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
55742 2009-11-24  Bruno Haible  <bruno@clisp.org>
55744         doc: Most *_l functions exist in MacOS X 10.5.
55745         * doc/posix-functions/duplocale.texi: Update platforms list.
55746         * doc/posix-functions/freelocale.texi: Likewise.
55747         * doc/posix-functions/newlocale.texi: Likewise.
55748         * doc/posix-functions/uselocale.texi: Likewise.
55749         * doc/posix-functions/isalnum_l.texi: Likewise.
55750         * doc/posix-functions/isalpha_l.texi: Likewise.
55751         * doc/posix-functions/isblank_l.texi: Likewise.
55752         * doc/posix-functions/iscntrl_l.texi: Likewise.
55753         * doc/posix-functions/isdigit_l.texi: Likewise.
55754         * doc/posix-functions/isgraph_l.texi: Likewise.
55755         * doc/posix-functions/islower_l.texi: Likewise.
55756         * doc/posix-functions/isprint_l.texi: Likewise.
55757         * doc/posix-functions/ispunct_l.texi: Likewise.
55758         * doc/posix-functions/isspace_l.texi: Likewise.
55759         * doc/posix-functions/isupper_l.texi: Likewise.
55760         * doc/posix-functions/iswalnum_l.texi: Likewise.
55761         * doc/posix-functions/iswalpha_l.texi: Likewise.
55762         * doc/posix-functions/iswblank_l.texi: Likewise.
55763         * doc/posix-functions/iswcntrl_l.texi: Likewise.
55764         * doc/posix-functions/iswctype_l.texi: Likewise.
55765         * doc/posix-functions/iswdigit_l.texi: Likewise.
55766         * doc/posix-functions/iswgraph_l.texi: Likewise.
55767         * doc/posix-functions/iswlower_l.texi: Likewise.
55768         * doc/posix-functions/iswprint_l.texi: Likewise.
55769         * doc/posix-functions/iswpunct_l.texi: Likewise.
55770         * doc/posix-functions/iswspace_l.texi: Likewise.
55771         * doc/posix-functions/iswupper_l.texi: Likewise.
55772         * doc/posix-functions/iswxdigit_l.texi: Likewise.
55773         * doc/posix-functions/isxdigit_l.texi: Likewise.
55774         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
55775         * doc/posix-functions/strcasecmp_l.texi: Likewise.
55776         * doc/posix-functions/strcoll_l.texi: Likewise.
55777         * doc/posix-functions/strfmon_l.texi: Likewise.
55778         * doc/posix-functions/strftime_l.texi: Likewise.
55779         * doc/posix-functions/strncasecmp_l.texi: Likewise.
55780         * doc/posix-functions/strxfrm_l.texi: Likewise.
55781         * doc/posix-functions/tolower_l.texi: Likewise.
55782         * doc/posix-functions/toupper_l.texi: Likewise.
55783         * doc/posix-functions/towctrans_l.texi: Likewise.
55784         * doc/posix-functions/towlower_l.texi: Likewise.
55785         * doc/posix-functions/towupper_l.texi: Likewise.
55786         * doc/posix-functions/wcscoll_l.texi: Likewise.
55787         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
55788         * doc/posix-functions/wctrans_l.texi: Likewise.
55789         * doc/posix-functions/wctype_l.texi: Likewise.
55790         * doc/glibc-functions/strptime_l.texi: Likewise.
55791         * doc/glibc-functions/strtod_l.texi: Likewise.
55792         * doc/glibc-functions/strtof_l.texi: Likewise.
55793         * doc/glibc-functions/strtol_l.texi: Likewise.
55794         * doc/glibc-functions/strtold_l.texi: Likewise.
55795         * doc/glibc-functions/strtoll_l.texi: Likewise.
55796         * doc/glibc-functions/strtoul_l.texi: Likewise.
55797         * doc/glibc-functions/strtoull_l.texi: Likewise.
55798         * doc/glibc-functions/wcsftime_l.texi: Likewise.
55799         * doc/glibc-functions/wcstod_l.texi: Likewise.
55800         * doc/glibc-functions/wcstof_l.texi: Likewise.
55801         * doc/glibc-functions/wcstol_l.texi: Likewise.
55802         * doc/glibc-functions/wcstold_l.texi: Likewise.
55803         * doc/glibc-functions/wcstoll_l.texi: Likewise.
55804         * doc/glibc-functions/wcstoul_l.texi: Likewise.
55805         * doc/glibc-functions/wcstoull_l.texi: Likewise.
55807 2009-11-24  Bruno Haible  <bruno@clisp.org>
55809         duplocale: Fix logic bug.
55810         * lib/duplocale.c: Don't include <langinfo.h>.
55811         (_NL_LOCALE_NAME): Remove macro.
55812         (rpl_duplocale): Use setlocale instead of nl_langinfo.
55813         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
55815 2009-11-23  Jim Meyering  <meyering@redhat.com>
55817         test-update-copyright: don't hard-code /usr/bin/perl
55818         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
55819         perl to print the current year.  Gilles Espinasse reported that
55820         the replaced use of perl was hard-coded as /usr/bin/perl.
55822 2009-11-23  Bruno Haible  <bruno@clisp.org>
55824         duplocale: Add support for glibc 2.3.x.
55825         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
55827 2009-11-22  Bruno Haible  <bruno@clisp.org>
55829         vasnprintf: Tiny optimization.
55830         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
55831         MacOS X.
55833 2009-11-22  Bruno Haible  <bruno@clisp.org>
55835         Tests for module 'duplocale'.
55836         * modules/duplocale-tests: New file.
55837         * tests/test-duplocale.c: New file.
55839         New module 'duplocale'.
55840         * m4/duplocale.m4: New file.
55841         * lib/locale.in.h (duplocale): New declaration.
55842         * lib/duplocale.c: New file.
55843         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
55844         gl_LOCALE_H_DEFAULTS): New macros.
55845         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
55846         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
55847         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
55848         REPLACE_DUPLOCALE.
55849         * modules/duplocale: New file.
55850         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
55852 2009-11-22  Bruno Haible  <bruno@clisp.org>
55854         * modules/locale-tests (configure.ac): Test for newlocale function.
55855         * tests/test-locale.c: When the system has extended locale functions,
55856         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
55858         locale: Make locale_t available when possible.
55859         * lib/locale.in.h: Include <xlocale.h> when it exists.
55860         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
55861         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
55862         * modules/locale (Depends-on): Add extensions.
55863         (Makefile.am): Also substitute HAVE_XLOCALE_H.
55864         * doc/posix-headers/locale.texi: Document the problem with locale_t.
55866 2009-11-22  Bruno Haible  <bruno@clisp.org>
55868         Add comments.
55869         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
55870         invocation.
55871         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55872         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
55873         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55875 2009-11-22  Bruno Haible  <bruno@clisp.org>
55877         error: account for the possibility of freopen (stdout).
55878         * lib/error.c: Include <unistd.h>.
55879         (flush_stdout): New function, extracted from error and error_at_line.
55880         Determine stdout's fd dynamically.
55881         (error, error_at_line): Invoke flush_stdout.
55882         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
55883         * modules/error (Depends-on): Add unistd.
55885 2009-11-22  Bruno Haible  <bruno@clisp.org>
55887         diffseq: Add comment.
55888         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
55890 2009-11-22  Jim Meyering  <meyering@redhat.com>
55892         c-stack: avoid defining an unused static function
55893         * lib/c-stack.c (find_stack_direction): Do not define this function
55894         when it will not be used.
55896         diffseq: avoid spurious gcc warnings
55897         * lib/diffseq.h (IF_LINT2): Define.
55898         (compareseq): Use it to initialize two members of "part".
55899         This avoids two used-uninitialized warnings.
55901 2009-11-21  Jim Meyering  <meyering@redhat.com>
55903         c-stack: avoid "ignoring return value of `write'" warning
55904         * lib/c-stack.c: Include "ignore-value.h".
55905         (die): Explicitly ignore each write return value.
55906         * modules/c-stack (Depends-on): Add ignore-value.
55908 2009-11-21  Bruno Haible  <bruno@clisp.org>
55910         diffseq: reduce scope of variable 'best'.
55911         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
55912         variable, earlier used for two different purposes.
55914 2009-11-21  Jim Meyering  <meyering@redhat.com>
55916         diffseq: remove useless assignment to "best"
55917         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
55918         assignment.  At that point "best" is already guaranteed to be zero.
55920 2009-11-20  Eric Blake  <ebb9@byu.net>
55922         build: mention ftp redirector in release announcements
55923         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
55924         values that used to come from cfg.mk; mention FTP redirect URL.
55925         * build-aux/announce-gen: Mention the mirror list.
55926         Suggested by Karl Berry.
55928         nanosleep: improve port to mingw
55929         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
55930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
55931         LIB_NANOSLEEP, but only when needed.
55932         * modules/select (Link): Document LIBSOCKET.
55933         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
55934         enough.
55936         nanosleep: work around cygwin bug
55937         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
55938         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
55939         bug.
55940         (getnow): Delete, not needed.
55941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
55942         LIB_CLOCK_GETTIME.
55943         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
55944         clock-time, gettime.
55945         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
55946         bug.
55947         * modules/nanosleep-tests: New test.
55948         * tests/test-nanosleep.c: New file.
55950         sleep: work around cygwin bug
55951         * lib/sleep.c (rpl_sleep): Work around the bug.
55952         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
55953         (gl_PREREQ_SLEEP): Delete unused macro.
55954         * modules/sleep (Depends-on): Add verify.
55955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
55956         * modules/unistd (Makefile.am): Substitute witness.
55957         * lib/unistd.in.h (sleep): Update prototype.
55958         * doc/posix-functions/sleep.texi (sleep): Document the bug.
55959         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
55960         * modules/sleep-tests (Depends-on): Check for alarm.
55962 2009-11-20  Jim Meyering  <meyering@redhat.com>
55964         maint.mk: improve sc_prohibit_magic_number_exit
55965         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
55966         so it does not match uses like System.exit(1).
55967         Add comments showing how to correct all offenders.
55969 2009-11-19  Eric Blake  <ebb9@byu.net>
55971         xalloc-die-tests: add missing library
55972         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
55974         test-xvasprintf: silence compiler warnings
55975         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
55976         empty string from gcc.
55978 2009-11-19  Jim Meyering  <meyering@redhat.com>
55980         xfreopen: new module, from coreutils
55981         * modules/xfreopen: New module.
55982         * lib/xfreopen.c: New file.
55983         * lib/xfreopen.h: New file.
55984         * MODULES.html.sh (File stream based Input/Output"): Add it.
55986 2009-11-19  Eric Blake  <ebb9@byu.net>
55988         manywarnings: depend on warnings
55989         * modules/manywarnings (Depends-on): Add warnings.
55991         build: avoid compiler warnings
55992         * lib/select.c (rpl_select): Delete unused variable.
55993         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
55995 2009-11-18  Eric Blake  <ebb9@byu.net>
55997         tests: avoid false negative with --with-packager
55998         * tests/test-version-etc.sh: Discard packager information.
55999         * tests/test-argp-version-etc-1.sh: Likewise.
56000         Reported by Mike Frysinger.
56002         utimens: fix regression on Solaris
56003         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
56004         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
56005         can only change fd timestamps via futimesat.  Instead, use an
56006         additional witness macro to avoid BSD bug.
56007         Reported by Jim Meyering.
56009 2009-11-17  Eric Blake  <ebb9@byu.net>
56011         usleep: use it to simplify tests
56012         * modules/stat-time-tests (Depends-on): Add usleep.
56013         (configure.ac): Drop usleep check.
56014         * modules/chown-tests (Depends-on, configure.ac): Likewise.
56015         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
56016         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
56017         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
56018         * modules/openat-tests (Depends-on, configure.ac): Likewise.
56019         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
56020         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
56021         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
56022         Likewise.
56023         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
56024         * tests/test-lchown.h (nap): Likewise.
56025         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
56026         * tests/test-stat-time.c (nap): Likewise.
56027         * tests/test-utimens-common.h (nap): Update comments.
56029         usleep: new module
56030         * modules/usleep: New file.
56031         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
56032         * lib/usleep.c (usleep): Likewise.
56033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
56034         * modules/unistd (Makefile.am): Substitute witnesses.
56035         * lib/unistd.in.h (usleep): Add declaration.
56036         * doc/pastposix-functions/usleep.texi (usleep): Document this.
56037         * MODULES.html.sh (Date and time): Likewise.
56038         * modules/usleep-tests (Depends-on): New test.
56039         * tests/test-usleep.c: New file.
56041         chown: work around OpenBSD bug
56042         * lib/chown.c (rpl_chown): Work around the bug.
56043         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
56044         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
56045         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
56046         * modules/chown (Depends-on): Add stdbool.
56047         * modules/lchown (Depends-on): Likewise.
56048         * doc/posix-functions/chown.texi (chown): Document the bug.
56049         * doc/posix-functions/lchown.texi (lchown): Likewise.
56050         * tests/test-lchown.h (test_chown): Relax test.
56052         mkstemp: avoid conflict with C++ keyword template
56053         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
56054         * lib/mkostemp.c (mkostemp): Likewise.
56055         * lib/mkostemps.c (mkostemps): Likewise.
56056         * lib/mkstemp.c (mkstemp): Likewise.
56057         * lib/mkstemps.c (mkstemps): Likewise.
56059         xalloc-die-tests: optimize
56060         * tests/test-xalloc-die.sh: Reduce number of processes.
56062 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56064         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
56065         patch from ludo@gnu.org (Ludovic Courtès).
56067 2009-11-17  Jim Meyering  <meyering@redhat.com>
56069         version-etc: use proper license string
56070         * modules/version-etc (License): Use LGPL, not LGPLv3+.
56071         * modules/version-etc-fsf: Likewise.
56073 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56075         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
56076         printed to stdout.  Deal with EOL differences.
56078 2009-11-17  Eric Blake  <ebb9@byu.net>
56080         unsetenv: work around Solaris bug
56081         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
56082         * lib/unsetenv.c (rpl_unsetenv): Work around it.
56083         Reported by Jim Meyering.
56085         vasnprintf: avoid compiler warnings
56086         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
56087         variables.
56088         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
56090 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56092         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
56093         settings since xalloc-die is no longer the self test,
56094         xalloc-die.sh is.
56096 2009-11-17  Jim Meyering  <meyering@redhat.com>
56098         test-xalloc-die.sh: make the code agree with the commit log
56099         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
56100         at the end, just in case you happen to have a test-xalloc-die
56101         program in some other PATH directory.
56103         test-xalloc-die.sh: fix a portability bug
56104         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
56105         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
56106         Otherwise, argv[0] (as often seen in diagnostics) would be too
56107         system-dependent, sometimes with, and sometimes without the leading "./".
56109         version-etc-fsf: relax license to LGPLv3+
56110         * modules/version-etc-fsf (License): Relax license.
56112 2009-11-16  Eric Blake  <ebb9@byu.net>
56114         xalloc-die-tests: avoid printing null pointer
56115         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
56116         shell script.
56117         * tests/test-xalloc-die.c (program_name): Declare.
56118         * tests/test-xalloc-die.sh (tmpfiles): New file.
56120         setenv, unsetenv: work around various bugs
56121         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
56122         (setenv) [HAVE_SETENV]: Work around bugs.
56123         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
56124         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
56125         for bugs.
56126         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
56127         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
56128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
56129         * modules/stdlib (Makefile.am): Update substitutions.
56130         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
56131         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
56132         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
56133         * modules/setenv-tests: New test.
56134         * modules/unsetenv-tests: Likewise.
56135         * tests/test-setenv.c: New file.
56136         * tests/test-unsetenv.c: Likewise.
56138 2009-11-16  Jim Meyering  <meyering@redhat.com>
56140         version-etc: relax license to LGPLv3+
56141         * modules/version-etc (License): Relax license.
56143         better AC_REQUIRE expanded-before-required-warning avoidance
56144         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
56145         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
56146         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
56147         which is no longer needed.
56149 2009-11-16  Eric Blake  <ebb9@byu.net>
56151         test-freading: clean up temporary file
56152         * tests/test-freading.c (main): Remove file on success, and use
56153         ASSERT more liberally.
56154         Reported by Jim Meyering.
56156 2009-11-16  Jim Meyering  <meyering@redhat.com>
56158         avoid new AC_REQUIRE expanded-before-required warnings
56159         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
56160         merely using it.
56161         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
56162         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
56164 2009-11-15  Simon Josefsson  <simon@josefsson.org>
56166         * tests/test-xalloc-die.c: New file.
56167         * modules/xalloc-die-tests: New file.
56168         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
56169         XFAIL_TESTS so it can be appended by modules.
56171 2009-11-15  Simon Josefsson  <simon@josefsson.org>
56173         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
56174         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
56176 2009-11-14  Eric Blake  <ebb9@byu.net>
56178         fnmatch: avoid compiler warning
56179         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
56180         to silence compiler warning about mismatch signedness in ?:.
56181         Reported by Robert Millan.
56183         intprops: add double-inclusion guard
56184         * lib/intprops.h: Allow idempotent includes.
56185         Suggested by Bruce Korb.
56187         openat: detect Solaris fchownat bug
56188         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
56189         penalizing glibc chownat when only lchownat is broken.
56190         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
56191         trailing slash bugs.
56192         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
56193         * modules/openat-tests (Files): Include more files.
56194         (Depends-on): Add mgetgroups, sleep, stat-time.
56195         (configure.ac): Add additional checks.
56196         (Makefile.am): Build new test.
56197         * tests/test-fchownat.c: New file.
56199         lchown: detect Solaris and FreeBSD bug
56200         * lib/lchown.c (rpl_lchown): Work around bug.
56201         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
56202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56203         * modules/unistd (Makefile.am): Populate it.
56204         * lib/unistd.in.h (lchown): Update declaration.
56205         * doc/posix-functions/lchown.texi (lchown): Document the bug.
56206         * modules/lchown-tests: New file.
56207         * tests/test-lchown.h (test_lchown): Likewise.
56208         * tests/test-lchown.c (main): Likewise.
56210         chown: detect Solaris and FreeBSD bug
56211         * lib/chown.c (rpl_chown): Work around bug.
56212         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
56213         (gl_PREREQ_CHOWN): Delete.
56214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56215         * modules/unistd (Makefile.am): Populate it.
56216         * lib/unistd.in.h (chown): Update declaration.
56217         * lib/lchown.c (chown): Update client.
56218         * modules/lchown (Depends-on): Add lstat.
56219         * doc/posix-functions/chown.texi (chown): Document the bug.
56220         * doc/posix-functions/getgroups.texi (getgroups): Document
56221         getgroups pitfall.
56222         * modules/chown-tests: New file.
56223         * tests/test-chown.h (test_chown): Likewise.
56224         * tests/test-chown.c (main): Likewise.
56226 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
56228         gnulib-tool: correctly detect absence of m4 directories
56229         * gnulib-tool: Avoid extra newline on data passed to wc -l.
56231 2009-11-14  Jim Meyering  <meyering@redhat.com>
56233         maint.mk: Prohibit inclusion of "xalloc.h" without use.
56234         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
56236 2009-11-14  John W. Eaton  <jwe@gnu.org>
56238         strftime.h: wrap function declaration in extern "C" block
56239         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
56241 2009-11-13  Eric Blake  <ebb9@byu.net>
56243         getgroups: avoid compiler warning
56244         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
56246         getgroups: work around FreeBSD bug
56247         * lib/getgroups.c (rpl_getgroups): Work around the bug.
56248         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
56249         * doc/posix-functions/getgroups.texi (getgroups): Document it.
56250         * tests/test-getgroups.c (main): Fix buffer overrun.
56252         getgroups: avoid compilation failure
56253         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
56254         * modules/getgroups (Depends-on): Add stdint.
56256 2009-11-13  Jim Meyering  <meyering@redhat.com>
56258         test-getgroups: avoid compilation failure
56259         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
56261 2009-11-13  Eric Blake  <ebb9@byu.net>
56263         mgetgroups: new module, taken from coreutils
56264         * modules/mgetgroups: New file.
56265         * lib/mgetgroups.h: Likewise.
56266         * lib/mgetgroups.c (mgetgroups): Likewise.
56267         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
56268         * MODULES.html.sh (Users and groups): Mention it.
56270         getgroups: don't expose GETGROUPS_T to user
56271         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
56272         an element at a time if GETGROUPS_T is wrong size.
56273         * lib/getugroups.h (getugroups): Change signature.
56274         * lib/unistd.in.h (getgroups): Likewise.
56275         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
56276         signature needs fixing.
56277         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
56278         AC_TYPE_GETGROUPS.
56279         * modules/group-member (Depends-on): Add getgroups.
56280         * lib/group-member.c (group_info, get_group_info): Use gid_t.
56281         (group_member): Rely on getgroups replacement.
56282         * lib/getugroups.c (getugroups): Use gid_t.
56283         * tests/test-getgroups.c (main): Likewise.
56284         * NEWS: Mention the signature change.
56285         * doc/posix-functions/getgroups.texi (getgroups): Mention the
56286         problem with signature.
56287         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
56288         GETGROUPS_T is still useful for setgroups.
56290         getgroups, getugroups: provide stubs for mingw
56291         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
56292         * lib/getugroups.c (getugroups): Likewise.
56293         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
56294         function.  Modernize replacement scheme.
56295         (gl_PREREQ_GETGROUPS): Delete.
56296         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
56297         * modules/getgroups (configure.ac): Declare witness.
56298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
56299         * modules/unistd (Depends-on): Substitute witness.
56300         * lib/unistd.in.h (getgroups): Declare replacement.
56302         getgroups: avoid calling exit
56303         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
56304         drop xalloc.
56305         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
56306         dependencies.
56307         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
56308         exiting, in the rare case of malloc failure.
56310         getgroups: fix logic error
56311         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
56312         has more than 20 groups.
56313         * modules/getgroups-tests: New test.
56314         * tests/test-getgroups.c: New file.
56316 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56318         * tests/test-base64.c: Improve.
56320 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56322         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
56323         Blake <ebb9@byu.net>.
56325 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56327         * tests/test-xvasprintf.c: Add %s%s related checks.
56329 2009-11-12  Eric Blake  <ebb9@byu.net>
56331         version-etc: match standards.texi style
56332         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
56333         and use <> only for URLs.
56335 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
56337         fts: do not fail on a submount during traversal
56338         * lib/fts.c (fts_build): Read the stat info again after opening
56339         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
56340         Original report at http://bugzilla.redhat.com/501848.
56342 2009-11-12  Jim Meyering  <meyering@redhat.com>
56344         bootstrap: sync from coreutils
56345         * build-aux/bootstrap (bootstrap_epilogue): New function.
56346         Use git_modules_config in one more place.  This make bootstrap's
56347         --gnulib-srcdir option more useful for testing.
56349         bootstrap: generalize autoheader check
56350         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
56351         AC_CONFIG_HEADERS.
56353 2009-11-11  Eric Blake  <ebb9@byu.net>
56355         mkfifoat: use new modules for Solaris and BSD bugs
56356         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
56357         * lib/mkfifoat.c (mknodat): Split...
56358         * lib/mknodat.c (mknodat): ...into new file.
56359         * modules/mkfifoat (Files): Ship new file.
56360         (Depends-on): Add mkfifo, mknod.
56361         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
56362         (Depends-on): Add symlink.
56363         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
56364         redundant with test_mkfifo.h.
56365         (do_mkfifoat, do_mknodat): New helpers.
56367         mknod: new module
56368         * modules/mknod: New file.
56369         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
56370         * lib/mknod.c (mknod): Likewise.
56371         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
56372         defaults.
56373         * modules/sys_stat (Makefile.am): Substitute them.
56374         * lib/sys_stat.in.h (mknod): Declare replacement.
56375         * MODULES.html.sh (Support for systems lacking POSIX:2008):
56376         Document it.
56377         * doc/posix-functions/mknod.texi (mknod): Likewise.
56378         * modules/mknod-tests: New test.
56379         * tests/test-mknod.c: Likewise.
56381         mkfifo: new module
56382         * modules/mkfifo: New file.
56383         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
56384         * lib/mkfifo.c (mkfifo): Likewise.
56385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
56386         defaults.
56387         * modules/sys_stat (Makefile.am): Substitute them.
56388         * lib/sys_stat.in.h (mkfifo): Declare replacement.
56389         * MODULES.html.sh (Support for systems lacking POSIX:2008):
56390         Document it.
56391         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
56392         * modules/mkfifo-tests: New test.
56393         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
56394         from test-mkfifoat.c.
56395         * tests/test-mkfifo.c: New file.
56397         readlink: detect FreeBSD bug
56398         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
56399         slash on symlink.
56400         * doc/posix-functions/readlink.texi (readlink): Document the bug.
56401         * tests/test-readlink.h (test_readlink): Enhance test.
56403         symlink: detect FreeBSD bug
56404         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
56405         slash on symlink.
56406         * doc/posix-functions/symlink.texi (symlink): Document the bug.
56407         * tests/test-symlink.h (test_symlink): Enhance test.
56409 2009-11-10  Eric Blake  <ebb9@byu.net>
56411         link: detect FreeBSD bug
56412         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
56413         symlink.
56414         * doc/posix-functions/link.texi (link): Document the bug.
56415         * tests/test-link.h (test_link): Enhance test.
56416         * tests/test-linkat.c (main): Update caller.
56418         unlink, remove: detect FreeBSD bug
56419         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
56420         slash on symlink.
56421         * doc/posix-functions/unlink.texi (unlink): Document the bug.
56422         * doc/posix-functions/remove.texi (remove): Likewise.
56423         * tests/test-unlink.h (test_unlink): Enhance test.
56424         * tests/test-remove.c (main): Likewise.
56426 2009-11-09  Eric Blake  <ebb9@byu.net>
56428         rename: detect FreeBSD bug
56429         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
56430         slash on symlink.
56431         * modules/renameat-tests (Depends-on): Add filenamecat.
56432         * tests/test-rename.h (test_rename): Allow one more errno.
56433         * tests/test-renameat.c (main): Likewise.
56434         * doc/posix-functions/rename.texi (rename): Document the bug.
56436         open: detect FreeBSD bug
56437         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
56438         symlink.
56439         * doc/posix-functions/open.texi (open): Document the bug.
56440         * doc/posix-functions/utimes.texi (utimes): Likewise.
56441         * tests/test-open.h (test_open): Add parameters, and test symlink
56442         handling.
56443         * tests/test-open.c (main): Adjust caller.
56444         * tests/test-fcntl-safer.c (main): Likewise.
56445         * modules/open-tests (Depends-on): Add stdbool, symlink.
56446         * modules/fcntl-safer-tests (Depends-on): Likewise.
56447         * tests/test-openat.c (main): Add test-open tests.
56449         stat: detect FreeBSD bug
56450         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
56451         symlink.
56452         * doc/posix-functions/stat.texi (stat): Document the bug.
56453         * tests/test-stat.h (test_stat_func): Add argument.
56454         * tests/test-stat.c (main): Adjust caller.
56455         * tests/test-fstatat.c (main): Likewise.
56456         * modules/stat-tests (Depends-on): Add stdbool, symlink.
56457         Reported by Jim Meyering.
56459 2009-11-09  James Youngman  <jay@gnu.org>
56461         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
56462         * lib/strftime.c: Correct placement of #include "ignore-value.h".
56464 2009-11-08  Jim Meyering  <meyering@redhat.com>
56466         utimens: remove invalid futimesat call
56467         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
56468         It used the file descriptor of the target file as the DIR_FD
56469         parameter and NULL as the file name.  That caused failure with
56470         errno == EFAULT on FreeBSD-8.0-rc2
56472 2009-11-07  Eric Blake  <ebb9@byu.net>
56474         fflush, freadseek: use fseeko, not fseek
56475         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
56476         (clear_ungetc_buffer): Avoid potential problems on large files.
56477         * lib/freadseek.c (freadseek): Likewise.
56478         * modules/freadseek (Depends-on): Add fseeko.
56479         * modules/fseek (configure.ac): Set a witness.
56480         * tests/test-fflush.c (main): Use fseeko.
56481         * tests/test-fpurge.c (fseek): Disable link warning.
56482         * tests/test-freadable.c (fseek): Likewise.
56483         * tests/test-freading.c (fseek): Likewise.
56484         * tests/test-fseeko.c (fseek): Likewise.
56485         * tests/test-ftell.c (fseek): Likewise.
56486         * tests/test-ftello.c (fseek): Likewise.
56487         * tests/test-fwritable.c (fseek): Likewise.
56488         * tests/test-fwriting.c (fseek): Likewise.
56490 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56492         * modules/memchr (Depends-on): Drop getpagesize dependency.
56494 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56496         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
56497         Reported by Ludovic Courtès.
56498         * build-aux/pmccabe2html: Improve example usage.
56499         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
56501 2009-11-06  Jim Meyering  <meyering@redhat.com>
56503         do-release-commit-and-tag: New module.
56504         Automate the release-commit and tag process.
56505         * build-aux/do-release-commit-and-tag: New script, from coreutils.
56506         * modules/do-release-commit-and-tag: New file.
56507         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56509 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56511         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
56512         because test-select.c uses inet_pton.
56514 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56516         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
56517         GETADDRINFO_LIB.  Bump serial number.
56518         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
56519         Suggested by Eric Blake <ebb9@byu.net>.
56521 2009-11-05  Eric Blake  <ebb9@byu.net>
56523         strtod: detect darwin bug
56524         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
56525         Reported by Leo Davis.
56527         freopen-safer: new module
56528         * modules/freopen-safer: New module.
56529         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
56530         * lib/freopen-safer.c (freopen_safer): New file.
56531         * lib/stdio-safer.h (freopen_safer): New declaration.
56532         * lib/stdio--.h (freopen): New override.
56533         * MODULES.html.sh (File stream based Input/Output): Mention it.
56534         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
56535         freopen-safer module.
56536         * doc/posix-functions/stderr.texi (stderr): Likewise.
56537         * doc/posix-functions/stdin.texi (stdin): Likewise.
56538         * doc/posix-functions/stdout.texi (stdout): Likewise.
56539         * modules/freopen-safer-tests: New test.
56540         * tests/test-reopen-safer.c: New file.
56542 2009-11-05  Jim Meyering  <meyering@redhat.com>
56544         maint.mk: Prohibit inclusion of "close-stream.h" without use.
56545         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
56547 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56549         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
56551 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56553         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
56555 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56557         Fix link error.
56558         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
56559         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56561 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56563         * tests/test-func.c: Also test value of __func__.
56565 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56567         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
56568         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
56570 2009-11-05  Bruno Haible  <bruno@clisp.org>
56572         Fix link error.
56573         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
56574         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56575         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
56577 2009-11-05  Bruno Haible  <bruno@clisp.org>
56579         Tests for module 'inet_pton'.
56580         * modules/inet_pton-tests: New file.
56581         * tests/test-inet_pton.c: New file.
56583 2009-11-05  Bruno Haible  <bruno@clisp.org>
56585         Tests for module 'inet_ntop'.
56586         * modules/inet_ntop-tests: New file.
56587         * tests/test-inet_ntop.c: New file.
56589 2009-11-04  Eric Blake  <ebb9@byu.net>
56591         stdlib-safer: wrap all mkstemp variants
56592         * modules/mkostemp (configure.ac): Set witness.
56593         * modules/mkostemps (configure.ac): Likewise.
56594         * modules/mkstemps (configure.ac): Likewise.
56595         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
56596         (mkstemps_safer): Wrap more functions.
56597         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
56598         wrapping.
56599         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
56600         (mkstemps_safer): Implement the wrappers.
56602         mkstemps, mkostemps: new modules
56603         * modules/mkostemps: New module.
56604         * modules/mkstemps: Likewise.
56605         * lib/mkostemps.c (mkostemps): New file.
56606         * lib/mkstemps.c (mkstemps): Likewise.
56607         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
56608         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
56609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
56610         * modules/stdlib (Makefile.am): Substitute them.
56611         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
56612         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
56613         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
56614         * doc/gnulib.texi (Glibc stdlib.h): Include them.
56615         * MODULES.html.sh (File system functions): Mention them.
56617         tempname: resync from glibc
56618         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
56619         same values for __GT_FILE as glibc.  Abort even when assertions
56620         are disabled.
56621         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
56622         match its value otherwise.  Allow idempotent inclusion.
56623         * lib/mkdtemp.c (mkdtemp): Adjust caller.
56624         * lib/mkostemp.c (mkostemp): Likewise.
56625         * lib/mkstemp.c (mkstemp): Likewise.
56626         * lib/tmpfile.c (tmpfile): Likewise.
56627         * NEWS: Document this.
56629         utimens: fix use of futimens on older Linux
56630         * lib/utimens.c (fdutimens): Use updated, rather than original,
56631         timespec to avoid bug in older Linux kernel.
56632         Reported by Simon Josefsson.
56634 2009-11-04  Bruno Haible  <bruno@clisp.org>
56636         Make num_processors more flexible and consistent.
56637         * lib/nproc.h (enum nproc_query): New type.
56638         (num_processors): Add a 'query' argument.
56639         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
56640         (num_processors): Add a 'query' argument. Test the value of the
56641         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
56642         mingw, count the number of CPUs available for the current process.
56643         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
56644         Check for sched_getaffinity and sched_getaffinity_np.
56645         * modules/nproc (Depends-on): Add c-ctype, extensions.
56646         * NEWS: Mention the change.
56648 2009-11-03  Bruno Haible  <bruno@clisp.org>
56650         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
56652 2009-11-03  Jim Meyering  <meyering@redhat.com>
56654         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
56655         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
56656         if it is defined.
56658 2009-11-02  Eric Blake  <ebb9@byu.net>
56660         mktime, timegm: share common declaration
56661         * lib/mktime-internal.h: New file.
56662         * lib/mktime.c: Use it rather than open-coding a declaration.
56663         * lib/timegm.c: Likewise.
56664         * modules/mktime (Files): Ship it.
56665         * modules/timegm (Files): Likewise.
56666         Suggested by Bruno Haible.
56668         test-update-copyright: update test to match script changes
56669         * tests/test-update-copyright.sh: Avoid hard-coding perl
56670         location.  Don't update *.bak created by earlier runs.
56672 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
56673             Simon Josefsson  <simon@josefsson.org>
56674             Bruno Haible  <bruno@clisp.org>
56676         Fix link error on Solaris 8.
56677         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
56678         also in libnsl. Define also INET_PTON_LIB.
56679         * modules/inet_pton (Link): New section.
56681 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56682             Bruno Haible  <bruno@clisp.org>
56684         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
56685         * modules/inet_ntop (Link): New section.
56686         Reported by Boyan Kasarov <bkasarov@gmail.com>.
56688 2009-11-02  Eric Blake  <ebb9@byu.net>
56690         maint: avoid compiler warnings in m4 macros
56691         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
56692         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
56694 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56696         * m4/pmccabe2html.m4: Remove file.
56697         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
56698         function.  Change maintainer.
56699         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
56700         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
56701         Courtès).
56703 2009-10-31  Eric Blake  <ebb9@byu.net>
56705         fseeko: fix m4 regression
56706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
56707         regression from 2009-10-27.
56708         Reported by Ralf Wildenhues.
56710 2009-10-31  Jim Meyering  <meyering@redhat.com>
56712         inttostr: aesthetics and improved (compile-time) safety
56713         Define inttype_is_signed rather than inttype_is_unsigned,
56714         since the sole use is via "#if inttype_is_signed".
56715         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
56716         inttype_is_unsigned.
56717         * lib/offtostr.c (inttype_is_signed): Likewise.
56718         * lib/uinttostr.c (inttype_is_signed): Likewise.
56719         * lib/umaxtostr.c (inttype_is_signed): Likewise.
56720         * lib/inttostr.c (inttostr): Use verify to cross-check the
56721         inttype_is_signed value and the signedness of the actual type.
56722         * modules/inttostr (Depends-on): Add verify.
56724 2009-10-30  Eric Blake  <ebb9@byu.net>
56726         build: avoid compiler warnings
56727         * lib/fchmodat.c (lchmod): Mark unused variables.
56728         * lib/getopt.c (_getopt_initialize): Likewise.
56729         * lib/mktime.c (__mktime_internal): Provide prototype.
56730         * lib/inttostr.c (inttostr): Avoid compiler warning even with
56731         older gcc that do not understand #pragma GCC diagnostic.
56732         * lib/uinttostr.c (inttype_is_unsigned): Define.
56733         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
56735 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
56737         stat: fix compilation on AIX
56738         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
56739         only see struct stat64.
56741 2009-10-30  Eric Blake  <ebb9@byu.net>
56743         exclude: make more robust
56744         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
56745         rather than masking a coding bug.
56746         Suggested by Bruno Haible.
56748 2009-10-30  Jim Meyering  <meyering@redhat.com>
56750         perl scripts: remove #!/usr/bin/perl in favor of more portable...
56751         Rather than putting #!/usr/bin/perl on the first line,
56752         start with a variant of what's recommended by "man perlrun" that
56753         invokes the first "perl" program from your shell's search path.
56754         * build-aux/gitlog-to-changelog: Replace #!... as above.
56755         Add a "Local Variables" perl mode setting.
56756         Prompted by a patch from Ludovic Courtès.
56757         Improved by Eric Blake.
56758         * build-aux/useless-if-before-free: Likewise.
56759         * build-aux/announce-gen: Likewise.
56760         * build-aux/update-copyright: Likewise.
56762 2009-10-29  Eric Blake  <ebb9@byu.net>
56764         filenamecat-lgpl: adjust clients
56765         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
56766         filenamecat.
56767         * modules/renameat (Depends-on): Likewise.
56769         filenamecat: split into filenamecat-lgpl
56770         * modules/filenamecat-lgpl: New module.
56771         * modules/filenamecat (Files): Move library-safe files into
56772         filenamecat-lgpl.
56773         (Depends-on): Add filenamecat-lgpl.
56774         (configure.ac): Declare witness.
56775         * lib/filenamecat.h (file_name_concat): Only declare when using
56776         GPL module.
56777         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
56778         Move...
56779         * lib/filenamecat-lgpl.c: ...into new file.
56780         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
56781         (gl_FILE_NAME_CONCAT): Use it.
56782         * MODULES.html.sh (File system functions): Mention new module.
56784         argp: avoid memory leak
56785         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
56786         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
56787         base_name, since the latter malloc()s and can call exit().
56788         Leak introduced 2006-07-03.
56790         dirname-lgpl: adjust clients that don't need full dirname
56791         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
56792         * modules/filenamecat (Depends-on): Likewise.
56793         * modules/linkat (Depends-on): Likewise.
56794         * modules/mkancesdirs (Depends-on): Likewise.
56795         * modules/mkdir (Depends-on): Likewise.
56796         * modules/openat (Depends-on): Likewise.
56797         * modules/savewd (Depends-on): Likewise.
56798         * modules/rename (Depends-on): Likewise.
56799         (License): Relax license.
56800         * modules/mkdir-tests (Depends-on): Drop progname.
56801         (Makefile.am): Delete unneeded LDADD.
56802         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
56804         dirname: split into dirname-lgpl
56805         * modules/dirname-lgpl: New module.
56806         * modules/dirname (Files): Move library-safe files into
56807         dirname-lgpl.
56808         (Depends-on): Add dirname-lgpl.
56809         (configure.ac): Declare witness.
56810         * modules/double-slash-root (License): Relax license.
56811         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
56812         module.
56813         * lib/dirname.c (dir_len, mdir_name): Move...
56814         * lib/dirname-lgpl.c: ...into new file.
56815         * lib/basename.c (last_component, base_len): Move...
56816         * lib/basename-lgpl.c: ...into new file.
56817         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
56818         (gl_DIRNAME): Use it.
56819         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
56820         Mention new module.
56821         * modules/dirname-tests (Depends-on): Add progname.
56822         * tests/test-dirname.c (program_name): Delete.
56824         mkdir: make safe for libraries
56825         * modules/mkdir (Depends-on): Drop xalloc.
56826         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
56827         exit.
56829         tests: avoid some compiler warnings
56830         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
56831         literals.
56832         * tests/test-memchr.c (main): Avoid type mismatch.
56833         * tests/test-arpa_inet.c (main): Avoid unused parameters.
56834         * tests/test-base64.c (main): Likewise.
56835         * tests/test-getdelim.c (main): Likewise.
56836         * tests/test-gethostname.c (main): Likewise.
56837         * tests/test-getline.c (main): Likewise.
56838         * tests/test-netinet_in.c (main): Likewise.
56839         * tests/test-select.c (open_server_socket, main): Likewise.
56840         * tests/test-select-stdin.c (main): Likewise.
56841         * tests/test-sockets.c (main): Likewise.
56842         * tests/test-strsignal.c (main): Likewise.
56843         * tests/test-sys_select.c (main): Likewise.
56844         * tests/test-sys_socket.c (main): Likewise.
56845         * tests/test-u64.c (main): Likewise.
56846         * tests/test-xfprintf-posix.c (main): Likewise.
56847         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
56849         sockets: avoid compiler warning
56850         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
56852         maint: detect usage(1) and other suspicious exits
56853         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
56855 2009-10-29  Jim Meyering  <meyering@redhat.com>
56857         timespec: long-to-int truncation could make timespec_cmp malfunction
56858         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
56859         a multiple of 2^32 nanoseconds as no difference.
56861 2009-10-28  Jim Meyering  <meyering@redhat.com>
56863         fprintftime: wrap macro code argument in "do {...} while(0)"
56864         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
56865         cpy macro must be a statement that can be followed by a semicolon.
56866         Now that the else clause contains a comment and is hence longer
56867         than one line, I require curly braces.  That in turn requires
56868         that we wrap this code block in the standard do...while(0).
56870         fprintftime: remove stray semicolon from previous change
56871         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
56873         fprintftime: avoid a warning about ignored fwrite return value
56874         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
56875         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
56876         that is unsafe.
56877         * modules/fprintftime (Depends-on): Add ignore-value.
56879         exclude: avoid an unwarranted warning
56880         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
56882 2009-10-27  Eric Blake  <ebb9@byu.net>
56884         fseek: avoid compilation failure when fflush is replaced
56885         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
56886         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
56887         module is in use.
56888         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
56889         module is not in use; since REPLACE_FSEEK worked otherwise.
56890         (GNULIB_FTELLO): Likewise for ftell.
56891         Reported by Ian Beckwith and others.
56893 2009-10-27  Bruno Haible  <bruno@clisp.org>
56895         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
56896         Reported by Jim Meyering.
56898 2009-10-27  Jim Meyering  <jim@meyering.net>
56899             Bruno Haible  <bruno@clisp.org>
56901         Avoid warning despite dropping the return value of fwrite.
56902         * lib/unicodeio.c: Include ignore-value.h.
56903         (fwrite_success_callback): Explicitly ignore fwrite's return value.
56904         * modules/unicodeio (Depends-on): Add ignore-value.
56906 2009-10-26  Eric Blake  <ebb9@byu.net>
56908         areadlinkat: fix fallback path
56909         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
56910         pointer and zero.
56912 2009-10-22  Pádraig Brady  <P@draigBrady.com>
56914         Use a better IO block size for modern systems
56915         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
56916         * lib/md2.c: Likewise.
56917         * lib/md4.c: Likewise.
56918         * lib/md5.c: Likewise.
56919         * lib/sha1.c: Likewise.
56920         * lib/sha256.c: Likewise.
56921         * lib/sha512.c: Likewise.
56923 2009-10-22  Eric Blake  <ebb9@byu.net>
56925         tests: avoid several compiler warnings
56926         * tests/test-getcwd.c (main): Avoid buffer underflow.
56927         * tests/test-getdate.c (main): String literals are not safe with
56928         putenv, so use setenv.  Declare unused argument.
56929         * modules/getdate-tests (Depends-on): Add setenv.
56930         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
56931         problems with string literals in char *.
56932         * tests/test-hash.c (main): Avoid shadowing declaration.
56933         (insert_new): Treat string literals as char const *.
56934         * tests/test-getopt.h (test_getopt): Likewise.
56935         (getopt_loop): Alter types to minimize casting elsewhere.
56936         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
56937         (test_getopt_long_posix): Likewise.
56938         (do_getopt_long): Add wrapper to minimize casting.
56939         * tests/test-atexit.c (clear_temp_file): Use void.
56940         * tests/test-areadlink-with-size.c (main): Declare unused
56941         arguments.
56942         * tests/test-areadlink.c (main): Likewise.
56943         * tests/test-areadlinkat-with-size.c (main): Likewise.
56944         * tests/test-areadlinkat.c (main): Likewise.
56945         * tests/test-canonicalize-lgpl.c (main): Likewise.
56946         * tests/test-canonicalize.c (main): Likewise.
56947         * tests/test-dirent-safer.c (main): Likewise.
56948         * tests/test-dirname.c (main): Likewise.
56949         * tests/test-dup2.c (main): Likewise.
56950         * tests/test-fchdir.c (main): Likewise.
56951         * tests/test-fcntl-h.c (main): Likewise.
56952         * tests/test-fcntl-safer.c (main): Likewise.
56953         * tests/test-fdopendir.c (main): Likewise.
56954         * tests/test-fdutimensat.c (main): Likewise.
56955         * tests/test-fflush.c (main): Likewise.
56956         * tests/test-filenamecat.c (main): Likewise.
56957         * tests/test-filevercmp.c (main): Likewise.
56958         * tests/test-fopen-safer.c (main): Likewise.
56959         * tests/test-fopen.c (main): Likewise.
56960         * tests/test-fpending.c (main): Likewise.
56961         * tests/test-fpurge.c (main): Likewise.
56962         * tests/test-freading.c (main): Likewise.
56963         * tests/test-fstatat.c (main): Likewise.
56964         * tests/test-fsync.c (main): Likewise.
56965         * tests/test-futimens.c (main): Likewise.
56966         * tests/test-getndelim2.c (main): Likewise.
56967         * tests/test-gettimeofday.c (main): Likewise.
56968         * tests/test-getopt.c (main): Likewise.
56969         * tests/test-i-ring.c (main): Likewise.
56970         * tests/test-inttypes.c (main): Likewise.
56971         * tests/test-link.c (main): Likewise.
56972         * tests/test-lstat.c (main): Likewise.
56973         * tests/test-math.c (main): Likewise.
56974         * tests/test-md5.c (main): Likewise.
56975         * tests/test-memchr2.c (main): Likewise.
56976         * tests/test-memrchr.c (main): Likewise.
56977         * tests/test-mkdir.c (main): Likewise.
56978         * tests/test-mkdirat.c (main): Likewise.
56979         * tests/test-mkfifoat.c (main): Likewise.
56980         * tests/test-open.c (main): Likewise.
56981         * tests/test-openat-safer.c (main): Likewise.
56982         * tests/test-openat.c (main): Likewise.
56983         * tests/test-quotearg.c (main): Likewise.
56984         * tests/test-rawmemchr.c (main): Likewise.
56985         * tests/test-readlink.c (main): Likewise.
56986         * tests/test-remove.c (main): Likewise.
56987         * tests/test-rename.c (main): Likewise.
56988         * tests/test-renameat.c (main): Likewise.
56989         * tests/test-rmdir.c (main): Likewise.
56990         * tests/test-sha1.c (main): Likewise.
56991         * tests/test-signal.c (main): Likewise.
56992         * tests/test-sigaction.c (main): Likewise.
56993         * tests/test-stat.c (main): Likewise.
56994         * tests/test-stat-time.c (main): Likewise.
56995         * tests/test-stddef.c (main): Likewise.
56996         * tests/test-stdint.c (main): Likewise.
56997         * tests/test-stdio.c (main): Likewise.
56998         * tests/test-stdlib.c (main): Likewise.
56999         * tests/test-strchrnul.c (main): Likewise.
57000         * tests/test-strerror.c (main): Likewise.
57001         * tests/test-string.c (main): Likewise.
57002         * tests/test-strtod.c (main): Likewise.
57003         * tests/test-strverscmp.c (main): Likewise.
57004         * tests/test-symlink.c (main): Likewise.
57005         * tests/test-symlinkat.c (main): Likewise.
57006         * tests/test-sys_stat.c (main): Likewise.
57007         * tests/test-sys_time.c (main): Likewise.
57008         * tests/test-time.c (main): Likewise.
57009         * tests/test-unistd.c (main): Likewise.
57010         * tests/test-unlink.c (main): Likewise.
57011         * tests/test-unlinkat.c (main): Likewise.
57012         * tests/test-utimens.c (main): Likewise.
57013         * tests/test-utimensat.c (main): Likewise.
57014         * tests/test-version-etc.c (main): Likewise.
57015         * tests/test-wchar.c (main): Likewise.
57016         * tests/test-wctype.c (main): Likewise.
57017         * tests/test-xprintf-posix.c (main): Likewise.
57018         * tests/test-posixtm.c (main): Likewise.
57019         (STREQ): Delete unused macro.
57020         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
57021         shadowed variables.
57022         * tests/test-memchr.c (main): Likewise.
57024 2009-10-21  Eric Blake  <ebb9@byu.net>
57026         areadlinkat: avoid failure on older glibc
57027         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
57028         rather than mis-comparing 0 against FUNC_RESULT of char*.
57030 2009-10-21  Bruno Haible  <bruno@clisp.org>
57032         * modules/stpncpy (License): Relicense under LGPLv2+.
57033         Reported by David Lutterkort <lutter@redhat.com>.
57035 2009-10-20  Eric Blake  <ebb9@byu.net>
57037         utimensat: work around Solaris 9 bug
57038         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
57039         has trailing slash bugs.
57040         * tests/test-lutimens.h (test_lutimens): Enhance test.
57041         * tests/test-utimens.h (test_utimens): Likewise.
57042         * doc/posix-functions/utime.texi (utime): Enhance documentation.
57043         * doc/posix-functions/utimes.texi (utimes): Likewise.
57044         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57045         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
57046         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
57047         * doc/posix-functions/futimens.texi (futimens): Likewise.
57049         fdutimensat: new module
57050         * modules/fdutimensat: New file.
57051         * lib/fdutimensat.c (fdutimensat): Likewise.
57052         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
57053         * MODULES.html.sh (File system functions): Mention module.
57054         * modules/fdutimensat-tests: New test.
57055         * tests/test-fdutimensat.c: Likewise.
57057         doc: regenerate INSTALL
57058         * doc/INSTALL: Reflect recent autoconf update.
57059         * doc/INSTALL.ISO: Likewise.
57060         * doc/INSTALL.UTF-8: Likewise.
57062 2009-10-20  Pádraig Brady  <P@draigBrady.com>
57064         acl: warn if ACL support is not detected
57065         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
57067 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
57069         * lib/nproc.h: Add extern "C" block for C++.
57071 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
57072             Bruno Haible  <bruno@clisp.org>
57074         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
57075         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
57076         * doc/posix-functions/isalpha.texi: Likewise.
57077         * doc/posix-functions/isblank.texi: Likewise.
57078         * doc/posix-functions/iscntrl.texi: Likewise.
57079         * doc/posix-functions/isdigit.texi: Likewise.
57080         * doc/posix-functions/isgraph.texi: Likewise.
57081         * doc/posix-functions/islower.texi: Likewise.
57082         * doc/posix-functions/isprint.texi: Likewise.
57083         * doc/posix-functions/ispunct.texi: Likewise.
57084         * doc/posix-functions/isspace.texi: Likewise.
57085         * doc/posix-functions/isupper.texi: Likewise.
57086         * doc/posix-functions/isxdigit.texi: Likewise.
57088 2009-10-18  Bruno Haible  <bruno@clisp.org>
57090         Tests for module 'isblank'.
57091         * modules/isblank-tests: New file.
57092         * tests/test-isblank.c: New file.
57094         New module 'isblank'.
57095         * lib/isblank.c: New file.
57096         * m4/isblank.m4: New file.
57097         * modules/isblank: New file.
57098         * doc/posix-functions/isblank.texi: Mention the new module.
57100 2009-10-18  Bruno Haible  <bruno@clisp.org>
57102         New module 'ctype'.
57103         * lib/ctype.in.h: New file.
57104         * m4/ctype.m4: New file.
57105         * modules/ctype: New file.
57106         * doc/posix-headers/ctype.texi: Mention the new module.
57108 2009-10-18  Jim Meyering  <meyering@redhat.com>
57110         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
57111         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
57112         right after its initialization, rather than farther down.
57113         Keeping these in close proximity makes it easier to ensure
57114         that each such variable is initialized.  E.g.,
57116             LIB_CLOCK_GETTIME=
57117             AC_SUBST([LIB_CLOCK_GETTIME])
57119         This change also increments these serial numbers.
57120         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
57121         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57124 2009-10-18  Bruno Haible  <bruno@clisp.org>
57126         Don't let environment variables perturb build.
57127         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
57128         (gl_PREREQ_GETHRXTIME): ... not here.
57130 2009-10-18  Bruno Haible  <bruno@clisp.org>
57132         Avoid symlink attack in localcharset module.
57133         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
57134         (O_NOFOLLOW): Define fallback.
57135         (get_charset_aliases): Don't open the file if it is a symbolic link.
57136         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
57137         gl_FCNTL_H.
57138         (gl_FCNTL_H): Require it.
57139         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
57140         * modules/localcharset (Files): Add m4/fcntl_h.m4.
57141         Reported by Fergal Glynn <fglynn@veracode.com>.
57143 2009-10-18  Bruno Haible  <bruno@clisp.org>
57145         Implement nproc for mingw.
57146         * lib/nproc.c: Include <windows.h>
57147         (num_processors): On native Windows platforms, try GetSystemInfo.
57149 2009-10-18  Bruno Haible  <bruno@clisp.org>
57151         Implement nproc for IRIX.
57152         * lib/nproc.c: Include <sys/sysmp.h>.
57153         (num_processors): On IRIX systems, try sysmp.
57154         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
57156 2009-10-18  Bruno Haible  <bruno@clisp.org>
57158         Implement nproc for HP-UX.
57159         * lib/nproc.c: Include <sys/pstat.h>
57160         (num_processors): On HP-UX systems, try pstat_getdynamic.
57161         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
57162         pstat_getdynamic.
57164 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
57165             Bruno Haible  <bruno@clisp.org>
57167         Implement nproc for NetBSD, OpenBSD.
57168         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
57169         (ARRAY_SIZE): New macro.
57170         (num_processors): On BSD systems, try sysctl of HW_NCPU.
57171         * m4/nproc.m4: New file.
57172         * modules/nproc (Files): Add m4/nproc.m4.
57173         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
57174         (Makefile.am): Instead, augment lib_SOURCES.
57176 2009-10-18  Bruno Haible  <bruno@clisp.org>
57178         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
57179         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
57180         sys/param.h.
57182 2009-10-16  Eric Blake  <ebb9@byu.net>
57184         utimensat: new module
57185         * modules/utimensat: New file.
57186         * lib/utimensat.c (utimensat): Likewise.
57187         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57188         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
57189         so we can work around Linux bugs.
57190         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57191         * modules/sys_stat (Makefile.am): Substitute them.
57192         * lib/sys_stat.in.h (utimensat): Declare it.
57193         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57194         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57195         * modules/utimensat-tests: New test.
57196         * tests/test-utimensat.c: Likewise.
57198         utimens: let lutimens work on non-symlinks
57199         * lib/utimens.c (lutimens): Fall back to utimens rather than
57200         failing with ENOSYS, when file is not a symlink.
57201         (utimens): Reduce redirection.
57202         * tests/test-lutimens.h (test_lutimens): Update test to cover
57203         non-symlinks.
57204         * tests/test-utimens.h (test_utimens): Update test to cover
57205         symlinks.
57206         * tests/test-utimens.c (main): Update caller.
57208         utimens: cache whether utimensat syscall works
57209         * lib/utimens.c (utimensat_works_really): New cache variable.
57210         (fdutimens, lutimens): Use it to avoid failing syscall.
57212         test-stat-time, test-utimens: improve portability
57213         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
57214         ext4 on alpha, and for cygwin.
57215         * tests/test-utimens-common.h: New file.
57216         (nap): Factor delays into single function.
57217         * tests/test-lutimens.h (test_lutimens): Use new header.
57218         * tests/test-futimens.h (test_futimens): Likewise.
57219         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
57220         timestamps to occur from same machine, as was done previously for
57221         test_utimens.
57222         * modules/utimens-tests (Files): Ship new file.
57223         * modules/futimens-tests (Files): Likewise.
57224         Reported in part by Jim Meyering.
57226         sys_stat: sort replacement declarations
57227         * lib/sys_stat.in.h: Sort declarations.
57228         * lib/futimens.c (futimens): Fix typo.
57230 2009-10-15  Jim Meyering  <meyering@redhat.com>
57232         don't let environment settings perturb build
57233         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
57234         could cause a configure-time and/or build-time malfunction.
57235         Typically, a configure-time function-in-library test is performed
57236         via code like this:
57238           LIB_VAR=
57239           AC_SUBST([LIB_VAR])
57240           prefix_saved_LIBS=$LIBS
57241             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
57242                        [test "$ac_cv_search_FUNC" = "none required" ||
57243                         LIB_VAR=$ac_cv_search_FUNC])
57244           LIBS=$prefix_saved_LIBS
57246         However, in each of the files affected by this change, the LIB_VAR=
57247         initialization was omitted.  Thus, when set in the environment, its
57248         value would propagate into generated Makefiles when FUNC is not found
57249         in LIB_NAME.
57250         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
57251         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57254 2009-10-14  Eric Blake  <ebb9@byu.net>
57256         fchdir: avoid infinite recursion in mingw
57257         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
57258         recursing.
57260         test-stat-time: port to mingw
57261         * tests/test-stat-time.c (force_unlink): Return a value.
57262         (test_ctime) [W32]: Fix compilation error.
57263         (nap): Don't call usleep with too large an argument.  Use
57264         force_unlink.
57265         * doc/pastposix-functions/usleep.texi (usleep): Document the
57266         portability issue.
57268 2009-10-13  Jim Meyering  <meyering@redhat.com>
57270         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
57271         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
57272         * modules/pipe-filter-ii: Likewise.
57273         * modules/sys_socket-tests: Likewise.
57274         * modules/tsearch-tests: Likewise.
57275         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
57276         (check): Depend on it.
57278 2009-10-12  Eric Blake  <ebb9@byu.net>
57280         utimens-tests: port to NFS file systems
57281         * tests/test-utimens.h (test_utimens): Refactor utimecmp
57282         comparisons to avoid spurious failures from timestamp drift
57283         between NFS machines.
57285 2009-10-12  Eric Blake  <ebb9@byu.net>
57287         stat-time-tests: minor cleanups
57288         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
57289         * tests/test-stat-time.c (nap): Separate assignment from call.
57290         Suggested by Paolo Bonzini and Bruno Haible.
57292         sys_stat: guarantee struct timespec
57293         * lib/sys_stat.in.h (includes): Always include <time.h>
57294         * modules/sys_stat (Depends-on): Add time.
57295         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
57296         mode_t permission values.
57297         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
57298         get at subsecond timestamps.
57300 2009-10-10  Eric Blake  <ebb9@byu.net>
57302         futimens: new module
57303         * modules/futimens: New file.
57304         * lib/futimens.c (futimens): Likewise.
57305         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
57306         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
57307         we can work around Linux bugs.
57308         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57309         * modules/sys_stat (Makefile.am): Substitute them.
57310         * lib/sys_stat.in.h (futimens): Declare it.
57311         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57312         * doc/posix-functions/futimens.texi (futimens): Likewise.
57313         * modules/futimens-tests: New test.
57314         * tests/test-futimens.c: Likewise.
57316         utimens: introduce fdutimens
57317         * lib/utimens.h (fdutimens): New prototype.
57318         * lib/utimens.c (gl_futimens): Move guts...
57319         (fdutimens): ...to new interface.
57320         * tests/test-utimens.c (do_fdutimens): Use it.
57322         utimens: add UTIME_NOW and UTIME_OMIT support
57323         * lib/utimens.c (validate_timespec, update_timespec): New helper
57324         functions.
57325         (gl_futimens, lutimens): Use them.
57326         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
57327         stdbool, sys_stat.
57328         (Link): Mention resulting library dependency.
57329         * modules/utimecmp (Link): Likewise.
57330         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
57331         (Makefile.am): Pick up library dependency.
57332         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
57333         definition.
57334         * tests/test-sys_stat.c: Test the definitions.
57335         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
57336         * NEWS: Document library dependency.
57338         utimecmp: support symlink timestamps
57339         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
57340         hashing when possible.  Use pathconf when available.
57341         (SYSCALL_RESOLUTION): Recognize tighter resolution.
57342         * modules/utimecmp (Depends-on): Add lstat.
57344         utimens: add lutimens interface
57345         * lib/utimens.c (lutimens): New function.
57346         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
57347         * lib/utimens.h (lutimens): Declare new interface.
57348         * tests/test-utimens.c (main): Enhance test.
57349         * tests/test-lutimens.h (test_lutimens): New file.
57350         * modules/utimens-tests (Files): Distribute it.
57351         (Depends-on): Add symlink.
57352         (configure.ac): Check for usleep.
57354         utimens: validate futimens usage
57355         * lib/utimens.c (gl_futimens): Require valid fd up front, using
57356         fewer syscalls on failure later on.  Avoid compiler warning on
57357         mingw.
57358         * modules/utimens (Depends-on): Add dup2.
57360         utimens: add test
57361         * modules/utimens-tests: New test.
57362         * tests/test-utimens.h: New file.
57363         * tests/test-futimens.h: Likewise.
57364         * tests/test-utimens.c: Likewise.
57366         doc: mention timestamp portability issues
57367         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
57368         instead.
57369         * doc/posix-functions/utime.texi (utime): Likewise.
57370         * doc/posix-functions/utimes.texi (utimes): Likewise.
57371         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
57372         instead.
57373         * doc/posix-functions/futimens.texi (futimens): Mention utimens
57374         module.
57375         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57376         Mention weakness with symlink timestamps.
57377         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
57378         to utimensat/futimens instead.
57379         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
57381         test-dup2: enhance test
57382         * tests/test-dup2.c (main): Also check AT_FDCWD.
57384         test-stat-time: avoid more spurious failures
57385         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
57386         xfs; and avoid race if the two timestamps cross quantization edge.
57388         relocatable: prefer 'file system' over 'filesystem'
57389         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
57390         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
57391         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
57392         * doc/relocatable.texi (Enabling Relocatability): Likewise.
57393         * lib/relocatable.c (compute_curr_prefix): Likewise.
57395 2009-10-10  Jim Meyering  <meyering@redhat.com>
57397         stat-time-tests: check for the usleep function
57398         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
57400 2009-10-10  Bruno Haible  <bruno@clisp.org>
57402         * modules/xnanosleep: Put the Link section after the Include section.
57404 2009-10-09  Eric Blake  <ebb9@byu.net>
57406         dup2: work around FreeBSD 6.1 bug
57407         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
57408         * doc/posix-functions/dup2.texi (dup2): Document it.
57409         Reported by Nelson H. F. Beebe and Jim Meyering.
57411         test-stat-time: port to buggy NFS clients
57412         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
57413         (test_ctime): Also skip test if mtime and ctime are skewed.
57415         maint: prefer 'file system' over 'filesystem'
57416         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
57417         * doc/posix-functions/lstat.texi (lstat): Likewise.
57418         * lib/file-has-acl.c (file_has_acl): Likewise.
57419         * lib/fwriteerror.c [TEST]: Likewise.
57420         * tests/test-areadlink.h (test_areadlink): Likewise.
57421         * tests/test-areadlinkat-with-size.c (main): Likewise.
57422         * tests/test-areadlinkat.c (main): Likewise.
57423         * tests/test-canonicalize-lgpl.c (main): Likewise.
57424         * tests/test-canonicalize.c (main): Likewise.
57425         * tests/test-fstatat.c (main): Likewise.
57426         * tests/test-linkat.c (main): Likewise.
57427         * tests/test-lstat.h (test_lstat_func): Likewise.
57428         * tests/test-mkdir.h (test_mkdir): Likewise.
57429         * tests/test-readlink.h (test_readlink): Likewise.
57430         * tests/test-remove.c (main): Likewise.
57431         * tests/test-rename.h (test_rename): Likewise.
57432         * tests/test-renameat.c (main): Likewise.
57433         * tests/test-rmdir.h (test_rmdir_func): Likewise.
57434         * tests/test-symlink.h (test_symlink): Likewise.
57435         * tests/test-symlinkat.c (main): Likewise.
57436         * tests/test-unlink.h (test_unlink_func): Likewise.
57437         * tests/test-unlinkat.c (main): Likewise.
57439         maint: make realtime library usage explicit
57440         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
57441         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
57442         * modules/settime (Link): Likewise.
57443         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
57445         test-stat-time: speed up execution
57446         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
57447         warning on mingw.
57448         (nap): New helper function.
57449         (prepare_test): Use it to reduce sleep time.
57450         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
57451         execution.
57452         * modules/stat-time-tests (configure.ac): Check for usleep.
57454 2009-10-09  Jim Meyering  <meyering@redhat.com>
57456         selinux-h: always use getfilecon wrappers
57457         * lib/getfilecon.c: New file.
57458         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
57459         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
57460         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
57461         (fgetfilecon): Provide a stub.
57462         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
57463         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
57464         file unconditionally.
57465         When <selinux/selinux.h> is found, arrange to use wrappers.
57466         * modules/selinux-h (Files): Add getfilecon.c.
57467         (Makefile.am): Substitute include-next-related bits
57468         into the now-always-generated selinux/selinux.h file.
57469         * doc/glibc-functions/lgetfilecon.texi: New file.
57470         * doc/glibc-functions/fgetfilecon.texi: New file.
57471         * doc/glibc-functions/getfilecon.texi: New file.
57472         * doc/glibc-functions/getfilecon-desc.texi: New file.
57473         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
57474         which to pull in the new files.
57475         * MODULES.html.sh (Misc): Add selinux-h.
57477 2009-10-08  Jim Meyering  <meyering@redhat.com>
57479         unistd: fix comment typo
57480         * lib/unistd.in.h (euidaccess): Fix a comment typo.
57482 2009-10-08  Eric Blake  <ebb9@byu.net>
57484         areadlink: use SIZE_MAX consistently
57485         * modules/areadlink (Depends-on): Add stdint.
57486         * modules/areadlink-with-size (Depends-on): Likewise.
57487         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
57488         gives NULL; drop sys/types, since unistd gives size_t; and add
57489         stdint for SIZE_MAX.
57490         (SIZE_MAX): Rely on headers.
57491         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
57492         and add stdint.
57493         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
57494         (SIZE_MAX): Likewise.
57495         (INITIAL_BUF_SIZE): Turn into enum.
57496         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
57498 2009-10-08  Jim Meyering  <meyering@redhat.com>
57500         areadlinkat: avoid compilation failure
57501         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
57502         Fix typo in comment.
57504 2009-10-07  Eric Blake  <ebb9@byu.net>
57506         areadlinkat-with-size: new module
57507         * modules/areadlinkat-with-size: New module.
57508         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
57509         * lib/areadlink.h (areadlinkat): Declare it.
57510         * MODULES.html.sh (File system functions): Mention it.
57511         * modules/areadlinkat-with-size-tests: New test.
57512         * tests/test-areadlinkat-with-size.c: New file.
57514         xreadlinkat: new module
57515         * modules/xreadlinkat: New module.
57516         * lib/xreadlinkat.c (xreadlinkat): New file.
57517         * lib/xreadlink.h (xreadlinkat): Declare it.
57518         * MODULES.html.sh (File system functions): Mention it.
57520         areadlinkat: new module
57521         * lib/at-func.c (FUNC_FAIL): New define.
57522         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
57523         * modules/areadlinkat: New module.
57524         * lib/linkat.c (areadlinkat): Move...
57525         * lib/areadlinkat.c (areadlinkat): ...to new file.
57526         * lib/areadlink.h (areadlinkat): Declare it.
57527         * modules/linkat (Depends-on): Add areadlinkat.
57528         * MODULES.html.sh (File system functions): Mention it.
57529         * modules/areadlinkat-tests: New test.
57530         * tests/test-areadlinkat.c: New file.
57532         areadlink, areadlink-with-size: add tests
57533         * modules/areadlink-tests: New test.
57534         * modules/areadlink-with-size-tests: Likewise.
57535         * tests/test-areadlink.h: New file.
57536         * tests/test-areadlink.c: Likewise.
57537         * tests/test-areadlink-with-size.c: Likewise.
57539         maint: minor cleanups
57540         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
57541         _UNUSED_PARAMETER_ instead.
57542         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
57543         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
57544         * modules/linkat-tests (Files): Distribute test-link.h.
57546         openat, utimens: whitespace cleanup
57547         * lib/openat.c: Prefer space throughout, rather than mix of 8
57548         spaces vs. tabs.
57549         * lib/at-func.c: Likewise.
57550         * lib/utimens.c: Likewise.
57552         openat: avoid using wrong fd
57553         * lib/openat.c (openat_permissive): Reject user's fd if saving the
57554         working directory chooses same fd.
57555         * lib/at-func.c (AT_FUNC_NAME): Likewise.
57557         mkdir, mkdirat: fix cygwin 1.5.x bug
57558         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
57559         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
57560         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
57561         bug.
57562         (gl_PREREQ_MKDIR): Delete unused macro.
57563         * modules/mkdir (Files): Track file rename.
57564         (configure.ac): Update macro name.
57565         * modules/openat (Depends-on): Add mkdir.
57566         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
57568         mkdir, mkdirat: add tests
57569         * modules/mkdir-tests: New test.
57570         * tests/test-mkdir.h: New file.
57571         * tests/test-mkdir.c: Likewise.
57572         * tests/test-mkdirat.c: Likewise.
57573         * modules/openat-tests (Files): Add new files.
57574         (Makefile.am): Run new test.
57576 2009-10-06  Eric Blake  <ebb9@byu.net>
57578         doc: tweak *at function documentation
57579         * doc/posix-functions/faccessat.texi (faccessat): Mention
57580         known issue with replacement.
57581         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
57582         * doc/posix-functions/linkat.texi (linkat): Likewise.
57583         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
57584         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
57585         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57586         * doc/posix-functions/renameat.texi (renameat): Likewise.
57587         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57589         openat: fix GNU/Hurd bug in unlinkat
57590         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
57591         broken.
57592         * doc/posix-functions/unlink.texi (unlink): Document this.
57593         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
57595         fdopendir: fix GNU/Hurd bug
57596         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
57597         allowing non-directory fds.
57598         * lib/fdopendir.c (rpl_fdopendir): Work around it.
57599         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
57600         * modules/dirent (Makefile.am): Substitute it.
57601         * lib/dirent.in.h (fdopendir): Declare replacement.
57602         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
57603         * tests/test-fdopendir.c (main): Test something other than
57604         /dev/null, since on Hurd that behaves like a directory.
57606         test-symlink: port to GNU/Hurd
57607         * tests/test-symlink.h (test_symlink): Relax expected errno.
57609         doc: tweak more cygwin information
57610         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
57611         now compatible with glibc.
57612         * doc/posix-functions/getopt.texi (getopt): Likewise.
57614         getopt-gnu: add another test
57615         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
57616         guarantee behavior relied on by m4.
57617         * tests/test-getopt.c (main): Use it.
57618         * modules/getopt-posix-tests (Depends-on): Add setenv.
57619         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
57621         getopt: fix compilation on darwin
57622         * lib/getopt.in.h (includes): Leave breadcrumbs during system
57623         include.
57624         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
57625         Reported by Ludovic Courtès.
57627 2009-10-06  Bruno Haible  <bruno@clisp.org>
57629         * modules/size_max (Description): Discourage its use.
57630         Reported by Simon Josefsson.
57632 2009-10-06  Jim Meyering  <meyering@redhat.com>
57634         linkat: avoid compilation failure
57635         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
57637 2009-10-05  Eric Blake  <ebb9@byu.net>
57639         linkat: support Linux 2.6.17
57640         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
57641         linkat on Linux, but allow cache variable override.
57642         * lib/linkat.c (rpl_linkat): Define override.
57643         * modules/linkat (Depends-on): Add symlinkat.
57644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
57645         * modules/unistd (Makefile.am): Substitute it.
57646         * lib/unistd.in.h (linkat): Declare replacement.
57647         Reported by Pádraig Brady.
57649         quotearg: port test to systems with C.UTF-8 locale
57650         * tests/test-quotearg.c (struct result_strings): Add another
57651         member, differentiating between C.ASCII and C.UTF-8 handling.
57652         (compare_strings): Add parameter.
57653         (main): Adjust all callers.
57655         getopt: avoid clash with FreeBSD _getopt_internal
57656         * lib/getopt.in.h (_getopt_internal): Override the name.
57657         * lib/getopt_int.h (includes): Pick up any overrides.
57658         Reported by Reuben Thomas.
57660         hash: allow C89 compilation
57661         * lib/hash.c (check_tuning): Move declaration before statement.
57662         Reported by Reuben Thomas.
57664 2009-10-05  Karl Berry  <karl@gnu.org>
57666         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
57668 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
57669             Bruno Haible  <bruno@clisp.org>
57671         * lib/uname.c (uname): Use a table-driven algorithm to compute
57672         Windows NT versions.
57674 2009-10-04  Bruno Haible  <bruno@clisp.org>
57676         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
57677         program_invocation_short_name.
57678         * modules/progname (configure.ac): Test for presence of
57679         program_invocation_short_name.
57680         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
57682 2009-10-04  Bruno Haible  <bruno@clisp.org>
57684         * lib/progname.c (set_program_name): Fix comment.
57685         Reported by Jim Meyering.
57687 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57688             Bruno Haible  <bruno@clisp.org>
57690         * lib/uname.c: Include <string.h>.
57691         (uname): Do only one call to GetVersionEx in the common case.
57693 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57694             Bruno Haible  <bruno@clisp.org>
57696         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
57697         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
57698         (uname): Add support for Windows CE and various non-x86 CPU types.
57700 2009-10-03  Bruno Haible  <bruno@clisp.org>
57702         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
57703         invocation to tests/configure.ac.
57704         Reported by Ian Beckwith <ianb@erislabs.net>.
57706 2009-10-02  Eric Blake  <ebb9@byu.net>
57708         fchdir: avoid compiler warning
57709         * lib/fchdir.c (canonicalize_file_name)
57710         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
57712         test-open: support mingw errno values
57713         * tests/test-open.h (test_open): Relax test.
57714         * tests/test-fopen.h (test_fopen): Likewise.
57715         * tests/test-openat-safer.c (main): Likewise.
57717         open: fix opening directory on mingw
57718         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
57720         test-open: on GNU/Hurd, /dev/null is a directory
57721         * tests/test-fopen.h (main): Rename...
57722         (test_fopen): ...to this.  Use a guaranteed non-directory when
57723         confirming open behavior on trailing slash.
57724         * tests/test-openat-safer.c (main): Likewise.
57725         * tests/test-open.h (main): Likewise....
57726         (test_open): ...to this.
57727         * tests/test-fopen.c (main): Adjust caller.
57728         * tests/test-fopen-safer.c (main): Likewise.
57729         * tests/test-open.c (main): Likewise.
57730         * tests/test-fcntl-safer.c (main): Likewise.
57731         Reported by Samuel Thibault.
57733         rename, fchdir: don't ignore chdir failure
57734         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
57735         * lib/rename.c (rpl_rename) [W32]: Likewise.
57736         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
57737         an empty destination directory if source cannot be renamed,
57738         although there is still possibility for failure.
57739         * doc/posix-functions/rename.texi (rename): Document the race.
57740         Reported by Jim Meyering.
57742         maint: cleanup whitespace in recent commits
57743         * lib/rename.c (rpl_rename): Remove tabs.
57744         * tests/test-link.h (test_link): Likewise.
57745         * lib/fchdir.c (get_name): Likewise.
57746         Reported by Jim Meyering.
57748 2009-10-02  Ben Pfaff  <blp@gnu.org>
57750         relocatable-prog-wrapper: Add missing dependency on
57751         double-slash-root.
57752         * modules/relocatable-prog-wrapper: Add dependency.
57753         Reported by Ian Beckwith <ianb@erislabs.net>.
57755 2009-10-02  Eric Blake  <ebb9@byu.net>
57757         renameat: fix Solaris bugs
57758         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
57759         needed fixing.
57760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
57761         * modules/stdio (Makefile.am): Substitute it.
57762         * lib/stdio.in.h (renameat): Declare replacement.
57763         * lib/renameat.c (rpl_renameat): Implement fix.
57765         renameat: new module
57766         * modules/renameat: New file.
57767         * lib/renameat.c (renameat): Likewise.
57768         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
57769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
57770         * modules/stdio (Makefile.am): Substitute them.
57771         * lib/stdio.in.h (renameat): Declare it.
57772         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57773         * doc/posix-functions/renameat.texi (renameat): Likewise.
57774         * modules/renameat-tests: New test.
57775         * tests/test-renameat.c: Likewise.
57777         rename: fix mingw bugs
57778         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
57779         directory overwrite bugs.
57781         rename: fix another cygwin 1.5 bug
57782         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
57783         checks.
57784         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
57785         unnecessary cygwin workarounds.  Also work around bug with moving
57786         full directory onto an empty one.
57787         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
57789         rename-dest-slash: merge into rename module
57790         * modules/rename-dest-slash (Status): Mark obsolete.
57791         (Depends-on): Add rename.
57792         (Files): Let rename do it all.
57793         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
57794         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
57795         * m4/rename-dest-slash.m4: ...so this file can be deleted.
57796         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
57797         * lib/rename.c (rpl_rename): Update comments.
57799         rename: fix cygwin 1.5.x bugs
57800         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
57801         * lib/rename.c (rpl_rename): Work around them.
57802         * modules/rename (Depends-on): Add same-inode.
57804         rename: fix Solaris 10 bug
57805         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
57806         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
57807         was the only bug.
57809         rename: fix Solaris 9 bug
57810         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
57811         on non-directory.  Avoid calling exit.
57812         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
57813         strdup.
57814         * modules/rename-tests (Depends-on): Drop lstat.
57815         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
57816         (gl_PREREQ_RENAME): Delete unused macro.
57818         rename-dest-slash: fix NetBSD bug
57819         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
57820         links.
57821         * modules/rename-dest-slash (Depends-on): Add same-inode.
57823         rename-tests: new test, exposes several platform bugs
57824         * modules/rename-tests: New file.
57825         * tests/test-rename.h: Likewise.
57826         * tests/test-rename.c: Likewise.
57827         * doc/posix-functions/rename.texi (rename): Improve documentation,
57828         including bugs that will eventually be fixed in gnulib.
57830 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
57832         * lib/uname.c: Include <stdlib.h>
57833         (uname): Assume version info is available.
57835 2009-10-02  Jim Meyering  <meyering@redhat.com>
57837         gnu-web-doc-update: correct --help output
57838         * build-aux/gnu-web-doc-update: Make --help output relevant.
57840         gnu-web-doc-update: add standard options
57841         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
57843         gnu-web-doc-update: New module.
57844         Use this script to automatically update the on-line web documentation
57845         for your GNU project at http://www.gnu.org/software/$pkg/manual/
57846         * modules/gnu-web-doc-update: New file, from coreutils.
57847         * build-aux/gnu-web-doc-update: New script.
57849 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
57851         link: LoadLibrary is not needed.
57852         * lib/link.c: Use GetModuleHandle.
57854 2009-10-01  Eric Blake  <ebb9@byu.net>
57856         getopt: bump serial number
57857         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
57858         change.
57860         tests: tighten link, rmdir, and remove tests
57861         * tests/test-link.h (includes): No need to use <config.h> here.
57862         Clean up if directory hard link was created, otherwise test for
57863         trailing '.'.
57864         * tests/test-linkat.c (main): Simplify.
57865         * tests/test-remove.c (main): Enhance test for trailing '.'.
57866         * tests/test-rmdir.h (test_rmdir_func): Likewise.
57868 2009-10-01  Jim Meyering  <meyering@redhat.com>
57870         maint.mk: requiring "make major" was annoying, for a "minor" release.
57871         What is intended is "stable", to contrast with alpha and beta,
57872         so require "make stable", not "make major".
57873         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
57874         (get_tool_versions): Likewise.
57875         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
57877 2009-09-30  Ben Pfaff  <blp@gnu.org>
57879         Fix broken build of replacement for Windows tmpfile().
57880         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
57881         flags argument added along with the 'mkostemp' module.
57883 2009-09-28  Bruno Haible  <bruno@clisp.org>
57885         Avoid identifier clash with POSIX function 'remove' defined as a macro.
57886         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
57887         to 'remove_elt'.
57888         (gl_list_remove): Update.
57889         * lib/gl_list.c (gl_list_remove): Update.
57890         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
57891         to 'remove_elt'.
57892         (gl_oset_remove): Update.
57893         * lib/gl_list.c (gl_oset_remove): Update.
57894         Reported by Eric Blake.
57896 2009-09-28  Eric Blake  <ebb9@byu.net>
57898         doc: mention yet more cygwin 1.7 status
57899         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
57900         cygwin.
57901         * doc/glibc-functions/execvpe.texi (execvpe): New file.
57902         * doc/gnulib.texi (Glibc unistd.h): Mention it.
57904         argp: fix test failure
57905         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
57906         that are not upper-case.  Pass correct range to tolower.
57908 2009-09-27  Jim Meyering  <meyering@redhat.com>
57910         test-yesno: work around sparc-dash here-document infelicity
57911         Without this change, the literal \177 byte in a here document
57912         would make dash 0.5.5.1-3 access uninitialized memory.
57913         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
57914         Instead, use a marker, "@", and filter through tr to create the desired
57915         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
57917 2009-09-27  Bruno Haible  <bruno@clisp.org>
57919         Disable untested support for new flavours of ACLs on AIX.
57920         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
57921         progress.
57922         * lib/set-mode-acl.c (qset_acl): Likewise.
57924 2008-12-07  Bruno Haible  <bruno@clisp.org>
57926         Add support for new flavours of ACLs on AIX. (Untested.)
57927         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
57928         (file_has_acl): Add support for newer AIX.
57929         * lib/set-mode-acl.c (qset_acl): Likewise.
57930         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
57931         Rainer Tammer <tammer@tammer.net>.
57933 2009-09-26  Eric Blake  <ebb9@byu.net>
57935         argp: fix compilation of getopt
57936         * lib/getopt.in.h (includes): Use different guard than glibc.
57937         Reported by Sergey Poznyakoff.
57939         doc: mention more cygwin 1.7 status
57940         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
57941         bug.
57942         * doc/posix-functions/execl.texi (execl): Likewise.
57943         * doc/posix-functions/execle.texi (execle): Likewise.
57944         * doc/posix-functions/execlp.texi (execlp): Likewise.
57945         * doc/posix-functions/execv.texi (execv): Likewise.
57946         * doc/posix-functions/execve.texi (execve): Likewise.
57947         * doc/posix-functions/execvp.texi (execvp): Likewise.
57948         * doc/glibc-functions/canonicalize_file_name.texi
57949         (canonicalize_file_name): Cygwin 1.7 now provides this.
57950         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
57951         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
57952         on AT_SYMLINK_NOFOLLOW.
57954 2009-09-24  Eric Blake  <ebb9@byu.net>
57956         test-linkat: make test more robust
57957         * tests/test-linkat.c (main): Avoid collision with EEXIST.
57959         getopt: fix inclusion guards for cygwin
57960         * modules/getopt-posix (Depends-on): Add include-next.
57961         (Makefile.am): Substitute more items in replacement header.
57962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
57963         <getopt.h>.
57964         * lib/getopt.in.h (includes): Use split inclusion guard, and
57965         prefer <getopt.h> over include <unistd.h> when one is present.
57966         (option): Also override name of 'struct option'.
57968         same-inode: revert prior change; it is not yet ready
57969         * NEWS: Undo mention of this change.
57970         * lib/same-inode.h (same-inode.h): Undo tri-state change.
57971         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
57972         * lib/cycle-check.c (cycle_check): Likewise.
57973         * lib/same.c (same_name): Likewise.
57974         * lib/at-func2.c (at_func2): Likewise.
57976 2009-09-23  Eric Blake  <ebb9@byu.net>
57978         linkat: new module
57979         * modules/linkat: New file.
57980         * lib/at-func2.c (at_func2): Likewise.
57981         * lib/linkat.c (linkat): Likewise.
57982         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
57983         * lib/openat-priv.h (at_func2): Add declaration.
57984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
57985         * modules/unistd (Makefile.am): Substitute them.
57986         * lib/unistd.in.h (linkat): Declare it.
57987         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57988         * doc/posix-functions/linkat.texi (linkat): Likewise.
57989         * doc/posix-functions/link.texi (link): Tweak wording.
57990         * tests/test-link.c (main): Move guts...
57991         * tests/test-link.h (test_link): ...into new file.
57992         * modules/linkat-tests: New test.
57993         * tests/test-linkat.c: Likewise.
57994         * modules/link-tests (Files): Ship new file.
57995         (Depends-on): Add stdbool.
57997         dirname: add library-safe mdir_name
57998         * lib/dirname.h (mdir_name): New prototype.
57999         * lib/dirname.c (dir_name): Move guts...
58000         (mdir_name): ...to new function that avoids xalloc_die.
58002         fchdir: another mingw fix
58003         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
58004         * lib/fchdir.c (get_name): New helper method; skips canonicalize
58005         on mingw (where it has not yet been ported), and make it optional
58006         elsewhere.
58007         (_gl_register_fd): Use it.
58009         same-inode: make SAME_INODE tri-state, to port to mingw
58010         * NEWS: Mention this change.
58011         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
58012         st_ino always being 0.
58013         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
58014         * lib/cycle-check.c (cycle_check): Likewise.
58015         * lib/same.c (same_name): Likewise.
58017         lstat: avoid mingw compilation error
58018         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
58019         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
58020         lstat ourselves.
58021         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
58022         was adequate.
58023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
58024         the checks for lstat.
58025         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
58027         link: fix test failure on Solaris 9
58028         * lib/link.c (rpl_link): Don't assume link will catch bogus
58029         trailing slash on source.
58031         test-symlinkat: enhance test
58032         * tests/test-readlink.c (main): Move guts...
58033         * tests/test-readlink.h (test_readlink): ...into new file.
58034         * tests/test-symlink.c (main): Move guts...
58035         * tests/test-symlink.h (test_symlink): ...into new file.
58036         * tests/test-symlinkat.c (main): Use new files for further
58037         coverage.
58038         (do_symlink, do_readlink): New helper functions.
58039         * modules/symlink-tests (Files): Ship new file.
58040         (Depends-on): Add stdbool.
58041         * modules/readlink-tests (Files): Ship new file.
58042         (Depends-on): Add stdbool.
58043         * modules/symlinkat-tests (Files): Use new files.
58045 2009-09-23  Eric Blake  <ebb9@byu.net>
58047         readlink: document portability issue with symlink length
58048         * doc/posix-functions/lstat.texi (lstat): Mention that some file
58049         systems have bogus st_size on symlinks, and mention the
58050         areadlink-with-size module.
58051         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
58052         * doc/posix-functions/readlink.texi (readlink): Mention the
58053         areadlink module, and ERANGE failure.
58054         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
58055         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
58057         readlink: fix Solaris 9 bug with trailing slash
58058         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
58059         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
58060         * doc/posix-functions/readlink.texi (readlink): Document this.
58061         * modules/readlink-tests: New test.
58062         * tests/test-readlink.c: Likewise.
58064         readlink: fix cygwin 1.5.x bug with return type
58065         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
58066         * lib/unistd.in.h (readlink): Use ssize_t.
58067         * lib/readlink.c (readlink): Likewise.
58068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58069         * modules/unistd (Makefile.am): Substitute it.
58070         * lib/unistd.in.h (readlink): Declare replacement.
58071         * doc/posix-functions/readlink.texi (readlink): Document this.
58073         symlink: use throughout gnulib
58074         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
58075         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
58076         symlink is not used.
58077         * modules/symlinkat (Depends-on): Add symlink.
58078         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
58079         * modules/canonicalize-tests (Depends-on): Likewise.
58080         * modules/lstat-tests (Depends-on): Likewise.
58081         * modules/openat-tests (Depends-on): Likewise.
58082         * modules/remove-tests (Depends-on): Likewise.
58083         * modules/rmdir-tests (Depends-on): Likewise.
58084         * modules/unlink-tests (Depends-on): Likewise.
58085         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
58086         * tests/test-canonicalize.c (symlink): Likewise.
58087         * tests/test-fstatat.c (symlink): Likewise.
58088         * tests/test-lstat.c (symlink): Likewise.
58089         * tests/test-remove.c (symlink): Likewise.
58090         * tests/test-rmdir.c (symlink): Likewise.
58091         * tests/test-unlink.c (symlink): Likewise.
58092         * tests/test-unlinkat.c (symlink): Likewise.
58094         symlink: new module, for Solaris 9 bug
58095         * modules/symlink: New file.
58096         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58097         * lib/symlink.c: Likewise.
58098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
58099         * modules/unistd (Makefile.am): Substitute them.
58100         * lib/unistd.in.h (symlink): Declare replacement.
58101         * MODULES.html.sh (File system functions): Mention it.
58102         * doc/posix-functions/symlink.texi (symlink): Likewise.
58103         * modules/symlink-tests: New test.
58104         * tests/test-symlink.c: Likewise.
58106 2009-09-23  Bruno Haible  <bruno@clisp.org>
58108         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
58109         when needed.
58110         Test case: gnulib-tool --import --with-tests atexit inttypes.
58111         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
58113 2009-09-23  Bruno Haible  <bruno@clisp.org>
58115         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
58116         subcommand, not in a subshell.
58118 2009-09-22  Eric Blake  <ebb9@byu.net>
58120         unistd: sort replacement declarations
58121         * lib/unistd.in.h: Sort declarations.
58123         open, openat: minor optimization
58124         * lib/open.c (open): If open succeeded, len is non-zero.
58125         * lib/openat.c (rpl_openat): Likewise.
58127         link-follow: ensure correct result
58128         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
58129         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
58130         distinguish between possible failures.
58132 2009-09-21  Eric Blake  <ebb9@byu.net>
58134         fts: avoid compiler warning
58135         * lib/fts.c (dirent_inode_sort_may_be_useful)
58136         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
58138 2009-09-19  Bruno Haible  <bruno@clisp.org>
58140         * lib/progreloc.c (canonicalize_file_name): New declaration.
58142 2009-09-19  Eric Blake  <ebb9@byu.net>
58144         link: fix quoting
58145         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
58147         openat: fix openat bugs on Solaris 9
58148         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
58149         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
58150         * modules/openat (Depends-on): Add open.
58151         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
58152         * modules/fcntl-h (Makefile.am): Substitute it.
58153         * lib/fcntl.in.h (openat): Declare replacement.
58154         * doc/posix-functions/openat.texi (openat): Document this.
58156         openat: move fstatat and unlinkat into correct files
58157         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
58158         compiled.
58159         * lib/openat.c (fstatat, unlinkat): Move...
58160         * lib/fstatat.c (fstatat): ...into correct files.
58161         * lib/unlinkat.c (unlinkat): Likewise.
58163         openat: fix unlinkat bugs on Solaris 9
58164         * lib/unlinkat.c (unlinkat): New file.
58165         * modules/openat (Depends-on): Add unlink.
58166         (Files): Distribute it.
58167         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
58168         trailing slash behavior is broken.
58169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58170         * modules/unistd (Makefile.am): Substitute it.
58171         * lib/unistd.in.h (unlinkat): Declare replacement.
58172         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
58174         openat: fix fstatat bugs on Solaris 9
58175         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
58176         stat.
58177         * doc/posix-functions/fstatat.texi (fstatat): Document this.
58179         test-unlinkat: enhance test, to expose Solaris 9 bug
58180         * tests/test-unlink.c (main): Factor guts...
58181         * tests/test-unlink.h (test_rmdir_func): ...into new file.
58182         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
58183         * tests/test-rmdir.c (main): Adjust caller.
58184         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
58185         (unlinker): New helper function.
58186         (rmdirat): Enhance check.
58187         * modules/rmdir-tests (Depends-on): Add stdbool.
58188         * modules/unlink-tests (Depends-on): Likewise.
58189         (Files): Add test-unlink.h.
58190         * modules/openat-tests (Files): Likewise.
58191         (Depends-on): Add unlinkdir.
58193         test-fstatat: new test, to expose Solaris 9 bugs
58194         * tests/test-stat.c (main): Factor guts...
58195         * tests/test-stat.h (test_stat_func): ...into new file.
58196         * tests/test-lstat.c (main): Factor guts...
58197         * tests/test-lstat.h (test_lstat_func): ...into new file.
58198         * tests/test-fstatat.c: New file.
58199         * modules/stat-tests (Files): Add test-stat.h.
58200         * modules/lstat-tests (Files): Add test-lstat.h.
58201         (Depends-on): Add stdbool.
58202         * modules/openat-tests (Depends-on): Add pathmax.
58203         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
58204         (Makefile.am): Run new test.
58206         remove: new module, for mingw and Solaris 9 bugs
58207         * modules/remove: New file.
58208         * lib/remove.c: Likewise.
58209         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
58210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
58211         * modules/stdio (Makefile.am): Use them.
58212         * lib/stdio.in.h (remove): Declare replacement.
58213         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58214         * doc/posix-functions/remove.texi (remove): Likewise.
58215         * modules/remove-tests: New test.
58216         * tests/test-remove.c: Likewise.
58218         unlink: new module, for Solaris 9 bug
58219         * modules/unlink: New file.
58220         * lib/unlink.c: Likewise.
58221         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58223         * modules/unistd (Makefile.am): Use them.
58224         * lib/unistd.in.h (stat): Declare replacement.
58225         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58226         * doc/posix-functions/unlink.texi (unlink): Likewise.
58227         * modules/unlink-tests: New test.
58228         * tests/test-unlink.c: Likewise.
58230         lstat: fix Solaris 9 bug
58231         * lib/lstat.c (lstat): Also check for trailing slash on
58232         non-symlink, non-directories.  Use stat module to simplify logic.
58233         * doc/posix-functions/lstat.texi (lstat): Document it.
58234         * modules/lstat-tests (Depends-on): Add errno, same-inode.
58235         (configure.ac): Check for symlink.
58236         * tests/test-lstat.c (main): Add more tests.
58238         stat: add as dependency to other modules
58239         * modules/chown (Depends-on): Add stat.
58240         * modules/euidaccess (Depends-on): Likewise.
58241         * modules/fchdir (Depends-on): Likewise.
58242         * modules/isdir (Depends-on): Likewise.
58243         * modules/link (Depends-on): Likewise.
58244         * modules/lstat (Depends-on): Likewise.
58245         * modules/mkdir-p (Depends-on): Likewise.
58246         * modules/modechange (Depends-on): Likewise.
58247         * modules/open (Depends-on): Likewise.
58248         * modules/readlink (Depends-on): Likewise.
58249         * modules/same (Depends-on): Likewise.
58251         stat: fix Solaris 9 bug
58252         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
58253         slash.
58254         * lib/stat.c (rpl_stat): Work around it.
58255         * doc/posix-functions/stat.texi (stat): Update documentation.
58257         stat: new module, for mingw bug
58258         * modules/stat: New file.
58259         * lib/stat.c: Likewise.
58260         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58262         * modules/sys_stat (Makefile.am): Use them.
58263         * lib/sys_stat.in.h (stat): Declare replacement.
58264         * lib/openat.c (fstatat): Deal with lstat and stat being function
58265         macros.
58266         * modules/openat (Depends-on): Add inline.
58267         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58268         * doc/posix-functions/stat.texi (stat): Likewise.
58269         * modules/stat-tests: New test.
58270         * tests/test-stat.c: Likewise.
58272 2009-09-19  Jim Meyering  <meyering@redhat.com>
58274         syntax-check: detect unnecessary inclusion of canonicalize.h
58275         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
58277 2009-09-19  Eric Blake  <ebb9@byu.net>
58279         canonicalize-lgpl: adjust clients to use correct header
58280         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
58281         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
58282         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
58283         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
58284         * lib/progreloc.c (includes): Likewise.
58286 2009-09-19  Jim Meyering  <meyering@redhat.com>
58288         test-posixtm.c: correct a comment
58289         * tests/test-posixtm.c: Correct first-line comment.
58290         Spotted by Eric Blake.
58292 2009-09-16  Jim Meyering  <meyering@redhat.com>
58294         posixtm-tests: make T const-correct; add a test case
58295         * tests/test-posixtm.c (T): Declare const.
58296         Add a test for -(2^31+1).
58297         Remove useless can-succeed-only-in-2002 test.
58299         posixtm-tests: adjust the sole failing test
58300         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
58301         expected output matches what mktime now produces.  Cross-checked via
58302         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
58304         posixtm: move #ifdef'd tests into a new module
58305         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
58306         * tests/test-posixtm.c: ... this new file.
58307         * modules/posixtm-tests: New module.
58309 2009-09-19  Eric Blake  <ebb9@byu.net>
58311         openat: simplify use of at-func.c
58312         * lib/at-func.c (includes): Include prerequisites here, to
58313         simplify requirements on client files.
58314         * lib/openat-priv.h: Add double-inclusion guard.
58315         * lib/faccessat.c (includes): Simplify.
58316         * lib/fchmodat.c (includes): Likewise.
58317         * lib/fchownat.c (includes): Likewise.
58318         * lib/mkdirat.c (includes): Likewise.
58319         * lib/mkfifoat.c (includes): Likewise.
58320         * lib/symlinkat.c (includes): Likewise.
58322         openat: allow return of fd 0
58323         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
58324         * modules/save-cwd (Depends-on): Replace fcntl-safer with
58325         unistd-safer.
58326         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
58327         <fcntl.h>; this module does not leak fds.
58328         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
58329         must be allowed to return 0, leaving openat_safer to add the
58330         safety.
58331         (openat_permissive): Avoid writing to just-opened fd 2 if
58332         restoring the current directory fails.
58333         * lib/openat-die.c (openat_restore_fail): Add comment.
58334         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
58335         (save_cwd): Guarantee safe fd, but without use of open_safer.
58336         * tests/test-openat.c: New test.
58337         * modules/openat-tests (Files, Makefile.am): Distribute and build
58338         new file.
58340         relocatable-prog-wrapper: fix build
58341         * modules/relocatable-prog-wrapper (Files): Update name of
58342         canonicalize m4 file, broken on 2009-09-17.
58343         Reported by emad hajjar <aleppos@hotmail.com>.
58345 2009-09-19  Bruno Haible  <bruno@clisp.org>
58347         * lib/safe-alloc.h: Use the standard header with GPL copyright.
58348         * lib/safe-alloc.c: Likewise.
58349         Reported by Ian Beckwith <ianb@erislabs.net>.
58351 2009-09-18  Bruno Haible  <bruno@clisp.org>
58353         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
58354         Reported by <erobles@sensacd.com.mx>.
58356 2009-09-17  Eric Blake  <ebb9@byu.net>
58358         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
58359         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
58360         slashes when checking if last component is missing.
58361         * tests/test-canonicalize.c (main): Test this.
58363         canonicalize, canonicalize-lgpl: honor // if distinct from /
58364         * modules/canonicalize (Files): Add double-slash-root.m4.
58365         * modules/canonicalize-lgpl (Files): Likewise.
58366         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
58367         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
58368         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
58369         fallback definition.
58370         (canonicalize_filename_mode): Use it to protect //.
58371         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
58372         (__realpath): Likewise.
58373         * tests/test-canonicalize.c (main): Test this.
58374         * tests/test-canonicalize-lgpl.c (main): Likewise.
58375         * modules/canonicalize-tests (Depends-on): Add same-inode.
58376         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
58378         canonicalize-lgpl: fix glibc bug with trailing slash
58379         * m4/canonicalize-lgpl.m4: Move contents...
58380         * m4/canonicalize.m4: ...here.
58381         (gl_CANONICALIZE_LGPL): Factor realpath check...
58382         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
58383         glibc 2.3.5 bug, fixed 2005-04-27.
58384         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
58385         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
58386         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
58387         * modules/canonicalize-lgpl (Files): Manage file rename.
58388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
58389         * modules/stdlib (Makefile.am): Substitute witness.
58390         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
58391         is needed.
58392         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
58393         replacement is required.
58394         * lib/canonicalize.c (canonicalize_file_name): Likewise.
58395         * doc/glibc-functions/canonicalize_file_name.texi
58396         (canonicalize_file_name): Document this.
58397         * doc/posix-functions/realpath.texi (realpath): Likewise.
58399         canonicalize-lgpl: reject non-directory with trailing slash
58400         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
58401         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
58402         catches failures in glibc 2.3.5.
58403         * tests/test-canonicalize.c (main): Likewise.
58405         canonicalize-lgpl: use native realpath if it works
58406         * lib/canonicalize-lgpl.c (realpath): Guard with
58407         FUNC_REALPATH_WORKS.
58408         * lib/stdlib.in.h (realpath): Make declaration optional based on
58409         HAVE_REALPATH.
58410         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
58411         native realpath works.
58412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
58413         * modules/stdlib (Makefile.am): Substitute witness.
58415         canonicalize, canonicalize-lgpl: use <stdlib.h>
58416         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
58417         (Include): Mention <stdlib.h>.
58418         (configure.ac): Mention functions we provide.
58419         * modules/canonicalize (configure.ac): Likewise.
58420         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
58421         realpath if canonicalize_file_name is missing.
58422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
58423         * modules/stdlib (Makefile.am): Substitute witnesses.
58424         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
58425         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
58426         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
58427         * NEWS: Document this.
58428         * doc/glibc-functions/canonicalize_file_name.texi
58429         (canonicalize_file_name): Likewise.
58430         * doc/posix-functions/realpath.texi (realpath): Likewise.
58431         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
58433         test-canonicalize: consolidate into single C program
58434         * tests/test-canonicalize.sh: Delete; move setup into...
58435         * tests/test-canonicalize.c (main): ...the program, making it
58436         easier to run in debugger.  Add some tests.
58437         * modules/canonicalize-tests (Files): Remove unused file.
58438         (Depends-on): Add progname.
58439         (configure.ac, Makefile.am): Simplify.
58441         test-canonicalize-lgpl: consolidate into single C program
58442         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
58443         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
58444         easier to run in debugger.  Add some tests.
58445         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
58446         (configure.ac, Makefile.am): Simplify.
58448         canonicalize: avoid resolvepath
58449         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
58450         unnecessary checks.
58451         * lib/canonicalize.c (includes): Simplify.
58452         (canonicalize_file_name): Drop resolvepath implementation.
58453         * modules/canonicalize (Depends-on): Drop filenamecat.
58455         canonicalize: don't lose errno
58456         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
58457         over calls to free.
58459         canonicalize: simplify errno handling
58460         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
58461         assignment.
58463         canonicalize, canonicalize-lgpl: update module dependencies
58464         * modules/canonicalize (Depends-on): Add extensions, lstat,
58465         pathmax, stdlib.
58466         (Files): Drop pathmax.h.
58467         (configure.ac): Adjust macro name.
58468         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
58469         lstat, stdlib, sys_stat.
58470         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
58471         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
58472         extensions.
58473         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
58474         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
58475         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
58476         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
58477         declaration, if available.
58478         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
58479         we can rely on the readlink module.
58480         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
58481         (includes): Use <unistd.h> unconditionally.
58483 2009-09-17  Eric Blake  <ebb9@byu.net>
58485         maint: make Include sections of modules consistent
58486         * modules/alloca: Use only header name; no need to list #include.
58487         * modules/alloca-opt: Likewise.
58488         * modules/arpa_inet: Likewise.
58489         * modules/canon-host: Likewise.
58490         * modules/configmake: Likewise.
58491         * modules/dirent: Likewise.
58492         * modules/eealloc: Likewise.
58493         * modules/environ: Likewise.
58494         * modules/fchdir: Likewise.
58495         * modules/fcntl: Likewise.
58496         * modules/fcntl-h: Likewise.
58497         * modules/gethrxtime: Likewise.
58498         * modules/gettime: Likewise.
58499         * modules/ignore-value: Likewise.
58500         * modules/inet_ntop: Likewise.
58501         * modules/inet_pton: Likewise.
58502         * modules/inttypes: Likewise.
58503         * modules/isnand-nolibm: Likewise.
58504         * modules/isnanf-nolibm: Likewise.
58505         * modules/mbchar: Likewise.
58506         * modules/mbfile: Likewise.
58507         * modules/mbiter: Likewise.
58508         * modules/mbuiter: Likewise.
58509         * modules/netdb: Likewise.
58510         * modules/netinet_in: Likewise.
58511         * modules/nproc: Likewise.
58512         * modules/pagealign_alloc: Likewise.
58513         * modules/poll: Likewise.
58514         * modules/printf-frexp: Likewise.
58515         * modules/pthread: Likewise.
58516         * modules/putenv: Likewise.
58517         * modules/random_r: Likewise.
58518         * modules/relocatable-prog: Likewise.
58519         * modules/search: Likewise.
58520         * modules/select: Likewise.
58521         * modules/selinux-h: Likewise.
58522         * modules/settime: Likewise.
58523         * modules/signal: Likewise.
58524         * modules/size_max: Likewise.
58525         * modules/socklen: Likewise.
58526         * modules/ssize_t: Likewise.
58527         * modules/stdarg: Likewise.
58528         * modules/stdbool: Likewise.
58529         * modules/stddef: Likewise.
58530         * modules/stdint: Likewise.
58531         * modules/stdio: Likewise.
58532         * modules/stdlib: Likewise.
58533         * modules/string: Likewise.
58534         * modules/strings: Likewise.
58535         * modules/sys_file: Likewise.
58536         * modules/sys_ioctl: Likewise.
58537         * modules/sys_select: Likewise.
58538         * modules/sys_socket: Likewise.
58539         * modules/sys_stat: Likewise.
58540         * modules/sys_time: Likewise.
58541         * modules/sys_times: Likewise.
58542         * modules/sys_utsname: Likewise.
58543         * modules/sys_wait: Likewise.
58544         * modules/sysexits: Likewise.
58545         * modules/time: Likewise.
58546         * modules/times: Likewise.
58547         * modules/tmpfile: Likewise.
58548         * modules/trim: Likewise.
58549         * modules/unistd: Likewise.
58550         * modules/wchar: Likewise.
58551         * modules/wctype: Likewise.
58553 2009-09-17  Bruno Haible  <bruno@clisp.org>
58555         Make getdate.y compile on QNX and NetBSD 5 / i386.
58556         * m4/getdate.m4 (gl_GETDATE): Conditionally define
58557         TIME_T_FITS_IN_LONG_INT.
58558         * lib/getdate.y (long_time_t): New type.
58559         (relative_time): Change type of 'seconds' field to long_time_t.
58560         (get_date): Update types of local variables. Check against overflow
58561         during conversion from long_time_t to time_t.
58562         Reported by Matt Kraai <kraai@ftbfs.org>
58563         and Hasso Tepper <hasso@netbsd.org>.
58565 2009-09-17  Bruno Haible  <bruno@clisp.org>
58567         * modules/COPYING: Update copyright years.
58568         * modules/README: Likeiwse.
58569         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
58570         Reported by Ian Beckwith <ianb@erislabs.net>.
58572 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
58574         * users.txt: Update references for gnuit package.
58576 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
58578         * m4/getdelim.m4: Fix typo in copyright line.
58580 2009-09-17  Bruno Haible  <bruno@clisp.org>
58582         * lib/atoll.c: Use the standard header with GPL copyright.
58583         * lib/argz.in.h: Likewise.
58584         * lib/glob.c: Likewise.
58585         * lib/glob-libc.h: Likewise.
58586         * lib/random_r.c: Likewise.
58587         * lib/siglist.h: Likewise.
58588         * lib/strsignal.c: Likewise.
58589         Reported by Ian Beckwith <ianb@erislabs.net>.
58591 2009-09-17  Eric Blake  <ebb9@byu.net>
58593         rmdir: ensure correct dependency order
58594         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
58596 2009-09-17  Bruno Haible  <bruno@clisp.org>
58598         Disable assertion that fails on NetBSD 5 / i386.
58599         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
58600         Reported by Sam Steingold <sds@gnu.org>
58601         and Hasso Tepper <hasso@netbsd.org>.
58603 2009-09-16  Eric Blake  <ebb9@byu.net>
58605         unlinkdir: port to mingw
58606         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
58607         on which no one can unlink a directory.
58609         stdlib: sort witness names
58610         * modules/stdlib (Makefile.am): Sort replacements.
58611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58612         * lib/stdlib.in.h: Likewise.
58614         parse-duration-tests: avoid link failure
58615         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
58616         LIBINTL.
58617         Reported by Tom G. Christensen.
58619         openat-tests: ensure unlinkat behaves like rmdir
58620         * tests/test-rmdir.c (main): Factor guts...
58621         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
58622         * modules/rmdir-tests (Files): Ship new file.
58623         * modules/openat-tests: New test.
58624         * tests/test-unlinkat.c: Likewise.
58626         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
58627         * modules/rmdir-errno (Status, Notice): Now obsolete.
58629         rmdir: work around cygwin 1.5.x and mingw bugs
58630         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
58631         * lib/rmdir.c (rmdir): Work around it.
58632         * modules/rmdir (Status, Notice): No longer obsolete.
58633         (Files): Add dos.m4.
58634         (Depends-on): Add unistd.
58635         (configure.ac): Set witnesses.
58636         (License): Relax to LGPLv2+.
58637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
58638         * modules/unistd (Makefile.am): Substitute witnesses.
58639         * lib/unistd.in.h (rmdir): Declare replacement.
58640         * doc/posix-functions/rmdir.texi (rmdir): Document this.
58641         * modules/rmdir-tests: New tests.
58642         * tests/test-rmdir.c: Likewise.
58644 2009-09-15  Eric Blake  <ebb9@byu.net>
58646         fchdir: improve use of replacement functions
58647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
58648         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
58649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
58650         REPLACE_CLOSEDIR.
58651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
58652         * modules/sys_stat (Makefile.am): Substitute correct witness.
58653         * modules/dirent (Makefile.am): Likewise.
58654         * modules/unistd (Makefile.am): Likewise.
58655         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
58656         * lib/unistd.in.h (dup): Likewise.
58657         * lib/sys_stat.in.h (fstat): Likewise.
58659         maint: ignore gnulib-tool temp files
58660         * .gitignore: Ignore files created during gnulib-tool --test.
58662 2009-09-13  Jim Meyering  <meyering@redhat.com>
58664         posixtm: don't reject a time that specify "60" as the number of seconds
58665         * lib/posixtm.c (posixtime): The code to reject invalid dates
58666         would also reject a time specified with the .60 suffix.
58667         But POSIX allows that, in order to accommodate leap seconds.
58668         So don't reject it.
58669         (main): Adjust tests accordingly.
58670         * modules/posixtm (Depends-on): Add stpcpy.
58672 2009-09-11  Jim Meyering  <meyering@redhat.com>
58674         announce-gen: include [$release_type] in emitted Subject:
58675         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
58676         e.g., [stable] in the emitted Subject: line.
58678 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58680         Remove obsolete macros from several modules.
58681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
58682         obsolete Autoconf macros with their modern counterparts.
58683         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
58684         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
58685         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
58686         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58687         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
58688         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58690         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58691         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58692         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
58693         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
58694         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
58695         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
58696         * m4/sockets.m4 (gl_SOCKETS): Likewise.
58697         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
58698         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
58699         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58700         * m4/time_r.m4 (gl_TIME_R): Likewise.
58701         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58702         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
58703         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58705         Fix copyright header in build-aux scripts.
58706         * build-aux/git-version-gen: Fix copyright header to match GPLv3
58707         recommendation.
58708         * build-aux/ncftpput-ftp: Likewise.
58709         * build-aux/update-copyright: Likewise.
58711 2009-09-09  Eric Blake  <ebb9@byu.net>
58713         test-link: allow Linux choice of errno
58714         * tests/test-link.c (main): Relax test for alternate error.
58716         strndup: fix improper m4 caching
58717         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
58718         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
58719         (gl_PREREQ_STRNDUP): Delete.
58720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
58721         * modules/string (Makefile.am): Substitute it.
58722         * lib/string.in.h (strndup): Modernize prototype.
58724         getcwd: port to mingw
58725         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
58726         different from the POSIX assumptions made throughout the getcwd
58727         module; fortunately, the mingw getcwd does not need replacement.
58728         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
58729         * modules/getcwd-tests: New test.
58730         * tests/test-getcwd.c: Likewise.
58732         link: fix platform bugs
58733         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
58734         * lib/link.c (link): Work around them.  Fix related mingw bug.
58735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
58736         * modules/unistd (Makefile.am): Substitute it.
58737         * lib/unistd.in.h (link): Declare replacement.
58738         * doc/posix-functions/link.texi (link): Document this.
58739         * modules/link (Depends-on): Add strdup-posix, sys_stat.
58741         test-link: consolidate into single C program, test more cases
58742         * tests/test-link.sh: Delete.
58743         * tests/test-link.c: Test more error conditions.  Exposes bugs on
58744         at least Cygwin and Solaris.
58745         * modules/link-tests (Files): Remove unused file.
58746         (Depends-on): Add errno, sys_stat.
58747         (Makefile.am): Simplify.
58749 2009-09-08  Bruno Haible  <bruno@clisp.org>
58751         Work around towlower, towupper bug on mingw.
58752         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
58753         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
58754         * doc/posix-functions/towlower.texi: Mention the mingw bug.
58755         * doc/posix-functions/towupper.texi: Likewise.
58756         Reported by Eric Blake.
58758 2009-09-08  Jim Meyering  <meyering@redhat.com>
58760         build: don't try to run autoheader if we don't use it
58761         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
58762         is not used in configure.ac.
58764 2009-09-08  Eric Blake  <ebb9@byu.net>
58766         euidaccess: fix compilation error
58767         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
58769         rawmemchr: relax license
58770         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
58771         okay.
58772         Reported by Jim Meyering.
58774         mkfifoat: new module
58775         * modules/mkfifoat: New file.
58776         * lib/mkfifoat.c: Likewise.
58777         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
58778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58779         * modules/sys_stat (Makefile.am): Use them.
58780         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
58781         * MODULES.html.sh (File system functions): Mention module.
58782         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
58783         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
58784         * modules/mkfifoat-tests: New test.
58785         * tests/test-mkfifoat.c: Likewise.
58787         strchrnul: relax license
58788         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
58789         okay.
58790         Reported by Jim Meyering.
58792 2009-09-08  Eric Blake  <ebb9@byu.net>
58794         fstatat: fix compilation on Solaris
58795         * lib/fstatat.c (includes): Add fcntl.h.
58796         Reported by Pádraig Brady.
58798 2009-09-07  Eric Blake  <ebb9@byu.net>
58800         rename: modernize replacement
58801         * modules/rename (Depends-on): Add stdio.
58802         (configure.ac): Declare witness.
58803         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
58804         stdio take care of replacement.
58805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58806         * modules/stdio (Makefile.am): Substitute them.
58807         * lib/stdio.in.h (rename): Declare replacement.
58808         * lib/rename.c (includes): Allow cross-compilation to non-windows
58809         machines.
58810         * doc/posix-functions/rename.texi (rename): Improve
58811         documentation.
58813         stdio: sort witness names
58814         * modules/stdio (Makefile.am): Sort replacements.
58815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58816         * lib/stdio.in.h: Likewise.
58818         getcwd: minor cleanups
58819         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
58820         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
58822         openat: provide more convenience names
58823         * modules/faccessat (configure.ac): Add C witness.
58824         * lib/unistd.in.h (readlinkat): Fix typo.
58825         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
58826         convenience wrappers.
58827         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
58828         wrappers in syntax checks.
58830 2009-09-06  Eric Blake  <ebb9@byu.net>
58832         doc: fix comments in recent patches
58833         * lib/faccessat.c: Mention correct function.
58834         * lib/fchmodat.c: Likewise.
58835         * lib/fchownat.c: Likewise.
58836         * lib/symlinkat.c: Likewise.
58837         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
58838         constants.
58840         faccessat, symlinkat: continue cleanup of previous patch
58841         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
58842         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
58843         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
58844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
58845         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
58846         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
58847         set.
58849 2009-09-06  Bruno Haible  <bruno@clisp.org>
58851         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
58852         (fstatat): Declare if GNULIB_FSTATAT is set.
58853         (mkdirat): Declare if GNULIB_MKDIRAT is set.
58854         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
58855         (unlinkat): Declare if GNULIB_UNLINKAT is set.
58856         * modules/fcntl-h (Files): Remove m4/openat.m4.
58857         * modules/sys_stat (Files): Remove m4/openat.m4.
58858         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
58859         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
58860         * modules/unistd (Files): Remove m4/openat.m4.
58861         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
58862         GNULIB_OPENAT.
58863         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
58864         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
58865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
58866         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
58867         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
58868         gl_OPENAT_DEFAULTS.
58869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
58870         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
58871         Don't require gl_OPENAT_DEFAULTS.
58872         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
58873         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
58874         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
58875         (gl_OPENAT_DEFAULTS): Remove macro.
58877 2009-09-06  Bruno Haible  <bruno@clisp.org>
58879         * modules/openat (configure.ac): Remove unneeded witness.
58881 2009-09-06  Bruno Haible  <bruno@clisp.org>
58883         Set errno to ENOSYS when a function is entirely unsupported.
58884         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
58885         EOPNOTSUPP.
58886         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
58887         * modules/chown (Depends-on): Remove errno.
58889 2009-09-06  Bruno Haible  <bruno@clisp.org>
58891         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
58893 2009-09-06  Bruno Haible  <bruno@clisp.org>
58895         * lib/sys_stat.in.h: Fix preprocessor command indentation.
58897 2009-09-06  Ben Pfaff  <blp@gnu.org>
58898             Bruno Haible  <bruno@clisp.org>
58900         Work around a glibc bug in strtok_r.
58901         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
58902         Undefine if UNDEFINE_STRTOK_R is set.
58903         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
58904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58905         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
58906         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
58907         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
58908         UNDEFINE_STRTOK_R.
58909         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
58911 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
58913         exclude: minor fix
58914         * lib/exclude.c: Include wctype.h
58916 2009-09-06  Akim Demaille  <demaille@gostai.com>
58918         bootstrap: improve error message
58919         * build-aux/bootstrap (find_tool): Upon failure, report the list
58920         of candidates.
58921         Honor the initial value of the envvar.
58923 2009-09-05  Eric Blake  <ebb9@byu.net>
58925         symlinkat: new module
58926         * modules/symlinkat: New file.
58927         * lib/symlinkat.c: Likewise.
58928         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
58929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58930         * modules/unistd (Makefile.am): Use them.
58931         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
58932         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
58933         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
58934         * MODULES.html.sh (File system functions): Mention module.
58935         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
58936         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
58937         * modules/symlinkat-tests: New test.
58938         * tests/test-symlinkat.c: Likewise.
58940         test-openat-safer: add more checks
58941         * tests/test-openat-safer.c (main): Check more code paths.
58943 2009-09-05  Jim Meyering  <meyering@redhat.com>
58945         syntax-check: detect unnecessary inclusion of openat.h
58946         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
58948 2009-09-05  Bruno Haible  <bruno@clisp.org>
58950         Support towlower, towupper.
58951         * doc/posix-functions/towlower.texi: Mention module wctype.
58952         * doc/posix-functions/towupper.texi: Likewise.
58953         * lib/wctype.in.h (towlower, towupper): New functions.
58954         * tests/test-wctype.c: Include stdio.h, stdlib.h.
58955         (ASSERT): New macro.
58956         (e): New variable.
58957         (main): Test also towlower, towupper. Test WEOF argument.
58958         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
58960 2009-09-05  Bruno Haible  <bruno@clisp.org>
58962         Fix conversion behaviour when the input is invalid.
58963         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
58964         mark occurring in first pass of indirect conversion.
58965         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
58966         input.
58967         Found by clang's static analyzer.
58969 2009-09-05  Bruno Haible  <bruno@clisp.org>
58971         * tests/test-striconveh.c (main): Test indirect conversion on platforms
58972         where direct conversion is possible.
58974 2009-09-04  Eric Blake  <ebb9@byu.net>
58976         openat: fail with ENOENT on empty name
58977         * lib/openat-proc.c (openat_proc_name): Special-case the empty
58978         buffer.
58980         link-follow: fix logic bug in prior patch
58981         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
58982         reversed sense of yes and no in prior patch.  Avoid confusing
58983         compilation failure with desired semantics.
58985         link-follow: accommodate mingw and cross-compilation
58986         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
58987         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
58988         cross-compilation results to -1, to make linkat easier to
58989         implement when cross-compiling.  Trivially support mingw.
58990         * modules/link-follow (configure.ac): Call new name.
58991         * NEWS: Mention this.
58993 2009-09-03  Eric Blake  <ebb9@byu.net>
58995         faccessat: compile replacement
58996         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
58997         needed.
58999         fts: fix compilation error
59000         * lib/fts.c (includes): Re-add "openat.h", for
59001         openat_needs_fchdir.
59003         faccessat: new module
59004         * modules/faccessat: New file.
59005         * lib/faccessat.c: Likewise.
59006         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
59007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59008         * modules/unistd (Makefile.am): Use it.
59009         * lib/unistd.in.h (faccessat): Declare it.
59010         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
59011         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
59012         * MODULES.html.sh (File system functions): Mention it.
59013         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
59014         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
59016         euidaccess: prefer POSIX over non-standard implementation
59017         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
59018         * lib/euidaccess.c (euidaccess): Use it if available.
59020         openat: make template easier to use
59021         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
59022         AT_FUNC_F2 to be undefined.
59023         (VALIDATE_FLAG): New macro; use it to reject bad flags.
59024         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
59025         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
59026         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
59027         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
59028         Likewise.
59029         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
59030         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
59031         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
59032         Likewise.
59034         openat: declare in POSIX headers
59035         * NEWS: Mention this.
59036         * modules/openat (configure.ac): Declare witnesses.
59037         (Depends-on): Add fcntl-h, sys_stat, unistd.
59038         (Include): Mention correct headers.
59039         * modules/fcntl-h (Depends-on): Add link-warning.
59040         (Files): Add openat.m4.
59041         (Makefile.am): Substitute witnesses.
59042         * modules/sys_stat (Files, Makefile.am): Likewise.
59043         * modules/unistd (Files, Makefile.am): Likewise.
59044         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
59045         (gl_OPENAT_DEFAULTS): New macro.
59046         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
59047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
59048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
59049         (SYS_STAT_H): Remove unused variable.
59050         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
59051         * lib/fcntl--.h (includes): Remove unneeded header.
59052         * lib/openat-safer.c (includes): Likewise.
59053         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
59054         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
59055         appropriate headers.
59056         (__OPENAT_PREFIX): Delete.
59057         * lib/fcntl.in.h (openat): Provide declaration.
59058         (AT_FDCWD): Fix Solaris bug.
59059         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
59060         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
59061         * lib/fchmodat.c (includes):  Adjust to find declaration.
59062         * lib/fchownat.c (includes): Likewise.
59063         * lib/mkdirat.c (includes): Likewise.
59064         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
59065         still visible.
59067 2009-09-02  Eric Blake  <ebb9@byu.net>
59069         errno: use consistently
59070         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
59071         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
59072         * lib/canonicalize.c (ELOOP): Likewise.
59073         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
59074         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
59075         * lib/lchown.c (EOPNOTSUPP): Likewise.
59076         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
59077         * lib/savewd.c (ESTALE): Likewise.
59078         * lib/settime.c (ENOSYS): Likewise.
59079         * lib/utimens.c (ENOSYS): Likewise.
59080         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
59081         * lib/chdir-safer.c (ELOOP): Likewise.
59082         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
59083         * modules/c-stack (Depends-on): Add errno.
59084         * modules/canonicalize (Depends-on): Likewise.
59085         * modules/chdir-safer (Depends-on): Likewise.
59086         * modules/fdopendir (Depends-on): Likewise.
59087         * modules/inet_ntop (Depends-on): Likewise.
59088         * modules/inet_pton (Depends-on): Likewise.
59089         * modules/lchown (Depends-on): Likewise.
59090         * modules/openat (Depends-on): Likewise.
59091         * modules/savewd (Depends-on): Likewise.
59092         * modules/settime (Depends-on): Likewise.
59093         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
59095         fts: avoid leaking fds
59096         * modules/fts (Depends-on): Add cloexec.
59097         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
59098         flag.
59100         fts: make directory fds more robust
59101         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
59102         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
59104         backupfile, chdir-long, fts, savedir: make safer
59105         * lib/backupfile.c (includes): Use "dirent--.h", since
59106         numbered_backup can write to stderr during readdir.
59107         * lib/savedir.c (includes): Likewise.
59108         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
59109         emulation can write to stderr on failure.
59110         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
59111         * lib/getcwd.c: Document why opendir_safer is unused.
59112         * lib/glob.c: Likewise.
59113         * lib/scandir.c: Likewise.
59114         * lib/openat-proc.c: Likewise, for open_safer.
59115         * modules/backupfile (Depends-on): Add dirent-safer.
59116         * modules/savedir (Depends-on): Likewise.
59117         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
59118         * modules/chdir-long (Depends-on): Add openat-safer.
59120         openat-safer: new module
59121         * modules/openat-safer: New file.
59122         * lib/openat-safer.c: Likewise.
59123         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
59124         * lib/fcntl-safer.h (openat_safer): Declare.
59125         * lib/fcntl--.h (openat): Override.
59126         * MODULES.html.sh (File descriptor based I/O): Mention it.
59127         * lib/openat.h: Add double-inclusion guards.
59128         * lib/openat.c (includes): Only include "fcntl-safer.h", not
59129         "fcntl--.h", so we can implement openat.
59130         * modules/openat-safer-tests: New test.
59131         * tests/test-openat-safer.c: New file.
59133         dirent-safer: new module
59134         * modules/dirent-safer: New file.
59135         * lib/dirent--.h: Likewise.
59136         * lib/dirent-safer.h: Likewise.
59137         * lib/opendir-safer.c: Likewise.
59138         * m4/dirent-safer.m4: Likewise.
59139         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
59140         * modules/dirent-safer-tests: New test.
59141         * tests/test-dirent-safer.c: New file.
59142         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
59144         fdopendir: optimize on mingw
59145         * lib/unistd.in.h (_gl_directory_name): New prototype.
59146         * lib/fchdir.c (_gl_directory_name): Implement it.
59147         (fchdir): Use it to simplify implementation.
59148         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
59149         fchdir, when available, to avoid calling [f]chdir().
59151         fdopendir: split into its own module
59152         * lib/openat.c (fdopendir): Move...
59153         * lib/fdopendir.c: ...into new file.
59154         * modules/fdopendir: New module.
59155         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
59156         * modules/openat (Depends-on): Add fdopendir.
59157         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
59158         fdopendir here.
59159         * modules/savedir (Depends-on): Only need fdopendir, not full
59160         openat.
59161         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
59162         * lib/openat.h (fdopendir): Drop prototype.
59163         * lib/dirent.in.h (fdopendir): Provide prototype.
59164         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
59165         * modules/dirent (Makefile.am): Substitute them.
59166         * MODULES.html.sh (File system functions): Mention it.
59167         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
59168         * modules/fdopendir-tests: New file.
59169         * tests/test-fdopendir.c: Likewise.
59171         fchdir: use more consistent macro convention
59172         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
59173         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
59174         REPLACE_FCHDIR, rather than relying on config.h macros.
59175         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
59176         inside a single make-time REPLACE_FCHDIR block, rather than using
59177         the config.h FCHDIR_REPLACEMENT.
59178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
59179         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
59180         Manage fstat replacement.
59181         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
59182         REPLACE_FCHDIR.
59183         * modules/sys_stat (Files): Add m4/unistd_h.m4.
59184         (Makefile.am): Substitute REPLACE_FCHDIR.
59185         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
59186         FCHDIR_REPLACEMENT.
59187         * lib/dup-safer.c (dup_safer): Likewise.
59188         * lib/dup2.c (rpl_dup2): Likewise.
59189         * lib/dup3.c (rpl_dup3): Likewise.
59190         * lib/open.c (rpl_open): Likewise.
59192         fchdir: simplify error handling, and support dup3
59193         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
59194         stdbool, malloc-posix, realloc-posix.
59195         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
59196         (ensure_dirs_slot): Return false on allocation failure.
59197         (rpl_dup2): Delete.
59198         (_gl_register_dup): New function.
59199         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
59200         (_gl_register_fd): Close fd on allocation failure.
59201         * lib/fcntl.in.h (_gl_register_fd): Update signature.
59202         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
59203         prototype.
59204         (rpl_dup2_fchdir): Delete prototype.
59205         * lib/open.c (open): Update caller.
59206         * lib/dup2.c (dup2): Track fchdir metadata.
59207         * lib/dup3.c (dup3): Likewise.
59208         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
59209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
59211 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59213         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
59214         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
59215         don't pass arguments to AC_OUTPUT.
59217 2009-09-02  Bruno Haible  <bruno@clisp.org>
59219         * modules/mkdtemp (License): Relicense under LGPLv2+.
59220         Reported by Paolo Bonzini.
59222 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59224         Replace uses of obsolete autoconf macros in Jim's modules.
59225         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
59226         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
59227         can evoke a warning from autoconf when run with -Wobsolete
59228         enabled.  They were declared obsolete for good reasons (see
59229         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
59230         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
59231         should not continue using the deprecated macros.
59232         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
59233         obsolete Autoconf macros with modern counterparts.
59234         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59235         * m4/dos.m4 (gl_AC_DOS): Likewise.
59236         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
59237         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59238         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
59239         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
59240         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
59241         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
59242         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
59243         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
59244         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59245         Likewise.
59246         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59247         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59248         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
59249         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
59250         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59251         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59253 2009-09-01  Eric Blake  <ebb9@byu.net>
59255         fchdir: fix off-by-one bug in previous patch
59256         * lib/fchdir.c (rpl_fstat): Use correct bounds.
59257         (_gl_unregister_fd): Delete useless if.
59259 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
59261         maint.mk: sort the list of syntax-check rules
59262         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
59263         easier to get a sense of progress when the rules are run sequentially
59264         and take a long time.
59266 2009-09-01  Simon Josefsson  <simon@josefsson.org>
59268         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
59269         * modules/netinet_in: Likewise.
59270         * modules/sys_file: Likewise.
59271         * modules/sys_ioctl: Likewise.
59272         * modules/sys_select: Likewise.
59273         * modules/sys_socket: Likewise.
59274         * modules/sys_stat: Likewise.
59275         * modules/sys_time: Likewise.
59276         * modules/sys_times: Likewise.
59277         * modules/sys_utsname: Likewise.
59278         * modules/sys_wait: Likewise.
59280 2009-09-01  Jim Meyering  <meyering@redhat.com>
59282         fts: help ensure that return values are not ignored
59283         * lib/fts_.h (__GNUC_PREREQ): Define.
59284         (__attribute_warn_unused_result__): Define.
59285         (fts_children, fts_close, fts_open, fts_read): Declare with
59286         __attribute_warn_unused_result__.
59288         fts: fts_close now fails also when closing a dir file descriptor fails
59289         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
59290         and propagate to caller, along with errno.
59292         announce-gen: correct formatting in --help output
59293         * build-aux/announce-gen (usage): Move the one-line description in
59294         --help output "up", to where it belongs, just after Usage:.
59296 2009-08-31  Eric Blake  <ebb9@byu.net>
59298         fchdir: port to mingw
59299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
59300         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
59301         opened, then use a substitute.
59302         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
59303         replacement.
59304         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
59305         (_gl_register_fd): No need to check stat if open already filters
59306         all directories.
59307         (fchdir): Fix error condition to match POSIX.
59308         * modules/fchdir (Depends-on): Add sys_stat.
59309         * doc/posix-functions/open.texi (open): Document the limitation.
59310         * modules/fchdir-tests: New file.
59311         * tests/test-fchdir.c: Likewise.
59313         canonicalize: allow cross-testing from cygwin to mingw
59314         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
59315         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
59316         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
59317         Likewise.
59318         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
59319         target does not support symlinks.
59320         * tests/test-canonicalize-lgpl.sh: Likewise.
59322         chown: avoid compilation warning on mingw
59323         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
59324         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
59325         mingw.
59326         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
59327         * modules/chown (Depends-on): Add errno.
59329 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59331         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
59332         command.
59334 2009-08-31  Jim Meyering  <meyering@redhat.com>
59336         canonicalize: remove useless initialization
59337         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
59338         initialization of local, "end".
59340 2009-08-30  Bruno Haible  <bruno@clisp.org>
59342         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
59343         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
59344         ENOSYS.
59346 2009-08-30  Bruno Haible  <bruno@clisp.org>
59348         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
59349         /usr/xpg4/bin/tr when it exists.
59350         * tests/test-pipe-filter-gi1.sh: Likewise.
59352 2009-08-30  Bruno Haible  <bruno@clisp.org>
59354         Work around deficient /usr/bin/id program on Solaris.
59355         * tests/test-file-has-acl.sh (ID): New variable.
59356         * tests/test-set-mode-acl.sh (ID): Likewise.
59357         * tests/test-copy-acl.sh (ID): Likewise.
59358         * tests/test-copy-file.sh (ID): Likewise.
59360 2009-08-30  Bruno Haible  <bruno@clisp.org>
59362         New module 'xstriconveh'.
59363         * lib/xstriconveh.h: New file.
59364         * lib/xstriconveh.c: New file.
59365         * modules/xstriconveh: New file.
59367 2009-08-30  Bruno Haible  <bruno@clisp.org>
59369         Make it easier to use mem_cd_iconveh.
59370         * lib/striconveh.h (iconveh_t): New type.
59371         (iconveh_open, iconveh_close): New declarations.
59372         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
59373         with a single 'const iconveh_t *' argument.
59374         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
59375         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
59376         with a single 'const iconveh_t *' argument.
59377         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
59378         * tests/test-striconveh.c (main): Update.
59379         * NEWS: Mention the change.
59381 2009-08-30  Bruno Haible  <bruno@clisp.org>
59383         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
59384         problem.
59386 2009-08-30  Bruno Haible  <bruno@clisp.org>
59388         Work around iconv_open problem on Solaris.
59389         * lib/iconv_open-solaris.gperf: New file.
59390         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
59391         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
59392         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
59393         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
59394         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
59395         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
59397 2009-08-29  Jim Meyering  <meyering@redhat.com>
59399         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
59400         * top/maint.mk (cvs-check): Remove target; it was just an alias
59401         to the better-named vc-diff-check.
59402         (maintainer-distcheck): Remove rule.  It was used only from
59403         the (alpha/beta/major) target, and all of its commands but one
59404         were coreutils-specific.
59405         (vc-dist): Remove rule.
59406         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
59407         Run vc-diff-check, not vc-dist.
59408         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
59410 2009-08-27  Bruno Haible  <bruno@clisp.org>
59412         * tests/test-bitrotate.c (main): Remove test that uses a shift count
59413         of 0.
59415 2009-08-27  Bruno Haible  <bruno@clisp.org>
59417         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
59418         compilers.
59419         * doc/func.texi: Document the SunPRO C bug.
59421 2009-08-27  Bruno Haible  <bruno@clisp.org>
59423         Fix link error on Solaris.
59424         * tests/test-parse-duration.c (xstrdup): Remove function.
59426 2009-08-26  Pádraig Brady  <P@draigbrady.com>
59428         ignore-value: handle pointer types, too
59429         * lib/ignore-value.h (__attribute__): Remove definition.
59430         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
59431         of a more concise and more-often effective "(void) i" statement.
59432         (ignore_ptr): New function to suppress warnings from functions that
59433         return pointers, and to make it explicit that one function doesn't
59434         handle all cases.
59436 2009-08-25  Bruno Haible  <bruno@clisp.org>
59438         dup2: work around a Linux bug.
59439         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
59440         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
59441         * doc/posix-functions/dup2.texi: Mention the Linux bug.
59442         Reported by Simon Josefsson.
59444 2009-08-25  Jim Meyering  <meyering@redhat.com>
59446         libguestfs uses gnulib
59447         * users.txt: Add libguestfs.
59449 2009-08-24  Eric Blake  <ebb9@byu.net>
59451         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
59452         * lib/pipe2.c (includes): Add binary-io.h.
59453         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
59455 2009-08-24  Bruno Haible  <bruno@clisp.org>
59457         Tolerate declared but missing accept4 syscall.
59458         * lib/accept4.c (accept4): Invoke original accept4 function first, if
59459         available.
59460         * lib/sys_socket.in.h (accept4): If the function is already present,
59461         override it.
59462         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
59463         * modules/accept4 (Makefile.am): Compile accept4.c always.
59464         Reported by Paolo Bonzini and Eric Blake.
59466 2009-08-23  Bruno Haible  <bruno@clisp.org>
59468         New module 'accept4'.
59469         * lib/sys_socket.in.h (accept4): New declaration.
59470         * lib/accept4.c: New file.
59471         * m4/accept4.m4: New file.
59472         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59473         GNULIB_ACCEPT4, HAVE_ACCEPT4.
59474         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
59475         HAVE_ACCEPT4.
59476         * modules/accept4: New file.
59477         * doc/glibc-functions/accept4.texi: Mention the new module.
59479 2009-08-24  Jim Meyering  <meyering@redhat.com>
59481         progname: also set global program_invocation_name, when possible
59482         Before this change, a libtool-enabled program that calls glibc's
59483         error function would report the program name as
59484         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
59485         * modules/progname (configure.ac): Check for a declaration of
59486         program_invocation_name.
59487         * lib/progname.c:  Include <errno.h>.
59488         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
59489         Set program_invocation_name.
59491 2009-08-23  Bruno Haible  <bruno@clisp.org>
59493         * lib/dup3.c: Include <string.h>.
59495 2009-08-23  Bruno Haible  <bruno@clisp.org>
59497         * lib/dup3.c (dup3): Test only once whether the system actually exists.
59498         * lib/pipe2.c (pipe2): Likewise.
59499         Suggested by Eric Blake.
59501 2009-08-23  Bruno Haible  <bruno@clisp.org>
59503         Tolerate declared but missing dup3 syscall.
59504         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
59505         * lib/unistd.in.h (dup3): If the function is already present,
59506         override it.
59507         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
59508         * modules/dup3 (Makefile.am): Compile dup3.c always.
59509         Reported by Paolo Bonzini.
59511 2009-08-23  Bruno Haible  <bruno@clisp.org>
59513         Tolerate declared but missing pipe2 syscall.
59514         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
59515         available.
59516         * lib/unistd.in.h (pipe2): If the function is already present,
59517         override it.
59518         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
59519         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
59520         Reported by Paolo Bonzini.
59522 2009-08-23  Bruno Haible  <bruno@clisp.org>
59524         * lib/pipe2.c (pipe2): Move #ifs inside function.
59526 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59528         quotearg: document limitations of quote_these_too
59529         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
59530         those limitations are created.
59531         * lib/quotearg.h (set_char_quoting): Document that digits and
59532         letters that are special after backslash are not permitted.
59533         (quotearg_char): Cross-reference set_char_quoting documentation.
59535 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
59537         quotearg: implement custom_quoting_style
59538         * lib/quotearg.c: (struct quoting_options): Add left_quote and
59539         right_quote fields.
59540         (set_custom_quoting): New public function.
59541         (quotearg_buffer_restyled): Add left_quote and right_quote
59542         arguments, handle them very much like locale quoting, and update
59543         all uses.
59544         (quotearg_n_custom): New public function.
59545         (quotearg_n_custom_mem): New public function.
59546         (quotearg_custom): New public function.
59547         (quotearg_custom_mem): New public function.
59548         * lib/quotearg.h: Prototype and document new public functions.
59549         (enum quoting_style): For escape_quoting_style and
59550         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
59551         ignored even though they're otherwise like c_quoting_style.
59552         Add custom_quoting_style member and document with comparison to
59553         clocale_quoting_style.
59554         * tests/test-quotearg.c (custom_quotes): New array.
59555         (custom_results): New array.
59556         (main): Extend to test custom quoting.
59558 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59560         quotearg: fix right quote escaping when it's in quote_these_too
59561         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
59562         quote, be sure to prepend only one backslash.
59563         * tests/test-quotearg.c (use_quote_double_quotes): New function.
59564         (main): Test it.
59566 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59568         quotearg-tests: test escaping of embedded locale quotes
59569         * tests/test-quotearg.c (struct result_strings): Add member for
59570         new input.
59571         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
59572         (inputs): Add new input.
59573         (results_g): Add expected results.
59574         (flag_results): Likewise.
59575         (locale_results): Likewise.
59576         (compare_strings): Check those.
59578 2009-08-23  Bruno Haible  <bruno@clisp.org>
59580         Tests for module 'dup3'.
59581         * modules/dup3-tests: New file.
59582         * tests/test-dup3.c: New file.
59584         New module 'dup3'.
59585         * lib/unistd.in.h (dup3): New declaration.
59586         * lib/dup3.c: New file.
59587         * m4/dup3.m4: New file.
59588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
59589         HAVE_DUP3.
59590         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
59591         * modules/dup3: New file.
59592         * doc/glibc-functions/dup3.texi: Mention the new module.
59594 2009-08-23  Bruno Haible  <bruno@clisp.org>
59596         Tweak the dup2 test.
59597         * tests/test-dup2.c (main): Create the test file empty. Verify that an
59598         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
59599         the test file is still empty. Fix argument order of lseek.
59601 2009-08-23  Bruno Haible  <bruno@clisp.org>
59603         Avoid test link errors when the modules getopt-gnu, gettext are used.
59604         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
59605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59607 2009-08-23  Bruno Haible  <bruno@clisp.org>
59609         Fix getdtablesize() on mingw.
59610         * lib/getdtablesize.c (getdtablesize): Implement differently.
59611         * lib/unistd.in.h (getdtablesize): Improve comment.
59613 2009-08-23  Bruno Haible  <bruno@clisp.org>
59615         New module 'mkostemp'.
59616         Based on Ulrich Drepper's 2007-08-10 change in glibc.
59617         * lib/stdlib.in.h (mksotemp): New declaration.
59618         * lib/mkostemp.c: New file, from glibc with modifications.
59619         * lib/tempname.h (GT_FILE): Remove outdated comment.
59620         (gen_tempname): Add flags argument.
59621         * lib/tempname.c (__GT_BIGFILE): Remove macro.
59622         (__GT_FILE): Map to 1.
59623         (small_open, large_open): Remove macros.
59624         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
59625         * lib/mkstemp.c (mkstemp): Update.
59626         * lib/mkdtemp.c (mkdtemp): Likewise.
59627         * m4/mkostemp.m4: New file.
59628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
59629         HAVE_MKOSTEMP.
59630         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
59631         HAVE_MKOSTEMP.
59632         * modules/mkostemp: New file, based on modules/mkstemp.
59633         * doc/glibc-functions/mkostemp.texi: Mention the new module.
59634         * NEWS: Mention the change.
59636 2009-08-23  Bruno Haible  <bruno@clisp.org>
59638         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
59639         Reported by Eric Blake.
59641 2009-08-23  Bruno Haible  <bruno@clisp.org>
59643         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
59644         Reported by Eric Blake.
59646 2009-08-23  Bruno Haible  <bruno@clisp.org>
59648         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
59649         * modules/pipe2 (Depends-on): Likewise.
59651 2009-08-23  Eric Blake  <ebb9@byu.net>
59653         fcntl-h: add O_TTY_INIT support
59654         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
59655         * tests/test-fcntl-h.c (o): Test it.
59656         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59658         fcntl-h: rename from fcntl, in preparation for fcntl(2)
59659         * modules/fcntl: Move <fcntl.h> header replacement...
59660         * modules/fcntl-h: ...to new name, so as not to collide with
59661         like-named function.
59662         * tests/test-fcntl.c: Rename...
59663         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
59664         * modules/fcntl-tests: Rename...
59665         * modules/fcntl-h-tests: ...to this.  Update test file name.
59666         * modules/chdir-long (Depends-on): Update clients.
59667         * modules/chdir-safer (Depends-on): Likewise.
59668         * modules/fcntl-safer (Depends-on): Likewise.
59669         * modules/fts (Depends-on): Likewise.
59670         * modules/mkancesdirs (Depends-on): Likewise.
59671         * modules/mkdir-p (Depends-on): Likewise.
59672         * modules/open (Depends-on): Likewise.
59673         * modules/savewd (Depends-on): Likewise.
59674         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
59675         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59677 2009-08-22  Bruno Haible  <bruno@clisp.org>
59679         * modules/binary-io (License): Relicense under LGPL.
59680         * modules/pipe2 (License): Likewise.
59682 2009-08-22  Bruno Haible  <bruno@clisp.org>
59684         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
59685         return value.
59686         * lib/pipe-filter-gi.c (filter_init): Likewise.
59687         Reported by Eric Blake.
59689 2009-08-22  Bruno Haible  <bruno@clisp.org>
59691         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
59692         * modules/pipe (Depends-on): Add pipe2.
59694 2009-08-22  Bruno Haible  <bruno@clisp.org>
59696         Tests for module 'pipe2'.
59697         * modules/pipe2-tests: New file.
59698         * tests/test-pipe2.c: New file.
59700         New module 'pipe2'.
59701         * lib/unistd.in.h (pipe2): New declaration.
59702         * lib/pipe2.c: New file.
59703         * m4/pipe2.m4: New file.
59704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
59705         HAVE_PIPE2.
59706         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
59707         * modules/pipe2: New file.
59708         * doc/glibc-functions/pipe2.texi: Mention the new module.
59710 2009-08-22  Bruno Haible  <bruno@clisp.org>
59712         Reference some new glibc functions.
59713         * doc/glibc-functions/accept4.texi: New file.
59714         * doc/glibc-functions/dup3.texi: New file.
59715         * doc/glibc-functions/mkostemp.texi: New file.
59716         * doc/glibc-functions/pipe2.texi: New file.
59717         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
59718         (Glibc sys/socket.h): Refer to accept4.
59719         (Glibc unistd.h): Refer to dup3, pipe2.
59720         Reported by Eric Blake.
59722 2009-08-22  Jim Meyering  <meyering@redhat.com>
59723             Bruno Haible  <bruno@clisp.org>
59725         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
59726         This makes it so packages using automake-1.11's silent-rules option
59727         can print e.g., a single "GEN    configmake.h" line, rather than
59728         the 30+ statements that perform the job.  If you want to see the
59729         actual commands, you can still run "make V=1".
59730         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
59731         so that make output is abbreviated when those variables are defined
59732         appropriately.
59733         * modules/argz: Likewise.
59734         * modules/arpa_inet: Likewise.
59735         * modules/byteswap: Likewise.
59736         * modules/configmake: Likewise.
59737         * modules/dirent: Likewise.
59738         * modules/errno: Likewise.
59739         * modules/fcntl: Likewise.
59740         * modules/float: Likewise.
59741         * modules/fnmatch: Likewise.
59742         * modules/getopt-posix: Likewise.
59743         * modules/glob: Likewise.
59744         * modules/iconv_open: Likewise.
59745         * modules/inttypes: Likewise.
59746         * modules/localcharset: Likewise.
59747         * modules/locale: Likewise.
59748         * modules/math: Likewise.
59749         * modules/netdb: Likewise.
59750         * modules/netinet_in: Likewise.
59751         * modules/poll: Likewise.
59752         * modules/posix_spawnp-tests: Likewise.
59753         * modules/sched: Likewise.
59754         * modules/search: Likewise.
59755         * modules/selinux-h: Likewise.
59756         * modules/signal: Likewise.
59757         * modules/spawn: Likewise.
59758         * modules/stdarg: Likewise.
59759         * modules/stdbool: Likewise.
59760         * modules/stddef: Likewise.
59761         * modules/stdint: Likewise.
59762         * modules/stdio: Likewise.
59763         * modules/stdlib: Likewise.
59764         * modules/string: Likewise.
59765         * modules/strings: Likewise.
59766         * modules/sys_file: Likewise.
59767         * modules/sys_ioctl: Likewise.
59768         * modules/sys_select: Likewise.
59769         * modules/sys_socket: Likewise.
59770         * modules/sys_stat: Likewise.
59771         * modules/sys_time: Likewise.
59772         * modules/sys_times: Likewise.
59773         * modules/sys_utsname: Likewise.
59774         * modules/sys_wait: Likewise.
59775         * modules/sysexits: Likewise.
59776         * modules/time: Likewise.
59777         * modules/unistd: Likewise.
59778         * modules/wchar: Likewise.
59779         * modules/wctype: Likewise.
59781 2009-08-22  Jim Meyering  <meyering@redhat.com>
59783         announce-gen: detect write failure
59784         * build-aux/announce-gen: Add Coda at end.
59785         Remove equivalent-but-more-verbose block at top.
59787 2009-08-19  Akim Demaille  <demaille@gostai.com>
59789         bootstrap: --help to stdout.
59790         * bootstrap (usage): Don't send --help to stderr.
59791         Use a here doc instead of a long string.
59793 2009-08-21  Eric Blake  <ebb9@byu.net>
59795         test-popen-safer: split from test-popen
59796         * tests/test-popen.c (main): Move...
59797         * tests/test-popen.h: ...into new file.
59798         * tests/test-popen-safer2.c: New file.
59799         * modules/popen-tests (Files): Add test-popen.h.
59800         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
59801         Suggested by Bruno Haible.
59803         test-fcntl-safer: split from test-open
59804         * tests/test-open.c (main): Move...
59805         * tests/test-open.h: ...into new file.
59806         * tests/test-fcntl-safer.c: New file.
59807         * modules/open-tests (Files): Add test-open.h.
59808         * modules/fcntl-safer-tests: New file.
59809         Suggested by Bruno Haible.
59811         test-fopen-safer: split from test-fopen
59812         * tests/test-fopen.c (main): Move...
59813         * tests/test-fopen.h: ...into new file.
59814         * tests/test-fopen-safer.c: New file.
59815         * modules/fopen-tests (Files): Add test-fopen.h.
59816         * modules/fopen-safer-tests: New file.
59817         Suggested by Bruno Haible.
59819 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
59821         popen-safer: test O_CLOEXEC at run-time.
59822         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
59824 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
59826         fcntl: move more flags to the header
59827         * lib/cloexec.c: Do not define FD_CLOEXEC here.
59828         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
59829         * lib/fcntl.in.h: Do both things here.
59831 2009-08-21  Jim Meyering  <meyering@redhat.com>
59833         consistently remove $@-t before redirecting to it
59834         * modules/argz: Remove $@-t and $@ before redirecting to the former.
59835         * modules/alloca-opt: Likewise.
59836         * modules/byteswap: Likewise.
59837         * modules/fnmatch: Likewise.
59838         * modules/getopt-posix: Likewise.
59839         * modules/glob: Likewise.
59840         * modules/poll: Likewise.
59841         * modules/posix_spawnp-tests: Likewise.
59842         * modules/sys_socket: Likewise.
59843         * modules/sysexits: Likewise.
59845 2009-08-21  Eric Blake  <ebb9@byu.net>
59847         popen: simplify access to original popen
59848         * lib/popen.c (rpl_popen): No need to worry about popen being a
59849         macro.
59850         Reported by Bruno Haible.
59852 2009-08-20  Eric Blake  <ebb9@byu.net>
59854         build: avoid some compiler warnings
59855         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
59856         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
59857         type.
59858         (new_exclude_segment, excluded_file_pattern_p)
59859         (excluded_file_name_p): Reduce scope.
59860         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
59861         old-style declaration.
59863 2009-08-20  Simon Josefsson  <simon@josefsson.org>
59865         * tests/test-exclude1.sh: Handle Windows EOL.
59866         * tests/test-exclude2.sh: Likewise.
59867         * tests/test-exclude3.sh: Likewise.
59868         * tests/test-exclude4.sh: Likewise.
59869         * tests/test-exclude5.sh: Likewise.
59870         * tests/test-exclude6.sh: Likewise.
59871         * tests/test-exclude7.sh: Likewise.
59873 2009-08-19  Akim Demaille  <demaille@gostai.com>
59875         bootstrap: find sha1sum when named gsha1sum.
59876         * bootstrap (find_tool): New.
59877         ($SHA1SUM): New.
59878         Use it.
59880 2009-08-20  Jim Meyering  <meyering@redhat.com>
59882         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
59883         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
59884         expression that converts "." in a file name to "\." in the resulting
59885         regexp.  Start with a dummy statement, so that prior shell variable
59886         definitions are expanded portably.  Reported by Simon Josefsson.
59888 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
59890         Fix polling for writeability of a screen buffer.
59891         * lib/poll.c: Distinguish input and screen buffers for the
59892         Win32 implementation.
59893         * lib/select.c: Likewise.
59895 2009-08-19  Eric Blake  <ebb9@byu.net>
59897         popen-safer: prevent popen from clobbering std descriptors
59898         * modules/popen-safer: New file.
59899         * lib/popen-safer.c: Likewise.
59900         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
59901         * lib/stdio--.h (popen): Provide override.
59902         * lib/stdio-safer.h (popen_safer): Provide declaration.
59903         * tests/test-popen.c (includes): Partially test this.
59904         * modules/popen-safer-tests: New file, for more tests.
59905         * tests/test-popen-safer.c: Likewise.
59906         * MODULES.html.sh (file stream based Input/Output): Mention it.
59908         tests: test some of the *-safer modules
59909         * modules/fopen-safer (Depends-on): Add fopen.
59910         * modules/fcntl-safer (Depends-on): Add fcntl.
59911         * modules/stdlib-safer (Depends-on): Add stdlib.
59912         (configure.ac): Set indicator.
59913         * modules/unistd-safer (configure.ac): Likewise.
59914         * modules/tmpfile-safer (configure.ac): Likewise.
59915         (Depends-on): Add tmpfile.
59916         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
59917         active.
59918         * tests/test-fopen.c (includes): Test safer versions when they are
59919         in use.
59920         * tests/test-open.c (includes): Likewise.
59922         popen: fix cygwin 1.5 bug when stdin closed
59923         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
59924         * modules/popen: New file.
59925         * modules/popen-tests: Likewise.
59926         * tests/test-popen.c: Likewise.
59927         * m4/popen.m4: Likewise.
59928         * lib/popen.c: Likewise.
59929         * lib/stdio.in.h (popen): New declaration.
59930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
59931         * modules/stdio (Makefile.am): Likewise.
59932         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
59934 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
59936         maint.mk: give full control over update-copyright exclusions
59937         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
59938         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
59939         (update-copyright): Don't force inclusion of top-level
59940         ChangeLog.  Don't force exclusion of all COPYING files, but make
59941         them the default exclusion instead.
59943 2009-08-16  Bruno Haible  <bruno@clisp.org>
59945         Fix test failures on Solaris 10.
59946         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
59947         tests when Solaris iconv() is used.
59948         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59949         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59950         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59951         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59952         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59954 2009-08-16  Bruno Haible  <bruno@clisp.org>
59956         Fix test failures on Solaris 10.
59957         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
59958         'tr' program and pass it as first argument.
59959         * tests/test-pipe-filter-gi1.sh: Likewise.
59960         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
59961         program as first argument.
59962         * tests/test-pipe-filter-gi1.c (main): Likewise.
59964 2009-08-16  Eric Blake  <ebb9@byu.net>
59966         fpurge: fix previous commits
59967         * modules/fpurge (Makefile.am): Make replacement conditional,
59968         partially reverting 2007-04-29 change; missed in previous
59969         attempt.
59970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
59971         is missing.
59973 2009-08-16  Bruno Haible  <bruno@clisp.org>
59975         Clarify fpurge's effect on the file position.
59976         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
59977         * tests/test-fpurge.c (main): Make a second pass for checking the file
59978         position.
59980 2009-08-16  Bruno Haible  <bruno@clisp.org>
59982         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
59983         declaration of fpurge is missing.
59984         * tests/test-fpurge.c (main): Check that the file has not more contents
59985         than expected. Close the file before removing it.
59987 2009-08-15  Eric Blake  <ebb9@byu.net>
59989         fpurge: don't wrap working cygwin implementation
59990         * lib/fpurge.c (fpurge): Fix comment typo.
59991         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
59992         1.7 to avoid replacement.
59993         * tests/test-fpurge.c (main): Enhance test.
59995 2009-08-15  Eric Blake  <ebb9@byu.net>
59996         and Jim Meyering  <meyering@redhat.com>
59998         test-update-copyright: skip if perl is insufficient
59999         * tests/test-update-copyright.sh: Failure to run maintainer tool
60000         should not cause testsuite failure on cygwin 1.5.
60002 2009-08-14  Eric Blake  <ebb9@byu.net>
60004         doc: mention more functions added in cygwin 1.7.0
60005         * doc/posix-headers/limits.texi (limits.h): Update for recent
60006         cygwin additions.
60007         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
60008         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
60009         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
60010         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
60011         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
60013 2009-08-14  Eric Blake  <ebb9@byu.net>
60015         maint.mk: simplify update-copyright rule
60016         * top/maint.mk (update-copyright-local): Delete, and document how
60017         to do it in cfg.mk instead.
60018         (update-copyright-exclude-regexp): Delete, and document how to do
60019         it in .x-update-copyright instead.
60020         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
60021         exclude ChangeLog.
60023 2009-08-14  Bruno Haible  <bruno@clisp.org>
60025         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
60027 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60029         maint.mk: support update-copyright-env
60030         * top/maint.mk (update-copyright-env): Define place-holder.
60031         (update-copyright): Expand $(update-copyright-env) before
60032         invoking update-copyright.
60034 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60036         update-copyright: implement forced reformatting
60037         * build-aux/update-copyright: Implement and document
60038         UPDATE_COPYRIGHT_FORCE.
60039         * tests/test-update-copyright.sh: Test it.
60041 2009-08-14  Eric Blake  <ebb9@byu.net>
60042         and Bruno Haible  <bruno@clisp.org>
60044         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
60045         * tests/test-locale.c: Revert previous patch related to NULL.
60046         * tests/test-stdio.c: Likewise.
60047         * tests/test-stdlib.c: Likewise.
60048         * tests/test-string.c: Likewise.
60049         * tests/test-unistd.c: Likewise.
60050         * modules/time-tests (Depends-on): Add verify.
60051         * modules/wchar-tests (Depends-on): Likewise.
60052         * tests/test-time.c: Test for NULL compliance.
60053         * tests/test-wchar.c: Likewise.
60054         * modules/locale (Depends-on): Add stddef.
60055         * modules/stdio (Depends-on): Likewise.
60056         * modules/stdlib (Depends-on): Likewise.
60057         * modules/string (Depends-on): Likewise.
60058         * modules/time (Depends-on): Likewise.
60059         * modules/unistd (Depends-on): Likewise.
60060         * modules/wchar (Depends-on): Likewise.
60061         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
60062         * lib/stdlib.in.h (includes): Likewise.
60063         * lib/string.in.h (includes): Likewise.
60064         * lib/time.in.h (includes): Likewise.
60065         * lib/unistd.in.h (includes): Likewise.
60066         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
60067         replaced.
60068         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60069         * m4/stddef_h.m4: New file.
60070         * modules/stddef: Likewise.
60071         * lib/stddef.in.h: Likewise.
60072         * modules/stddef-tests: Likewise.
60073         * tests/test-stddef.c: Likewise.
60074         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
60075         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
60076         * doc/posix-headers/locale.texi (locale.h): Likewise.
60077         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
60078         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60079         * doc/posix-headers/string.texi (string.h): Likewise.
60080         * doc/posix-headers/time.texi (time.h): Likewise.
60081         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
60082         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
60084 2009-08-14  Eric Blake  <ebb9@byu.net>
60086         doc: improve git diff of texinfo files
60087         * .gitattributes: Add rule for *.texi files, with hint on how to
60088         use it.
60089         Copied from m4, and based on a report by Bruno Haible.
60091 2009-08-14  Bruno Haible  <bruno@clisp.org>
60093         Disable multithread support by default on Cygwin 1.5.x for real.
60094         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
60096 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60098         update-copyright: much ado about intervals
60099         * build-aux/update-copyright: Implement and document
60100         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
60101         of copyright year intervals.
60102         Also, document UPDATE_COPYRIGHT_YEAR.
60103         * tests/test-update-copyright.sh: Test it.
60105         update-copyright: convert 2-digit to 4-digit years
60106         * build-aux/update-copyright: Implement and document.
60107         * tests/test-update-copyright.sh: Update.
60109 2009-08-14  Jim Meyering  <meyering@redhat.com>
60111         test-exclude: avoid coreutils "make check" failure
60112         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
60113         just as in test-argmatch.c.
60115 2009-08-13  Eric Blake  <ebb9@byu.net>
60117         test-dup2: fix bad assumption
60118         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
60119         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
60121         test-version-etc: fix CRLF portability issue
60122         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
60123         recognize \r.
60124         * tests/test-argp-version-etc-1.sh: Likewise.
60126         getopt: update client modules
60127         * modules/argp (Depends-on): Use getopt-gnu.
60128         * modules/git-merge-changelog (Depends-on): Likewise.
60129         * modules/long-options (Depends-on): Likewise.
60130         * modules/xstrtol (Depends-on): Likewise.
60132 2009-08-13  Simon Josefsson  <simon@josefsson.org>
60134         * tests/test-version-etc.sh: Don't fail on different
60135         project/version.  Don't fail on CRLF differences.  Rewrite to use
60136         multiple -e instead of multiple sed forks, suggested by Eric Blake
60137         <ebb9@byu.net>.
60138         * tests/test-argp-version-etc-1.sh: Likewise.
60140 2009-08-13  Simon Josefsson  <simon@josefsson.org>
60142         * tests/test-version-etc.sh: Don't fail on different
60143         project/version.
60145 2009-08-12  Bruno Haible  <bruno@clisp.org>
60147         Tests for modules 'getopt-posix', 'getopt-gnu'.
60148         * modules/getopt-posix-tests: New file.
60149         * tests/test-getopt.c: New file.
60150         * tests/test-getopt.h: New file.
60151         * tests/test-getopt_long.h: New file.
60153         New modules 'getopt-posix', 'getopt-gnu'.
60154         * modules/getopt-gnu: New file, renamed from modules/getopt.
60155         * modules/getopt-posix: New file.
60156         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
60157         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
60158         (gl_GETOPT): Remove macro.
60159         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
60160         Disable the test against BSD systems that declare optreset. Test
60161         against mingw bug. Test against lack of support of optional arguments
60162         on many platforms.
60163         * doc/glibc-headers/getopt.texi: Update module name and list of
60164         relevant platforms.
60165         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
60166         'getopt-gnu' and more portability problems.
60167         * NEWS: Mention the changes.
60169 2009-08-12  Bruno Haible  <bruno@clisp.org>
60171         Ensure that optarg etc. get declared by <unistd.h>.
60172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
60173         AC_USE_SYSTEM_EXTENSIONS.
60174         * modules/getopt (Depends-on): Add 'extensions'.
60176 2009-08-12  Bruno Haible  <bruno@clisp.org>
60178         Avoid test link errors.
60179         * modules/pipe-filter-ii-tests (Makefile.am): Define
60180         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
60181         * modules/pipe-filter-gi-tests (Makefile.am): Define
60182         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
60183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60185 2009-08-12  Bruno Haible  <bruno@clisp.org>
60187         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
60188         gl_GETOPT_SUBSTITUTE before.
60189         (gl_GETOPT): Use it.
60190         * m4/argp.m4 (gl_ARGP): Update.
60191         Reported by Sergey Poznyakoff.
60193         * m4/getopt.m4: Reorder macros.
60194         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
60195         (gl_GETOPT_SUBSTITUTE): Remove macro.
60197 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60199         Minor improvement in gitlog-to-changelog
60201         * build-aux/gitlog-to-changelog: New option `--format' makes
60202         output format string configurable.
60204 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60206         Optimize exclude: use hash tables for non-wildcard patterns.
60208         * lib/exclude.c: Include hash.h and mbuiter.h
60209         (struct exclude_pattern, exclude_segment): New data types.
60210         (struct exclude): Rewrite.
60211         (fnmatch_pattern_has_wildcards): New function.
60212         (new_exclude_segment, free_exclude_segment): New functions.
60213         (excluded_file_pattern_p, excluded_file_name_p): New functions.
60214         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
60215         * lib/exclude.h (is_fnmatch_pattern): New prototype.
60216         * modules/exclude: Depend on hash and mbuiter.
60218         * modules/exclude-tests: New file.
60219         * tests/test-exclude.c: New file.
60220         * tests/test-exclude1.sh: New file.
60221         * tests/test-exclude2.sh: New file.
60222         * tests/test-exclude3.sh: New file.
60223         * tests/test-exclude4.sh: New file.
60224         * tests/test-exclude5.sh: New file.
60225         * tests/test-exclude6.sh: New file.
60226         * tests/test-exclude7.sh: New file.
60228 2009-08-12  Bruno Haible  <bruno@clisp.org>
60230         Ensure that getopt() gets declared by <unistd.h>.
60231         * lib/unistd.in.h: Conditionally include getopt.h.
60232         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
60233         Set GNULIB_UNISTD_H_GETOPT.
60234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60235         GNULIB_UNISTD_H_GETOPT.
60236         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
60238 2009-08-12  Bruno Haible  <bruno@clisp.org>
60240         Clarify logic.
60241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
60242         gl_replace_getopt instead of GETOPT_H.
60244 2009-08-12  Bruno Haible  <bruno@clisp.org>
60246         * m4/getopt.m4: Add comments.
60248 2009-08-12  Bruno Haible  <bruno@clisp.org>
60250         Disable multithread support by default on Cygwin 1.5.x.
60251         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
60252         set gl_use_threads=no if not specified otherwise.
60254 2009-08-11  Bruno Haible  <bruno@clisp.org>
60256         Avoid compilation error on NetBSD 5.0.
60257         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
60258         * tests/test-stdio.c: Likewise.
60259         * tests/test-stdlib.c: Likewise.
60260         * tests/test-string.c: Likewise.
60261         * tests/test-unistd.c: Likewise.
60262         Reported by Greg Troxel <gdt@ir.bbn.com>
60263         at <https://savannah.gnu.org/support/?106973>.
60265 2009-08-11  Bruno Haible  <bruno@clisp.org>
60267         * modules/dup2-tests (Depends-on): Remove close.
60269         Undo 2009-07-19 commit.
60270         * modules/acl-tests (Depends-on): Remove close.
60271         * modules/binary-io-tests (Depends-on): Likewise.
60272         * modules/closein-tests (Depends-on): Likewise.
60273         * modules/flock-tests (Depends-on): Likewise.
60274         * modules/fsync-tests (Depends-on): Likewise.
60275         * modules/lseek-tests (Depends-on): Likewise.
60276         * modules/pipe-tests (Depends-on): Likewise.
60277         * modules/posix_spawn-tests (Depends-on): Likewise.
60278         * modules/posix_spawnp-tests (Depends-on): Likewise.
60279         * modules/stat-time-tests (Depends-on): Likewise.
60280         * modules/yesno-tests (Depends-on): Likewise.
60282 2009-08-10  Bruno Haible  <bruno@clisp.org>
60284         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
60286 2009-08-10  Bruno Haible  <bruno@clisp.org>
60288         Fix a gcc warning.
60289         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
60291 2009-08-10  Bruno Haible  <bruno@clisp.org>
60293         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
60294         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
60295         not only the first time.
60296         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
60297         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
60298         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
60299         is 1, not only the first time.
60301 2009-08-10  Bruno Haible  <bruno@clisp.org>
60303         Make it possible to use module 'gethostname' without module 'close'.
60304         * lib/unistd.in.h (close): Evoke a link error only if
60305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
60306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60307         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60308         * modules/unistd (Makefile.am): Substitute
60309         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60310         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
60311         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
60312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
60313         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60314         * modules/sys_ioctl (Makefile.am): Substitute
60315         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60316         * modules/socket (configure.ac): On native Windows, set
60317         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
60318         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60319         Reported by Sam Steingold <sds@gnu.org>.
60321 2009-08-10  Bruno Haible  <bruno@clisp.org>
60323         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
60324         * modules/ioctl (configure.ac): Likewise.
60326 2009-08-10  Bruno Haible  <bruno@clisp.org>
60328         Avoid collision between gnulib wrapper and libintl wrapper.
60329         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
60330         already defined in intl/printf.c.
60331         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
60332         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
60334 2009-08-09  Bruno Haible  <bruno@clisp.org>
60336         Make <sys/select.h> really self-contained, also on Solaris 10.
60337         * lib/sys_select.in.h: Include <string.h>.
60338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
60339         Solaris 10 problem.
60340         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
60341         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
60342         Reported by Jim Meyering.
60344 2009-08-09  Bruno Haible  <bruno@clisp.org>
60346         Avoid warnings from 'aclocal' that are due to a use of macro name
60347         AM_XGETTEXT_OPTION that is not defined in automake.
60348         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
60349         automake.
60350         * modules/error (configure.ac): Likewise.
60351         * modules/propername (configure.ac): Likewise.
60352         * modules/vasprintf (configure.ac): Likewise.
60353         * modules/verror (configure.ac): Likewise.
60354         * modules/xprintf (configure.ac): Likewise.
60355         * modules/xvasprintf (configure.ac): Likewise.
60357 2009-08-08  Bruno Haible  <bruno@clisp.org>
60359         Avoid compilation error in C++ mode.
60360         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
60361         Reported by Sam Steingold <sds@gnu.org>.
60363 2009-08-08  Bruno Haible  <bruno@clisp.org>
60365         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
60366         for the various Unix platforms.
60367         * doc/posix-headers/limits.texi: Update platforms list regarding
60368         HOST_NAME_MAX.
60369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60371 2009-08-07  Jim Meyering  <meyering@redhat.com>
60373         selinux-at: fix typo in a comment
60374         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
60375         Spotted by Paolo Bonzini.
60377         selinux-at: remove redundant m4 code, add documentation
60378         * modules/selinux-at (configure.ac): Remove redundant code.
60379         LIB_SELINUX is already set via the dependent module, selinux-h.
60380         (Include): Add quotes around selinux-at.h.
60381         * lib/selinux-at.h: Add documentation.
60382         Reported by Bruno Haible in
60383         http://marc.info/?l=gnulib-bug&m=124958988300749
60385 2009-08-07  Bruno Haible  <bruno@clisp.org>
60387         Avoid link error on MacOS X 10.3 and 10.4.
60388         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
60389         on non-ELF systems.
60390         * lib/argp-pv.c (argp_program_version): Likewise.
60391         Reported by Simon Josefsson.
60393 2009-08-07  Simon Josefsson  <simon@josefsson.org>
60395         * tests/test-version-etc.sh: Use $EXEEXT.
60397 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
60399         update-copyright: update documentation to point to maint.mk
60400         * build-aux/update-copyright: Here.
60402 2009-08-06  Jim Meyering  <meyering@redhat.com>
60404         maint.mk: support update-copyright-local
60405         * top/maint.mk (update-copyright-local): Define place-holder.
60406         (update-copyright): Depend on $(update-copyright-local).
60408 2009-08-06  Jim Meyering  <meyering@redhat.com>
60410         selinux-at: new module
60411         Initially written for coreutils, this module will soon be
60412         used by findutils, too.
60413         * MODULES.html.sh [Misc]: Add selinux-at.
60414         * lib/selinux-at.h: New file, from coreutils.
60415         * lib/selinux-at.c: Likewise.
60416         * modules/selinux-at: Likewise.
60417         (License): Change from LGPL to GPL, since it depends
60418         on the GPL'd openat module.
60420         doc: update README
60421         * README: Remove references to cogito.
60422         Remove cvs-repo-updating instructions from 2007.
60423         Don't imply that CVS is better if you have limited disk space.
60425 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60427         update-copyright: support C-style comments
60428         * build-aux/update-copyright: Implement and document.
60429         * tests/test-update-copyright.sh: Test.
60431 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60433         update-copyright: support omitted "(C)"
60434         * build-aux/update-copyright: Implement and document.  Also,
60435         allow variable whitespace before "(C)".
60436         * tests/test-update-copyright.sh: Test.
60438 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60440         update-copyright: don't trip on non-FSF copyright statements
60441         * build-aux/update-copyright: Fix so that the first correctly
60442         formatted FSF copyright statement is recognized no matter what
60443         appears before it.  Update documentation.
60444         * tests/test-update-copyright.sh: Test that.
60446 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60448         update-copyright: clean up code a little
60449         * build-aux/update-copyright: Append "_re" to the name of any
60450         variable holding a regular expression.
60451         Replace "old" and "new" with "stmt" in variable names.
60452         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
60453         handled correctly.
60454         Format code more consistently.
60456 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60458         update-copyright-tests: improve portability
60459         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
60460         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
60462 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
60464         update-copyright: support @copyright{} and &copy;
60465         * build-aux/update-copyright: Implement and document.
60466         * tests/test-update-copyright.sh: Test.
60468 2009-08-04  Jim Meyering  <meyering@redhat.com>
60470         update-copyright-tests: correctly test EOL=\r\n handling
60471         * tests/test-update-copyright.sh: Put \r at the end of some lines
60472         for the dos-eol tests.  Based on a patch by Joel E. Denny.
60474         maint.mk: make update-copyright exclusion list more configurable
60475         * top/maint.mk (update-copyright): Default to excluding COPYING,
60476         but allow an override, in case someone does want to update that file.
60478         maint.mk: don't update copyright date in COPYING
60479         * top/maint.mk (update-copyright): Exclude COPYING.
60481         maint.mk: add a copyright-updating rule
60482         * top/maint.mk (update-copyright): New rule.
60483         Derived from coreutils/Makefile.am.
60485         update-copyright: rename some variables
60486         * build-aux/update-copyright: Rename a few variables for clarity.
60487         Tweak syntax.  List Joel E. Denny as coauthor.
60489 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
60491         update-copyright: fix bug for 2-digit last year and add tests
60492         * build-aux/update-copyright: Fix bug.
60493         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
60494         specified.
60495         * modules/update-copyright-tests: New
60496         * tests/test-update-copyright.sh: New.
60498 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60500         update-copyright: handle leading tabs in line prefix
60501         * build-aux/update-copyright: Count leading tabs as 8 spaces
60502         when computing margin.  This helps with the formatting of
60503         ChangeLogs, for example.
60504         Fix documentation a little.
60506 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60508         update-copyright: support EOL=\r\n
60509         * build-aux/update-copyright: Implement that.
60511 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60513         update-copyright: automatically format copyright statements
60514         * build-aux/update-copyright: Implement that.
60515         Also, be a little more predictable and safer by always failing
60516         when the full copyright format is not perfectly recognized as an
60517         unbroken whole.  Discussed at
60518         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
60519         Rewrite documentation.
60521 2009-08-03  Bruno Haible  <bruno@clisp.org>
60523         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
60525 2009-08-02  Bruno Haible  <bruno@clisp.org>
60527         Tests for module 'uname'.
60528         * modules/uname-tests: New file.
60529         * tests/test-uname.c: New file.
60531         New module 'uname'.
60532         * lib/uname.c: New file.
60533         * m4/uname.m4: New file.
60534         * modules/uname: New file.
60535         * doc/posix-functions/uname.texi: Mention the new module.
60537 2009-08-02  Bruno Haible  <bruno@clisp.org>
60539         Tests for module 'sys_utsname'.
60540         * modules/sys_utsname-tests: New file.
60541         * tests/test-sys_utsname.c: New file.
60543         New module 'sys_utsname'.
60544         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
60545         * m4/sys_utsname_h.m4: New file.
60546         * modules/sys_utsname: New file.
60547         * doc/posix-headers/sys_utsname.texi: Mention the new module.
60549 2009-08-02  Bruno Haible  <bruno@clisp.org>
60551         Implicitly initialize the sockets library.
60552         * lib/gethostname.c: Include sockets.h.
60553         (rpl_gethostname): Invoke gl_sockets_startup.
60554         * lib/socket.c: Include sockets.h.
60555         (rpl_socket): Invoke gl_sockets_startup.
60556         * modules/gethostname (Depends-on): Add sockets.
60557         * modules/socket (Depends-on): Likewise.
60558         * tests/test-poll.c: Don't include sockets.h.
60559         (main): Don't invoke gl_sockets_startup.
60560         * tests/test-select.c: Don't include sockets.h.
60561         (main): Don't invoke gl_sockets_startup.
60563 2009-08-02  Bruno Haible  <bruno@clisp.org>
60565         Allow multiple calls to gl_sockets_startup.
60566         * lib/sockets.c (initialized_sockets_version): New variable.
60567         (gl_sockets_startup): Do nothing if already called for this or a higher
60568         version.
60569         (gl_sockets_cleanup): Reset initialized_sockets_version.
60571 2009-08-03  Simon Josefsson  <simon@josefsson.org>
60573         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
60574         different project/version.
60576 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
60577             Bruno Haible  <bruno@clisp.org>
60579         Tests for module 'pipe-filter-gi'.
60580         * modules/pipe-filter-gi-tests: New file.
60581         * tests/test-pipe-filter-gi1.sh: New file.
60582         * tests/test-pipe-filter-gi1.c: New file.
60583         * tests/test-pipe-filter-gi2.sh: New file.
60584         * tests/test-pipe-filter-gi2-main.c: New file.
60585         * tests/test-pipe-filter-gi2-child.c: New file.
60587         New module 'pipe-filter-gi'.
60588         * lib/pipe-filter-gi.c: New file.
60589         * modules/pipe-filter-gi: New file.
60591 2009-08-02  Bruno Haible  <bruno@clisp.org>
60592             Paolo Bonzini  <bonzini@gnu.org>
60594         Tests for module 'pipe-filter-ii'.
60595         * modules/pipe-filter-ii-tests: New file.
60596         * tests/test-pipe-filter-ii1.sh: New file.
60597         * tests/test-pipe-filter-ii1.c: New file.
60598         * tests/test-pipe-filter-ii2.sh: New file.
60599         * tests/test-pipe-filter-ii2-main.c: New file.
60600         * tests/test-pipe-filter-ii2-child.c: New file.
60602         New module 'pipe-filter-ii'.
60603         * lib/pipe-filter.h: New file.
60604         * lib/pipe-filter-ii.c: New file.
60605         * lib/pipe-filter-aux.h: New file.
60606         * modules/pipe-filter-ii: New file.
60608 2009-08-02  Simon Josefsson  <simon@josefsson.org>
60610         * lib/gc-libgcrypt.c: Change copyright to FSF.
60611         * lib/gc-gnulib.c: Likewise.
60613 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
60615         * lib/gethostname.c: Include limits.h.
60617 2009-08-02  Simon Josefsson  <simon@josefsson.org>
60618             Bruno Haible  <bruno@clisp.org>
60620         Ensure HOST_NAME_MAX as part of the gethostname module.
60621         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
60622         define also HOST_NAME_MAX.
60623         * tests/test-gethostname.c: Include <limits.h>.
60624         (main): Check also HOST_NAME_MAX.
60625         * doc/posix-headers/limits.texi: Document the mingw problem.
60627 2009-08-02  Bruno Haible  <bruno@clisp.org>
60629         * lib/gethostname.c (gethostname): Fix handling of large len argument.
60630         Add comments.
60632 2009-03-31  Simon Josefsson  <simon@josefsson.org>
60634         * lib/gethostname.c: Add Windows wrapper.
60635         * m4/gethostname.m4: Look for gethostname in -lws2_32.
60636         * modules/gethostname: Depend on sys_socket & errno, for also
60637         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
60638         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
60640 2009-07-31  Jim Meyering  <meyering@redhat.com>
60642         getloadavg: fix symbol name in comment
60643         * lib/getloadavg.c: Correct a typo I introduced when adding
60644         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
60645         Matt Kraai spotted the problem.
60647 2009-07-29  Matt Kraai  <mkraai@beckman.com>
60649         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
60650         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
60651         code also if ! defined N_NAME_POINTER.
60652         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
60653         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
60654         but the n_name member is a 12-byte array.
60656 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
60658         update-copyright: generalize comment handling
60659         * build-aux/update-copyright: Handle copyright statements
60660         within more comment styles.
60661         Document usage.
60662         Report any file with an external copyright holder or parse failure.
60664 2009-07-29  Jim Meyering  <meyering@redhat.com>
60666         mktime: correct setting of REPLACE_MKTIME
60667         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
60669         update-copyright: new module
60670         * modules/update-copyright: New file.
60671         * build-aux/update-copyright: New file.
60672         * MODULES.html.sh (maint+release support): Add update-copyright.
60674 2009-07-27  Bruno Haible  <bruno@clisp.org>
60676         Fix compilation error when <ctime> is used and mktime is replaced.
60677         * lib/time.in.h (mktime): New declaration.
60678         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
60679         REPLACE_MKTIME instead of defining mktime in config.h.
60680         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
60681         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
60682         Reported by Ross McFarland <rwmcfa1@neces.com>.
60684 2009-07-27  Bruno Haible  <bruno@clisp.org>
60686         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
60687         Reported by Matt Kraai <mkraai@beckman.com>.
60689 2009-07-25  Jim Meyering  <meyering@redhat.com>
60691         maint.mk: avoid warnings about missing files
60692         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
60693         diagnostic when .prev-version does not exist.
60694         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
60695         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
60696         nonexistent cfg.mk.
60697         Suggestions from Simon Josefsson.
60699 2009-07-25  Bruno Haible  <bruno@clisp.org>
60701         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
60702         defined as macros. Needed on QNX 6.4.1.
60703         Reported by Matt Kraai <mkraai@beckman.com>.
60705 2009-07-23  Jim Meyering  <meyering@redhat.com>
60707         maint.mk: invoke "make dist" with a working value of XZ_OPT
60708         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
60710 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
60712         Make fseeko.c compile on QNX.
60713         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
60715 2009-07-22  Peter Simons  <simons@cryp.to>
60717         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
60718         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
60719         * lib/md4.h: Likewise.
60720         * lib/md5.h: Likewise.
60721         * lib/sha1.h: Likewise.
60722         * lib/sha256.h: Likewise.
60723         * lib/sha512.h: Likewise.
60725         tests-sha1: don't assign literal string to 'char *' variable
60726         * tests/test-sha1.c (main): Declare locals with "const" to match
60727         attributes of the right hand side.
60729 2009-07-21  Eric Blake  <ebb9@byu.net>
60731         dup2: fix more mingw problems
60732         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
60733         fd to itself.
60734         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60735         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
60736         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
60737         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
60738         care of mingw bugs.
60740 2009-07-21  Jim Meyering  <meyering@redhat.com>
60742         vc-list-files: avoid failure when /bin/sh is dash
60743         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
60744         On some Debian based systems, /bin/sh is a symlink to dash, and running
60745         this command would omit the "/" following each 'tests' prefix:
60746           dash -x build-aux/vc-list-files -C . tests
60747         That is because bash and dash work differently:
60748           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
60749           bash ok
60750           dash odd
60752 2009-07-21  Eric Blake  <ebb9@byu.net>
60754         dup2-tests: test previous patch
60755         * modules/dup2-tests: New file.
60756         * tests/test-dup2.c: Likewise.
60757         * tests/test-open.c (main): Avoid unspecified behavior.
60758         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
60759         test.
60761         dup2: work around mingw and cygwin 1.5 bug
60762         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
60763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60764         * modules/unistd (Makefile.am): Substitute it.
60765         * lib/unistd.in.h (dup2): Declare the replacement.
60766         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
60767         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
60768         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
60769         * modules/execute (Depends-on): Add dup2.
60770         * modules/fseterr (Depends-on): Likewise.
60771         * modules/pipe (Depends-on): Likewise.
60772         * modules/posix_spawn-internal (Depends-on): Likewise.
60774 2009-07-21  Bruno Haible  <bruno@clisp.org>
60776         * modules/.gitattributes: New file.
60778 2009-07-20  Bruno Haible  <bruno@clisp.org>
60780         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
60781         (main): Use it.
60783 2009-07-20  Eric Blake  <ebb9@byu.net>
60785         test-pipe: make a bit more robust.
60786         * tests/test-pipe.c (myerr): Allow error messages regardless of
60787         what we do to stderr.
60788         (test_pipe): Rearrange to avoid deadlock.
60789         (child_main): Try a larger read, to ensure we avoided deadlock.
60790         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
60791         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
60792         if misused.
60794 2009-07-19  Jim Meyering  <meyering@redhat.com>
60796         fts: avoid false-positive cycle-detection
60797         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
60798         for each new command line argument.
60800 2009-07-19  Bruno Haible  <bruno@clisp.org>
60802         Fix build error on mingw with the modules sys_select and unistd.
60803         * modules/acl-tests (Depends-on): Add close.
60804         * modules/binary-io-tests (Depends-on): Likewise.
60805         * modules/closein-tests (Depends-on): Likewise.
60806         * modules/flock-tests (Depends-on): Likewise.
60807         * modules/fsync-tests (Depends-on): Likewise.
60808         * modules/lseek-tests (Depends-on): Likewise.
60809         * modules/pipe-tests (Depends-on): Likewise.
60810         * modules/posix_spawn-tests (Depends-on): Likewise.
60811         * modules/posix_spawnp-tests (Depends-on): Likewise.
60812         * modules/stat-time-tests (Depends-on): Likewise.
60813         * modules/yesno-tests (Depends-on): Likewise.
60815 2009-07-19  Bruno Haible  <bruno@clisp.org>
60817         Unify conditionals.
60818         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
60819         macros, not at the compiler macros.
60820         * lib/pipe.c: Likewise.
60821         * lib/execute.c: Likewise.
60822         * lib/spawni.c: Likewise.
60824 2009-07-19  Bruno Haible  <bruno@clisp.org>
60826         Fix handling of closed stdin/stdout/stderr on mingw.
60827         * lib/w32spawn.h: Include unistd.h.
60828         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
60829         file descriptor with O_NOINHERIT flag.
60830         (fd_safer_noinherit): New function, based on fd-safer.c.
60831         (dup_safer_noinherit): New function, based on dup-safer.c.
60832         (undup_safer_noinherit): New function.
60833         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
60834         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
60835         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
60836         instead of fd_safer.
60837         * tests/test-pipe.c: Include <windows.h>.
60838         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
60839         result.
60841         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
60842         from main.
60843         (test_pipe): Pass an extra argument for disambiguation.
60844         (main): Invoke parent_main or child_main.
60846         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
60847         consistently.
60849 2009-07-18  Eric Blake  <ebb9@byu.net>
60851         test-pipe: fix mingw build
60852         * tests/test-pipe.c (main): Avoid fcntl on mingw.
60854 2009-07-18  Bruno Haible  <bruno@clisp.org>
60856         * modules/pipe-tests (Makefile.am): Fix typo.
60858 2009-07-18  Eric Blake  <ebb9@byu.net>
60860         error: fix mingw build
60861         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
60862         Reported by Bruno Haible.
60864         error: avoid undefined use of stdout
60865         * lib/error.c (error, error_at_line): Check that fd 1 is open
60866         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
60867         is handling faults and the close_stdout module wants to report the
60868         detection of closed stdout as an error.
60870 2009-07-17  Eric Blake  <ebb9@byu.net>
60872         pipe: be robust in face of closed fds
60873         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
60874         should cause child to misbehave.
60875         * modules/pipe-tests: New module.
60876         * tests/test-pipe.c: New file.
60877         * tests/test-pipe.sh: New file.
60878         Reported by Akim Demaille.
60880 2009-07-14  Bruno Haible  <bruno@clisp.org>
60882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
60883         Reported by anonymous kc.
60885 2009-07-07  Jim Meyering  <meyering@redhat.com>
60887         maint.mk: don't look for translatable strings in *.m4 or *.mk
60888         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
60889         when searching for translatable strings.
60891 2009-07-05  Jim Meyering  <meyering@redhat.com>
60893         remove superfluous parentheses in STREQ definition
60894         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
60895         * lib/getugroups.c (STREQ): Likewise.
60896         * lib/fnmatch.c (STREQ): Likewise.
60897         Spotted by Bruno Haible.
60899 2009-07-04  Jim Meyering  <meyering@redhat.com>
60901         argv-iter: new module
60902         * MODULES.html.sh: Add argv-iter.
60903         * lib/argv-iter.c, lib/argv-iter.h: New files.
60904         * modules/argv-iter: New file.
60905         * modules/argv-iter-tests: New file.
60906         * tests/test-argv-iter.c: Test it.
60908 2009-07-04  Bruno Haible  <bruno@clisp.org>
60910         Fix assertion.
60911         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
60912         contains more exact copies of a given entry than file2, leave the extra
60913         copies unpaired rather than aborting.
60914         Reported by Eric Blake.
60916 2009-07-02  Bruno Haible  <bruno@clisp.org>
60918         Speedup git-merge-changelog for git cherry-pick.
60919         * lib/git-merge-changelog.c (struct entries_mapping): New type.
60920         (entries_mapping_get): New function, extracted from compute_mapping.
60921         (entries_mapping_reverse_get): New function.
60922         (compute_mapping): Add a 'full' argument. Return the result in a
60923         'struct entries_mapping'.
60924         (main): Update. Access the mappings through entries_mapping_get.
60925         Reported by Eric Blake.
60927 2009-07-02  Bruno Haible  <bruno@clisp.org>
60929         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
60930         best_i.
60932 2009-07-02  Bruno Haible  <bruno@clisp.org>
60934         Speed up approximate search for matching ChangeLog entries.
60935         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
60936         argument. Call fstrcmp_bounded instead of fstrcmp.
60937         (compute_mapping, try_split_merged_entry, main): Update callers.
60939 2009-07-02  Bruno Haible  <bruno@clisp.org>
60941         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
60943 2009-06-30  Bruno Haible  <bruno@clisp.org>
60945         Reduce the number of uc_is_cased calls.
60946         * lib/unicase.h (casing_suffix_context_t): Add
60947         'first_char_except_ignorable' field.
60948         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
60949         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
60950         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
60951         Update initializer.
60952         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
60953         case-ignorable characters.
60954         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
60955         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
60956         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
60957         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
60958         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
60960 2009-06-30  Bruno Haible  <bruno@clisp.org>
60962         Tests for module 'unicase/ignorable'.
60963         * modules/unicase/ignorable-tests: New file.
60964         * tests/unicase/test-ignorable.c: New file, generated by
60965         gen-uni-tables.
60967         Tests for module 'unicase/cased'.
60968         * modules/unicase/cased-tests: New file.
60969         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
60970         * tests/unicase/test-predicate-part1.h: New file, derived from
60971         tests/unictype/test-predicate-part1.h.
60972         * tests/unicase/test-predicate-part2.h: New file, same as
60973         tests/unictype/test-predicate-part2.h.
60975         Fix evaluation of "Before C" condition of FINAL_SIGMA.
60976         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
60977         (output_casing_properties): New function.
60978         (main): Call it.
60979         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
60980         * lib/unicase/cased.c: Include unictype/bitmap.h.
60981         (uc_is_cased): Define through a bitmap lookup.
60982         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
60983         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
60984         (uc_is_case_ignorable): Define through a bitmap lookup.
60985         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
60986         lib/unictype/bitmap.h.
60987         (Depends-on): Add inline. Clean up.
60988         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
60989         lib/unictype/bitmap.h.
60990         (Depends-on): Add inline. Clean up.
60991         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
60992         recognition.
60993         * tests/unicase/test-u16-tolower.c (main): Likewise.
60994         * tests/unicase/test-u32-tolower.c (main): Likewise.
60996 2009-06-30  Bruno Haible  <bruno@clisp.org>
60998         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
60999         * lib/unicase/u16-casemap.c: Likewise.
61000         * lib/unicase/u32-casemap.c: Likewise.
61002 2009-06-29  Bruno Haible  <bruno@clisp.org>
61004         Define u32_casefold as a wrapper around u32_ct_casefold.
61005         * lib/unicase/u32-casefold.c: Update.
61006         * modules/unicase/u32-casefold (Depends-on): Add
61007         unicase/u32-ct-casefold, unicase/empty-prefix-context,
61008         unicase/empty-suffix-context. Clean up.
61010         Define u16_casefold as a wrapper around u16_ct_casefold.
61011         * lib/unicase/u16-casefold.c: Update.
61012         * modules/unicase/u16-casefold (Depends-on): Add
61013         unicase/u16-ct-casefold, unicase/empty-prefix-context,
61014         unicase/empty-suffix-context. Clean up.
61016         Define u8_casefold as a wrapper around u8_ct_casefold.
61017         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
61018         * lib/unicase/u8-casefold.c: Update.
61019         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
61020         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61022         Define u32_totitle as a wrapper around u32_ct_totitle.
61023         * lib/unicase/u32-totitle.c: Update.
61024         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
61025         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61027         Define u16_totitle as a wrapper around u16_ct_totitle.
61028         * lib/unicase/u16-totitle.c: Update.
61029         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
61030         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61032         Define u8_totitle as a wrapper around u8_ct_totitle.
61033         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
61034         functions.
61035         (FUNC): Delegate to U_CT_TOTITLE.
61036         * lib/unicase/u8-totitle.c: Update.
61037         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
61038         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61040         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
61041         invocation.
61042         * modules/unicase/u32-tolower (Depends-on): Add
61043         unicase/empty-prefix-context, unicase/empty-suffix-context.
61045         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
61046         invocation.
61047         * modules/unicase/u16-tolower (Depends-on): Add
61048         unicase/empty-prefix-context, unicase/empty-suffix-context.
61050         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
61051         * modules/unicase/u8-tolower (Depends-on): Add
61052         unicase/empty-prefix-context, unicase/empty-suffix-context.
61054         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
61055         invocation.
61056         * modules/unicase/u32-toupper (Depends-on): Add
61057         unicase/empty-prefix-context, unicase/empty-suffix-context.
61059         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
61060         invocation.
61061         * modules/unicase/u16-toupper (Depends-on): Add
61062         unicase/empty-prefix-context, unicase/empty-suffix-context.
61064         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
61065         * modules/unicase/u8-toupper (Depends-on): Add
61066         unicase/empty-prefix-context, unicase/empty-suffix-context.
61068         New module 'unicase/u32-ct-casefold'.
61069         * lib/unicase/u32-ct-casefold.c: New file.
61070         * modules/unicase/u32-ct-casefold: New file.
61072         New module 'unicase/u16-ct-casefold'.
61073         * lib/unicase/u16-ct-casefold.c: New file.
61074         * modules/unicase/u16-ct-casefold: New file.
61076         New module 'unicase/u8-ct-casefold'.
61077         * lib/unicase/u8-ct-casefold.c: New file.
61078         * lib/unicase/u-ct-casefold.h: New file, derived from
61079         lib/unicase/u-casefold.h.
61080         * modules/unicase/u8-ct-casefold: New file.
61082         New module 'unicase/u32-ct-totitle'.
61083         * lib/unicase/u32-ct-totitle.c: New file.
61084         * modules/unicase/u32-ct-totitle: New file.
61086         New module 'unicase/u16-ct-totitle'.
61087         * lib/unicase/u16-ct-totitle.c: New file.
61088         * modules/unicase/u16-ct-totitle: New file.
61090         New module 'unicase/u8-ct-totitle'.
61091         * lib/unicase/u8-ct-totitle.c: New file.
61092         * lib/unicase/u-ct-totitle.h: New file, derived from
61093         lib/unicase/u-totitle.h.
61094         * modules/unicase/u8-ct-totitle: New file.
61096         New module 'unicase/u32-ct-tolower'.
61097         * lib/unicase/u32-ct-tolower.c: New file.
61098         * modules/unicase/u32-ct-tolower: New file.
61100         New module 'unicase/u16-ct-tolower'.
61101         * lib/unicase/u16-ct-tolower.c: New file.
61102         * modules/unicase/u16-ct-tolower: New file.
61104         New module 'unicase/u8-ct-tolower'.
61105         * lib/unicase/u8-ct-tolower.c: New file.
61106         * modules/unicase/u8-ct-tolower: New file.
61108         New module 'unicase/u32-ct-toupper'.
61109         * lib/unicase/u32-ct-toupper.c: New file.
61110         * modules/unicase/u32-ct-toupper: New file.
61112         New module 'unicase/u16-ct-toupper'.
61113         * lib/unicase/u16-ct-toupper.c: New file.
61114         * modules/unicase/u16-ct-toupper: New file.
61116         New module 'unicase/u8-ct-toupper'.
61117         * lib/unicase/u8-ct-toupper.c: New file.
61118         * modules/unicase/u8-ct-toupper: New file.
61120         Add context arguments to u*_casemap functions.
61121         * lib/unicase/unicasemap.h: Include unicase.h.
61122         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
61123         suffix_context arguments.
61124         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
61125         functions.
61126         (FUNC): Add prefix_context and suffix_context arguments. Use
61127         uc_is_cased and uc_is_case_ignorable.
61128         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
61129         * lib/unicase/u16-casemap.c: Likewise.
61130         * lib/unicase/u32-casemap.c: Likewise.
61131         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
61132         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61133         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
61134         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61135         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
61136         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61138         New module 'unicase/u32-suffix-context'.
61139         * lib/unicase/u32-suffix-context.c: New file.
61140         * modules/unicase/u32-suffix-context: New file.
61142         New module 'unicase/u16-suffix-context'.
61143         * lib/unicase/u16-suffix-context.c: New file.
61144         * modules/unicase/u16-suffix-context: New file.
61146         New module 'unicase/u8-suffix-context'.
61147         * lib/unicase/u8-suffix-context.c: New file.
61148         * lib/unicase/u-suffix-context.h: New file.
61149         * modules/unicase/u8-suffix-context: New file.
61151         New module 'unicase/empty-suffix-context'.
61152         * lib/unicase/empty-suffix-context.c: New file.
61153         * modules/unicase/empty-suffix-context: New file.
61155         New module 'unicase/u32-prefix-context'.
61156         * lib/unicase/u32-prefix-context.c: New file.
61157         * modules/unicase/u32-prefix-context: New file.
61159         New module 'unicase/u16-prefix-context'.
61160         * lib/unicase/u16-prefix-context.c: New file.
61161         * modules/unicase/u16-prefix-context: New file.
61163         New module 'unicase/u8-prefix-context'.
61164         * lib/unicase/u8-prefix-context.c: New file.
61165         * lib/unicase/u-prefix-context.h: New file.
61166         * lib/unicase/context.h: New file.
61167         * modules/unicase/u8-prefix-context: New file.
61169         New module 'unicase/empty-prefix-context'.
61170         * lib/unicase/empty-prefix-context.c: New file.
61171         * modules/unicase/empty-prefix-context: New file.
61173         New module 'unicase/ignorable'.
61174         * lib/unicase/ignorable.c: New file.
61175         * modules/unicase/ignorable: New file.
61177         New module 'unicase/cased'.
61178         * lib/unicase/caseprop.h: New file.
61179         * lib/unicase/cased.c: New file.
61180         * modules/unicase/cased: New file.
61182         New functions for case mapping of substrings.
61183         * lib/unicase.h (casing_prefix_context_t): New type.
61184         (unicase_empty_prefix_context): New variable.
61185         (u8_casing_prefix_context, u16_casing_prefix_context,
61186         u32_casing_prefix_context, u8_casing_prefixes_context,
61187         u16_casing_prefixes_context, u32_casing_prefixes_context): New
61188         declarations.
61189         (casing_suffix_context_t): New type.
61190         (unicase_empty_suffix_context): New variable.
61191         (u8_casing_suffix_context, u16_casing_suffix_context,
61192         u32_casing_suffix_context, u8_casing_suffixes_context,
61193         u16_casing_suffixes_context, u32_casing_suffixes_context,
61194         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
61195         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
61196         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
61197         declarations.
61199 2009-06-28  Jim Meyering  <meyering@redhat.com>
61201         boostrap: indent only with spaces
61202         * build-aux/bootstrap: Indent only with spaces, never TABs.
61204         bootstrap: split long lines
61205         * build-aux/bootstrap: Keep line length < 80.
61207         bootstrap: sync from coreutils
61208         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
61209         just as autoreconf does.  Verify a list of prerequisite
61210         package-name,version-number pairs if defined in bootstrap.conf.
61211         Refer to README-prereq, if prerequisites are not satisfied.
61213 2009-06-27  Eric Blake  <ebb9@byu.net>
61215         tests: add test for bogus NULL definition
61216         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
61217         * tests/test-stdlib.c: Likewise.
61218         * tests/test-string.c: Likewise.
61219         * tests/test-locale.c: Likewise.
61220         * tests/test-unistd.c: Likewise.
61221         * modules/stdio-tests (Depends-on): Add verify.
61222         * modules/stdlib-tests (Depends-on): Likewise.
61223         * modules/string-tests (Depends-on): Likewise.
61224         * modules/locale-tests (Depends-on): Likewise.
61225         * modules/unistd-tests (Depends-on): Likewise.
61227 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
61229         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
61230         self-explaining comment.
61231         * m4/selinux-selinux-h: Update serial.
61232         (gl_LIBSELINUX): New macro, adding a warning for missing development
61233         packages to code extracted from...
61234         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
61235         Add warning for missing development packages here, too.
61237 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
61239         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
61241 2009-06-25  Eric Blake  <ebb9@byu.net>
61243         version-etc: fix regression
61244         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
61245         gcc.
61246         (version_etc): Use it, to catch bugs with trailing NULL.
61247         * lib/version-etc.c (version_etc_arn): Delete unused argument.
61248         (version_etc_va): Fix logic bug.
61249         * modules/version-etc-tests: Add test.
61250         * tests/test-version-etc.c: New file.
61251         * tests/test-version-etc.sh: Likewise.
61253 2009-06-25  Sam Steingold  <sds@gnu.org>
61255         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
61256         mbtowc declaration.
61258 2009-06-25  Eric Blake  <ebb9@byu.net>
61260         fpurge: migrate into <stdio.h>
61261         * lib/fpurge.h: Delete...
61262         * lib/stdio.in.h (fpurge): ...and declare here, instead.
61263         * lib/fpurge.c (fpurge): Change declaring header.
61264         * modules/fpurge (Files): Drop deleted file.
61265         (Depends-on): Add stdio.
61266         (configure.ac): Set witness.
61267         * modules/stdio (Makefile.am): Support fpurge macros.
61268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61269         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
61270         * lib/fflush.c: Update client.
61271         * tests/test-fpurge.c: Likewise.
61272         * NEWS: Mention the change.
61274 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61276         * lib/argp-version-etc.c (program_authors): Add const
61277         qualifier.
61278         * lib/version-etc.c: Fix typos in the comments.
61279         * modules/argp-version-etc: Depends on version-etc.
61281 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61283         argp-version-etc: new module.
61285         * lib/argp-version-etc.c: New file.
61286         * lib/argp-version-etc.h: New file.
61287         * modules/argp-version-etc: New file.
61288         * modules/argp-version-etc-tests: New file.
61289         * tests/test-argp-version-etc.c: New test.
61290         * tests/test-argp-version-etc-1.sh: New test.
61292 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61294         Provide additional interfaces and documentation for version-etc
61295         module.
61297         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
61298         interfaces.
61299         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
61300         prototypes.
61302 2009-06-24  Bruno Haible  <bruno@clisp.org>
61304         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
61305         HAVE_LIB${NAME} macro.
61306         Reported by Sam Steingold <sds@gnu.org>.
61308 2009-06-23  Simon Josefsson  <simon@josefsson.org>
61310         * modules/hash-tests (test_hash_LDADD): Link to libintl when
61311         needed.
61313 2009-06-21  Bruno Haible  <bruno@clisp.org>
61315         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
61316         work.
61317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
61318         together with LIB${NAME}, LTLIB${NAME}.
61319         Reported by Sam Steingold <sds@gnu.org>.
61321 2009-06-20  Jim Meyering  <meyering@redhat.com>
61323         tests: make sc_require_test_exit_idiom more generic
61324         * top/maint.mk (Exit_witness_file): New overridable variable.
61325         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
61326         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
61328 2009-06-19  Jim Meyering  <meyering@redhat.com>
61330         hash: reverse order of src/dst parameters in an internal interface
61331         * lib/hash.c (transfer_entries): Reverse order of parameters to
61332         put DST before SRC.  Adjust callers.
61334         tests: test-hash: avoid wholesale duplication
61335         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
61336         Instead, use a loop and add a single conditional.
61338         tests: test-hash: allow seed selection via a command line argument
61339         * tests/test-hash.c (get_seed): New function.
61340         (main): Use it.
61342 2009-06-19  Eric Blake  <ebb9@byu.net>
61344         hash: avoid memory leak on allocation failure
61345         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
61346         failure.  Factor repeated algorithm...
61347         (transfer_entries): ...into new helper routine.
61348         (hash_delete): React to hash_rehash return value.
61350         hash: reduce memory pressure in hash_rehash no-op case
61351         * lib/hash.c (next_prime): Avoid overflow.
61352         (hash_initialize): Factor bucket size computation...
61353         (compute_bucket_size): ...into new helper function.
61354         (hash_rehash): Use new function and open coding to reduce memory
61355         pressure, and avoid a memory leak in USE_OBSTACK code.
61356         Reported by Jim Meyering.
61358 2009-06-18  Eric Blake  <ebb9@byu.net>
61360         hash: make rotation more obvious
61361         * modules/hash (Depends-on): Add bitrotate and stdint.
61362         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
61363         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
61364         (SIZE_MAX): Rely on headers for definition.
61365         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
61366         (raw_hasher): Use rotr_sz.
61367         Suggested by Jim Meyering.
61369         hash: fix memory leak in last patch
61370         * lib/hash.c (hash_rehash): Avoid memory leak.
61372         hash: avoid no-op rehashing
61373         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
61375         hash: provide default callback functions
61376         * lib/hash.c (raw_hasher, raw_comparator): New functions.
61377         (hash_initialize): Use them as defaults.
61378         * tests/test-hash.c (main): Test this.
61380         hash: minor optimization
61381         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
61382         when possible.
61383         (hash_initialize): Document this promise.
61384         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
61385         * tests/test-hash.c (hash_compare_strings): Test this.
61387 2009-06-18  Bruno Haible  <bruno@clisp.org>
61389         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
61390         going to be replaced anyway.
61392 2009-06-18  Bruno Haible  <bruno@clisp.org>
61394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
61395         in one place.
61396         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
61397         be replaced anyway.
61399 2009-06-18  Eric Blake  <ebb9@byu.net>
61401         hash: check for resize before insertion
61402         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
61403         threshold before insertion, so that a pathological hash_rehash
61404         that fills every bucket can still trigger another rehash.
61406 2009-06-18  Jim Meyering  <meyering@redhat.com>
61408         hash-tests: add a loop around the small tests
61409         * tests/test-hash.c (main): Repeat small tests with selected
61410         small initial table sizes.
61412 2009-06-17  Eric Blake  <ebb9@byu.net>
61414         hash: minor cleanups
61415         * lib/hash.h (hash_entry): Make opaque, by moving...
61416         * lib/hash.c (hash_entry): ...here.
61417         (hash_insert): Clarify restrictions on what can be inserted.
61418         (hash_get_next): Clarify when it is safe to remove an element
61419         during traversal.
61420         (check_tuning): Skip verification when tuning is known safe.
61421         (hash_initialize): Clarify restrictions on tuning.
61423 2009-06-17  Jim Meyering  <jim@meyering.net>
61424         and Eric Blake  <ebb9@byu.net>
61426         hash-tests: new module
61427         * modules/hash-tests: New file.
61428         * tests/test-hash.c: New file.
61430 2009-06-17  Eric Blake  <ebb9@byu.net>
61432         strstr-simple: document new module
61433         * MODULES.html.sh: Document new module.
61435         strstr, strcasestr: replace on platforms with broken memchr
61436         * modules/strstr: Split into...
61437         * modules/strstr-simple: ...new module that does not care about
61438         performance, but does care about glibc bug.
61439         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
61440         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
61441         if platform memchr is broken, per Debian bug 521737.
61442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
61443         memchr.
61444         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
61445         * doc/posix-functions/strstr.texi (strstr): Document the fix.
61446         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
61447         * modules/mountlist (Depends-on): Add strstr-simple.
61448         * modules/gen-uni-tables (Depends-on): Likewise.
61449         * modules/argz (Depends-on): Add strstr.
61451 2009-06-17  Bruno Haible  <bruno@clisp.org>
61453         * modules/posix_spawn-internal (Depends-on): Add errno.
61455 2009-06-17  Bruno Haible  <bruno@clisp.org>
61457         Define missing ESTALE on Interix 3.5.
61458         * lib/errno.in.h (ESTALE): Assign a value if missing.
61459         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
61460         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
61461         missing.
61462         * doc/posix-headers/errno.texi: Mention the Interix bug.
61463         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
61465 2009-06-15  Eric Blake  <ebb9@byu.net>
61467         memchr, memchr2: add valgrind exception
61468         * lib/memchr.valgrind: New file.
61469         * lib/memchr2.valgrind: New file.
61470         * modules/memchr (Files): Distribute valgrind file.
61471         * modules/memchr2 (Files): Likewise.
61473         docs: memchr is no longer obsolete
61474         * MODULES.html.sh: Move memchr from obsolete to string.h section.
61475         * lib/string.in.h (memchr): Simplify logic.
61477 2009-06-14  Jim Meyering  <meyering@redhat.com>
61479         link-follow: fix the "checking..." message to not mention trailing slash
61480         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
61481         never considered trailing slashes.
61483 2009-06-14  Bruno Haible  <bruno@clisp.org>
61485         * m4/memchr.m4: Mention also the bug on IA-64.
61486         * doc/posix-functions/memchr.texi: Likewise.
61488 2009-06-12  Eric Blake  <ebb9@byu.net>
61490         memchr: detect broken x86_64 and alpha implementations
61491         * modules/memchr-tests (Depends-on): Move mmap detection...
61492         * modules/memchr (Depends-on): ...here.
61493         (configure.ac): Set indicator.
61494         * lib/string.in.h (memchr): Declare replacement.
61495         * modules/string (Makefile.am): Trigger replacement.
61496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61497         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
61498         bugs.
61499         * doc/posix-functions/memchr.texi (memchr): Document the bug.
61500         * modules/getpagesize (License): Relax license.
61502 2009-06-11  Bruno Haible  <bruno@clisp.org>
61504         * lib/idpriv.h: Add more references.
61506 2009-06-08  Bruno Haible  <bruno@clisp.org>
61508         Tests for module 'idpriv-droptemp'.
61509         * modules/idpriv-droptemp-tests: New file.
61510         * tests/test-idpriv-droptemp.sh: New file.
61511         * tests/test-idpriv-droptemp.su.sh: New file.
61512         * tests/test-idpriv-droptemp.c: New file.
61514         New module 'idpriv-droptemp'.
61515         * lib/idpriv-droptemp.c: New file.
61516         * modules/idpriv-droptemp: New file.
61518 2009-06-08  Bruno Haible  <bruno@clisp.org>
61520         Tests for module 'idpriv-drop'.
61521         * modules/idpriv-drop-tests: New file.
61522         * tests/test-idpriv-drop.sh: New file.
61523         * tests/test-idpriv-drop.su.sh: New file.
61524         * tests/test-idpriv-drop.c: New file.
61526         New module 'idpriv-drop'.
61527         * lib/idpriv.h: New file.
61528         * lib-idpriv-drop.c: New file.
61529         * m4/idpriv.m4: New file.
61530         * modules/idpriv-drop: New file.
61532 2009-06-08  Bruno Haible  <bruno@clisp.org>
61534         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
61535         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61536         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61537         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61538         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61539         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61540         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61542 2009-06-08  Eric Blake  <ebb9@byu.net>
61544         test-strstr: use memory fence, when possible
61545         * tests/test-strstr.c (main): Use memory fence, in order to be
61546         more likely to trigger Debian bug 521737.
61547         * modules/strstr-tests (Files): Pull in additional files.
61549         memchr: no longer obsolete, for wider field testing
61550         * modules/memchr (Status, Notice): Delete, this module is no
61551         longer obsolete.
61552         * modules/vasnprintf (Depends-on): Add memchr.
61554 2009-06-07  Jim Meyering  <meyering@redhat.com>
61556         hash: declare some functions with the warn_unused_result attribute
61557         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
61559 2009-06-07  Bruno Haible  <bruno@clisp.org>
61561         * tests/test-alignof.c: Don't test int64_t if it does not exist.
61562         Reported by Eric Blake.
61564 2009-06-06  Eric Blake  <ebb9@byu.net>
61566         test-alignof: fix typo with long double
61567         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
61568         compiler error.
61570 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
61572         Escape non-texinfo { and }s.
61573         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
61574         markup error.
61576 2009-06-04  Jim Meyering  <meyering@redhat.com>
61578         gitlog-to-changelog: don't infloop on an empty commit log
61579         * build-aux/gitlog-to-changelog: Warn about an empty log message.
61580         Reported by Boris Petersen <transacid@centerim.org>.
61582 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
61584         version-etc: extend for packagers
61585         Add three new configure options, intended for packagers:
61586           --with-packager="packager name"
61587           --with-packager-version="packager-specific version"
61588           --with-packager-bug-reports="packager bug reporting"
61589         An example with coreutils:
61590           $ ./configure \
61591             --with-packager=Gentoo \
61592             --with-packager-bug-report=http://bugs.gentoo.org/ \
61593             --with-packager-version="patchset 1.6"
61594           $ ./src/ls --version | head -n2
61595           ls (GNU coreutils) 7.1-dirty
61596           Packaged by Gentoo (patchset 1.6)
61597         Note that the bug reporting info via --help doesn't show up because
61598         coreutils uses its own custom emit_bug_reporting_address() implementation
61599         in src/system.h.  If it didn't, it'd look like:
61600           $ ./src/ls --help | tail -n4
61601           Report bugs to <bug-coreutils@gnu.org>.
61602           Report Gentoo bugs to <http://bugs.gentoo.org/>.
61603           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
61604           General help using GNU software: <http://www.gnu.org/gethelp/>.
61605         * lib/version-etc.c: Print new information, if provided.
61606         * m4/version-etc.m4: New file.
61607         * modules/version-etc (Files): Add m4/version-etc.m4.
61608         (configure.ac): Add gl_VERSION_ETC.
61610 2009-05-31  Bruno Haible  <bruno@clisp.org>
61612         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
61613         and 'int64_t'.
61614         * modules/alignof-tests (Dependencies): Add stdint.
61615         Reported by Eric Blake.
61617 2009-05-31  Bruno Haible  <bruno@clisp.org>
61619         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
61620         restriction due to compiler bugs.
61621         Reported by Eric Blake.
61623 2009-05-31  Simon Josefsson  <simon@josefsson.org>
61624             Bruno Haible  <bruno@clisp.org>
61626         Fix test-alignof failure.
61627         * lib/alignof.h (alignof_slot): New macro.
61628         (alignof_type): New macro, with the same semantics as the previous
61629         'alignof'.
61630         (alignof): Alias to alignof_slot.
61631         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
61632         check that the results are usable as constant expressions.
61634 2009-05-31  Bruno Haible  <bruno@clisp.org>
61636         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
61637         * tests/test-memchr.c (main): Check that memchr does not read past the
61638         first occurrence of the byte.
61639         * tests/test-strstr.c (main): Update comment.
61640         Suggested by Eric Blake.
61642 2009-05-30  Bruno Haible  <bruno@clisp.org>
61644         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
61645         detail how to use dumpbin.
61646         Reported by David Byron <dbyron@dbyron.com>.
61648 2009-06-02  Simon Josefsson  <simon@josefsson.org>
61650         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
61652 2009-06-02  Simon Josefsson  <simon@josefsson.org>
61654         * m4/manywarnings.m4: Add GCC 4.4 warnings.
61656 2009-05-28  Bruno Haible  <bruno@clisp.org>
61658         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
61659         build-aux/ files.
61661 2009-05-28  Simon Josefsson  <simon@josefsson.org>
61663         * gnulib-tool (func_import): Transform license on build-aux/ files too.
61665 2009-05-27  Simon Josefsson  <simon@josefsson.org>
61667         * gnulib-tool (sed_transform_main_lib_file)
61668         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
61669         regexps.
61671 2009-05-26  Simon Josefsson  <simon@josefsson.org>
61673         * tests/test-strstr.c: Add another self-test.
61674         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
61675         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
61677 2009-05-23  Bruno Haible  <bruno@clisp.org>
61679         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
61680         change.
61682 2009-05-21  Bruno Haible  <bruno@clisp.org>
61684         Simplify use of mode_t varargs.
61685         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
61686         uses 'mode_t' or 'int'.
61687         * lib/openat.c (openat): Likewise.
61688         * lib/open-safer.c (open_safer): Likewise.
61689         * m4/mode_t.m4: New file.
61690         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
61691         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
61692         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
61693         * modules/open (Files): Add m4/mode_t.m4.
61694         * modules/openat (Files): Likewise.
61695         * modules/fcntl-safer (Files): Likewise.
61696         Suggested by Eric Blake.
61698 2009-05-21  Pádraig Brady  <P@draigbrady.com>
61700         * doc/glibc-functions/fallocate.texi: New file.
61701         * doc/gnulib.texi: Include it.
61703 2009-05-21  Eric Blake  <ebb9@byu.net>
61704             Bruno Haible  <bruno@clisp.org>
61706         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
61707         invocations.
61708         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61710 2009-05-21  Eric Blake  <ebb9@byu.net>
61711             Bruno Haible  <bruno@clisp.org>
61713         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
61714         include_next. Fix of 2008-11-20 commit.
61715         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
61716         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
61717         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
61718         NEXT_MATH_H.
61719         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
61720         instead of NEXT_MATH_H.
61722 2009-05-21  Bruno Haible  <bruno@clisp.org>
61724         Avoid redefinition warnings for SIZE_MAX.
61725         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
61726         Reported by Simon Josefsson.
61728 2009-05-21  Bruno Haible  <bruno@clisp.org>
61730         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
61731         AC_CACHE_VAL.
61733 2009-05-20  Bruno Haible  <bruno@clisp.org>
61735         Make zeroptr.h work on mingw.
61736         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
61737         mprotect.
61738         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
61739         * modules/memchr2-tests (configure.ac): Likewise.
61740         * modules/memcmp-tests (configure.ac): Likewise.
61741         * modules/memmem-tests (configure.ac): Likewise.
61742         * modules/memrchr-tests (configure.ac): Likewise.
61743         Reported by Simon Josefsson.
61745 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61747         * tests/test-glob.c: Include string.h for strcmp prototype.
61749 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61751         * modules/getdelim (Depends-on): Add explicit stdint, although it
61752         was implicitly already pulled in via realloc-posix.
61753         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
61755 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61757         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
61758         G. Christensen" <tgc@jupiterrise.com>.
61759         * m4/sys_socket_h.m4: Check for sa_family_t.
61760         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
61761         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
61762         * tests/test-sys_socket.c: Check that sa_family_t works.
61764 2009-05-18  Eric Blake  <ebb9@byu.net>
61766         maint.mk: allow gnulib_dir in VPATH build
61767         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
61769 2009-05-15  Jim Meyering  <meyering@redhat.com>
61771         maint.mk: Give gnulib_dir a default definition.
61772         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
61773         Thus, most packages no longer need to specify this variable in cfg.mk
61775 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
61777         rename.m4: fix typos that would make non-mingw cross-configure fail
61778         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
61780 2009-05-13  Eric Blake  <ebb9@byu.net>
61782         mmap-anon: avoid out-of-order autoconf expansion
61783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
61784         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
61785         * modules/memchr-tests (Depends-on): Add extensions.
61786         * modules/memchr2-tests (Depends-on): Add extensions.
61787         * modules/memcmp-tests (Depends-on): Add extensions.
61788         * modules/memmem-tests (Depends-on): Add extensions.
61789         * modules/memrchr-tests (Depends-on): Add extensions.
61791 2009-05-13  Bruno Haible  <bruno@clisp.org>
61793         Make some tests ISO C 99 compliant.
61794         * tests/zerosize-ptr.h: New file.
61795         * tests/test-memchr.c: Include zerosize-ptr.h.
61796         (main): Use a zero-size object pointer instead of NULL.
61797         * tests/test-memchr2.c: Include zerosize-ptr.h.
61798         (main): Use a zero-size object pointer instead of NULL.
61799         * tests/test-memcmp.c: Include zerosize-ptr.h.
61800         (main): Use a zero-size object pointer instead of NULL.
61801         * tests/test-memmem.c: Include zerosize-ptr.h.
61802         (main): Use a zero-size object pointer instead of NULL.
61803         * tests/test-memrchr.c: Include zerosize-ptr.h.
61804         (main): Use a zero-size object pointer instead of NULL.
61805         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
61806         m4/mmap-anon.m4.
61807         (Depends-on): Add getpagesize.
61808         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61809         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
61810         m4/mmap-anon.m4.
61811         (Depends-on): Add getpagesize.
61812         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61813         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
61814         m4/mmap-anon.m4.
61815         (Depends-on): Add getpagesize.
61816         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61817         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
61818         m4/mmap-anon.m4.
61819         (Depends-on): Add getpagesize.
61820         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61821         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
61822         m4/mmap-anon.m4.
61823         (Depends-on): Add getpagesize.
61824         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61826 2009-05-12  Bruno Haible  <bruno@clisp.org>
61828         Tests for module 'alignof'.
61829         * modules/alignof-tests: New file.
61830         * tests/test-alignof.c: New file.
61832 2009-05-12  Bruno Haible  <bruno@clisp.org>
61834         Fix alignof macro.
61835         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
61836         vendor compilers that are always correct.
61838 2009-05-12  Bruno Haible  <bruno@clisp.org>
61840         Make the MAP_ANONYMOUS detection work on HP-UX 11.
61841         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
61842         not whether its fully works.
61844 2009-05-12  Bruno Haible  <bruno@clisp.org>
61846         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
61848 2009-05-12  Jim Meyering  <meyering@redhat.com>
61850         * top/maint.mk: Adjust backslash alignment.
61852 2009-05-11  Simon Josefsson  <simon@josefsson.org>
61854         * top/maint.mk: Make $(srcdir)/build-aux configurable.
61856 2009-05-11  Eric Blake  <ebb9@byu.net>
61858         argp: avoid undefined behavior
61859         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
61860         macros.
61862 2009-05-08  Simon Josefsson  <simon@josefsson.org>
61864         * tests/test-vc-list-files-git.sh: Do git config of user.email and
61865         user.name to prevent git commit from complaining.
61867 2009-05-10  Bruno Haible  <bruno@clisp.org>
61869         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
61870         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
61871         it rewrites every file name only once.
61872         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
61874 2009-05-08  Bruno Haible  <bruno@clisp.org>
61876         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
61877         instead of 'max'.
61879 2009-05-08  Simon Josefsson  <simon@josefsson.org>
61881         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
61882         sockaddr_storage test.
61884 2009-05-07  Simon Josefsson  <simon@josefsson.org>
61886         * modules/sys_socket (Makefile.am): Substitute
61887         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
61888         * m4/sys_socket_h.m4: Check for sockaddr_storage.
61889         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
61890         * tests/test-sys_socket.c: Check sockaddr_storage.
61892 2009-05-08  Bruno Haible  <bruno@clisp.org>
61894         New module 'alignof'.
61895         * lib/alignof.h: New file.
61896         * modules/alignof: New file.
61898 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61899             Bruno Haible  <bruno@clisp.org>
61901         Fix test-file-has-acl on FreeBSD.
61902         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
61903         mask is implicitly added.
61904         * tests/test-file-has-acl.c: Include <signal.h>.
61905         (main): Terminate the test after 5 seconds.
61906         * modules/acl-tests (configure.ac): Check for alarm function.
61908 2009-05-04  Bruno Haible  <bruno@clisp.org>
61910         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
61911         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
61912         * modules/errno (configure.ac): Drop AC_REQUIRE.
61913         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
61914         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
61916 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61918         * modules/glob-tests: New module.
61919         * tests/test-glob.c: Add.
61921 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61923         * modules/fnmatch-tests: New module.
61924         * tests/test-fnmatch.c: Add.
61926 2009-05-04  Eric Blake  <ebb9@byu.net>
61928         maint: make the new no-submodule-changes rule VPATH-safe
61929         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
61931 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61932             Bruno Haible  <bruno@clisp.org>
61934         acl: Fix infinite loop on FreeBSD.
61935         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
61936         of return value from acl_get_entry.
61937         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
61938         Likewise.
61940 2009-05-03  Bruno Haible  <bruno@clisp.org>
61942         * lib/acl-internal.h (acl_entries): Clarify return value.
61943         * lib/acl_entries.c (acl_entries): Likewise.
61945 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61947         Bug fix in acl module.
61948         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
61950 2009-05-03  Bruno Haible  <bruno@clisp.org>
61952         Create gperf-generated file in the source dir, not in the build dir.
61953         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
61954         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
61955         * modules/unicase/locale-language (unicase/locale-languages.h):
61956         Likewise.
61957         * modules/unicase/special-casing (unicase/special-casing-table.h):
61958         Likewise.
61959         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
61960         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
61961         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
61962         Reported by Ralf Wildenhues.
61964 2009-05-03  Bruno Haible  <bruno@clisp.org>
61966         * modules/fnmatch (Description, configure.ac): Taken from
61967         fnmatch-posix.
61968         * modules/fnmatch-posix: Turn into a symbolic reference to the
61969         'fnmatch' module, and deprecate.
61970         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
61972 2009-05-03  Bruno Haible  <bruno@clisp.org>
61974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
61975         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
61976         Reported by Ralf Wildenhues.
61978 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61980         * m4/fnmatch.m4: Fix fnmatch re-define.
61982 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61984         priv-set: new module and tests; adapt write-any-file
61985         * lib/priv-set.c: New file.
61986         * lib/priv-set.h: New file.
61987         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
61988         * lib/write-any-file.c: Simplify by using priv-set module.
61989         * m4/priv-set.m4: New file.
61990         * modules/priv-set: New file.
61991         * modules/unlinkdir: Add dependency on priv-set module.
61992         * modules/write-any-file: Likewise.
61994         Tests for module 'priv-set'.
61995         * modules/priv-set-tests: New file.
61996         * tests/test-priv-set.c: New file.
61998 2009-05-03  Jim Meyering  <meyering@redhat.com>
61999             Bruno Haible  <bruno@clisp.org>
62001         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
62002         use the converted UTF-8 variant of the name instead.
62004 2009-05-03  Jim Meyering  <meyering@redhat.com>
62006         tests: tighten some getdate tests
62007         * tests/test-getdate.c (main): Tighten tests: require equality,
62008         not just greater than.  Set TZ envvar to UTC0.
62010 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
62012         getdate: correctly interpret "next monday" when run on a Monday
62013         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
62014         that e.g., "next tues" (when run on a tuesday) results in a date
62015         that is one week in the future, and not today's date.
62016         I.e., add a week when the wday is the same as the current one.
62017         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
62018         and earlier by Martin Bernreuther and Jan Minář.
62019         * tests/test-getdate.c (main): Check that "next DAY" is always in
62020         the future and that "last DAY" is always in the past.
62022 2009-05-02  Jim Meyering  <meyering@redhat.com>
62024         build: ensure that a release build fails when a submodule is unclean
62025         * top/maint.mk (no-submodule-changes): New rule.
62026         (alpha beta major): Depend on it.
62028 2009-05-02  Bruno Haible  <bruno@clisp.org>
62030         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
62031         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
62032         shell variable gl_fnmatch_required to detect which variant is
62033         requested.
62034         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
62035         gl_FUNC_FNMATCH_POSIX.
62036         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
62037         exclude fnmatch-posix.
62039 2009-05-02  Bruno Haible  <bruno@clisp.org>
62041         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
62042         * modules/mbsrtowcs (License): Change to LGPLv2+.
62043         * modules/strnlen1 (License): Likewise.
62044         Reported by Simon Josefsson.
62046 2009-05-02  Bruno Haible  <bruno@clisp.org>
62048         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
62049         "cross".
62050         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
62051         gnulib-tool was called with option --source-base=lib.
62053 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62055         Use automake *-local hooks without commands, for extensibility.
62056         * modules/localcharset (Makefile.am): Rename install-exec-local
62057         rule to install-exec-localcharset, and make it a prerequisite of
62058         install-exec-local.  Likewise, rename the uninstall-local rule to
62059         uninstall-localcharset, and make it a prerequisite of the former.
62061 2009-05-01  Bruno Haible  <bruno@clisp.org>
62063         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
62064         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
62065         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
62066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
62067         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
62068         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
62069         m4/locale-zh.m4, m4/codeset.m4.
62071         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
62072         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
62073         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
62074         m4/locale-zh.m4.
62076         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
62077         REPLACE_WCRTOMB if mbstate_t must be replaced.
62078         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
62079         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
62081 2009-05-01  Bruno Haible  <bruno@clisp.org>
62083         Avoid compiler warnings when redefining macros defined by <libintl.h>.
62084         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
62085         dngettext, dcngettext, textdomain, bindtextdomain,
62086         bind_textdomain_codeset): Undefine before redefining.
62088 2009-04-30  Bruno Haible  <bruno@clisp.org>
62090         Fix bug introduced on 2009-04-25.
62091         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
62092         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
62093         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
62094         is defined.
62095         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
62096         is defined.
62097         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
62098         is defined.
62099         Reported by Elbert_Pol <elbert.pol@gmail.com>.
62101 2009-04-28  Bruno Haible  <bruno@clisp.org>
62103         Comment tweaks.
62104         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
62105         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
62106         * lib/unicase.h (u*_casexfrm): Likewise.
62107         Reported by Paolo Bonzini.
62109 2009-04-28  Bruno Haible  <bruno@clisp.org>
62111         Fix a compilation error.
62112         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
62113         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
62114         Reported by Jim Meyering.
62116 2009-04-27  Bruno Haible  <bruno@clisp.org>
62118         New module 'libunistring'.
62119         * modules/libunistring: New file.
62120         * m4/libunistring.m4: New file.
62121         * MODULES.html.sh (Unicode string functions): Add it.
62123 2009-04-27  Eric Blake  <ebb9@byu.net>
62125         maint.mk: allow package-specific header to provide <config.h>
62126         * top/maint.mk (sc_require_config_h): New variable.
62127         (sc_require_config_h, sc_require_config_h_first): Use it.
62129 2009-04-27  Simon Josefsson  <simon@josefsson.org>
62131         * top/maint.mk (sc_avoid_if_before_free): Except
62132         useless-if-before-free script.
62134 2009-04-27  Eric Blake  <ebb9@byu.net>
62136         maintainer-makefile: depend on all required helper scripts
62137         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
62138         useless-if-before-free.
62139         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
62140         version, rather than assuming gnulib checkout is available.
62141         Reported by Simen Josefsson.
62143 2009-04-26  Bruno Haible  <bruno@clisp.org>
62145         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
62146         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
62147         "../" or "..".
62149 2009-04-26  Bruno Haible  <bruno@clisp.org>
62151         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
62152         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
62153         AC_LIB_HAVE_LINKFLAGS.
62155 2009-04-26  Bruno Haible  <bruno@clisp.org>
62157         Simplify calling convention of u*_conv_from_encoding.
62158         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
62159         u32_conv_from_encoding): Expect a resultbuf argument and return the
62160         result directly as a pointer.
62161         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
62162         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
62163         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
62164         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
62165         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
62166         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
62167         Update.
62168         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
62169         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
62170         * lib/vasnprintf.c (VASNPRINTF): Update.
62171         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
62172         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
62173         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
62174         * NEWS: Mention the change.
62176 2009-04-26  Bruno Haible  <bruno@clisp.org>
62178         Simplify calling convention of u*_conv_to_encoding.
62179         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62180         u32_conv_to_encoding): Expect a resultbuf argument and return the
62181         result directly as a pointer.
62182         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
62183         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
62184         freeing scaled_offsets if mem_iconveha failed.
62185         * lib/unicase/u-casexfrm.h (FUNC): Update.
62186         * lib/uninorm/u-normxfrm.h (FUNC): Update.
62187         * lib/vasnprintf.c (VASNPRINTF): Update.
62188         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
62189         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
62190         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
62191         * NEWS: Mention the change.
62193 2009-04-26  Bruno Haible  <bruno@clisp.org>
62195         Avoid test failures on AIX and OSF/1.
62196         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
62197         malloc(0).
62198         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
62199         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
62200         Likewise.
62201         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
62202         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
62203         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
62204         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
62205         * doc/posix-functions/malloc.texi: Document the portability problem
62206         related to malloc(0).
62208 2009-04-26  Bruno Haible  <bruno@clisp.org>
62210         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
62211         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
62212         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
62214 2009-04-25  Bruno Haible  <bruno@clisp.org>
62216         Avoid link error when creating a namespace clean library.
62217         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
62218         as macro with arguments if already defined as an alias.
62219         * lib/signbitf.c (gl_signbitf): Don't undefine.
62220         * lib/signbitd.c (gl_signbitd): Don't undefine.
62221         * lib/signbitl.c (gl_signbitl): Don't undefine.
62223 2009-04-25  Jim Meyering  <meyering@redhat.com>
62225         vc-list-files: fix another quoting bug
62226         * build-aux/vc-list-files: Avoid sed backslash expansion
62227         of pathological directory names.
62229 2009-04-25  Eric Blake  <ebb9@byu.net>
62231         vc-list-files: fix shell quoting error
62232         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
62233         timestamp.
62235 2009-04-25  Jim Meyering  <meyering@redhat.com>
62237         vc-list-files: restore lost functionality with subdir argument
62238         * build-aux/vc-list-files: When given a non-"." sub-directory
62239         argument, substitute the $dir/ prefix back onto each resulting name.
62240         Otherwise, coreutils' root_tests check would fail.
62242 2009-04-24  Eric Blake  <ebb9@byu.net>
62244         vc-list-files: ignore git symlinks
62245         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
62246         than ls-files, to ignore git symlinks.
62248         maint.mk: import improvements from m4
62249         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
62250         (move_if_change): Delete unused macro.
62251         (news-date-check, vc-diff-check): Support VPATH builds.
62252         (announcement): Likewise.  Split --bootstrap-tools list...
62253         (boostrap-tools): ...into separate list, which can be overridden
62254         in cfg.mk.
62255         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
62256         requiring dependency on useless-if-before-free module.
62257         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
62258         Support VPATH builds.
62260 2009-04-24  Jim Meyering  <meyering@redhat.com>
62262         maint.mk: remove coreutils-specific rules and variables
62263         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
62264         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
62265         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
62267         maint.mk: remove obsolete rule
62268         * top/maint.mk (rel-check): Remove rule.
62269         (WGET, WGETFLAGS): Remove now-unused variables.
62271 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62273         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
62274         consistency.
62276         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
62277         '$(PATH_SEPARATOR)' instead of ':'.
62279 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62281         * lib/getopt1.c (main): Use 'const' for static array.
62283 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62285         * top/maint.mk: Sync with coreutils.
62286         * NEWS: Explain incompatibilities.
62288 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62289             Bruno Haible  <bruno@clisp.org>
62291         Fix cross-compilation results.
62292         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
62293         statement, as third argument of AC_TRY_RUN.
62294         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62295         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62296         Likewise.
62297         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62298         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62299         Likewise.
62300         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62301         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
62302         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
62304 2009-04-20  Bruno Haible  <bruno@clisp.org>
62306         Avoid test failure on mingw.
62307         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
62309 2009-04-20  Bruno Haible  <bruno@clisp.org>
62311         Avoid compilation error on mingw.
62312         * modules/localename-tests (Depends-on): Add locale.
62314 2009-04-19  Bruno Haible  <bruno@clisp.org>
62316         Support for building a shared library on Windows platforms.
62317         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
62318         (main): Test the presence of UNINORM_NFC here.
62319         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
62320         (main): Test the presence of UNINORM_NFD here.
62321         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
62322         (main): Test the presence of UNINORM_NFKC here.
62323         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
62324         (main): Test the presence of UNINORM_NFKD here.
62326 2009-04-19  Bruno Haible  <bruno@clisp.org>
62328         Avoid a compiler warning.
62329         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
62330         Change type of variable 'sequence'.
62332 2009-04-19  Bruno Haible  <bruno@clisp.org>
62334         * modules/configmake (Makefile.am): When the contents of configmake.h
62335         does not change, arrange to preserve its modification time.
62337 2009-04-17  Simon Josefsson  <simon@josefsson.org>
62339         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
62340         gettext domain.
62342 2009-04-16  Jim Meyering  <meyering@redhat.com>
62344         useless-if-before-free: improve conversion code
62345         * build-aux/useless-if-before-free: Adjust code-in-comment to match
62346         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
62348 2009-04-14  Bruno Haible  <bruno@clisp.org>
62350         * modules/fcntl (Depends-on): Add extensions.
62351         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
62353 2009-04-12  Ben Pfaff  <blp@gnu.org>
62355         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
62356         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
62358 2009-03-20  Ben Pfaff  <blp@gnu.org>
62360         Make rename replace existing destinations on Windows.
62361         * m4/rename.m4: Add test for Mingw.
62362         * lib/rename.c: Add rename replacement that uses MoveFileEx with
62363         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
62364         * doc/posix-functions/rename.texi: Document.
62366 2009-04-10  Bruno Haible  <bruno@clisp.org>
62368         New include file "iconveh.h".
62369         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
62370         * lib/striconveh.h: Include it.
62371         (enum iconv_ilseq_handler): Remove definition.
62372         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
62373         striconveh.h.
62374         * lib/striconveha.c: Include striconveh.h.
62375         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
62376         * modules/striconveh (Files): Add lib/iconveh.h.
62377         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
62378         lib/striconveh.h.
62380 2009-04-10  Bruno Haible  <bruno@clisp.org>
62382         * lib/uniconv.h: Update comment.
62384 2009-04-10  Bruno Haible  <bruno@clisp.org>
62386         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
62387         always.
62388         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62389         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62390         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62391         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
62392         "unistring-notinline.h", so that the function gets defined always.
62393         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62394         * lib/unistr/u8-uctomb.c: Likewise.
62395         * lib/unistr/u16-mbtouc.c: Likewise.
62396         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62397         * lib/unistr/u16-uctomb.c: Likewise.
62398         * lib/unistr/u32-mbtouc.c: Likewise.
62399         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62400         * lib/unistr/u32-uctomb.c: Likewise.
62402 2009-04-10  Bruno Haible  <bruno@clisp.org>
62404         Mark 'utime' obsolete.
62405         * modules/utime (Status, Notice): New sections.
62406         Suggested by Jim Meyering.
62408         Fix cross-compile guess for utime test.
62409         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
62410         autoconf.
62411         * doc/posix-functions/utime.texi: Give more precisions.
62412         Reported by Jan <ipif@ymail.com>.
62414 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
62416         filevercmp: correct today's change
62417         * lib/filevercmp.c: Also handle coreutils' test inputs.
62418         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
62420         Fix regression in 'filevercmp' module. Thanks Sven Joachim
62421         for reporting it.
62422         * lib/filevercmp.c: Special handle for "", "." and "..".
62423         * tests/test-filevercmp.c: Enlarge the set suite.
62425 2009-04-07  Jim Meyering  <meyering@redhat.com>
62427         useless-if-before-free: show how to remove braced useless free, too
62428         * build-aux/useless-if-before-free: still only in a comment, though.
62430 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
62432         maint.mk: import changes to syntax-check macros from coreutils
62433         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
62434         Use them in the relevant macros.
62436 2009-04-06  Bruno Haible  <bruno@clisp.org>
62438         Fix unportable use of bit-fields.
62439         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
62440         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
62441         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
62443 2009-04-06  Bruno Haible  <bruno@clisp.org>
62445         Avoid test failures on AIX and OSF/1.
62446         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
62447         that malloc(0) = NULL.
62448         * tests/unicase/test-u8-tolower.c (check): Likewise.
62449         * tests/unicase/test-u8-totitle.c (check): Likewise.
62450         * tests/unicase/test-u8-toupper.c (check): Likewise.
62451         * tests/unicase/test-u16-casefold.c (check): Likewise.
62452         * tests/unicase/test-u16-tolower.c (check): Likewise.
62453         * tests/unicase/test-u16-totitle.c (check): Likewise.
62454         * tests/unicase/test-u16-toupper.c (check): Likewise.
62455         * tests/unicase/test-u32-casefold.c (check): Likewise.
62456         * tests/unicase/test-u32-tolower.c (check): Likewise.
62457         * tests/unicase/test-u32-totitle.c (check): Likewise.
62458         * tests/unicase/test-u32-toupper.c (check): Likewise.
62459         * tests/uninorm/test-u8-nfc.c (check): Likewise.
62460         * tests/uninorm/test-u8-nfd.c (check): Likewise.
62461         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
62462         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
62463         * tests/uninorm/test-u16-nfc.c (check): Likewise.
62464         * tests/uninorm/test-u16-nfd.c (check): Likewise.
62465         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
62466         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
62467         * tests/uninorm/test-u32-nfc.c (check): Likewise.
62468         * tests/uninorm/test-u32-nfd.c (check): Likewise.
62469         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
62470         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
62472 2009-04-05  Bruno Haible  <bruno@clisp.org>
62474         Work around an autoconf limitation.
62475         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
62476         comment line if it would be longer than 3 KB.
62478 2009-04-05  Bruno Haible  <bruno@clisp.org>
62480         Avoid test failure with libiconv-1.13.
62481         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
62482         of the expected test results.
62484 2009-04-05  Bruno Haible  <bruno@clisp.org>
62486         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
62487         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
62488         that it should be installed.
62490 2009-04-05  Bruno Haible  <bruno@clisp.org>
62492         * gnulib-tool: New option --copy-file.
62493         (func_usage): Document it.
62494         (func_dest_tmpfilename): Moved out of func_import.
62495         (func_add_file, func_update_file): New functions, extracted from
62496         func_import.
62497         (func_import): Update.
62499 2009-04-05  Karl Berry  <karl@gnu.org>
62501         * README: prominently mention gnulib-tool.
62502         Rearrange sections so getting the code is near the top.
62504 2009-04-05  Bruno Haible  <bruno@clisp.org>
62506         * lib/unicase.h: Mention u*_cmp2.
62507         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
62508         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
62509         * lib/unicase/ulc-casecmp.c: Likewise.
62510         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
62511         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
62512         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
62513         unistr/u8-cmp.
62514         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
62515         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
62516         unistr/u16-cmp.
62517         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
62518         unistr/u32-cmp.
62520         * lib/uninorm.h: Mention u*_cmp2.
62521         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
62522         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
62523         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
62524         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
62525         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
62526         unistr/u8-cmp.
62527         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
62528         unistr/u16-cmp.
62529         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
62530         unistr/u32-cmp.
62532         New module 'unistr/u32-cmp2'.
62533         * lib/unistr/u32-cmp2.c: New file.
62534         * modules/unistr/u32-cmp2: New file.
62536         New module 'unistr/u16-cmp2'.
62537         * lib/unistr/u16-cmp2.c: New file.
62538         * modules/unistr/u16-cmp2: New file.
62540         New module 'unistr/u8-cmp2'.
62541         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
62542         * lib/unistr/u8-cmp2.c: New file.
62543         * lib/unistr/u-cmp2.h: New file.
62544         * modules/unistr/u8-cmp2: New file.
62546 2009-04-05  Bruno Haible  <bruno@clisp.org>
62548         * lib/unictype.h (uc_property_is_valid): New macro.
62549         * tests/unictype/test-pr_byname.c (main): Use it.
62551         * lib/unistr.h: Doc fixes.
62552         * lib/uniconv.h: Doc fixes.
62553         * lib/unictype.h: Doc fixes.
62555 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
62557         Port coreutils 7.2 to Solaris 8.
62559         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
62560         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
62561         for Solaris 8.  This is a bit of a hack, as it means it's the
62562         caller's responsibility to add -lnsl if needed, but most likely it
62563         won't be needed since only getaddrinfo uses this and getaddrinfo
62564         isn't needed on Solaris 8.
62566         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
62567         problem to Solaris 8 encountered with coreutils 7.2, which
62568         resulted in a message "fnmatch.c:292: warning: passing argument 4
62569         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
62570         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
62572 2009-04-03  Simon Josefsson  <simon@josefsson.org>
62574         * m4/ld-version-script.m4: Add FIXME comment.
62576 2009-04-02  Simon Josefsson  <simon@josefsson.org>
62578         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
62579         SOVERSION variable.
62581 2009-04-02  Bruno Haible  <bruno@clisp.org>
62583         * Makefile (info, html, dvi, pdf): Combine the rules.
62584         Suggested by Jim Meyering.
62586 2009-04-01  Bruno Haible  <bruno@clisp.org>
62588         * Makefile (info, html, dvi, pdf): New targets.
62589         Reported by Reuben Thomas <rrt@sc3d.org>.
62591 2009-04-01  Bruno Haible  <bruno@clisp.org>
62593         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
62594         can be put into PATH.
62595         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
62597 2009-04-01  Bruno Haible  <bruno@clisp.org>
62599         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
62601 2009-04-01  Bruno Haible  <bruno@clisp.org>
62603         Rename module 'visibility'.
62604         * modules/lib-symbol-visibility: Renamed from modules/visibility.
62605         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
62606         * doc/gnulib.texi: Update.
62607         * MODULES.html.sh (Misc): Update.
62608         * NEWS: Mention the change.
62610 2009-04-01  Simon Josefsson  <simon@josefsson.org>
62612         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
62613         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
62614         Eric Blake <ebb9@byu.net> for review.
62615         * MODULES.html.sh: Add lib-msvc-compat.
62616         * doc/gnulib.texi: Link to new section.
62617         * m4/ld-output-def.m4: New file.
62618         * doc/ld-output-def.texi: New file.
62620 2009-04-01  Simon Josefsson  <simon@josefsson.org>
62622         Rename ld-version-script to lib-symbol-versions.  Suggested by
62623         Bruno Haible <bruno@clisp.org>.
62624         * modules/ld-version-script: Renamed to lib-symbol-versions.
62625         * doc/ld-version-script.texi: Fix module name.
62626         * MODULES.html.sh: Add lib-symbol-versions.
62628 2009-03-31  Simon Josefsson  <simon@josefsson.org>
62630         * modules/u64-tests: New file.
62631         * tests/test-u64.c: New file.
62633 2009-03-04  Simon Josefsson  <simon@josefsson.org>
62635         * MODULES.html.sh: Mention u64.
62636         * modules/u64: New module.
62637         * modules/crypto/sha512: Depend on u64 module instead of providing
62638         u64.h.
62640 2009-03-27  Eric Blake  <ebb9@byu.net>
62642         test-strerror: make debugging EAI_SYSTEM easier
62643         * modules/getaddrinfo-tests (Depends-on): Add strerror.
62644         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
62645         failure was EAI_SYSTEM.
62647 2009-03-25  Bruno Haible  <bruno@clisp.org>
62649         Fix a problem with --enable-relocatable on Solaris 7.
62650         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
62651         since 2008-02-24.
62653 2009-03-25  Eric Blake  <ebb9@byu.net>
62655         test-sockets: avoid gcc warning
62656         * tests/test-sockets.c (main): Silence compiler warning.
62658 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62660         New modules nproc, pthread, contributed by Glen Lenker.
62662         * MODULES.html.sh: Add pthread, nproc.
62663         * lib/nproc.c: New file.
62664         * lib/nproc.h: New file.
62665         * lib/pthread.in.h: New file.
62666         * m4/pthread.m4: New file.
62667         * modules/nproc: New file.
62668         * modules/pthread: New file.
62670 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62672         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
62673         New variable.
62675 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
62677         filevercmp: handle simple~ and numbered.~3~ backup suffixes
62678         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
62679         * tests/test-filevercmp.c: Add tests for backup suffixes.
62681 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62683         * modules/stdlib (Depends-on): Add stdint, needed when defining
62684         struct random_data on, for example, HP-UX 10.20.  Reported by
62685         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62687 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62689         * lib/readline.c (readline): Call fflush on stdout after printing
62690         prompt.
62692 2009-03-20  Bruno Haible  <bruno@clisp.org>
62694         Remove dependency from 'close' module to -lws2_32 on native Windows.
62695         * lib/close-hook.h: New file.
62696         * lib/close-hook.c: New file.
62697         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
62698         w32sock.h.
62699         (_gl_close_fd_maybe_socket): Remove function.
62700         (rpl_close): Invoke execute_all_close_hooks instead of
62701         _gl_close_fd_maybe_socket.
62702         * lib/sockets.c: Include close-hook.h, w32sock.h.
62703         (close_fd_maybe_socket): New function, essentially from lib/close.c.
62704         (close_sockets_hook): New variable.
62705         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
62706         (gl_sockets_cleanup): Unregister it.
62707         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
62708         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
62709         * modules/close-hook: New file.
62710         * modules/close (Files): Remove lib/w32sock.h.
62711         (Depends-on): Add close-hook.
62712         (Link): Remove section.
62713         * modules/sockets (Files): Add lib/w32sock.h.
62714         (Depends-on): Add close-hook.
62715         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
62716         invocation.
62717         * NEWS: Mention that LIB_CLOSE is gone.
62719 2009-03-23  Eric Blake  <ebb9@byu.net>
62721         signal-tests: test previous patch
62722         * tests/test-signal.c: New file.
62723         * modules/signal-tests: Likewise.
62725         signal.h: always support 'volatile sig_atomic_t'
62726         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
62727         (gl_SIGNAL_H_DEFAULTS): Add a default.
62728         * modules/signal (Makefile.am): Substitute if needed.
62729         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
62730         users can blindly add volatile.
62731         * doc/posix-headers/signal.texi (signal.h): Document it.
62732         Reported by Matthew Woehlke.
62734 2009-03-23  Jim Meyering  <meyering@redhat.com>
62736         pathmax: PATH_MAX: use pathconf only when available
62737         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
62738         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
62739         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
62740         This avoids a link failure in a PSP cross-compilation environment
62741         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
62743         * lib/vasnprintf.c (divide): Fix typo in comment.
62745 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62747         * gnulib-tool (func_filter_filelist): Fix comment.
62749 2009-03-20  Bruno Haible  <bruno@clisp.org>
62751         Make sockets.h self-contained.
62752         * lib/sockets.c: Include sockets.h first.
62753         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
62755 2009-03-19  Eric Blake  <ebb9@byu.net>
62757         doc: mention more functions added in cygwin 1.7.0
62758         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
62759         addition.
62760         * doc/posix-functions/log2f.texi: Likewise.
62762 2009-03-19  Jim Meyering  <meyering@redhat.com>
62764         fsusage: avoid syntax error due to statement-before-declaration
62765         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
62766         after all declarations.  Reported by Matthew Woehlke in
62767         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
62769 2009-03-18  Eric Blake  <ebb9@byu.net>
62771         build-aux/compile: sync from automake
62772         * build-aux/compile: New file, from automake.
62773         * config/srclist.txt: Mention build-aux/compile.
62775 2009-03-17  Bruno Haible  <bruno@clisp.org>
62777         * lib/git-merge-changelog.c: Fix typo in comment.
62778         Reported by Reuben Thomas <rrt@sc3d.org>.
62780 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
62782         * m4/regex.m4: update and improve help for
62783         --without-included-regex.
62785 2009-03-17  Simon Josefsson  <simon@josefsson.org>
62787         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
62788         failure on missing include files.
62790 2009-03-17  Eric Blake  <ebb9@byu.net>
62792         doc: mention more functions added in cygwin 1.7.0
62793         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
62794         addition.
62795         * doc/posix-functions/fwscanf.texi: Likewise.
62796         * doc/posix-functions/swprintf.texi: Likewise.
62797         * doc/posix-functions/swscanf.texi: Likewise.
62798         * doc/posix-functions/vfwprintf.texi: Likewise.
62799         * doc/posix-functions/vfwscanf.texi: Likewise.
62800         * doc/posix-functions/vswprintf.texi: Likewise.
62801         * doc/posix-functions/vswscanf.texi: Likewise.
62802         * doc/posix-functions/vwprintf.texi: Likewise.
62803         * doc/posix-functions/vwscanf.texi: Likewise.
62804         * doc/posix-functions/wcscasecmp.texi: Likewise.
62805         * doc/posix-functions/wcsdup.texi: Likewise.
62806         * doc/posix-functions/wcsftime.texi: Likewise.
62807         * doc/posix-functions/wcsncasecmp.texi: Likewise.
62808         * doc/posix-functions/wprintf.texi: Likewise.
62809         * doc/posix-functions/wscanf.texi: Likewise.
62810         * doc/glibc-functions/gethostbyname2.texi: Likewise.
62812 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62814         maint.mk: really add $(AM_MAKEFLAGS)
62815         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
62816         was inadvertently omitted in the last commit.
62817         Spotted by Bruno Haible.
62819         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
62820         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
62821         $(AM_MAKEFLAGS)' rather than plain `make'.
62823         gnulib-tool: execute $MAKE not make
62824         * gnulib-tool: Default $MAKE to 'make'.
62825         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
62826         than make.  Initialize $MAKE in the do-autobuild script.
62828         gnulib-tool: use $MAKE not make in generated files
62829         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
62830         make, in generated files.  Initialize $MAKE in the do-autobuild
62831         script.
62833         * top/GNUmakefile (_have-git-version-gen): Fix typo.
62835         GNUmakefile: disable parallelism only for multiple, recursive targets
62836         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
62837         additions in the Makefile.
62838         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
62839         by Automake.
62840         (.NOTPARALLEL): Only disable parallel builds if multiple targets
62841         are listed on the command line and at least one of them is
62842         listed in $(ALL_RECURSIVE_TARGETS).
62844 2009-03-14  Bruno Haible  <bruno@clisp.org>
62846         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
62847         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
62848         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
62849         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
62850         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
62851         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
62852         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
62853         unistr/u8-uctomb.
62854         * modules/unistr/u8-strchr (Depends-on): Likewise.
62855         * modules/unistr/u8-strrchr (Depends-on): Likewise.
62856         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
62857         unistr/u16-uctomb.
62858         * modules/unistr/u16-strchr (Depends-on): Likewise.
62859         * modules/unistr/u16-strrchr (Depends-on): Likewise.
62861 2009-03-12  Bruno Haible  <bruno@clisp.org>
62863         Work around select() bug on Interix 3.5.
62864         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
62865         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
62866         * m4/select.m4: New file.
62867         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
62868         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
62869         * modules/select (Files): Add m4/select.m4.
62870         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
62871         * modules/nanosleep (Depends-on): Add select.
62872         * modules/poll (Depends-on): Likewise.
62873         * doc/posix-functions/select.texi: Mention the Interix bug.
62874         Reported by Markus Duft <mduft@gentoo.org>.
62876         * lib/select.c: Renamed from lib/winsock-select.c.
62877         * modules/select (Files): Add lib/select.c, remove
62878         lib/winsock-select.c.
62879         (configure.ac): Update.
62881 2009-03-12  Jim Meyering  <meyering@redhat.com>
62883         avoid gcc warnings about unused macro definitions
62884         * lib/readtokens.c (STREQ): Remove unused definition.
62885         * lib/xmalloc.c (SIZE_MAX): Likewise.
62886         * lib/openat-die.c (N_): Likewise.
62887         * lib/mountlist.c (SIZE_MAX): Remove definition.
62888         Instead, include <stdint.h>.
62889         * lib/readutmp.c: Likewise.
62890         * modules/readutmp (Depends-on): Add stdint.
62891         * modules/mountlist (Depends-on): Add stdint.
62892         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
62894 2009-03-10  Bruno Haible  <bruno@clisp.org>
62896         Tests for module 'mbmemcasecoll'.
62897         * modules/mbmemcasecoll-tests: New file.
62898         * tests/test-mbmemcasecoll1.sh: New file.
62899         * tests/test-mbmemcasecoll2.sh: New file.
62900         * tests/test-mbmemcasecoll3.sh: New file.
62901         * tests/test-mbmemcasecoll.c: New file.
62903         New module 'mbmemcasecoll'.
62904         * lib/mbmemcasecoll.h: New file.
62905         * lib/mbmemcasecoll.c: New file.
62906         * modules/mbmemcasecoll: New file.
62908         * tests/test-mbmemcasecmp.h: New file, extracted from
62909         tests/test-mbmemcasecmp.c.
62910         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
62911         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
62912         (main): Update.
62913         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
62915 2009-03-09  Bruno Haible  <bruno@clisp.org>
62917         Tests for module 'mbmemcasecmp'.
62918         * modules/mbmemcasecmp-tests: New file.
62919         * tests/test-mbmemcasecmp1.sh: New file.
62920         * tests/test-mbmemcasecmp2.sh: New file.
62921         * tests/test-mbmemcasecmp3.sh: New file.
62922         * tests/test-mbmemcasecmp.c: New file.
62924         New module 'mbmemcasecmp'.
62925         * lib/mbmemcasecmp.h: New file.
62926         * lib/mbmemcasecmp.c: New file.
62927         * modules/mbmemcasecmp: New file.
62929 2009-03-09  Bruno Haible  <bruno@clisp.org>
62931         Tests for module 'unicase/ulc-casecoll'.
62932         * modules/unicase/ulc-casecoll-tests: New file.
62933         * tests/unicase/test-ulc-casecoll1.sh: New file.
62934         * tests/unicase/test-ulc-casecoll2.sh: New file.
62935         * tests/unicase/test-ulc-casecoll.c: New file.
62937         New module 'unicase/ulc-casecoll'.
62938         * lib/unicase.h (ulc_casecoll): New declaration.
62939         * lib/unicase/ulc-casecoll.c: New file.
62940         * modules/unicase/ulc-casecoll: New file.
62942         New module 'unicase/ulc-casexfrm'.
62943         * lib/unicase.h (ulc_casexfrm): New declaration.
62944         * lib/unicase/ulc-casexfrm.c: New file.
62945         * modules/unicase/ulc-casexfrm: New file.
62947 2009-03-09  Bruno Haible  <bruno@clisp.org>
62949         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
62950         invocations.
62952         * m4/mbscasecmp.m4: Remove file.
62953         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
62954         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
62956         * m4/mbscasestr.m4: Remove file.
62957         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
62958         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
62960         * m4/mbschr.m4: Remove file.
62961         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
62962         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
62964         * m4/mbscspn.m4: Remove file.
62965         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
62966         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
62968         * m4/mbslen.m4: Remove file.
62969         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
62970         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
62972         * m4/mbsncasecmp.m4: Remove file.
62973         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
62974         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
62976         * m4/mbsnlen.m4: Remove file.
62977         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
62978         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
62980         * m4/mbspbrk.m4: Remove file.
62981         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
62982         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
62984         * m4/mbspcasecmp.m4: Remove file.
62985         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
62986         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
62988         * m4/mbsrchr.m4: Remove file.
62989         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
62990         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
62992         * m4/mbssep.m4: Remove file.
62993         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
62994         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
62996         * m4/mbsspn.m4: Remove file.
62997         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
62998         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
63000         * m4/mbsstr.m4: Remove file.
63001         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
63002         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
63004         * m4/mbstok_r.m4: Remove file.
63005         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
63006         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
63008         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
63010         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
63011         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
63013         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
63015 2009-03-08  Bruno Haible  <bruno@clisp.org>
63017         Tests for module 'unicase/ulc-casecmp'.
63018         * modules/unicase/ulc-casecmp-tests: New file.
63019         * tests/unicase/test-ulc-casecmp1.sh: New file.
63020         * tests/unicase/test-ulc-casecmp2.sh: New file.
63021         * tests/unicase/test-ulc-casecmp.c: New file.
63023         New module 'unicase/ulc-casecmp'.
63024         * lib/unicase.h (ulc_casecmp): New declaration.
63025         * lib/unicase/ulc-casecmp.c: New file.
63026         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
63027         'const SRC_UNIT *'.
63028         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
63029         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
63030         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
63031         * modules/unicase/ulc-casecmp: New file.
63033         Tests for module 'unicase/u32-is-cased'.
63034         * modules/unicase/u32-is-cased-tests: New file.
63035         * tests/unicase/test-u32-is-cased.c: New file.
63037         Tests for module 'unicase/u16-is-cased'.
63038         * modules/unicase/u16-is-cased-tests: New file.
63039         * tests/unicase/test-u16-is-cased.c: New file.
63041         Tests for module 'unicase/u8-is-cased'.
63042         * modules/unicase/u8-is-cased-tests: New file.
63043         * tests/unicase/test-u8-is-cased.c: New file.
63044         * tests/unicase/test-is-cased.h: New file.
63046         New module 'unicase/u32-is-cased'.
63047         * lib/unicase/u32-is-cased.c: New file.
63048         * modules/unicase/u32-is-cased: New file.
63050         New module 'unicase/u16-is-cased'.
63051         * lib/unicase/u16-is-cased.c: New file.
63052         * modules/unicase/u16-is-cased: New file.
63054         New module 'unicase/u8-is-cased'.
63055         * lib/unicase/u8-is-cased.c: New file.
63056         * lib/unicase/u-is-cased.h: New file.
63057         * modules/unicase/u8-is-cased: New file.
63059         Tests for module 'unicase/u32-is-casefolded'.
63060         * modules/unicase/u32-is-casefolded-tests: New file.
63061         * tests/unicase/test-u32-is-casefolded.c: New file.
63063         Tests for module 'unicase/u16-is-casefolded'.
63064         * modules/unicase/u16-is-casefolded-tests: New file.
63065         * tests/unicase/test-u16-is-casefolded.c: New file.
63067         Tests for module 'unicase/u8-is-casefolded'.
63068         * modules/unicase/u8-is-casefolded-tests: New file.
63069         * tests/unicase/test-u8-is-casefolded.c: New file.
63070         * tests/unicase/test-is-casefolded.h: New file.
63072         New module 'unicase/u32-is-casefolded'.
63073         * lib/unicase/u32-is-casefolded.c: New file.
63074         * modules/unicase/u32-is-casefolded: New file.
63076         New module 'unicase/u16-is-casefolded'.
63077         * lib/unicase/u16-is-casefolded.c: New file.
63078         * modules/unicase/u16-is-casefolded: New file.
63080         New module 'unicase/u8-is-casefolded'.
63081         * lib/unicase/u8-is-casefolded.c: New file.
63082         * modules/unicase/u8-is-casefolded: New file.
63084         Tests for module 'unicase/u32-is-titlecase'.
63085         * modules/unicase/u32-is-titlecase-tests: New file.
63086         * tests/unicase/test-u32-is-titlecase.c: New file.
63088         Tests for module 'unicase/u16-is-titlecase'.
63089         * modules/unicase/u16-is-titlecase-tests: New file.
63090         * tests/unicase/test-u16-is-titlecase.c: New file.
63092         Tests for module 'unicase/u8-is-titlecase'.
63093         * modules/unicase/u8-is-titlecase-tests: New file.
63094         * tests/unicase/test-u8-is-titlecase.c: New file.
63095         * tests/unicase/test-is-titlecase.h: New file.
63097         New module 'unicase/u32-is-titlecase'.
63098         * lib/unicase/u32-is-titlecase.c: New file.
63099         * modules/unicase/u32-is-titlecase: New file.
63101         New module 'unicase/u16-is-titlecase'.
63102         * lib/unicase/u16-is-titlecase.c: New file.
63103         * modules/unicase/u16-is-titlecase: New file.
63105         New module 'unicase/u8-is-titlecase'.
63106         * lib/unicase/u8-is-titlecase.c: New file.
63107         * modules/unicase/u8-is-titlecase: New file.
63109         Tests for module 'unicase/u32-is-lowercase'.
63110         * modules/unicase/u32-is-lowercase-tests: New file.
63111         * tests/unicase/test-u32-is-lowercase.c: New file.
63113         Tests for module 'unicase/u16-is-lowercase'.
63114         * modules/unicase/u16-is-lowercase-tests: New file.
63115         * tests/unicase/test-u16-is-lowercase.c: New file.
63117         Tests for module 'unicase/u8-is-lowercase'.
63118         * modules/unicase/u8-is-lowercase-tests: New file.
63119         * tests/unicase/test-u8-is-lowercase.c: New file.
63120         * tests/unicase/test-is-lowercase.h: New file.
63122         New module 'unicase/u32-is-lowercase'.
63123         * lib/unicase/u32-is-lowercase.c: New file.
63124         * modules/unicase/u32-is-lowercase: New file.
63126         New module 'unicase/u16-is-lowercase'.
63127         * lib/unicase/u16-is-lowercase.c: New file.
63128         * modules/unicase/u16-is-lowercase: New file.
63130         New module 'unicase/u8-is-lowercase'.
63131         * lib/unicase/u8-is-lowercase.c: New file.
63132         * modules/unicase/u8-is-lowercase: New file.
63134         Tests for module 'unicase/u32-is-uppercase'.
63135         * modules/unicase/u32-is-uppercase-tests: New file.
63136         * tests/unicase/test-u32-is-uppercase.c: New file.
63138         Tests for module 'unicase/u16-is-uppercase'.
63139         * modules/unicase/u16-is-uppercase-tests: New file.
63140         * tests/unicase/test-u16-is-uppercase.c: New file.
63142         Tests for module 'unicase/u8-is-uppercase'.
63143         * modules/unicase/u8-is-uppercase-tests: New file.
63144         * tests/unicase/test-u8-is-uppercase.c: New file.
63145         * tests/unicase/test-is-uppercase.h: New file.
63147         New module 'unicase/u32-is-uppercase'.
63148         * lib/unicase/u32-is-uppercase.c: New file.
63149         * modules/unicase/u32-is-uppercase: New file.
63151         New module 'unicase/u16-is-uppercase'.
63152         * lib/unicase/u16-is-uppercase.c: New file.
63153         * modules/unicase/u16-is-uppercase: New file.
63155         New module 'unicase/u8-is-uppercase'.
63156         * lib/unicase/u8-is-uppercase.c: New file.
63157         * modules/unicase/u8-is-uppercase: New file.
63159         New module 'unicase/u32-is-invariant'.
63160         * lib/unicase/u32-is-invariant.c: New file.
63161         * modules/unicase/u32-is-invariant: New file.
63163         New module 'unicase/u16-is-invariant'.
63164         * lib/unicase/u16-is-invariant.c: New file.
63165         * modules/unicase/u16-is-invariant: New file.
63167         New module 'unicase/u8-is-invariant'.
63168         * lib/unicase/u8-is-invariant.c: New file.
63169         * lib/unicase/invariant.h: New file.
63170         * lib/unicase/u-is-invariant.h: New file.
63171         * modules/unicase/u8-is-invariant: New file.
63173         Tests for module 'unicase/u32-casecoll'.
63174         * modules/unicase/u32-casecoll-tests: New file.
63175         * tests/unicase/test-u32-casecoll.c: New file.
63177         Tests for module 'unicase/u16-casecoll'.
63178         * modules/unicase/u16-casecoll-tests: New file.
63179         * tests/unicase/test-u16-casecoll.c: New file.
63181         Tests for module 'unicase/u8-casecoll'.
63182         * modules/unicase/u8-casecoll-tests: New file.
63183         * tests/unicase/test-u8-casecoll.c: New file.
63185         New module 'unicase/u32-casecoll'.
63186         * lib/unicase/u32-casecoll.c: New file.
63187         * modules/unicase/u32-casecoll: New file.
63189         New module 'unicase/u16-casecoll'.
63190         * lib/unicase/u16-casecoll.c: New file.
63191         * modules/unicase/u16-casecoll: New file.
63193         New module 'unicase/u8-casecoll'.
63194         * lib/unicase/u8-casecoll.c: New file.
63195         * lib/unicase/u-casecoll.h: New file.
63196         * modules/unicase/u8-casecoll: New file.
63198         New module 'unicase/u32-casexfrm'.
63199         * lib/unicase/u32-casexfrm.c: New file.
63200         * modules/unicase/u32-casexfrm: New file.
63202         New module 'unicase/u16-casexfrm'.
63203         * lib/unicase/u16-casexfrm.c: New file.
63204         * modules/unicase/u16-casexfrm: New file.
63206         New module 'unicase/u8-casexfrm'.
63207         * lib/unicase/u8-casexfrm.c: New file.
63208         * lib/unicase/u-casexfrm.h: New file.
63209         * modules/unicase/u8-casexfrm: New file.
63211         Tests for module 'unicase/u32-casecmp'.
63212         * modules/unicase/u32-casecmp-tests: New file.
63213         * tests/unicase/test-u32-casecmp.c: New file.
63215         Tests for module 'unicase/u16-casecmp'.
63216         * modules/unicase/u16-casecmp-tests: New file.
63217         * tests/unicase/test-u16-casecmp.c: New file.
63219         Tests for module 'unicase/u8-casecmp'.
63220         * modules/unicase/u8-casecmp-tests: New file.
63221         * tests/unicase/test-u8-casecmp.c: New file.
63222         * tests/unicase/test-casecmp.h: New file.
63224         New module 'unicase/u32-casecmp'.
63225         * lib/unicase/u32-casecmp.c: New file.
63226         * modules/unicase/u32-casecmp: New file.
63228         New module 'unicase/u16-casecmp'.
63229         * lib/unicase/u16-casecmp.c: New file.
63230         * modules/unicase/u16-casecmp: New file.
63232         New module 'unicase/u8-casecmp'.
63233         * lib/unicase/u8-casecmp.c: New file.
63234         * lib/unicase/u-casecmp.h: New file.
63235         * modules/unicase/u8-casecmp: New file.
63237         Tests for module 'unicase/u32-casefold'.
63238         * modules/unicase/u32-casefold-tests: New file.
63239         * tests/unicase/test-u32-casefold.c: New file.
63241         Tests for module 'unicase/u16-casefold'.
63242         * modules/unicase/u16-casefold-tests: New file.
63243         * tests/unicase/test-u16-casefold.c: New file.
63245         Tests for module 'unicase/u8-casefold'.
63246         * modules/unicase/u8-casefold-tests: New file.
63247         * tests/unicase/test-u8-casefold.c: New file.
63249         New module 'unicase/u32-casefold'.
63250         * lib/unicase/u32-casefold.c: New file.
63251         * modules/unicase/u32-casefold: New file.
63253         New module 'unicase/u16-casefold'.
63254         * lib/unicase/u16-casefold.c: New file.
63255         * modules/unicase/u16-casefold: New file.
63257         New module 'unicase/u8-casefold'.
63258         * lib/unicase/u8-casefold.c: New file.
63259         * lib/unicase/u-casefold.h: New file.
63260         * modules/unicase/u8-casefold: New file.
63262         New module 'unicase/tocasefold'.
63263         * lib/unicase/casefold.h: New file.
63264         * lib/unicase/tocasefold.c: New file.
63265         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
63266         * modules/unicase/tocasefold: New file.
63268         Tests for module 'unicase/u32-totitle'.
63269         * modules/unicase/u32-totitle-tests: New file.
63270         * tests/unicase/test-u32-totitle.c: New file.
63272         Tests for module 'unicase/u16-totitle'.
63273         * modules/unicase/u16-totitle-tests: New file.
63274         * tests/unicase/test-u16-totitle.c: New file.
63276         Tests for module 'unicase/u8-totitle'.
63277         * modules/unicase/u8-totitle-tests: New file.
63278         * tests/unicase/test-u8-totitle.c: New file.
63280         New module 'unicase/u32-totitle'.
63281         * lib/unicase/u32-totitle.c: New file.
63282         * modules/unicase/u32-totitle: New file.
63284         New module 'unicase/u16-totitle'.
63285         * lib/unicase/u16-totitle.c: New file.
63286         * modules/unicase/u16-totitle: New file.
63288         New module 'unicase/u8-totitle'.
63289         * lib/unicase/u8-totitle.c: New file.
63290         * lib/unicase/u-totitle.h: New file.
63291         * modules/unicase/u8-totitle: New file.
63293         Tests for module 'unicase/u32-tolower'.
63294         * modules/unicase/u32-tolower-tests: New file.
63295         * tests/unicase/test-u32-tolower.c: New file.
63297         Tests for module 'unicase/u16-tolower'.
63298         * modules/unicase/u16-tolower-tests: New file.
63299         * tests/unicase/test-u16-tolower.c: New file.
63301         Tests for module 'unicase/u8-tolower'.
63302         * modules/unicase/u8-tolower-tests: New file.
63303         * tests/unicase/test-u8-tolower.c: New file.
63305         New module 'unicase/u32-tolower'.
63306         * lib/unicase/u32-tolower.c: New file.
63307         * modules/unicase/u32-tolower: New file.
63309         New module 'unicase/u16-tolower'.
63310         * lib/unicase/u16-tolower.c: New file.
63311         * modules/unicase/u16-tolower: New file.
63313         New module 'unicase/u8-tolower'.
63314         * lib/unicase/u8-tolower.c: New file.
63315         * modules/unicase/u8-tolower: New file.
63317         Tests for module 'unicase/u32-toupper'.
63318         * modules/unicase/u32-toupper-tests: New file.
63319         * tests/unicase/test-u32-toupper.c: New file.
63321         Tests for module 'unicase/u16-toupper'.
63322         * modules/unicase/u16-toupper-tests: New file.
63323         * tests/unicase/test-u16-toupper.c: New file.
63325         Tests for module 'unicase/u8-toupper'.
63326         * modules/unicase/u8-toupper-tests: New file.
63327         * tests/unicase/test-u8-toupper.c: New file.
63329         New module 'unicase/u32-toupper'.
63330         * lib/unicase/u32-toupper.c: New file.
63331         * modules/unicase/u32-toupper: New file.
63333         New module 'unicase/u16-toupper'.
63334         * lib/unicase/u16-toupper.c: New file.
63335         * modules/unicase/u16-toupper: New file.
63337         New module 'unicase/u8-toupper'.
63338         * lib/unicase/u8-toupper.c: New file.
63339         * modules/unicase/u8-toupper: New file.
63341         New module 'unicase/u32-casemap'.
63342         * lib/unicase/u32-casemap.c: New file.
63343         * modules/unicase/u32-casemap: New file.
63345         New module 'unicase/u16-casemap'.
63346         * lib/unicase/u16-casemap.c: New file.
63347         * modules/unicase/u16-casemap: New file.
63349         New module 'unicase/u8-casemap'.
63350         * lib/unicase/unicasemap.h: New file.
63351         * lib/unicase/u8-casemap.c: New file.
63352         * lib/unicase/u-casemap.h: New file.
63353         * modules/unicase/u8-casemap: New file.
63355         New module 'unicase/special-casing'.
63356         * lib/unicase/special-casing.h: New file.
63357         * lib/unicase/special-casing.c: New file.
63358         * lib/unicase/special-casing-table.gperf: New file, generated by
63359         gen-uni-tables.c.
63360         * modules/unicase/special-casing: New file.
63362         Tests for module 'unicase/locale-language'.
63363         * modules/unicase/locale-language-tests: New file.
63364         * tests/unicase/test-locale-language.sh: New file.
63365         * tests/unicase/test-locale-language.c: New file.
63367         New module 'unicase/locale-language'.
63368         * lib/unicase/locale-language.c: New file.
63369         * lib/unicase/locale-languages.gperf: New file.
63370         * modules/unicase/locale-language: New file.
63372         Generate more tables for case conversion and case folding.
63373         * lib/gen-uni-tables.c (SCC_*): New enum items.
63374         (struct special_casing_rule): New type.
63375         (casing_rules, num_casing_rules, allocated_casing_rules): New
63376         variables.
63377         (add_casing_rule, fill_casing_rules): New functions.
63378         (struct casefold_rule): New type.
63379         (casefolding_rules, num_casefolding_rules,
63380         allocated_casefolding_rules): New variables.
63381         (fill_casefolding_rules): New function.
63382         (unicode_casefold): New variable.
63383         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
63384         sort_casing_rules, output_casing_rules): New functions.
63385         (main): Accept to more arguments: SpecialCasing.txt and
63386         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
63387         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
63388         Output mapping for casefolding.
63390         * lib/unicase.h: Include stdbool.h, uninorm.h.
63391         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
63392         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
63393         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
63394         arguments.
63395         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
63396         resultp arguments.
63397         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
63398         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
63399         resultp arguments.
63400         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
63401         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
63402         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
63403         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
63404         declarations.
63405         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
63407 2009-03-08  Bruno Haible  <bruno@clisp.org>
63409         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
63410         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
63411         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
63412         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
63414 2009-03-07  Bruno Haible  <bruno@clisp.org>
63416         Adjust u*_normcmp, u*_normcoll API.
63417         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
63418         u16_normcoll, u32_normcoll): Change failure conventions.
63419         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
63420         errno and return -1.
63421         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
63423 2009-03-07  Bruno Haible  <bruno@clisp.org>
63425         Tests for module 'uninorm/u32-normcoll'.
63426         * modules/uninorm/u32-normcoll-tests: New file.
63427         * tests/uninorm/test-u32-normcoll.c: New file.
63429         Tests for module 'uninorm/u16-normcoll'.
63430         * modules/uninorm/u16-normcoll-tests: New file.
63431         * tests/uninorm/test-u16-normcoll.c: New file.
63433         Tests for module 'uninorm/u8-normcoll'.
63434         * modules/uninorm/u8-normcoll-tests: New file.
63435         * tests/uninorm/test-u8-normcoll.c: New file.
63437 2009-03-07  Bruno Haible  <bruno@clisp.org>
63439         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
63440         tests/uninorm/test-u32-normcmp.c.
63441         * tests/uninorm/test-u32-normcmp.c: Include it.
63442         (test_nonascii): New function, extracted from main. Add some more
63443         tests.
63444         (main): Invoke test_ascii and test_nonascii.
63445         * modules/uninorm/u32-normcmp-tests (Files): Add
63446         tests/uninorm/test-u32-normcmp.h.
63447         (Depends-on): Remove uninorm/u32-normcmp.
63449         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
63450         tests/uninorm/test-u16-normcmp.c.
63451         * tests/uninorm/test-u16-normcmp.c: Include it.
63452         (test_nonascii): New function, extracted from main. Add some more
63453         tests.
63454         (main): Invoke test_ascii and test_nonascii.
63455         * modules/uninorm/u16-normcmp-tests (Files): Add
63456         tests/uninorm/test-u16-normcmp.h.
63457         (Depends-on): Remove uninorm/u16-normcmp.
63459         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
63460         tests/uninorm/test-u8-normcmp.c.
63461         * tests/uninorm/test-u8-normcmp.c: Include it.
63462         (test_nonascii): New function, extracted from main. Add some more
63463         tests.
63464         (main): Invoke test_ascii and test_nonascii.
63465         * modules/uninorm/u8-normcmp-tests (Files): Add
63466         tests/uninorm/test-u8-normcmp.h.
63467         (Depends-on): Remove uninorm/u8-normcmp.
63469 2009-03-07  Bruno Haible  <bruno@clisp.org>
63471         New module 'uninorm/u32-normcoll'.
63472         * lib/uninorm/u32-normcoll.c: New file.
63473         * modules/uninorm/u32-normcoll: New file.
63475         New module 'uninorm/u16-normcoll'.
63476         * lib/uninorm/u16-normcoll.c: New file.
63477         * modules/uninorm/u16-normcoll: New file.
63479         New module 'uninorm/u8-normcoll'.
63480         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
63481         declarations.
63482         * lib/uninorm/u8-normcoll.c: New file.
63483         * lib/uninorm/u-normcoll.h: New file.
63484         * modules/uninorm/u8-normcoll: New file.
63486         New module 'uninorm/u32-normxfrm'.
63487         * lib/uninorm/u32-normxfrm.c: New file.
63488         * modules/uninorm/u32-normxfrm: New file.
63490         New module 'uninorm/u16-normxfrm'.
63491         * lib/uninorm/u16-normxfrm.c: New file.
63492         * modules/uninorm/u16-normxfrm: New file.
63494         New module 'uninorm/u8-normxfrm'.
63495         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
63496         declarations.
63497         * lib/uninorm/u8-normxfrm.c: New file.
63498         * lib/uninorm/u-normxfrm.h: New file.
63499         * modules/uninorm/u8-normxfrm: New file.
63501 2009-03-07  Bruno Haible  <bruno@clisp.org>
63503         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
63504         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
63505         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
63507 2009-03-07  Bruno Haible  <bruno@clisp.org>
63509         New module 'memxfrm'.
63510         * lib/memxfrm.h: New file.
63511         * lib/memxfrm.c: New file.
63512         * modules/memxfrm: New file.
63514 2009-03-07  Bruno Haible  <bruno@clisp.org>
63516         New module 'memcmp2'.
63517         * lib/memcmp2.h: New file.
63518         * lib/memcmp2.c: New file.
63519         * modules/memcmp2: New file.
63521 2009-03-07  Bruno Haible  <bruno@clisp.org>
63523         Tests for module 'uninorm/decomposing-form'.
63524         * modules/uninorm/decomposing-form-tests: New file.
63525         * tests/uninorm/test-decomposing-form.c: New file.
63527         New module 'uninorm/decomposing-form'.
63528         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
63529         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
63530         Add 'decomposing_variant' field.
63531         * lib/uninorm/decomposing-form.c: New file.
63532         * lib/uninorm/nfc.c (uninorm_nfc): Update.
63533         * lib/uninorm/nfd.c (uninorm_nfd): Update.
63534         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
63535         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
63536         * modules/uninorm/decomposing-form: New file.
63537         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
63538         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
63540 2009-03-07  Bruno Haible  <bruno@clisp.org>
63542         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
63543         strings.
63545 2009-03-06  Bruno Haible  <bruno@clisp.org>
63547         Tests for module 'uninorm/u32-normcmp'.
63548         * tests/uninorm/test-u32-normcmp.c: New file.
63549         * modules/uninorm/u32-normcmp-tests: New file.
63551         Tests for module 'uninorm/u16-normcmp'.
63552         * tests/uninorm/test-u16-normcmp.c: New file.
63553         * modules/uninorm/u16-normcmp-tests: New file.
63555         Tests for module 'uninorm/u8-normcmp'.
63556         * tests/uninorm/test-u8-normcmp.c: New file.
63557         * modules/uninorm/u8-normcmp-tests: New file.
63559         New module 'uninorm/u32-normcmp'.
63560         * lib/uninorm/u32-normcmp.c: New file.
63561         * modules/uninorm/u32-normcmp: New file.
63563         New module 'uninorm/u16-normcmp'.
63564         * lib/uninorm/u16-normcmp.c: New file.
63565         * modules/uninorm/u16-normcmp: New file.
63567         New module 'uninorm/u8-normcmp'.
63568         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
63569         declarations.
63570         * lib/uninorm/u8-normcmp.c: New file.
63571         * lib/uninorm/u-normcmp.h: New file.
63572         * modules/uninorm/u8-normcmp: New file.
63574 2009-03-06  Bruno Haible  <bruno@clisp.org>
63576         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
63577         Reported by Eric Blake.
63579 2009-03-06  Eric Blake  <ebb9@byu.net>
63580             Bruno Haible  <bruno@clisp.org>
63582         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
63583         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
63584         condition.
63585         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
63586         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
63587         condition.
63588         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
63590 2009-03-06  Eric Blake  <ebb9@byu.net>
63592         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
63593         to avoid compiler warnings.
63594         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
63596 2009-03-05  Bruno Haible  <bruno@clisp.org>
63598         * tests/test-ftell.c (main): Disable test beyond end of file on
63599         FreeMiNT.
63600         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
63602 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
63604         * lib/filevercmp.c: Move hidden files up in ordering.
63605         * tests/test-filevercmp.c: Add tests for hidden files.
63607 2009-03-04  Bruno Haible  <bruno@clisp.org>
63609         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
63610         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
63611         AM_CFLAGS.
63612         Reported by Simon Josefsson.
63614 2009-03-03  Bruno Haible  <bruno@clisp.org>
63616         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
63617         Reported by Simon Josefsson.
63619         * doc/ld-version-script.texi: Update node reference.
63621 2009-03-03  Bruno Haible  <bruno@clisp.org>
63623         * modules/visibility (License): Change to 'unlimited'.
63624         Suggested by Simon Josefsson.
63626 2009-03-03  Jim Meyering  <meyering@redhat.com>
63628         unlinkdir: cannot_unlink_dir may modify process state
63629         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
63630         it's neither thread-safe nor appropriate for use in a library.
63632 2009-03-03  Eric Blake  <ebb9@byu.net>
63634         test-closein: silence test under Darwin
63635         * tests/test-closein.sh: Ignore stderr from cat, since we don't
63636         care if it dies from EPIPE or EBADF.
63638 2009-03-03  Bruno Haible  <bruno@clisp.org>
63640         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
63641         earlier.
63642         * doc/visibility.texi: Fix @node and @section.
63644 2009-03-03  Simon Josefsson  <simon@josefsson.org>
63646         * doc/gnulib.texi: Link to sections for ld version script and
63647         visibility.
63648         * doc/visibility.texi: Add @node and @section.
63649         * modules/ld-version-script: New module.
63650         * m4/ld-version-script.m4: New file.
63651         * doc/ld-version-script.texi: New file.
63653 2009-03-02  David Lutterkort  <lutter@redhat.com>
63655         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
63656         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63658 2009-03-02  Bruno Haible  <bruno@clisp.org>
63660         * doc/visibility.texi: Mention libtool's -export-symbols option.
63662 2009-03-02  Jim Meyering  <meyering@redhat.com>
63664         announce-gen: new option: --no-print-checksums
63665         * build-aux/announce-gen (usage): Describe it.
63666         (print_checksums): Print a newline here, not in the [*] footnote.
63667         (main): Honor it.
63669 2009-03-01  Bruno Haible  <bruno@clisp.org>
63671         Use socklen_t in the native Windows replacements prototypes.
63672         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
63673         instead of 'int'.
63674         * lib/getsockopt.c (rpl_getsockopt): Likewise.
63675         * lib/setsockopt.c (rpl_setsockopt): Likewise.
63676         * modules/getsockopt (Depends-on): Add socklen.
63677         * modules/setsockopt (Depends-on): Add socklen.
63679 2009-03-01  Bruno Haible  <bruno@clisp.org>
63681         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
63682         least 4.2.
63684 2009-03-01  Eric Blake  <ebb9@byu.net>
63685             Bruno Haible  <bruno@clisp.org>
63687         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
63688         error messages.
63689         * lib/wait-process.c (wait_subprocess): Omit error message about
63690         deadly signal sent to the child of termsigp != NULL.
63692 2009-03-01  Eric Blake  <ebb9@byu.net>
63694         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
63696 2009-03-01  Bruno Haible  <bruno@clisp.org>
63698         Avoid a gcc warning.
63699         * tests/test-sched.c (b): Make global.
63700         Reported by Eric Blake.
63702 2009-01-19  Martin Lambers  <marlam@marlam.de>
63704         Provide POSIX semantics for socket timeout options on W32.
63705         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
63706         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
63707         * modules/setsockopt: Depend on sys_time module for struct timeval.
63708         * modules/getsockopt: Depend on sys_time module for struct timeval.
63710 2009-03-01  Simon Josefsson  <simon@josefsson.org>
63712         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
63713         __USE_GNU, for consistency with netdb.in.h.
63714         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63716 2009-03-01  Bruno Haible  <bruno@clisp.org>
63718         More support for FreeMiNT.
63719         * lib/fseeko.c (rpl_fseeko): Complete last commit.
63720         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63722 2009-03-01  Bruno Haible  <bruno@clisp.org>
63724         More support for FreeMiNT.
63725         * lib/fpurge.c (fpurge): Correct last commit.
63726         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63728 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63730         Fix unportable awk script in vc-list-files.
63731         * build-aux/vc-list-files: In the replacement awk script, use
63732         substr with a second argument of 1, not zero.
63733         Report by Simon Josefsson.
63735 2009-02-28  Bruno Haible  <bruno@clisp.org>
63737         More support for FreeMiNT.
63738         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
63739         to FreeMiNT today.
63740         * lib/fwriting.c (fwriting): Likewise.
63741         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
63743 2009-02-28  Bruno Haible  <bruno@clisp.org>
63745         * tests/test-freadseek.c (main): Disable test beyond end of file on
63746         FreeMiNT.
63747         * tests/test-ftello.c (main): Likewise.
63748         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
63750 2009-02-28  Bruno Haible  <bruno@clisp.org>
63752         Add tentative support for FreeMiNT.
63753         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
63754         * lib/fpurge.c (fpurge): Likewise.
63755         * lib/freadable.c (freadable): Likewise.
63756         * lib/freading.c (freading): Likewise.
63757         * lib/freadptr.c (freadptr): Likewise.
63758         * lib/freadseek.c (freadptrinc): Likewise.
63759         * lib/fseeko.c (rpl_fseeko): Likewise.
63760         * lib/fseterr.c (fseterr): Likewise.
63761         * lib/fwritable.c (fwritable): Likewise.
63762         * lib/fwriting.c (fwriting): Likewise.
63763         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
63764         Hourihane.
63765         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63767 2009-02-28  Bruno Haible  <bruno@clisp.org>
63769         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
63770         SIGCHLD.
63771         Reported by Jim Meyering.
63773 2009-02-28  Bruno Haible  <bruno@clisp.org>
63775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
63776         Mention the results of these tests on various platforms.
63777         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
63778         order.
63779         * doc/posix-functions/printf.texi: Likewise.
63780         * doc/posix-functions/snprintf.texi: Likewise.
63781         * doc/posix-functions/sprintf.texi: Likewise.
63782         * doc/posix-functions/vfprintf.texi: Likewise.
63783         * doc/posix-functions/vprintf.texi: Likewise.
63784         * doc/posix-functions/vsnprintf.texi: Likewise.
63785         * doc/posix-functions/vsprintf.texi: Likewise.
63786         * doc/glibc-functions/obstack_printf.texi: Likewise.
63787         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63789 2009-02-28  Bruno Haible  <bruno@clisp.org>
63791         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
63792         Reported by Loïc Minier <lool@dooz.org>.
63794 2009-02-27  Bruno Haible  <bruno@clisp.org>
63796         * gnulib-tool (func_import): Make the sed expression used to create the
63797         sed script for updating the .gitignore file POSIX compliant.
63798         Reported by Eric Blake.
63800 2009-02-27  Bruno Haible  <bruno@clisp.org>
63802         * gnulib-tool (sed): Don't alias as "sed --posix".
63803         Reported by Eric Blake.
63805 2009-02-27  Bruno Haible  <bruno@clisp.org>
63807         Avoid test link errors.
63808         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
63809         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
63810         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
63811         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
63812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63814 2009-02-27  Bruno Haible  <bruno@clisp.org>
63816         Avoid spurious "(cached)" in configure output.
63817         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
63818         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
63819         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63820         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63821         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63822         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
63823         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63824         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
63825         Reported by Eric Blake.
63827 2009-02-27  Eric Blake  <ebb9@byu.net>
63829         printf: fix regression in previous patch
63830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
63832 2009-02-27  Bruno Haible  <bruno@clisp.org>
63834         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
63835         value.
63836         * lib/stdint.in.h: Likewise.
63837         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
63839 2009-02-27  Eric Blake  <ebb9@byu.net>
63841         doc: mention more functions added in cygwin 1.7.0
63842         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
63843         addition.
63844         * doc/posix-functions/open_wmemstream.texi: Likewise.
63845         * doc/posix-functions/wcsnlen.texi: Likewise.
63846         * doc/posix-functions/wcsnrtombs.texi: Likewise.
63847         * doc/posix-functions/wcstod.texi: Likewise.
63848         * doc/posix-functions/wcstof.texi: Likewise.
63849         * doc/posix-functions/wcstoimax.texi: Likewise.
63850         * doc/posix-functions/wcstok.texi: Likewise.
63851         * doc/posix-functions/wcstoumax.texi: Likewise.
63853         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
63854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
63855         * doc/posix-functions/fprintf.texi: Update.
63856         * doc/posix-functions/printf.texi: Update.
63857         * doc/posix-functions/snprintf.texi: Update.
63858         * doc/posix-functions/sprintf.texi: Update.
63859         * doc/posix-functions/vfprintf.texi: Update.
63860         * doc/posix-functions/vprintf.texi: Update.
63861         * doc/posix-functions/vsnprintf.texi: Update.
63862         * doc/posix-functions/vsprintf.texi: Update.
63863         * doc/glibc-functions/obstack_printf.texi: Update.
63864         * doc/glibc-functions/obstack_vprintf.texi: Update.
63866 2009-02-26  Eric Blake  <ebb9@byu.net>
63868         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
63869         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
63870         compilation bug by using runtime conversion.
63871         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
63872         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
63873         * modules/ceill-tests (Files): Use nan.h.
63874         * modules/floorl-tests (Files): Likewise.
63875         * modules/frexpl-tests (Files): Likewise.
63876         * modules/isnanl-tests (Files): Likewise.
63877         * modules/ldexpl-tests (Files): Likewise.
63878         * modules/roundl-tests (Files): Likewise.
63879         * modules/truncl-tests (Files): Likewise.
63880         * tests/test-ceill.c (main): Use a working NaN.
63881         * tests/test-floorl.c (main): Likewise.
63882         * tests/test-frexpl.c (main): Likewise.
63883         * tests/test-isnan.c (test_long_double): Likewise.
63884         * tests/test-isnanl.h (main): Likewise.
63885         * tests/test-ldexpl.h (main): Likewise.
63886         * tests/test-roundl.h (main): Likewise.
63887         * tests/test-truncl.h (main): Likewise.
63888         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
63890 2009-02-26  Eric Blake  <ebb9@byu.net>
63891             Bruno Haible  <bruno@clisp.org>
63893         Work around a *printf bug with %ls on Solaris.
63894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
63895         precision is specified, sprintf stops converting the wide string
63896         argument when the number of bytes that have been produced by this
63897         conversion equals or exceeds the precision.
63898         * doc/posix-functions/fprintf.texi: Update.
63899         * doc/posix-functions/printf.texi: Update.
63900         * doc/posix-functions/snprintf.texi: Update.
63901         * doc/posix-functions/sprintf.texi: Update.
63902         * doc/posix-functions/vfprintf.texi: Update.
63903         * doc/posix-functions/vprintf.texi: Update.
63904         * doc/posix-functions/vsnprintf.texi: Update.
63905         * doc/posix-functions/vsprintf.texi: Update.
63906         * doc/glibc-functions/obstack_printf.texi: Update.
63907         * doc/glibc-functions/obstack_vprintf.texi: Update.
63909 2009-02-26  Eric Blake  <ebb9@byu.net>
63911         stdlib: favor compiler check of random.h
63912         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
63913         to avoid an ObjC random.h installed by Swarm.
63915 2009-02-26  Bruno Haible  <bruno@clisp.org>
63917         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
63918         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
63919         Reported by Gary V. Vaughan <gary@gnu.org>.
63921 2009-02-26  Bruno Haible  <bruno@clisp.org>
63923         Fix *printf behaviour regarding the %ls directive.
63924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
63925         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
63926         NEED_PRINTF_DIRECTIVE_LS.
63927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
63928         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63929         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63930         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
63931         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
63932         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
63933         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
63934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63938         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
63939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63942         * doc/posix-functions/fprintf.texi: Update.
63943         * doc/posix-functions/printf.texi: Update.
63944         * doc/posix-functions/snprintf.texi: Update.
63945         * doc/posix-functions/sprintf.texi: Update.
63946         * doc/posix-functions/vfprintf.texi: Update.
63947         * doc/posix-functions/vprintf.texi: Update.
63948         * doc/posix-functions/vsnprintf.texi: Update.
63949         * doc/posix-functions/vsprintf.texi: Update.
63950         * doc/glibc-functions/obstack_printf.texi: Update.
63951         * doc/glibc-functions/obstack_vprintf.texi: Update.
63952         Reported by Eric Blake.
63954 2009-02-25  Bruno Haible  <bruno@clisp.org>
63956         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
63957         with known value.
63958         Reported by Gary V. Vaughan <gary@gnu.org>.
63960 2009-02-25  Bruno Haible  <bruno@clisp.org>
63962         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
63963         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
63964         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
63965         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
63966         Reported by Gary V. Vaughan <gary@gnu.org>.
63968 2009-02-25  Bruno Haible  <bruno@clisp.org>
63970         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
63971         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
63972         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
63973         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
63974         Reported by Gary V. Vaughan <gary@gnu.org>.
63976 2009-02-25  Eric Blake  <ebb9@byu.net>
63978         tests: skip fseek/ftell tests if ungetc is broken
63979         * m4/ungetc.m4: New file.
63980         * modules/fseek-tests: Split test, so ungetc dependency is
63981         separate from rest of test.
63982         * modules/fseeko-tests: Likewise.
63983         * modules/ftell-tests: Likewise.
63984         * modules/ftello-tests: Likewise.
63985         * tests/test-fseek.c (main): Isolate ungetc dependency.
63986         * tests/test-fseeko.c (main): Likewise.
63987         * tests/test-ftell.c (main): Likewise.
63988         * tests/test-ftello.c (main): Likewise.
63989         * tests/test-fseek2.sh: New file.
63990         * tests/test-fseeko2.sh: Likewise.
63991         * tests/test-ftell2.sh: Likewise.
63992         * tests/test-ftello2.sh: Likewise.
63994 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
63996         test-getaddrinfo: fix usage of skip return code 77
63997         * tests/test-gettaddrinfo.c: Return skip code 77 only
63998         for first occurrence of skip (4x77 is not 77)
64000 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
64002         strtod: avoid C99 decl-after-statement
64003         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
64005 2009-02-24  Eric Blake  <ebb9@byu.net>
64007         strtod: detect HP-UX 11.31 bug
64008         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
64009         Reported by Gary V. Vaughan.
64011 2009-02-23  Bruno Haible  <bruno@clisp.org>
64013         Fix invalid read past end of memory block.
64014         * lib/vasnprintf.c (DCHAR_SET): Define.
64015         (local_wcslen): Define only when needed.
64016         (local_strnlen, local_wcsnlen): New functions.
64017         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
64018         directives that involve a conversion ourselves.
64019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
64020         wcsnlen, mbrtowc, wcrtomb.
64021         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
64022         * tests/test-vasprintf-posix.c (test_function): Likewise.
64023         * tests/test-snprintf-posix.h (test_function): Likewise.
64024         * tests/test-sprintf-posix.h (test_function): Likewise.
64025         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64027 2009-02-22  Bruno Haible  <bruno@clisp.org>
64029         Implement new clarified decomposition of Hangul syllables.
64030         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
64031         of type LTV, return only a pairwise decomposition.
64032         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
64033         Likewise.
64034         * tests/uninorm/test-decomposition.c (main): Updated expected result.
64035         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
64036         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
64038 2009-02-22  Bruno Haible  <bruno@clisp.org>
64040         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
64041         zero-length results and shrink excess allocated memory.
64042         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
64043         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
64044         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
64045         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
64046         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
64047         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
64048         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
64049         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
64050         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
64051         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
64052         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
64053         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
64055 2009-02-21  Bruno Haible  <bruno@clisp.org>
64057         * doc/gnulib.texi: Include safe-alloc.texi earlier.
64058         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
64059         spaces after a period. Put a space between a macro name and its
64060         argument list. Trivial rewordings.
64061         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
64062         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
64063         (main): Return 0 explicitly.
64065 2009-02-21  Bruno Haible  <bruno@clisp.org>
64067         Tests for module 'uninorm/filter'.
64068         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
64069         * modules/uninorm/filter-tests: New file.
64071         New module 'uninorm/filter'.
64072         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
64073         uninorm_filter_flush, uninorm_filter_free): New declarations.
64074         * lib/uninorm/uninorm-filter.c: New file.
64075         * modules/uninorm/filter: New file.
64077 2009-02-21  Bruno Haible  <bruno@clisp.org>
64079         Tests for module 'uninorm/nfkc'.
64080         * tests/uninorm/test-nfkc.c: New file.
64081         * tests/uninorm/test-u8-nfkc.c: New file.
64082         * tests/uninorm/test-u16-nfkc.c: New file.
64083         * tests/uninorm/test-u32-nfkc.c: New file.
64084         * tests/uninorm/test-u32-nfkc-big.sh: New file.
64085         * tests/uninorm/test-u32-nfkc-big.c: New file.
64086         * modules/uninorm/nfkc-tests: New file.
64088         New module 'uninorm/nfkc'.
64089         * lib/uninorm/nfkc.c: New file.
64090         * modules/uninorm/nfkc: New file.
64092         Tests for module 'uninorm/nfkd'.
64093         * tests/uninorm/test-nfkd.c: New file.
64094         * tests/uninorm/test-u8-nfkd.c: New file.
64095         * tests/uninorm/test-u16-nfkd.c: New file.
64096         * tests/uninorm/test-u32-nfkd.c: New file.
64097         * tests/uninorm/test-u32-nfkd-big.sh: New file.
64098         * tests/uninorm/test-u32-nfkd-big.c: New file.
64099         * modules/uninorm/nfkd-tests: New file.
64101         New module 'uninorm/nfkd'.
64102         * lib/uninorm/nfkd.c: New file.
64103         * modules/uninorm/nfkd: New file.
64105         Tests for module 'uninorm/nfc'.
64106         * tests/uninorm/test-nfc.c: New file.
64107         * tests/uninorm/test-u8-nfc.c: New file.
64108         * tests/uninorm/test-u16-nfc.c: New file.
64109         * tests/uninorm/test-u32-nfc.c: New file.
64110         * tests/uninorm/test-u32-nfc-big.sh: New file.
64111         * tests/uninorm/test-u32-nfc-big.c: New file.
64112         * modules/uninorm/nfc-tests: New file.
64114         New module 'uninorm/nfc'.
64115         * lib/uninorm/nfc.c: New file.
64116         * modules/uninorm/nfc: New file.
64118         Tests for module 'uninorm/nfd'.
64119         * tests/uninorm/test-nfd.c: New file.
64120         * tests/uninorm/test-u8-nfd.c: New file.
64121         * tests/uninorm/test-u16-nfd.c: New file.
64122         * tests/uninorm/test-u32-nfd.c: New file.
64123         * tests/uninorm/test-u32-nfd-big.sh: New file.
64124         * tests/uninorm/test-u32-nfd-big.c: New file.
64125         * tests/uninorm/test-u32-normalize-big.h: New file.
64126         * tests/uninorm/test-u32-normalize-big.c: New file.
64127         * tests/uninorm/NormalizationTest.txt: New file, created from
64128         Unicode 5.1.0 NormalizationTest.txt.
64129         * modules/uninorm/nfd-tests: New file.
64131         New module 'uninorm/nfd'.
64132         * lib/uninorm/nfd.c: New file.
64133         * modules/uninorm/nfd: New file.
64135         New module 'uninorm/u32-normalize'.
64136         * lib/uninorm/u32-normalize.c: New file.
64137         * modules/uninorm/u32-normalize: New file.
64139         New module 'uninorm/u16-normalize'.
64140         * lib/uninorm/u16-normalize.c: New file.
64141         * modules/uninorm/u16-normalize: New file.
64143         New module 'uninorm/u8-normalize'.
64144         * lib/uninorm/u8-normalize.c: New file.
64145         * lib/uninorm/normalize-internal.h: New file.
64146         * lib/uninorm/u-normalize-internal.h: New file.
64147         * modules/uninorm/u8-normalize: New file.
64149         New module 'uninorm/decompose-internal'.
64150         * lib/uninorm/decompose-internal.c: New file.
64151         * modules/uninorm/decompose-internal: New file.
64153         Tests for module 'uninorm/composition'.
64154         * tests/uninorm/test-composition.c: New file.
64155         * modules/uninorm/composition-tests: New file.
64157         New module 'uninorm/composition'.
64158         * lib/uninorm/composition.c: New file.
64159         * lib/uninorm/composition-table.gperf: New file, generated by
64160         gen-uni-tables.
64161         * modules/uninorm/composition: New file.
64163         Tests for module 'uninorm/compat-decomposition'.
64164         * tests/uninorm/test-compat-decomposition.c: New file.
64165         * modules/uninorm/compat-decomposition-tests: New file.
64167         New module 'uninorm/compat-decomposition'.
64168         * lib/uninorm/decompose-internal.h: New file.
64169         * lib/uninorm/compat-decomposition.c: New file.
64170         * modules/uninorm/compat-decomposition: New file.
64172         Tests for module 'uninorm/canonical-decomposition'.
64173         * tests/uninorm/test-canonical-decomposition.c: New file.
64174         * modules/uninorm/canonical-decomposition-tests: New file.
64176         New module 'uninorm/canonical-decomposition'.
64177         * lib/uninorm/canonical-decomposition.c: New file.
64178         * modules/uninorm/canonical-decomposition: New file.
64180         Tests for module 'uninorm/decomposition'.
64181         * tests/uninorm/test-decomposition.c: New file.
64182         * modules/uninorm/decomposition-tests: New file.
64184         New module 'uninorm/decomposition'.
64185         * lib/uninorm/decomposition.c: New file.
64186         * modules/uninorm/decomposition: New file.
64188         New module 'uninorm/decomposition-table'.
64189         * lib/uninorm/decomposition-table.h: New file.
64190         * lib/uninorm/decomposition-table.c: New file.
64191         * lib/uninorm/decomposition-table1.h: New file, generated by
64192         gen-uni-tables.
64193         * lib/uninorm/decomposition-table2.h: New file, generated by
64194         gen-uni-tables.
64195         * modules/uninorm/decomposition-table: New file.
64197         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
64198         (UC_DECOMP_*): New enumeration items.
64199         (get_decomposition): New function.
64200         (struct decomp_table): New type.
64201         (output_decomposition, output_decomposition_tables): New functions.
64202         (unicode_composition_exclusions): New variable.
64203         (fill_composition_exclusions, debug_output_composition_tables): New
64204         functions.
64205         (main): Accept one more argument. Invoke fill_composition_exclusions.
64206         Output decomposition and composition tables.
64208         New module 'uninorm/base'.
64209         * lib/uninorm.h: New file.
64210         * lib/unictype.h: Update comment.
64211         * modules/uninorm/base: New file.
64213 2009-02-21  David Lutterkort  <lutter@redhat.com>
64215         Tests for module 'safe-alloc'.
64216         * tests/test-safe-alloc.c: New file.
64217         * modules/safe-alloc-tests: New file.
64219         New module 'safe-alloc'.
64220         * lib/safe-alloc.h: New file.
64221         * lib/safe-alloc.c: New file.
64222         * m4/safe-alloc.m4: New file.
64223         * modules/safe-alloc: New file.
64224         * doc/safe-alloc.texi: New file.
64225         * doc/gnulib.texi: Include it.
64226         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64227         safe-alloc.
64229 2009-02-18  Bruno Haible  <bruno@clisp.org>
64231         Fix link error on non-glibc systems.
64232         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
64233         variable.
64234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64236 2009-02-18  Jim Meyering  <meyering@redhat.com>
64238         fts: avoid used-uninitialized error due to recent change
64239         * lib/fts.c (fts_read): Guard uses of the new member,
64240         parent->fts_n_dirs_remaining, since it's not relevant for
64241         the parent of a directory specified on the command-line.
64243 2009-02-17  James Youngman  <jay@gnu.org>
64244             Bruno Haible  <bruno@clisp.org>
64246         * m4/include_next.m4: Reformulate comment.
64248 2009-02-16  Jim Meyering  <meyering@redhat.com>
64250         fts: add #if guards so that the fts_lgpl module still builds
64251         * lib/fts.c: Guard just-added hash-table-using parts with
64252         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
64253         Reported by Simon Josefsson.
64255 2009-02-15  Bruno Haible  <bruno@clisp.org>
64257         * modules/array-mergesort-tests: New file.
64258         * tests/test-array-mergesort.c: New file.
64260         New module 'array-mergesort'.
64261         * modules/array-mergesort: New file.
64262         * lib/array-mergesort.h: New file.
64264 2009-02-15  Bruno Haible  <bruno@clisp.org>
64266         Fix 2009-02-07 commit.
64267         * lib/gen-uni-tables.c (output_predicate, output_category,
64268         output_combclass, output_bidi_category, output_decimal_digit,
64269         output_digit, output_numeric, output_mirror, output_scripts,
64270         output_ident_category, output_simple_mapping): Fix format directives.
64271         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
64273 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
64275         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
64276         fixes are available from IBM.
64278 2009-02-13  Jim Meyering  <meyering@redhat.com>
64280         fts: arrange not to stat non-directories in more cases
64281         This makes GNU find (when it doesn't need to stat each file)
64282         *much* more efficient at traversing reiserfs file systems.
64283         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
64284         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
64285         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
64286         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
64287         (leaf_optimization_applies): New function.
64288         (LCO_hash, LCO_compare): New helper functions.
64289         (link_count_optimize_ok): New function.
64290         (fts_stat): Initialize new member (if dir).
64291         (fts_read): Decrement parent's fts_n_dirs_remaining count if
64292         we've just stat'ed a directory.  Skip the stat call when possible.
64293         ---
64294         Note this AFS-related exchange:
64295         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
64296         and note find's pioctl call in find/fstype.c.
64297         But that is necessary only if you want to enable the
64298         optimization for AFS, and for now, I don't.
64300         fts: move a function definition "up" (no semantic change)
64301         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
64302         "up" to precede upcoming use of a related function.
64304 2009-02-11  Jim Meyering  <meyering@redhat.com>
64306         fts: correct internal computation of nlinks (optimization-related)
64307         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
64308         whether the current entry is a directory, so don't test it.
64310 2009-02-10  Bruno Haible  <bruno@clisp.org>
64312         Tests for module 'uniwbrk/ulc-wordbreaks'.
64313         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
64314         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
64315         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
64317         Tests for module 'uniwbrk/u32-wordbreaks'.
64318         * modules/uniwbrk/u32-wordbreaks-tests: New file.
64319         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
64321         Tests for module 'uniwbrk/u16-wordbreaks'.
64322         * modules/uniwbrk/u16-wordbreaks-tests: New file.
64323         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
64325         Tests for module 'uniwbrk/u8-wordbreaks'.
64326         * modules/uniwbrk/u8-wordbreaks-tests: New file.
64327         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
64329 2009-02-10  Bruno Haible  <bruno@clisp.org>
64331         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
64332         property.
64333         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
64334         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
64335         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
64337 2009-02-10  Simon Josefsson  <simon@josefsson.org>
64339         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
64340         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
64342 2009-02-10  Bruno Haible  <bruno@clisp.org>
64344         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
64345         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
64346         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
64347         * lib/unilbrk/u8-possible-linebreaks.c: Update.
64348         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
64349         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
64351 2009-02-09  Simon Josefsson  <simon@josefsson.org>
64353         * lib/sockets.h (gl_fd_to_handle): New function.
64355         * tests/test-sockets.c: Call gl_fd_to_handle.
64357 2009-02-09  Bruno Haible  <bruno@clisp.org>
64359         * doc/havelib.texi: Document the conventions on bi-arch systems.
64361 2009-02-08  Bruno Haible  <bruno@clisp.org>
64363         Document the AC_LIB_LINKFLAGS macro.
64364         * doc/havelib.texi: New file, mostly written on 2005-05-24.
64365         * doc/gnulib.texi: Include it.
64367 2009-02-08  Bruno Haible  <bruno@clisp.org>
64369         Fix wrong order of sections, compared to TOC.
64370         * doc/gnulib.texi: Include relocatable-maint.texi after the
64371         "Regular expressions" node, not before.
64373 2009-02-08  Bruno Haible  <bruno@clisp.org>
64375         Tests for module 'unicase/totitle'.
64376         * modules/unicase/totitle-tests: New file.
64378         Tests for module 'unicase/tolower'.
64379         * modules/unicase/tolower-tests: New file.
64381         Tests for module 'unicase/toupper'.
64382         * modules/unicase/toupper-tests: New file.
64383         * tests/unicase/test-mapping-part1.h: New file.
64384         * tests/unicase/test-mapping-part2.h: New file.
64386         New module 'unicase/totitle'.
64387         * modules/unicase/totitle: New file.
64388         * lib/unicase/totitle.c: New file.
64390         New module 'unicase/tolower'.
64391         * modules/unicase/tolower: New file.
64392         * lib/unicase/tolower.c: New file.
64394         New module 'unicase/toupper'.
64395         * modules/unicase/toupper: New file.
64396         * lib/unicase/toupper.c: New file.
64397         * lib/unicase/simple-mapping.h: New file.
64399         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
64400         (mapping_table): New structure.
64401         (output_simple_mapping): New function.
64402         (main): Invoke output_simple_mapping_test and output_simple_mapping.
64403         * modules/gen-uni-tables (Description): Update.
64404         * lib/unicase/toupper.h: New file, automatically generated by
64405         gen-uni-tables.
64406         * lib/unicase/tolower.h: New file, automatically generated by
64407         gen-uni-tables.
64408         * lib/unicase/totitle.h: New file, automatically generated by
64409         gen-uni-tables.
64410         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
64411         gen-uni-tables.
64412         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
64413         gen-uni-tables.
64414         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
64415         gen-uni-tables.
64417         New module 'unicase/base'.
64418         * modules/unicase/base: New file.
64419         * lib/unicase.h: New file.
64421 2009-02-08  Bruno Haible  <bruno@clisp.org>
64423         New module 'uniwbrk/ulc-wordbreaks'.
64424         * modules/uniwbrk/ulc-wordbreaks: New file.
64425         * lib/uniwbrk/ulc-wordbreaks.c: New file.
64427         New module 'uniwbrk/u32-wordbreaks'.
64428         * modules/uniwbrk/u32-wordbreaks: New file.
64429         * lib/uniwbrk/u32-wordbreaks.c: New file.
64431         New module 'uniwbrk/u16-wordbreaks'.
64432         * modules/uniwbrk/u16-wordbreaks: New file.
64433         * lib/uniwbrk/u16-wordbreaks.c: New file.
64435         New module 'uniwbrk/u8-wordbreaks'.
64436         * modules/uniwbrk/u8-wordbreaks: New file.
64437         * lib/uniwbrk/u8-wordbreaks.c: New file.
64438         * lib/uniwbrk/u-wordbreaks.h: New file.
64440         New module 'uniwbrk/table'.
64441         * modules/uniwbrk/table: New file.
64442         * lib/uniwbrk/wbrktable.h: New file.
64443         * lib/uniwbrk/wbrktable.c: New file.
64445         New module 'uniwbrk/wordbreak-property'.
64446         * modules/uniwbrk/wordbreak-property: New file.
64447         * lib/uniwbrk/wordbreak-property.c: New file.
64449         * lib/gen-uni-tables.c (WBP_*): New enum items.
64450         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
64451         (unicode_org_wbp): New variable.
64452         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
64453         New functions.
64454         (wbp_table): New structure.
64455         (output_wbp, output_wbrk_tables): New functions.
64456         (main): Accept additional argument. Invoke fill_org_wbp,
64457         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
64458         output_wbrk_tables.
64459         * modules/gen-uni-tables (Description): Update.
64460         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
64461         gen-uni-tables.
64463         New module 'uniwbrk/base'.
64464         * modules/uniwbrk/base: New file.
64465         * lib/uniwbrk.h: New file.
64467 2009-02-08  Bruno Haible  <bruno@clisp.org>
64469         Update to Unicode 5.1.0.
64470         * lib/gen-uni-tables.c (is_property_alphabetic): Include
64471         U+2185..U+2188.
64472         (is_property_default_ignorable_code_point): Don't include characters
64473         of category Cc or Cs and not-a-characters.
64474         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
64475         U+0D79, U+109E, U+109F, U+A60C.
64476         * lib/unictype/bidi_of.h: Regenerated.
64477         * lib/unictype/blocks.h: Regenerated.
64478         * lib/unictype/categ_C.h: Regenerated.
64479         * lib/unictype/categ_Cf.h: Regenerated.
64480         * lib/unictype/categ_Cn.h: Regenerated.
64481         * lib/unictype/categ_L.h: Regenerated.
64482         * lib/unictype/categ_Ll.h: Regenerated.
64483         * lib/unictype/categ_Lm.h: Regenerated.
64484         * lib/unictype/categ_Lo.h: Regenerated.
64485         * lib/unictype/categ_Lu.h: Regenerated.
64486         * lib/unictype/categ_M.h: Regenerated.
64487         * lib/unictype/categ_Mc.h: Regenerated.
64488         * lib/unictype/categ_Me.h: Regenerated.
64489         * lib/unictype/categ_Mn.h: Regenerated.
64490         * lib/unictype/categ_N.h: Regenerated.
64491         * lib/unictype/categ_Nd.h: Regenerated.
64492         * lib/unictype/categ_Nl.h: Regenerated.
64493         * lib/unictype/categ_No.h: Regenerated.
64494         * lib/unictype/categ_P.h: Regenerated.
64495         * lib/unictype/categ_Pd.h: Regenerated.
64496         * lib/unictype/categ_Pe.h: Regenerated.
64497         * lib/unictype/categ_Pf.h: Regenerated.
64498         * lib/unictype/categ_Pi.h: Regenerated.
64499         * lib/unictype/categ_Po.h: Regenerated.
64500         * lib/unictype/categ_Ps.h: Regenerated.
64501         * lib/unictype/categ_S.h: Regenerated.
64502         * lib/unictype/categ_Sk.h: Regenerated.
64503         * lib/unictype/categ_Sm.h: Regenerated.
64504         * lib/unictype/categ_So.h: Regenerated.
64505         * lib/unictype/categ_of.h: Regenerated.
64506         * lib/unictype/combining.h: Regenerated.
64507         * lib/unictype/ctype_alnum.h: Regenerated.
64508         * lib/unictype/ctype_alpha.h: Regenerated.
64509         * lib/unictype/ctype_graph.h: Regenerated.
64510         * lib/unictype/ctype_lower.h: Regenerated.
64511         * lib/unictype/ctype_print.h: Regenerated.
64512         * lib/unictype/ctype_punct.h: Regenerated.
64513         * lib/unictype/ctype_upper.h: Regenerated.
64514         * lib/unictype/decdigit.h: Regenerated.
64515         * lib/unictype/digit.h: Regenerated.
64516         * lib/unictype/mirror.h: Regenerated.
64517         * lib/unictype/numeric.h: Regenerated.
64518         * lib/unictype/pr_alphabetic.h: Regenerated.
64519         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
64520         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
64521         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
64522         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
64523         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
64524         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
64525         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
64526         * lib/unictype/pr_combining.h: Regenerated.
64527         * lib/unictype/pr_dash.h: Regenerated.
64528         * lib/unictype/pr_decimal_digit.h: Regenerated.
64529         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
64530         * lib/unictype/pr_deprecated.h: Regenerated.
64531         * lib/unictype/pr_diacritic.h: Regenerated.
64532         * lib/unictype/pr_extender.h: Regenerated.
64533         * lib/unictype/pr_format_control.h: Regenerated.
64534         * lib/unictype/pr_grapheme_base.h: Regenerated.
64535         * lib/unictype/pr_grapheme_extend.h: Regenerated.
64536         * lib/unictype/pr_grapheme_link.h: Regenerated.
64537         * lib/unictype/pr_id_continue.h: Regenerated.
64538         * lib/unictype/pr_id_start.h: Regenerated.
64539         * lib/unictype/pr_ideographic.h: Regenerated.
64540         * lib/unictype/pr_ignorable_control.h: Regenerated.
64541         * lib/unictype/pr_lowercase.h: Regenerated.
64542         * lib/unictype/pr_math.h: Regenerated.
64543         * lib/unictype/pr_numeric.h: Regenerated.
64544         * lib/unictype/pr_other_alphabetic.h: Regenerated.
64545         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
64546         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
64547         * lib/unictype/pr_other_id_continue.h: Regenerated.
64548         * lib/unictype/pr_other_lowercase.h: Regenerated.
64549         * lib/unictype/pr_other_math.h: Regenerated.
64550         * lib/unictype/pr_punctuation.h: Regenerated.
64551         * lib/unictype/pr_sentence_terminal.h: Regenerated.
64552         * lib/unictype/pr_soft_dotted.h: Regenerated.
64553         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
64554         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
64555         * lib/unictype/pr_unified_ideograph.h: Regenerated.
64556         * lib/unictype/pr_uppercase.h: Regenerated.
64557         * lib/unictype/pr_xid_continue.h: Regenerated.
64558         * lib/unictype/pr_xid_start.h: Regenerated.
64559         * lib/unictype/pr_zero_width.h: Regenerated.
64560         * lib/unictype/scripts.h: Regenerated.
64561         * lib/unictype/scripts_byname.gperf: Regenerated.
64562         * lib/unictype/sy_java_ident.h: Regenerated.
64563         * lib/unilbrk/lbrkprop1.h: Regenerated.
64564         * lib/unilbrk/lbrkprop2.h: Regenerated.
64565         * tests/unictype/test-categ_C.c: Regenerated.
64566         * tests/unictype/test-categ_Cf.c: Regenerated.
64567         * tests/unictype/test-categ_Cn.c: Regenerated.
64568         * tests/unictype/test-categ_L.c: Regenerated.
64569         * tests/unictype/test-categ_Ll.c: Regenerated.
64570         * tests/unictype/test-categ_Lm.c: Regenerated.
64571         * tests/unictype/test-categ_Lo.c: Regenerated.
64572         * tests/unictype/test-categ_Lu.c: Regenerated.
64573         * tests/unictype/test-categ_M.c: Regenerated.
64574         * tests/unictype/test-categ_Mc.c: Regenerated.
64575         * tests/unictype/test-categ_Me.c: Regenerated.
64576         * tests/unictype/test-categ_Mn.c: Regenerated.
64577         * tests/unictype/test-categ_N.c: Regenerated.
64578         * tests/unictype/test-categ_Nd.c: Regenerated.
64579         * tests/unictype/test-categ_Nl.c: Regenerated.
64580         * tests/unictype/test-categ_No.c: Regenerated.
64581         * tests/unictype/test-categ_P.c: Regenerated.
64582         * tests/unictype/test-categ_Pd.c: Regenerated.
64583         * tests/unictype/test-categ_Pe.c: Regenerated.
64584         * tests/unictype/test-categ_Pf.c: Regenerated.
64585         * tests/unictype/test-categ_Pi.c: Regenerated.
64586         * tests/unictype/test-categ_Po.c: Regenerated.
64587         * tests/unictype/test-categ_Ps.c: Regenerated.
64588         * tests/unictype/test-categ_S.c: Regenerated.
64589         * tests/unictype/test-categ_Sk.c: Regenerated.
64590         * tests/unictype/test-categ_Sm.c: Regenerated.
64591         * tests/unictype/test-categ_So.c: Regenerated.
64592         * tests/unictype/test-ctype_alnum.c: Regenerated.
64593         * tests/unictype/test-ctype_alpha.c: Regenerated.
64594         * tests/unictype/test-ctype_graph.c: Regenerated.
64595         * tests/unictype/test-ctype_lower.c: Regenerated.
64596         * tests/unictype/test-ctype_print.c: Regenerated.
64597         * tests/unictype/test-ctype_punct.c: Regenerated.
64598         * tests/unictype/test-ctype_upper.c: Regenerated.
64599         * tests/unictype/test-decdigit.h: Regenerated.
64600         * tests/unictype/test-digit.h: Regenerated.
64601         * tests/unictype/test-numeric.h: Regenerated.
64602         * tests/unictype/test-pr_alphabetic.c: Regenerated.
64603         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
64604         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
64605         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
64606         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
64607         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
64608         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
64609         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
64610         * tests/unictype/test-pr_combining.c: Regenerated.
64611         * tests/unictype/test-pr_dash.c: Regenerated.
64612         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
64613         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
64614         * tests/unictype/test-pr_deprecated.c: Regenerated.
64615         * tests/unictype/test-pr_diacritic.c: Regenerated.
64616         * tests/unictype/test-pr_extender.c: Regenerated.
64617         * tests/unictype/test-pr_format_control.c: Regenerated.
64618         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
64619         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
64620         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
64621         * tests/unictype/test-pr_id_continue.c: Regenerated.
64622         * tests/unictype/test-pr_id_start.c: Regenerated.
64623         * tests/unictype/test-pr_ideographic.c: Regenerated.
64624         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
64625         * tests/unictype/test-pr_lowercase.c: Regenerated.
64626         * tests/unictype/test-pr_math.c: Regenerated.
64627         * tests/unictype/test-pr_numeric.c: Regenerated.
64628         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
64629         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
64630         Regenerated.
64631         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
64632         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
64633         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
64634         * tests/unictype/test-pr_other_math.c: Regenerated.
64635         * tests/unictype/test-pr_punctuation.c: Regenerated.
64636         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
64637         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
64638         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
64639         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
64640         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
64641         * tests/unictype/test-pr_uppercase.c: Regenerated.
64642         * tests/unictype/test-pr_xid_continue.c: Regenerated.
64643         * tests/unictype/test-pr_xid_start.c: Regenerated.
64644         * tests/unictype/test-pr_zero_width.c: Regenerated.
64646         Update to Unicode 5.1.0.
64647         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
64648         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
64649         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
64650         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
64651         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
64652         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
64653         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
64654         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
64655         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
64656         (nonspacing_table_ind): Update.
64657         * tests/uniwidth/test-uc_width2.sh: Update expected result.
64659         Update to Unicode 5.1.0.
64660         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
64661         code transform.
64662         * lib/uniname/uniname.c (unicode_character_name,
64663         unicode_name_character): Add the range 0x1Fxxx to the code transform.
64664         * lib/uniname/uninames.h: Regenerated.
64665         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
64667 2009-02-07  Bruno Haible  <bruno@clisp.org>
64669         Merge gen-ctype and gen-lbrk into a single program.
64670         * lib/gen-uni-tables.c: New file, incorporating
64671         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
64672         Add directory prefixes to the names of the generated files.
64673         * lib/unictype/gen-ctype.c: Remove file.
64674         * lib/unilbrk/gen-lbrk.c: Remove file.
64675         * modules/gen-uni-tables: New file.
64676         * modules/unictype/gen-ctype: Remove file.
64677         * modules/unilbrk/gen-lbrk: Remove file.
64679 2009-02-07  Bruno Haible  <bruno@clisp.org>
64681         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
64683         New module 'unistr/u32-strcoll'.
64684         * modules/unistr/u32-strcoll: New file.
64685         * lib/unistr/u32-strcoll.c: New file.
64687         New module 'unistr/u16-strcoll'.
64688         * modules/unistr/u16-strcoll: New file.
64689         * lib/unistr/u16-strcoll.c: New file.
64691         New module 'unistr/u8-strcoll'.
64692         * modules/unistr/u8-strcoll: New file.
64693         * lib/unistr/u8-strcoll.c: New file.
64694         * lib/unistr/u-strcoll.h: New file.
64696 2009-02-07  Bruno Haible  <bruno@clisp.org>
64698         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
64699         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64700         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64701         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
64702         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
64703         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
64705 2009-02-07  Bruno Haible  <bruno@clisp.org>
64707         Make 64-bit clean.
64708         * lib/unictype/gen-ctype.c (output_predicate, output_category,
64709         output_combclass, output_bidi_category, output_decimal_digit,
64710         output_digit, output_numeric, output_mirror, output_scripts,
64711         output_ident_category): Use proper width specifier in format strings.
64713 2009-02-07  Bruno Haible  <bruno@clisp.org>
64715         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
64716         failure behaviour.
64718 2009-02-07  Jim Meyering  <meyering@redhat.com>
64720         regex: avoid compilation failure with upcoming gcc-4.4
64721         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
64722         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
64723         "... error: integer overflow in preprocessor expression".
64725 2009-02-05  Ben Pfaff  <blp@gnu.org>
64727         Fix link errors on Windows when close module is used.
64728         * modules/close: Add $(LIB_CLOSE) to Link section.
64729         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
64730         $(LIB_CLOSE) on Windows.
64732 2009-02-05  Jim Meyering  <meyering@redhat.com>
64734         still avoid unused-parameter warnings, but do it cleanly
64735         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
64736         (get_fs_usage): Cast to void instead.
64737         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
64738         (dev_from_mount_options, read_file_system_list): Cast to void.
64739         Prompted by Bruno Haible.
64741 2009-02-04  Jim Meyering  <meyering@redhat.com>
64743         fsusage.c: correct copyright year
64744         * lib/fsusage.c: Reflect year in which the change is pushed into
64746         avoid misc. warnings
64747         * lib/fsusage.c (UNUSED_PARAM): Define.
64748         (get_fs_usage): Mark parameter "disk" as unused.
64749         * lib/getugroups.c (getgrent): Use "void" in prototype.
64750         * lib/mountlist.c: Mark unused parameters.
64751         (read_file_system_list): Declare a local with "const".
64752         * lib/nanosleep.c (getnow): Declare static.
64753         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
64755         dirfd: set errno upon failure
64756         * lib/dirfd.c: Include <errno.h>.
64757         Set errno to ENOTSUP when returning -1.
64758         * modules/dirfd (Depends-on): Add errno.
64759         Suggested by John Kodis <kodis@comcast.net>.
64761 2009-02-01  Bruno Haible  <bruno@clisp.org>
64763         Don't assume sizeof (long) >= sizeof (void *).
64764         * lib/memcmp.c: Include stdint.h.
64765         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
64766         srcp2 to 'const byte *'.
64767         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
64768         types to uintptr_t.
64769         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
64770         * modules/memcmp (Depends-on): Add stdint.
64771         Reported by Ozkan Sezer <sezeroz@gmail.com>.
64773 2009-01-30  Eric Blake  <ebb9@byu.net>
64775         fix more require-before-expand issues
64776         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
64777         expand, AC_PROG_AWK.
64778         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
64780 2009-01-28  Eric Blake  <ebb9@byu.net>
64782         version-etc: use consistent URL formatting
64783         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
64784         Improve formatting.  Use fputs for string without %.
64786 2009-01-28  Jim Meyering  <meyering@redhat.com>
64788         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
64789         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
64790         "underquoted definition of NAME" from autoconf-2.59.
64792 2009-01-28  Bruno Haible  <bruno@clisp.org>
64794         * doc/gnulib.texi: Add "Obsolete modules" to index.
64796 2009-01-28  Jim Meyering  <meyering@redhat.com>
64798         useless-if-before-free: recognize more variants
64799         * build-aux/useless-if-before-free: Also recognize e.g.,
64800         if (NULL != p) free (p);
64802 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
64804         test-getaddrinfo: skip (don't fail) this test when there's no network
64805         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
64806         on the presumption that it means you lack network access.
64808 2009-01-26  Jim Meyering  <meyering@redhat.com>
64810         fflush: avoid warnings on modern systems
64811         * lib/fflush.c (rpl_fflush): Move declarations of locals,
64812         pos and result, into scopes where they're used.
64814 2009-01-26  Eric Blake  <ebb9@byu.net>
64816         Silence warning reintroduced by recent extensions patch.
64817         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
64818         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
64819         autoconf.
64821         Backport improved autoconf semantics of AC_DEFUN_ONCE.
64822         * m4/00gnulib.m4: New file.
64823         * gnulib-tool (func_get_filelist): Always use it.
64824         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
64825         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
64827 2009-01-25  Bruno Haible  <bruno@clisp.org>
64829         Make test-quotearg work on MacOS X and AIX.
64830         * tests/test-quotearg.sh: New file.
64831         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
64832         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
64833         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
64834         include <libintl.h>.
64835         (fake_locale): Remove variable.
64836         (gettext, dgettext, dcgettext): Remove functions.
64837         (main): Instead of setting a fake locale, set a real locale. Call
64838         textdomain and bindtextdomain.
64839         * modules/quotearg-tests (Files): Add the new files.
64840         (Depends-on): Add gettext, setenv, unsetenv.
64841         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64842         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
64843         Augment TESTS_ENVIRONMENT.
64845 2009-01-25  Bruno Haible  <bruno@clisp.org>
64847         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
64848         fr_FR.ISO8859-1 locale on MacOS X.
64849         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
64850         ja_JP.eucJP locale on MacOS X.
64851         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
64852         zh_CN.GB18030 locale on MacOS X.
64854 2009-01-25  Bruno Haible  <bruno@clisp.org>
64856         Avoid link errors on MacOS X 10.3.
64857         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
64858         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
64860 2009-01-25  Bruno Haible  <bruno@clisp.org>
64862         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
64863         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
64864         * modules/pipe (Files): Remove m4/posix_spawn.m4.
64865         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
64866         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
64867         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
64868         posix_spawnattr_init, posix_spawnattr_setsigmask,
64869         posix_spawnattr_setflags, posix_spawnattr_destroy.
64871         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
64872         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
64873         * modules/execute (Files): Remove m4/posix_spawn.m4.
64874         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
64875         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
64876         posix_spawnattr_init, posix_spawnattr_setsigmask,
64877         posix_spawnattr_setflags, posix_spawnattr_destroy.
64879 2009-01-25  Bruno Haible  <bruno@clisp.org>
64881         * lib/glthread/threadlib.c: Include <stdlib.h>.
64883 2009-01-25  Bruno Haible  <bruno@clisp.org>
64885         * lib/glthread/threadlib.c (dummy): New declaration.
64887 2009-01-25  Bruno Haible  <bruno@clisp.org>
64889         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
64890         multibyte characters also for the GB18030 encoding. Don't crash when
64891         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
64893 2009-01-25  Bruno Haible  <bruno@clisp.org>
64895         Avoid redefining 'struct random_data' on OSF/1 5.1.
64896         * lib/stdlib.in.h: Include <random.h> if it exists.
64897         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
64898         HAVE_RANDOM_H. Include <random.h> when testing whether
64899         'struct random_data' exists.
64900         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
64902 2009-01-25  Bruno Haible  <bruno@clisp.org>
64904         Don't install charset.alias on MacOS X >= 10.3.
64905         * lib/localcharset.c (DARWIN7): New macro.
64906         (get_charset_aliases): Hardcode the result for Darwin7.
64907         * modules/localcharset (install-exec-local): Don't install
64908         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
64910 2009-01-25  Bruno Haible  <bruno@clisp.org>
64912         Don't install charset.alias on mingw and Cygwin.
64913         * modules/localcharset (install-exec-local): Don't install
64914         charset.alias on mingw and Cygwin, if the file does not yet exist.
64915         The result for these platforms is hardcoded in localcharset.c.
64917 2009-01-25  Bruno Haible  <bruno@clisp.org>
64919         Make it possible again to use AC_GNU_SOURCE together with gnulib.
64920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
64921         before requiring AC_USE_SYSTEM_EXTENSIONS.
64923 2009-01-25  Jim Meyering  <meyering@redhat.com>
64925         c-strtod: avoid warnings
64926         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
64927         "assignment discards qualifiers from pointer target type" warnings.
64929 2009-01-24  Bruno Haible  <bruno@clisp.org>
64931         Add support for non-UTF-8 locales on MacOS X.
64932         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
64933         canonical encodings. For Darwin 7 and newer, don't map traditional
64934         encodings to UTF-8.
64935         Reported by Vincent Lefevre <vincent@vinc17.org>
64936         at <http://savannah.gnu.org/bugs/?25235>.
64938 2009-01-24  Bruno Haible  <bruno@clisp.org>
64940         * doc/gnulib.texi (Obsolete modules): New section.
64941         Reported by Mike Frysinger <vapier@gentoo.org>.
64943 2009-01-24  Bruno Haible  <bruno@clisp.org>
64945         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
64946         (%.dvi): New rule.
64948 2009-01-24  Bruno Haible  <bruno@clisp.org>
64950         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
64951         Reported by Eric Blake.
64953 2009-01-24  Bruno Haible  <bruno@clisp.org>
64955         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
64956         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
64957         Reported by Gary V. Vaughan <gary@gnu.org>.
64959 2009-01-24  Bruno Haible  <bruno@clisp.org>
64961         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
64963 2009-01-23  Bruno Haible  <bruno@clisp.org>
64965         Make c-strtod, c-strtold usable in libraries.
64966         * lib/c-strtod.c: Include string.h instead of xalloc.h.
64967         (C_STRTOD): Call strdup instead of xstrdup.
64968         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
64969         * modules/c-strtold (Depends-on): Likewise.
64970         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
64971         * NEWS: Mention the change.
64972         Reported by Michael Gold <mgold@ncf.ca>.
64974 2009-01-23  Jim Meyering  <meyering@redhat.com>
64976         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
64977         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
64978         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
64980 2009-01-23  Simon Josefsson  <simon@josefsson.org>
64982         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
64983         GNU CoreUtils.
64984         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
64985         * modules/version-etc (Description): Update.
64987 2009-01-22  Bruno Haible  <bruno@clisp.org>
64989         Cache the C locale object.
64990         * lib/c-strtod.c (c_locale_cache): New variable.
64991         (c_locale): New function.
64992         (C_STRTOD): Use it, and don't call freelocale.
64993         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
64994         Suggested by Paolo Bonzini.
64996 2009-01-21  Bruno Haible  <bruno@clisp.org>
64998         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
64999         conditions other than overflow.
65001 2009-01-21  Bruno Haible  <bruno@clisp.org>
65003         * lib/c-strtod.c: Include errno.h.
65004         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
65005         value from STRTOD_L and STRTOD.
65007 2009-01-21  Bruno Haible  <bruno@clisp.org>
65008         and Jim Meyering  <meyering@redhat.com>
65010         nanosleep: skip configure test (fail it) for apple universal builds
65011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
65012         universal builds, assume that nanosleep does not work.
65013         * modules/nanosleep (Depends-on): Add multiarch.
65015         mktime: skip configure test (fail it) for apple universal builds
65016         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
65017         universal builds, assume that mktime does not work.
65018         * modules/mktime (Depends-on): Add multiarch.
65020 2009-01-21  Eric Blake  <ebb9@byu.net>
65022         multiarch: avoid expand-before-require warning
65023         * modules/multiarch (configure.ac): Require, rather than expand,
65024         gl_MULTIARCH.
65025         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
65026         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
65027         enforce that all clients require it.  Partial reversion of
65028         2008-12-29 patch.
65030         error: avoid expand-before-require warning
65031         * modules/errno (configure.ac): Require, rather than expand,
65032         gl_HEADER_ERRNO_H.
65033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
65034         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
65035         enforce that all clients require it.
65037         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
65038         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
65039         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
65040         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
65042 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
65044         Revert:
65045         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
65047         regex: do not depend on obsolete modules.
65048         * modules/regex: Remove memcmp and memmove.
65050 2009-01-20  Bruno Haible  <bruno@clisp.org>
65052         Make the 'link' module link on Windows NT 4.
65053         * lib/link.c (_WIN32_WINNT): Don't define.
65054         (CreateHardLinkFuncType): New type.
65055         (CreateHardLinkFunc, initialized): New variables.
65056         (initialize): New function.
65057         (link): Invoke CreateHardLink indirectly through the function pointer.
65059 2009-01-20  Bruno Haible  <bruno@clisp.org>
65061         Fix compilation failure on mingw.
65062         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
65064 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
65066         * doc/c-strtod.texi: Mention a couple of restrictions.
65068 2009-01-20  Jim Meyering  <meyering@redhat.com>
65070         gettimeofday: move more declarations out of functions
65071         * lib/gettimeofday.c: Move extern declarations of tzset and
65072         gmtime out of containing functions.  Prompted by Bruno Haible.
65074 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
65076         regex: do not depend on obsolete modules.
65077         * modules/regex: Remove memcmp and memmove.
65079 2009-01-19  Bruno Haible  <bruno@clisp.org>
65081         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
65082         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
65083         gl_BIGENDIAN, not AC_C_BIGENDIAN.
65084         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
65085         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
65087 2009-01-19  Bruno Haible  <bruno@clisp.org>
65089         * tests/test-link.c: Include <errno.h>.
65090         (main): Exit with code 77 when a hard link cannot be created due to
65091         the file system.
65092         * tests/test-link.sh: Skip test when a hard link cannot be created due
65093         to the file system.
65094         Suggested by Eric Blake.
65096 2009-01-19  Martin Lambers  <marlam@marlam.de>
65098         * modules/link-tests: New file.
65099         * tests/test-link.sh: New file.
65100         * tests/test-link.c: New file.
65102 2009-01-19  Eric Blake  <ebb9@byu.net>
65104         doc: mention another function added in cygwin 1.7.0
65105         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
65106         Another new function in cygwin 1.7.
65108 2009-01-19  Bruno Haible  <bruno@clisp.org>
65110         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
65111         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
65112         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
65113         gl_BIGENDIAN, not AC_C_BIGENDIAN.
65114         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
65115         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
65116         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65117         * m4/md4.m4 (gl_MD4): Likewise.
65118         * m4/md5.m4 (gl_MD5): Likewise.
65119         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
65120         * m4/sha1.m4 (gl_SHA1): Likewise.
65121         * m4/sha256.m4 (gl_SHA256): Likewise.
65122         * m4/sha512.m4 (gl_SHA512): Likewise.
65124 2009-01-19  Bruno Haible  <bruno@clisp.org>
65126         * modules/uniname/uniname-tests (Depends-on): Add progname.
65127         * tests/uniname/test-uninames.c: Include progname.h.
65128         (main): Call set_program_name.
65130         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
65131         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
65132         (main): Call set_program_name.
65134         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
65135         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
65136         (main): Call set_program_name.
65138         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
65139         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
65140         (main): Call set_program_name.
65142         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
65143         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
65144         (main): Call set_program_name.
65146         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
65147         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
65148         (main): Call set_program_name.
65150         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
65151         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
65152         (main): Call set_program_name.
65154         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
65155         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
65156         (main): Call set_program_name.
65158         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
65159         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
65160         (main): Call set_program_name.
65162 2009-01-19  Eric Blake  <ebb9@byu.net>
65164         test-unistd: test previous patch
65165         * tests/test-unistd.c: Test *_FILENO macros.
65167         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
65168         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65169         Guarantee a definition.
65170         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
65171         * modules/unistd-safer (Depends-on): Add dependency on unistd.
65172         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
65173         * lib/dup-safer.c (STDERR_FILENO): Likewise.
65174         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65175         Likewise.
65176         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
65177         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
65178         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65179         Likewise.
65180         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
65181         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
65182         (STDERR_FILENO): Likewise.
65183         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
65184         (STDERR_FILENO): Likewise.
65185         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
65186         (STDERR_FILENO): Likewise.
65187         Reported by Elbert Pol.
65189 2009-01-19  Eric Blake  <ebb9@byu.net>
65191         doc: mention more functions added in cygwin 1.7.0
65192         * doc/posix-functions/abort.texi (abort): Update wording related
65193         to cygwin.
65194         * doc/posix-functions/daylight.texi (daylight): Likewise.
65195         * doc/posix-functions/optarg.texi (optarg): Likewise.
65196         * doc/posix-functions/optarg.texi (opterr): Likewise.
65197         * doc/posix-functions/optarg.texi (optind): Likewise.
65198         * doc/posix-functions/optarg.texi (optopt): Likewise.
65199         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
65200         worked in 1.5.x, and was withdrawn in 1.7.
65201         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
65202         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
65203         cygwin versions.
65204         * doc/posix-functions/perror.texi (perror): Likewise.
65205         * doc/posix-functions/printf.texi (printf): Likewise.
65206         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
65207         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
65208         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
65209         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
65210         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
65211         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
65212         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
65213         Likewise.
65214         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
65215         Likewise.
65216         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
65217         this function.
65218         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
65219         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
65220         Likewise.
65221         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
65222         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
65223         * doc/posix-functions/confstr.texi (confstr): Likewise.
65224         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
65225         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
65226         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
65227         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
65228         * doc/posix-functions/fputws.texi (fputws): Likewise.
65229         * doc/posix-functions/fwide.texi (fwide): Likewise.
65230         * doc/posix-functions/getwc.texi (getwc): Likewise.
65231         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
65232         * doc/posix-functions/putwc.texi (putwc): Likewise.
65233         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
65234         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
65235         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
65236         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
65237         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
65238         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
65239         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
65240         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
65241         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
65242         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
65243         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
65245 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
65247         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
65248         * lib/ioctl.c: Include <sys/ioctl.h>.
65250 2009-01-19  Simon Josefsson  <simon@josefsson.org>
65252         * modules/getdate-tests (Depends-on): Add progname.
65253         * tests/test-getdate.c: Use progname module, to avoid link errors
65254         on non-glibc systems.
65256 2009-01-18  Simon Josefsson  <simon@josefsson.org>
65258         * modules/filenamecat-tests (Depends-on): Add progname.
65259         * modules/fstrcmp-tests (Depends-on): Likewise.
65261         * tests/test-filenamecat.c: Use progname module, to avoid link
65262         errors on non-glibc systems.
65263         * tests/test-fstrcmp.c: Likewise.
65265 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
65267         gettimeofday: avoid warning: nested extern declaration of 'localtime'
65268         * lib/gettimeofday.c: Move extern declaration out of function.
65270 2009-01-18  Bruno Haible  <bruno@clisp.org>
65272         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
65273         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
65274         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
65276 2009-01-18  Bruno Haible  <bruno@clisp.org>
65278         * lib/strftime.c (MEMPCPY): Remove unused macro.
65279         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
65281 2009-01-18  Martin Lambers  <marlam@marlam.de>
65283         New module 'link'.
65284         * lib/unistd.in.h (link): New declaration.
65285         * lib/link.c: New file.
65286         * m4/link.m4: New file.
65287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
65288         HAVE_LINK.
65289         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
65290         * modules/link: New file.
65291         * doc/posix-functions/link.texi: Mention the new module.
65293 2009-01-18  Bruno Haible  <bruno@clisp.org>
65295         * tests/test-avltree_list.c (main): Call set_program_name.
65296         * tests/test-avltree_oset.c (main): Likewise.
65297         * tests/test-obstack-printf.c: Include progname.h.
65298         (main): Call set_program_name.
65299         * tests/test-quotearg.c: Include progname.h.
65300         (main): Call set_program_name.
65301         * tests/test-xmemdup0.c: Include progname.h.
65302         (main): Call set_program_name.
65304 2009-01-18  Bruno Haible  <bruno@clisp.org>
65306         New module 'alphasort'.
65307         * lib/dirent.in.h (alphasort): New declaration.
65308         * lib/alphasort.c: New file, from glibc with modifications.
65309         * m4/alphasort.m4: New file.
65310         * modules/alphasort: New file.
65311         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
65312         HAVE_ALPHASORT.
65313         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
65314         HAVE_ALPHASORT.
65315         * doc/posix-functions/alphasort.texi: Mention the new module and the
65316         portability problems.
65318 2009-01-18  Bruno Haible  <bruno@clisp.org>
65320         New module 'scandir'.
65321         * lib/dirent.in.h (scandir): New declaration.
65322         * lib/scandir.c: New file, from glibc with modifications.
65323         * m4/scandir.m4: New file.
65324         * modules/scandir: New file.
65325         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
65326         HAVE_SCANDIR.
65327         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
65328         HAVE_SCANDIR.
65329         * doc/posix-functions/scandir.texi: Mention the new module and the
65330         portability problems.
65332 2009-01-17  Bruno Haible  <bruno@clisp.org>
65334         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
65335         Update documentation.
65336         (func_remove_suffix): Escape all dots in the suffix. Update
65337         documentation.
65338         (func_filter_filelist): Update documentation.
65339         Reported by Ralf Wildenhues.
65341 2009-01-17  Bruno Haible  <bruno@clisp.org>
65343         * modules/dprintf-posix-tests: New file.
65344         * tests/test-dprintf-posix.sh: New file.
65345         * tests/test-dprintf-posix.c: New file.
65347         New modules 'dprintf', 'dprintf-posix'.
65348         * lib/stdio.in.h (dprintf): New declaration.
65349         * lib/dprintf.c: New file.
65350         * m4/dprintf.m4: New file.
65351         * m4/dprintf-posix.m4: New file.
65352         * modules/dprintf: New file.
65353         * modules/dprintf-posix: New file.
65354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
65355         HAVE_DPRINTF, REPLACE_DPRINTF.
65356         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
65357         HAVE_DPRINTF, REPLACE_DPRINTF.
65358         * doc/posix-functions/dprintf.texi: Mention the new modules.
65360 2009-01-17  Bruno Haible  <bruno@clisp.org>
65362         * modules/vdprintf-posix-tests: New file.
65363         * tests/test-vdprintf-posix.sh: New file.
65364         * tests/test-vdprintf-posix.c: New file.
65366         New modules 'vdprintf', 'vdprintf-posix'.
65367         * lib/stdio.in.h (vdprintf): New declaration.
65368         * lib/vdprintf.c: New file.
65369         * m4/vdprintf.m4: New file.
65370         * m4/vdprintf-posix.m4: New file.
65371         * modules/vdprintf: New file.
65372         * modules/vdprintf-posix: New file.
65373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
65374         HAVE_VDPRINTF, REPLACE_VDPRINTF.
65375         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
65376         HAVE_VDPRINTF, REPLACE_VDPRINTF.
65377         * doc/posix-functions/vdprintf.texi: Mention the new modules.
65379 2009-01-17  Bruno Haible  <bruno@clisp.org>
65381         Fix replacement of fopen on mingw.
65382         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
65383         mingw.
65385 2009-01-17  Bruno Haible  <bruno@clisp.org>
65387         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
65388         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
65390 2009-01-17  Bruno Haible  <bruno@clisp.org>
65392         Avoid test-fflush2.sh failure on mingw.
65393         * tests/test-fflush2.c: Include binary-io.h.
65394         (main): Put standard input into binary mode.
65395         * modules/fflush-tests (Depends-on): Add binary-io.
65397 2009-01-17  Bruno Haible  <bruno@clisp.org>
65399         * lib/wchar.in.h: In another particular situation, include only the
65400         system's <wchar.h> file.
65401         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
65402         Reported by Albert Chin-A-Young <china@thewrittenword.com>
65403         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
65405 2009-01-17  Bruno Haible  <bruno@clisp.org>
65407         Support for stripping executables in --enable-relocatable.
65408         * build-aux/install-reloc: Expect one more argument, or an environment
65409         variable RELOC_STRIP_PROG. If set, strip the destination program and
65410         its wrapper.
65411         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
65412         RELOC_STRIP_PROG.
65413         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
65414         to set RELOCATABLE_STRIP.
65415         * NEWS: Mention the new Makefile requirement.
65417 2009-01-17  Bruno Haible  <bruno@clisp.org>
65419         * build-aux/install-reloc: Remove debugging information left over by
65420         C compiler on MacOS X.
65422 2009-01-17  Bruno Haible  <bruno@clisp.org>
65424         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
65425         * lib/progreloc.c (find_executable): Fix type of pointer passed to
65426         _NSGetExecutablePath.
65428 2009-01-16  Jim Meyering  <meyering@redhat.com>
65430         strerror: avoid warnings about discarding "const"
65431         * lib/strerror.c (rpl_strerror): Instead of returning a const
65432         string from each and every "case", use a variable, and add a single
65433         cast after the switch.
65435 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
65437         * lib/arpa_inet.in.h: Add extern "C" block for C++.
65439 2009-01-16  Bruno Haible  <bruno@clisp.org>
65441         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
65442         array initializer syntax that also works in C++ mode.
65443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65445 2009-01-16  Jim Meyering  <meyering@redhat.com>
65447         poll: suppress a warning
65448         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
65449         to ignore "...unsigned expression < 0 is always false" warnings.
65451 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
65453         poll: remove declarations of unused variables
65454         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
65455         sockbuf and optlen.
65457 2009-01-15  Bruno Haible  <bruno@clisp.org>
65459         Make fflush-after-ungetc POSIX compliant on BSD systems.
65460         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
65461         (clear_ungetc_buffer): Implement also for other systems.
65462         (rpl_fflush): On glibc systems, invoke
65463         clear_ungetc_buffer_preserving_position. Otherwise, invoke
65464         clear_ungetc_buffer after fetching the stream's position, not before.
65466 2009-01-15  Bruno Haible  <bruno@clisp.org>
65468         Make fflush-after-ungetc POSIX compliant on glibc systems.
65469         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
65470         after ungetc.
65471         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
65472         (rpl_fflush): On glibc systems, simply call the system's fflush
65473         function after clearing the ungetc buffer.
65474         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
65475         Instead, lseek only to the end of file, then use the system's fseeko
65476         for the rest. On glibc systems, reset the EOF indicator bit.
65478 2009-01-15  Jim Meyering  <meyering@redhat.com>
65480         openmp.m4: revert quote-adding change, for portability to older autoconf
65481         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
65482         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
65483         Simon Josefsson noticed the problem when using autoconf-2.61.
65485 2009-01-15  Bruno Haible  <bruno@clisp.org>
65487         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
65488         * tests/test-fflush2.c (ASSERT): Always fail.
65489         (main): Add two tests for fflush() after ungetc(), taking into account
65490         the Austin Group's clarification.
65491         Suggested by Eric Blake.
65493 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
65495         mktime.m4: remove K&R-style function prototypes
65496         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
65497         for the Sun C++ compiler.
65499 2009-01-14  Bruno Haible  <bruno@clisp.org>
65501         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
65502         while including <wchar.h>.
65503         * lib/wchar.in.h: In two particular situations on HP-UX, include only
65504         the system's <wchar.h> file.
65505         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65507 2009-01-14  Bruno Haible  <bruno@clisp.org>
65509         * m4/csharp.m4: Don't mention gettext on the serial number line.
65510         * m4/csharpexec.m4: Likewise.
65511         * m4/eaccess.m4: Likewise.
65512         * m4/javaexec.m4: Likewise.
65513         * m4/sig_atomic_t.m4: Likewise.
65514         * m4/tmpdir.m4: Likewise.
65515         * m4/intldir.m4: Bump gettext version.
65516         * m4/lib-ld.m4: Likewise.
65518 2009-01-14  Bruno Haible  <bruno@clisp.org>
65520         * lib/progname.c (set_program_name): Add more comments.
65521         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
65523 2009-01-14  Simon Josefsson  <simon@josefsson.org>
65525         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
65526         were sys/stat.h does not define it.
65528 2009-01-14  Jim Meyering  <meyering@redhat.com>
65530         many *.m4 files: improve m4 quoting
65531         99% of this change was performed by running the following commands:
65532         git ls-files | grep '\.m4$' | xargs perl -pi \
65533           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
65534           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
65535           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
65536           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
65537         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
65538         The remainder were to add Copyright dates, increment serial numbers,
65539         undo some changes in comments, exclude m4/intl.m4, and add quotes
65540         around the "1" in ",1" where the unusual spacing prohibited the
65541         above regexps from doing the job.  For more details, see
65542         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
65543         * m4/acl.m4: Modified.
65544         * m4/afs.m4: Likewise.
65545         * m4/alloca.m4: Likewise.
65546         * m4/argp.m4: Likewise.
65547         * m4/argz.m4: Likewise.
65548         * m4/atexit.m4: Likewise.
65549         * m4/bison-i18n.m4: Likewise.
65550         * m4/bison.m4: Likewise.
65551         * m4/byteswap.m4: Likewise.
65552         * m4/c-stack.m4: Likewise.
65553         * m4/c-strtod.m4: Likewise.
65554         * m4/calloc.m4: Likewise.
65555         * m4/canonicalize-lgpl.m4: Likewise.
65556         * m4/chown.m4: Likewise.
65557         * m4/clock_time.m4: Likewise.
65558         * m4/codeset.m4: Likewise.
65559         * m4/copy-file.m4: Likewise.
65560         * m4/csharp.m4: Likewise.
65561         * m4/csharpcomp.m4: Likewise.
65562         * m4/csharpexec.m4: Likewise.
65563         * m4/d-ino.m4: Likewise.
65564         * m4/d-type.m4: Likewise.
65565         * m4/dirfd.m4: Likewise.
65566         * m4/double-slash-root.m4: Likewise.
65567         * m4/eaccess.m4: Likewise.
65568         * m4/eealloc.m4: Likewise.
65569         * m4/environ.m4: Likewise.
65570         * m4/errno_h.m4: Likewise.
65571         * m4/euidaccess.m4: Likewise.
65572         * m4/execute.m4: Likewise.
65573         * m4/fatal-signal.m4: Likewise.
65574         * m4/fchdir.m4: Likewise.
65575         * m4/fcntl_h.m4: Likewise.
65576         * m4/fileblocks.m4: Likewise.
65577         * m4/filenamecat.m4: Likewise.
65578         * m4/findprog.m4: Likewise.
65579         * m4/flexmember.m4: Likewise.
65580         * m4/fnmatch.m4: Likewise.
65581         * m4/fopen.m4: Likewise.
65582         * m4/fpending.m4: Likewise.
65583         * m4/fprintf-posix.m4: Likewise.
65584         * m4/free.m4: Likewise.
65585         * m4/frexp.m4: Likewise.
65586         * m4/frexpl.m4: Likewise.
65587         * m4/fsusage.m4: Likewise.
65588         * m4/ftruncate.m4: Likewise.
65589         * m4/gc-camellia.m4: Likewise.
65590         * m4/gc-random.m4: Likewise.
65591         * m4/gc.m4: Likewise.
65592         * m4/getaddrinfo.m4: Likewise.
65593         * m4/getcwd-abort-bug.m4: Likewise.
65594         * m4/getcwd-path-max.m4: Likewise.
65595         * m4/getdate.m4: Likewise.
65596         * m4/getdomainname.m4: Likewise.
65597         * m4/getgroups.m4: Likewise.
65598         * m4/gethostname.m4: Likewise.
65599         * m4/gethrxtime.m4: Likewise.
65600         * m4/getline.m4: Likewise.
65601         * m4/getloadavg.m4: Likewise.
65602         * m4/getndelim2.m4: Likewise.
65603         * m4/getpass.m4: Likewise.
65604         * m4/gettext.m4: Likewise.
65605         * m4/gettime.m4: Likewise.
65606         * m4/gettimeofday.m4: Likewise.
65607         * m4/gnulib-common.m4: Likewise.
65608         * m4/group-member.m4: Likewise.
65609         * m4/host-os.m4: Likewise.
65610         * m4/iconv.m4: Likewise.
65611         * m4/iconv_open.m4: Likewise.
65612         * m4/inet_ntop.m4: Likewise.
65613         * m4/inet_pton.m4: Likewise.
65614         * m4/inline.m4: Likewise.
65615         * m4/intldir.m4: Likewise.
65616         * m4/intlmacosx.m4: Likewise.
65617         * m4/intmax.m4: Likewise.
65618         * m4/intmax_t.m4: Likewise.
65619         * m4/inttypes.m4: Likewise.
65620         * m4/inttypes_h.m4: Likewise.
65621         * m4/inttypes-pri.m4: Likewise.
65622         * m4/isapipe.m4: Likewise.
65623         * m4/isnand.m4: Likewise.
65624         * m4/isnanf.m4: Likewise.
65625         * m4/isnanl.m4: Likewise.
65626         * m4/javacomp.m4: Likewise.
65627         * m4/javaexec.m4: Likewise.
65628         * m4/jm-winsz1.m4: Likewise.
65629         * m4/jm-winsz2.m4: Likewise.
65630         * m4/lchown.m4: Likewise.
65631         * m4/lcmessage.m4: Likewise.
65632         * m4/ldexpl.m4: Likewise.
65633         * m4/lib-ld.m4: Likewise.
65634         * m4/lib-link.m4: Likewise.
65635         * m4/libsigsegv.m4: Likewise.
65636         * m4/link-follow.m4: Likewise.
65637         * m4/localcharset.m4: Likewise.
65638         * m4/locale-fr.m4: Likewise.
65639         * m4/locale-ja.m4: Likewise.
65640         * m4/locale-tr.m4: Likewise.
65641         * m4/locale-zh.m4: Likewise.
65642         * m4/lock.m4: Likewise.
65643         * m4/longlong.m4: Likewise.
65644         * m4/ls-mntd-fs.m4: Likewise.
65645         * m4/lstat.m4: Likewise.
65646         * m4/malloc.m4: Likewise.
65647         * m4/mathl.m4: Likewise.
65648         * m4/mbrtowc.m4: Likewise.
65649         * m4/mbstate_t.m4: Likewise.
65650         * m4/mbswidth.m4: Likewise.
65651         * m4/memchr.m4: Likewise.
65652         * m4/memcmp.m4: Likewise.
65653         * m4/memcpy.m4: Likewise.
65654         * m4/memmem.m4: Likewise.
65655         * m4/memmove.m4: Likewise.
65656         * m4/mempcpy.m4: Likewise.
65657         * m4/memrchr.m4: Likewise.
65658         * m4/memset.m4: Likewise.
65659         * m4/minmax.m4: Likewise.
65660         * m4/mkdir-slash.m4: Likewise.
65661         * m4/mkdtemp.m4: Likewise.
65662         * m4/mktime.m4: Likewise.
65663         * m4/mmap-anon.m4: Likewise.
65664         * m4/mountlist.m4: Likewise.
65665         * m4/nanosleep.m4: Likewise.
65666         * m4/nls.m4: Likewise.
65667         * m4/nocrash.m4: Likewise.
65668         * m4/open.m4: Likewise.
65669         * m4/openat.m4: Likewise.
65670         * m4/openmp.m4: Likewise.
65671         * m4/pathmax.m4: Likewise.
65672         * m4/perl.m4: Likewise.
65673         * m4/physmem.m4: Likewise.
65674         * m4/pipe.m4: Likewise.
65675         * m4/po.m4: Likewise.
65676         * m4/poll.m4: Likewise.
65677         * m4/posixtm.m4: Likewise.
65678         * m4/posixver.m4: Likewise.
65679         * m4/printf-frexp.m4: Likewise.
65680         * m4/printf-frexpl.m4: Likewise.
65681         * m4/printf-posix.m4: Likewise.
65682         * m4/printf-posix-rpl.m4: Likewise.
65683         * m4/printf.m4: Likewise.
65684         * m4/progtest.m4: Likewise.
65685         * m4/putenv.m4: Likewise.
65686         * m4/readline.m4: Likewise.
65687         * m4/readlink.m4: Likewise.
65688         * m4/readutmp.m4: Likewise.
65689         * m4/realloc.m4: Likewise.
65690         * m4/regex.m4: Likewise.
65691         * m4/relocatable.m4: Likewise.
65692         * m4/relocatable-lib.m4: Likewise.
65693         * m4/rename-dest-slash.m4: Likewise.
65694         * m4/rename.m4: Likewise.
65695         * m4/rmdir-errno.m4: Likewise.
65696         * m4/rmdir.m4: Likewise.
65697         * m4/roundf.m4: Likewise.
65698         * m4/roundl.m4: Likewise.
65699         * m4/rpmatch.m4: Likewise.
65700         * m4/save-cwd.m4: Likewise.
65701         * m4/selinux-selinux-h.m4: Likewise.
65702         * m4/setenv.m4: Likewise.
65703         * m4/settime.m4: Likewise.
65704         * m4/sig2str.m4: Likewise.
65705         * m4/sig_atomic_t.m4: Likewise.
65706         * m4/signalblocking.m4: Likewise.
65707         * m4/signbit.m4: Likewise.
65708         * m4/sigpipe.m4: Likewise.
65709         * m4/sockets.m4: Likewise.
65710         * m4/sockpfaf.m4: Likewise.
65711         * m4/st_dm_mode.m4: Likewise.
65712         * m4/stat-time.m4: Likewise.
65713         * m4/stdbool.m4: Likewise.
65714         * m4/stdint.m4: Likewise.
65715         * m4/stdint_h.m4: Likewise.
65716         * m4/stpcpy.m4: Likewise.
65717         * m4/stpncpy.m4: Likewise.
65718         * m4/strcase.m4: Likewise.
65719         * m4/strchrnul.m4: Likewise.
65720         * m4/strcspn.m4: Likewise.
65721         * m4/strdup.m4: Likewise.
65722         * m4/strftime.m4: Likewise.
65723         * m4/strndup.m4: Likewise.
65724         * m4/strnlen.m4: Likewise.
65725         * m4/strpbrk.m4: Likewise.
65726         * m4/strptime.m4: Likewise.
65727         * m4/strsep.m4: Likewise.
65728         * m4/strtod.m4: Likewise.
65729         * m4/strtoimax.m4: Likewise.
65730         * m4/strtok_r.m4: Likewise.
65731         * m4/strtol.m4: Likewise.
65732         * m4/strtoll.m4: Likewise.
65733         * m4/strtoul.m4: Likewise.
65734         * m4/strtoull.m4: Likewise.
65735         * m4/strtoumax.m4: Likewise.
65736         * m4/strverscmp.m4: Likewise.
65737         * m4/threadlib.m4: Likewise.
65738         * m4/timegm.m4: Likewise.
65739         * m4/tm_gmtoff.m4: Likewise.
65740         * m4/tmpdir.m4: Likewise.
65741         * m4/tmpfile.m4: Likewise.
65742         * m4/tzset.m4: Likewise.
65743         * m4/uintmax_t.m4: Likewise.
65744         * m4/unlinkdir.m4: Likewise.
65745         * m4/unlocked-io.m4: Likewise.
65746         * m4/uptime.m4: Likewise.
65747         * m4/userspec.m4: Likewise.
65748         * m4/utimbuf.m4: Likewise.
65749         * m4/utime.m4: Likewise.
65750         * m4/utimes-null.m4: Likewise.
65751         * m4/utimes.m4: Likewise.
65752         * m4/vararrays.m4: Likewise.
65753         * m4/vasnprintf.m4: Likewise.
65754         * m4/vfprintf-posix.m4: Likewise.
65755         * m4/vprintf-posix.m4: Likewise.
65756         * m4/wait-process.m4: Likewise.
65757         * m4/wchar_t.m4: Likewise.
65758         * m4/wint_t.m4: Likewise.
65759         * m4/write-any-file.m4: Likewise.
65760         * m4/yield.m4: Likewise.
65762 2009-01-13  Bruno Haible  <bruno@clisp.org>
65764         Avoid test-copy-file.sh failures when ACL support insufficient.
65765         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
65766         TESTS_ENVIRONMENT.
65767         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
65768         Reported by Jim Meyering.
65770 2009-01-13  Bruno Haible  <bruno@clisp.org>
65772         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
65773         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
65774         * modules/unistdio/u8-printf-parse (Files): Likewise.
65775         * modules/unistdio/u32-printf-parse (Files): Likewise.
65776         * modules/unistdio/ulc-printf-parse (Files): Likewise.
65778 2009-01-13  Simon Josefsson  <simon@josefsson.org>
65780         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
65781         and m4/inttypes_h.m4 too.
65783 2009-01-12  Eric Blake  <ebb9@byu.net>
65785         tests: IRIX 6.2 cc can't compile -0.0 into .data
65786         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
65787         rather than at compile-time.
65788         * tests/test-floorl.c (minus_zero): Likewise.
65789         * tests/test-frexpl.c (minus_zero): Likewise.
65790         * tests/test-isnan.c (minus_zerol): Likewise.
65791         * tests/test-isnanl.h (minus_zero): Likewise.
65792         * tests/test-ldexpl.c (minus_zero): Likewise.
65793         * tests/test-roundl.c (minus_zero): Likewise.
65794         * tests/test-signbit.c (minus_zerol): Likewise.
65795         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
65796         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
65797         * tests/test-truncl.c (minus_zero): Likewise.
65798         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
65799         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
65800         Reported by Tom G. Christensen and Nelson H. F. Beebe.
65802 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65804         regex: fix glibc bug 9697
65805         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
65806         handling.
65808 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65810         regex: fix glibc bug 697
65811         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
65812         being NULL also if there are no backreferences.
65814 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65816         regex: merge glibc changes
65817         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
65818         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
65819         re_string_skip_chars, re_string_reconstruct): Likewise.
65820         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
65822 2009-01-07  Jim Meyering  <meyering@redhat.com>
65824         poll: filter through cppi
65825         * lib/poll.c: Indent cpp directives to reflect nesting.
65827 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
65829         poll: don't return uninitialized
65830         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
65832 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
65834         avoid compile failure on AIX 6.1
65835         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
65836         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
65838 2009-01-04  Jim Meyering  <meyering@redhat.com>
65840         remove duplicate inclusion of <stdio.h>
65841         * tests/test-fprintf-posix.c: Likewise.
65842         * tests/test-printf-posix.c: Likewise.
65843         * tests/test-snprintf-posix.c: Likewise.
65844         * tests/test-sprintf-posix.c: Likewise.
65845         * tests/test-vasprintf-posix.c: Likewise.
65846         * tests/test-vfprintf-posix.c: Likewise.
65847         * tests/test-vprintf-posix.c: Likewise.
65848         * tests/test-vsnprintf-posix.c: Likewise.
65849         * tests/test-vsprintf-posix.c: Likewise.
65851 2009-01-03  Jim Meyering  <meyering@redhat.com>
65853         gnulib-tool: fix sed-based filtering
65854         * gnulib-tool (func_filter_filelist): Remove extra backslash
65855         in sed_fff_filter definition.
65857 2009-01-02  Jim Meyering  <meyering@redhat.com>
65859         strftime: avoid compilation failure on Solaris 2.6
65860         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
65861         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
65862         Don't #define mbrlen or mbsinit, since now they're guaranteed to
65863         be available.  Reported by Tom G. Christensen.  Details in
65864         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
65866 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65867             Bruno Haible  <bruno@clisp.org>
65869         Speed up gnulib-tool by doing more string processing through shell
65870         built-ins.
65871         * gnulib-tool (fast_func_append): New variable.
65872         (func_remove_prefix, func_remove_suffix): New functions.
65873         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
65874         (func_filter_filelist): New function.
65875         (func_get_dependencies): Use func_remove_suffix instead of sed.
65876         (func_get_automake_snippet): Use func_filter_filelist instead of a
65877         subshell and sed invocation.
65879 2009-01-01  Bruno Haible  <bruno@clisp.org>
65881         Fix a security bug.
65882         * gnulib-tool (func_import, import, update): Don't allow the characters
65883         '"', '$', '`', '\' in macro arguments that become part of commands that
65884         are evaluated.
65886 2009-01-01  Bruno Haible  <bruno@clisp.org>
65888         * gnulib-tool (func_reset_sigpipe): Add more comments.
65890 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65892         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
65893         func_emit_tests_Makefile_am, func_import): Abort loops early if we
65894         already know the answer.
65896 2009-01-01  Jim Meyering  <meyering@redhat.com>
65898         * lib/version-etc.c (version_etc_va): Update copyright year.
65900 2008-12-30  Bruno Haible  <bruno@clisp.org>
65902         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
65903         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
65904         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
65906 2008-12-29  Eric Blake  <ebb9@byu.net>
65908         multiarch: avoid autoconf AC_REQUIRE bug
65909         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
65910         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
65911         2.63 and older.
65912         Reported by Bruno Haible, and analyzed in
65913         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
65915 2008-12-29  Bruno Haible  <bruno@clisp.org>
65917         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
65918         files in subdirectories correctly.
65919         Reported by Ralf Wildenhues.
65921 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65923         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
65924         rather than 'join FILE -', for Solaris join.
65926 2008-12-29  Bruno Haible  <bruno@clisp.org>
65928         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
65929         quoting.
65930         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65931         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
65932         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
65933         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
65934         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65935         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65936         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65937         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65938         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65939         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65940         * m4/nls.m4 (AM_NLS): Likewise.
65941         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
65942         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65943         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65944         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65945         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65946         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65947         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
65948         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65949         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65950         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65951         * m4/xsize.m4 (gl_XSIZE): Likewise.
65952         Suggested by Jim Meyering.
65954 2008-11-17  Bruce Korb  <bkorb@gnu.org>
65956         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
65957         * lib/parse-duration.c: use a switch instead of cascading if's.
65959 2008-12-29  Eric Blake  <ebb9@byu.net>
65961         wchar.h: supply WEOF on Irix 5.3
65962         * lib/wchar.in.h (wint_t): Also supply WEOF.
65963         * lib/wctype.in.h (wint_t): Likewise.
65964         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
65965         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
65966         Reported by Tom G. Christensen.
65968 2008-12-26  Bruno Haible  <bruno@clisp.org>
65970         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
65971         i486, i586, i686.
65973 2008-12-26  Bruno Haible  <bruno@clisp.org>
65975         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
65977 2008-12-26  Bruno Haible  <bruno@clisp.org>
65979         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
65980         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
65981         not __STDC_CONSTANT_MACROS.
65982         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
65984 2008-12-25  Bruno Haible  <bruno@clisp.org>
65986         Add support for universal builds to vasnprintf.
65987         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
65988         universal builds, guess no.
65989         * modules/vasnprintf-posix (Depends-on): Add multiarch.
65990         * modules/vasprintf-posix (Depends-on): Likewise.
65991         * modules/fprintf-posix (Depends-on): Likewise.
65992         * modules/vfprintf-posix (Depends-on): Likewise.
65993         * modules/snprintf-posix (Depends-on): Likewise.
65994         * modules/vsnprintf-posix (Depends-on): Likewise.
65995         * modules/sprintf-posix (Depends-on): Likewise.
65996         * modules/vsprintf-posix (Depends-on): Likewise.
65997         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65998         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65999         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
66000         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
66001         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
66002         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
66003         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
66005         Add support for universal builds to <inttypes.h>.
66006         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
66007         _SCNu64_PREFIX): In Apple
66008         universal builds, define directly, using _LP64.
66009         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
66010         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
66011         * modules/inttypes (Depends-on): Add multiarch.
66012         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
66014         Add support for universal builds to <stdint.h>.
66015         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
66016         universal builds, define directly, using _LP64.
66017         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
66018         Apple universal builds, don't test for the size and suffix of ptrdiff_t
66019         and size_t.
66020         * modules/stdint (Depends-on): Add multiarch.
66021         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
66023         New module 'multiarch'.
66024         * modules/multiarch: New file.
66025         * m4/multiarch.m4: New file.
66027 2008-12-25  Bruno Haible  <bruno@clisp.org>
66029         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
66031 2008-12-25  Bruno Haible  <bruno@clisp.org>
66033         * modules/btowc (License): Relicense under LGPLv2+.
66034         * modules/mbsinit (License): Likewise.
66035         * modules/mbrtowc (License): Likewise.
66036         * modules/wcrtomb (License): Likewise.
66037         * modules/streq (License): Likewise.
66038         Reported by David Lutterkort <lutter@redhat.com>.
66040 2008-12-23  Bruno Haible  <bruno@clisp.org>
66042         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
66044 2008-12-23  Bruno Haible  <bruno@clisp.org>
66046         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
66047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
66048         GETADDRINFO_LIB, not in LIBS.
66049         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
66050         * modules/canon-host (Link): Likewise.
66051         * NEWS: Mention the change.
66052         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
66053         GETADDRINFO_LIB.
66055 2008-12-22  Bruno Haible  <bruno@clisp.org>
66057         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
66058         * doc/posix-functions/iswalpha_l.texi: Likewise.
66059         * doc/posix-functions/iswblank_l.texi: Likewise.
66060         * doc/posix-functions/iswcntrl_l.texi: Likewise.
66061         * doc/posix-functions/iswctype_l.texi: Likewise.
66062         * doc/posix-functions/iswdigit_l.texi: Likewise.
66063         * doc/posix-functions/iswgraph_l.texi: Likewise.
66064         * doc/posix-functions/iswlower_l.texi: Likewise.
66065         * doc/posix-functions/iswprint_l.texi: Likewise.
66066         * doc/posix-functions/iswpunct_l.texi: Likewise.
66067         * doc/posix-functions/iswspace_l.texi: Likewise.
66068         * doc/posix-functions/iswupper_l.texi: Likewise.
66069         * doc/posix-functions/iswxdigit_l.texi: Likewise.
66070         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
66071         * doc/posix-functions/open_wmemstream.texi: Likewise.
66072         * doc/posix-functions/swscanf.texi: Likewise.
66073         * doc/posix-functions/towctrans_l.texi: Likewise.
66074         * doc/posix-functions/towlower.texi: Likewise.
66075         * doc/posix-functions/towlower_l.texi: Likewise.
66076         * doc/posix-functions/towupper.texi: Likewise.
66077         * doc/posix-functions/towupper_l.texi: Likewise.
66078         * doc/posix-functions/vfwprintf.texi: Likewise.
66079         * doc/posix-functions/vfwscanf.texi: Likewise.
66080         * doc/posix-functions/vswscanf.texi: Likewise.
66081         * doc/posix-functions/vwprintf.texi: Likewise.
66082         * doc/posix-functions/vwscanf.texi: Likewise.
66083         * doc/posix-functions/wcpcpy.texi: Likewise.
66084         * doc/posix-functions/wcpncpy.texi: Likewise.
66085         * doc/posix-functions/wcscasecmp.texi: Likewise.
66086         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
66087         * doc/posix-functions/wcscoll_l.texi: Likewise.
66088         * doc/posix-functions/wcsdup.texi: Likewise.
66089         * doc/posix-functions/wcsncasecmp.texi: Likewise.
66090         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
66091         * doc/posix-functions/wcsnlen.texi: Likewise.
66092         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66093         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
66094         * doc/posix-functions/wctrans_l.texi: Likewise.
66095         * doc/posix-functions/wctype_l.texi: Likewise.
66096         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
66097         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
66098         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
66099         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
66100         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
66101         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
66102         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
66103         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
66104         * doc/glibc-functions/wcschrnul.texi: Likewise.
66105         * doc/glibc-functions/wcsftime_l.texi: Likewise.
66106         * doc/glibc-functions/wcstod_l.texi: Likewise.
66107         * doc/glibc-functions/wcstof_l.texi: Likewise.
66108         * doc/glibc-functions/wcstol_l.texi: Likewise.
66109         * doc/glibc-functions/wcstold_l.texi: Likewise.
66110         * doc/glibc-functions/wcstoll_l.texi: Likewise.
66111         * doc/glibc-functions/wcstoq.texi: Likewise.
66112         * doc/glibc-functions/wcstoul_l.texi: Likewise.
66113         * doc/glibc-functions/wcstoull_l.texi: Likewise.
66114         * doc/glibc-functions/wcstouq.texi: Likewise.
66115         * doc/glibc-functions/wmempcpy.texi: Likewise.
66117 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
66118             Eric Blake  <ebb9@byu.net>
66119             Paolo Bonzini  <bonzini@gnu.org>
66120             Bruno Haible  <bruno@clisp.org>
66122         Make c-stack work on Haiku.
66123         * lib/c-stack.c (SA_ONSTACK): Define fallback.
66124         (c_stack_action): Use SA_ONSTACK flag.
66126 2008-12-22  Bruno Haible  <bruno@clisp.org>
66128         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
66130 2008-12-22  Bruno Haible  <bruno@clisp.org>
66132         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
66133         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
66134         being overridden.
66135         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
66136         New macros.
66137         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
66138         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
66139         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
66140         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
66142 2008-12-22  Bruno Haible  <bruno@clisp.org>
66144         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
66145         from test code.
66147 2008-12-22  Eric Blake  <ebb9@byu.net>
66149         Avoid gcc warnings on cygwin.
66150         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
66151         Avoid unused variable.
66152         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
66153         Likewise.
66155 2008-12-22  Bruno Haible  <bruno@clisp.org>
66157         Remove HAVE_MBRTOWC conditionals.
66158         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
66159         (mbscasecmp): Assume mbrtowc function.
66160         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
66161         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
66162         * lib/mbschr.c: Include mbuiter.h unconditionally.
66163         (mbschr): Assume mbrtowc function.
66164         * lib/mbscspn.c: Include mbuiter.h unconditionally.
66165         (mbscspn): Assume mbrtowc function.
66166         * lib/mbslen.c: Include mbuiter.h unconditionally.
66167         (mbslen): Assume mbrtowc function.
66168         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
66169         (mbsncasecmp): Assume mbrtowc function.
66170         * lib/mbsnlen.c: Include mbiter.h unconditionally.
66171         (mbsnlen): Assume mbrtowc function.
66172         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
66173         (mbspbrk): Assume mbrtowc function.
66174         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
66175         (mbspcasecmp): Assume mbrtowc function.
66176         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
66177         (mbsrchr): Assume mbrtowc function.
66178         * lib/mbssep.c: Include mbuiter.h unconditionally.
66179         (mbssep): Assume mbrtowc function.
66180         * lib/mbsspn.c: Include mbuiter.h unconditionally.
66181         (mbsspn): Assume mbrtowc function.
66182         * lib/mbsstr.c: Include mbuiter.h unconditionally.
66183         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
66184         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
66185         (mbstok_r): Assume mbrtowc function.
66186         * lib/propername.c: Include mbuiter.h unconditionally.
66187         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
66188         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
66189         (trim2): Assume mbrtowc function.
66190         * lib/mbswidth.c (mbsinit): Remove fallback definition.
66191         (mbsnwidth): Assume mbrtowc function.
66192         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
66193         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
66194         fallback definitions.
66195         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
66197 2008-12-22  Bruno Haible  <bruno@clisp.org>
66199         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
66201 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
66203         * modules/regex: Request emulations for the mb*/wc* functions we need.
66204         * m4/regex.m4: Don't look for those functions here.
66205         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
66207 2008-12-22  Bruno Haible  <bruno@clisp.org>
66209         * modules/fnmatch (Depends-on): Remove duplicated dependency.
66211 2008-12-21  Bruno Haible  <bruno@clisp.org>
66213         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
66214         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
66215         (Include): Remove conditionalization.
66216         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
66217         (Include): Remove conditionalization.
66218         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
66219         (Include): Remove conditionalization.
66220         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
66221         * m4/mbfile.m4 (gl_MBFILE): Likewise.
66222         * NEWS: Mention the change.
66223         Reported by Alan Hourihane <alanh@fairlite.co.uk>
66224         via Sergey Poznyakoff <gray@gnu.org.ua>.
66226 2008-12-21  Bruno Haible  <bruno@clisp.org>
66228         * MODULES.html.sh (Extended multibyte and wide character utilities
66229         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
66230         wcrtomb, wcsrtombs.
66231         (Support for systems lacking POSIX:2008): Add accept, bind, close,
66232         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
66233         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
66234         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
66236 2008-12-21  Bruno Haible  <bruno@clisp.org>
66238         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
66240 2008-12-21  Bruno Haible  <bruno@clisp.org>
66242         * modules/wcsnrtombs-tests: New file.
66243         * tests/test-wcsnrtombs1.sh: New file.
66244         * tests/test-wcsnrtombs2.sh: New file.
66245         * tests/test-wcsnrtombs3.sh: New file.
66246         * tests/test-wcsnrtombs4.sh: New file.
66247         * tests/test-wcsnrtombs.c: New file.
66249         New module 'wcsnrtombs'.
66250         * lib/wchar.in.h (wcsnrtombs): New declaration.
66251         * lib/wcsnrtombs.c: New file.
66252         * lib/wcsrtombs-state.c: New file.
66253         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
66254         (internal_state): Remove variable.
66255         * m4/wcsnrtombs.m4: New file.
66256         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
66257         compilation units.
66258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
66259         HAVE_WCSNRTOMBS.
66260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
66261         HAVE_WCSNRTOMBS.
66262         * modules/wcsnrtombs: New file.
66263         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
66264         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
66266 2008-12-21  Bruno Haible  <bruno@clisp.org>
66268         * modules/wcsrtombs-tests: New file.
66269         * tests/test-wcsrtombs1.sh: New file.
66270         * tests/test-wcsrtombs2.sh: New file.
66271         * tests/test-wcsrtombs3.sh: New file.
66272         * tests/test-wcsrtombs4.sh: New file.
66273         * tests/test-wcsrtombs.c: New file.
66275         New module 'wcsrtombs'.
66276         * lib/wchar.in.h (wcsrtombs): New declaration.
66277         * lib/wcsrtombs.c: New file.
66278         * m4/wcsrtombs.m4: New file.
66279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
66280         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
66281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
66282         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
66283         * modules/wcsrtombs: New file.
66284         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
66285         bugs.
66287 2008-12-21  Bruno Haible  <bruno@clisp.org>
66289         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
66290         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
66291         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
66292         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
66293         if not correct.
66294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
66295         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
66296         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66297         m4/locale-zh.m4, m4/codeset.m4.
66298         * doc/posix-functions/wcrtomb.texi: Document the bug.
66300 2008-12-21  Bruno Haible  <bruno@clisp.org>
66302         Work around a btowc() bug on IRIX 6.5.
66303         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
66304         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
66305         REPLACE_WTOBC if not.
66306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
66307         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
66308         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
66310 2008-12-21  Bruno Haible  <bruno@clisp.org>
66312         * modules/wcrtomb-tests: New file.
66313         * tests/test-wcrtomb.sh: New file.
66314         * tests/test-wcrtomb.c: New file.
66316         New module 'wcrtomb'.
66317         * lib/wchar.in.h (wcrtomb): New declaration.
66318         * lib/wcrtomb.c: New file.
66319         * m4/wcrtomb.m4: New file.
66320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
66321         HAVE_WCRTOMB.
66322         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
66323         HAVE_WCRTOMB.
66324         * modules/wcrtomb: New file.
66325         * doc/posix-functions/wcrtomb.texi: Mention the new module.
66327 2008-12-21  Bruno Haible  <bruno@clisp.org>
66329         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
66330         * modules/mbsrtowcs (Files): Likewise.
66331         * modules/wctob (Files): Likewise.
66332         * modules/c-strcase-tests (Files): Likewise.
66333         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
66334         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
66335         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
66336         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
66337         * modules/vasnprintf-posix-tests (Files): Likewise.
66339 2008-12-21  William Pursell  <bill.pursell@gmail.com>
66341         gitlog-to-changelog: pass all command-line arguments to git-log
66342         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
66343         it is sometimes convenient to filter the commits in various ways.
66344         gitlog-to-changelog only allows --since to specify a start date,
66345         but git-log itself supports many other filtering mechanisms.
66346         At the moment, I want to filter by branch name.  Rather than
66347         adding a --branch option to gitlog-to-changelog, it seems more
66348         flexible to simply pass all options directly to git-log and let
66349         git do the work.  Notice that this effectively makes --since a
66350         redundant option for gitlog-to-changelog, but removing it would
66351         require current usage to change since calls would then require
66352         an additional '--'.
66354 2008-12-21  Bruno Haible  <bruno@clisp.org>
66356         * modules/mbsnrtowcs-tests: New file.
66357         * tests/test-mbsnrtowcs1.sh: New file.
66358         * tests/test-mbsnrtowcs2.sh: New file.
66359         * tests/test-mbsnrtowcs3.sh: New file.
66360         * tests/test-mbsnrtowcs4.sh: New file.
66361         * tests/test-mbsnrtowcs.c: New file.
66363         New module 'mbsnrtowcs'.
66364         * lib/wchar.in.h (mbsnrtowcs): New declaration.
66365         * lib/mbsnrtowcs.c: New file.
66366         * lib/mbsrtowcs-state.c: New file.
66367         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
66368         (internal_state): Remove variable.
66369         * m4/mbsnrtowcs.m4: New file.
66370         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
66371         compilation units.
66372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
66373         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
66374         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
66375         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
66376         * modules/mbsnrtowcs: New file.
66377         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
66378         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
66379         portability problem.
66381 2008-12-21  Bruno Haible  <bruno@clisp.org>
66383         Work around mbsrtowcs bug.
66384         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
66385         (gl_FUNC_MBSRTOWCS): Invoke it.
66386         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66387         m4/locale-zh.m4.
66388         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
66390 2008-12-21  Bruno Haible  <bruno@clisp.org>
66392         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
66394 2008-12-21  Bruno Haible  <bruno@clisp.org>
66396         Update doc for AIX.
66397         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
66398         16-bit wchar_t type.
66399         * doc/posix-functions/btowc.texi: Likewise.
66400         * doc/posix-functions/fgetwc.texi: Likewise.
66401         * doc/posix-functions/fgetws.texi: Likewise.
66402         * doc/posix-functions/fputwc.texi: Likewise.
66403         * doc/posix-functions/fputws.texi: Likewise.
66404         * doc/posix-functions/fwide.texi: Likewise.
66405         * doc/posix-functions/fwprintf.texi: Likewise.
66406         * doc/posix-functions/fwscanf.texi: Likewise.
66407         * doc/posix-functions/getwchar.texi: Likewise.
66408         * doc/posix-functions/getwc.texi: Likewise.
66409         * doc/posix-functions/iswalnum.texi: Likewise.
66410         * doc/posix-functions/iswalpha.texi: Likewise.
66411         * doc/posix-functions/iswblank.texi: Likewise.
66412         * doc/posix-functions/iswcntrl.texi: Likewise.
66413         * doc/posix-functions/iswctype.texi: Likewise.
66414         * doc/posix-functions/iswdigit.texi: Likewise.
66415         * doc/posix-functions/iswgraph.texi: Likewise.
66416         * doc/posix-functions/iswlower.texi: Likewise.
66417         * doc/posix-functions/iswprint.texi: Likewise.
66418         * doc/posix-functions/iswpunct.texi: Likewise.
66419         * doc/posix-functions/iswspace.texi: Likewise.
66420         * doc/posix-functions/iswupper.texi: Likewise.
66421         * doc/posix-functions/iswxdigit.texi: Likewise.
66422         * doc/posix-functions/mbrtowc.texi: Likewise.
66423         * doc/posix-functions/mbsrtowcs.texi: Likewise.
66424         * doc/posix-functions/mbstowcs.texi: Likewise.
66425         * doc/posix-functions/mbtowc.texi: Likewise.
66426         * doc/posix-functions/putwchar.texi: Likewise.
66427         * doc/posix-functions/putwc.texi: Likewise.
66428         * doc/posix-functions/swprintf.texi: Likewise.
66429         * doc/posix-functions/tolower.texi: Likewise.
66430         * doc/posix-functions/toupper.texi: Likewise.
66431         * doc/posix-functions/towctrans.texi: Likewise.
66432         * doc/posix-functions/ungetwc.texi: Likewise.
66433         * doc/posix-functions/vswprintf.texi: Likewise.
66434         * doc/posix-functions/wcrtomb.texi: Likewise.
66435         * doc/posix-functions/wcscat.texi: Likewise.
66436         * doc/posix-functions/wcschr.texi: Likewise.
66437         * doc/posix-functions/wcscmp.texi: Likewise.
66438         * doc/posix-functions/wcscoll.texi: Likewise.
66439         * doc/posix-functions/wcscpy.texi: Likewise.
66440         * doc/posix-functions/wcscspn.texi: Likewise.
66441         * doc/posix-functions/wcsftime.texi: Likewise.
66442         * doc/posix-functions/wcslen.texi: Likewise.
66443         * doc/posix-functions/wcsncat.texi: Likewise.
66444         * doc/posix-functions/wcsncmp.texi: Likewise.
66445         * doc/posix-functions/wcsncpy.texi: Likewise.
66446         * doc/posix-functions/wcspbrk.texi: Likewise.
66447         * doc/posix-functions/wcsrchr.texi: Likewise.
66448         * doc/posix-functions/wcsrtombs.texi: Likewise.
66449         * doc/posix-functions/wcsspn.texi: Likewise.
66450         * doc/posix-functions/wcsstr.texi: Likewise.
66451         * doc/posix-functions/wcstod.texi: Likewise.
66452         * doc/posix-functions/wcstof.texi: Likewise.
66453         * doc/posix-functions/wcstoimax.texi: Likewise.
66454         * doc/posix-functions/wcstok.texi: Likewise.
66455         * doc/posix-functions/wcstold.texi: Likewise.
66456         * doc/posix-functions/wcstoll.texi: Likewise.
66457         * doc/posix-functions/wcstol.texi: Likewise.
66458         * doc/posix-functions/wcstombs.texi: Likewise.
66459         * doc/posix-functions/wcstoull.texi: Likewise.
66460         * doc/posix-functions/wcstoul.texi: Likewise.
66461         * doc/posix-functions/wcstoumax.texi: Likewise.
66462         * doc/posix-functions/wcswidth.texi: Likewise.
66463         * doc/posix-functions/wcsxfrm.texi: Likewise.
66464         * doc/posix-functions/wctob.texi: Likewise.
66465         * doc/posix-functions/wctomb.texi: Likewise.
66466         * doc/posix-functions/wctrans.texi: Likewise.
66467         * doc/posix-functions/wctype.texi: Likewise.
66468         * doc/posix-functions/wcwidth.texi: Likewise.
66469         * doc/posix-functions/wmemchr.texi: Likewise.
66470         * doc/posix-functions/wmemcmp.texi: Likewise.
66471         * doc/posix-functions/wmemcpy.texi: Likewise.
66472         * doc/posix-functions/wmemmove.texi: Likewise.
66473         * doc/posix-functions/wmemset.texi: Likewise.
66474         * doc/posix-functions/wprintf.texi: Likewise.
66475         * doc/posix-functions/wscanf.texi: Likewise.
66477 2008-12-21  Bruno Haible  <bruno@clisp.org>
66479         Update doc for HP-UX 11.11.
66480         * doc/posix-functions/btowc.texi: Clarify that the function is missing
66481         in HP-UX version 11.00, not in all versions of HP-UX 11.
66482         * doc/posix-functions/fwide.texi: Likewise.
66483         * doc/posix-functions/fwprintf.texi: Likewise.
66484         * doc/posix-functions/fwscanf.texi: Likewise.
66485         * doc/posix-functions/inet_ntop.texi: Likewise.
66486         * doc/posix-functions/inet_pton.texi: Likewise.
66487         * doc/posix-functions/mbrlen.texi: Likewise.
66488         * doc/posix-functions/mbrtowc.texi: Likewise.
66489         * doc/posix-functions/mbsinit.texi: Likewise.
66490         * doc/posix-functions/mbsrtowcs.texi: Likewise.
66491         * doc/posix-functions/swprintf.texi: Likewise.
66492         * doc/posix-functions/swscanf.texi: Likewise.
66493         * doc/posix-functions/towctrans.texi: Likewise.
66494         * doc/posix-functions/vfwprintf.texi: Likewise.
66495         * doc/posix-functions/vswprintf.texi: Likewise.
66496         * doc/posix-functions/vwprintf.texi: Likewise.
66497         * doc/posix-functions/wcrtomb.texi: Likewise.
66498         * doc/posix-functions/wcsrtombs.texi: Likewise.
66499         * doc/posix-functions/wcsstr.texi: Likewise.
66500         * doc/posix-functions/wctob.texi: Likewise.
66501         * doc/posix-functions/wctrans.texi: Likewise.
66502         * doc/posix-functions/wmemchr.texi: Likewise.
66503         * doc/posix-functions/wmemcmp.texi: Likewise.
66504         * doc/posix-functions/wmemcpy.texi: Likewise.
66505         * doc/posix-functions/wmemmove.texi: Likewise.
66506         * doc/posix-functions/wmemset.texi: Likewise.
66507         * doc/posix-functions/wprintf.texi: Likewise.
66508         * doc/posix-functions/wscanf.texi: Likewise.
66510 2008-12-21  Bruno Haible  <bruno@clisp.org>
66512         Work around a portability problem.
66513         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
66514         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
66516 2008-12-20  Bruno Haible  <bruno@clisp.org>
66518         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
66519         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
66520         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
66521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
66522         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
66524         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
66525         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
66526         set.
66527         (GNULIB_defined_mbstate_t): New macro.
66528         (mbsinit): Redefine if REPLACE_MBSINIT is set.
66529         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
66530         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
66531         reuses the system's mbrtowc function but works around the bugs.
66532         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
66533         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
66534         macros.
66535         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
66536         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
66537         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
66538         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
66539         REPLACE_MBSINIT if mbsinit needs to be overridden.
66540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
66541         REPLACE_MBSINIT, REPLACE_MBRTOWC.
66542         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
66543         REPLACE_MBSINIT, REPLACE_MBRTOWC.
66544         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66545         m4/locale-zh.m4.
66546         (Depends): Add mbsinit.
66547         * modules/mbsinit (Depends): Add mbrtowc.
66548         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
66550 2008-12-20  Bruno Haible  <bruno@clisp.org>
66552         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
66553         so that there are no conversion errors on AIX.
66554         * tests/test-mbsrtowcs.c (main): LIkewise.
66556 2008-12-20  Bruno Haible  <bruno@clisp.org>
66558         Work around wctob bug on Solaris <= 9.
66559         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
66560         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
66561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
66562         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
66563         * modules/wctob (Files): Add m4/locale-fr.m4.
66564         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
66566 2008-12-20  Bruno Haible  <bruno@clisp.org>
66568         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
66569         /dev/null.
66570         * tests/test-select-in.sh: Likewise.
66571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66573 2008-12-20  Bruno Haible  <bruno@clisp.org>
66575         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
66576         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
66577         Cygwin 1.5.x.
66579 2008-12-20  Bruno Haible  <bruno@clisp.org>
66581         Ensure mbstate_t is defined on HP-UX 11.11.
66582         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
66583         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
66584         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
66585         AC_USE_SYSTEM_EXTENSIONS.
66586         * modules/fnmatch (Depends-on): Add extensions.
66587         * modules/mbrlen (Depends-on): Likewise.
66588         * modules/mbrtowc (Depends-on): Likewise.
66589         * modules/mbsinit (Depends-on): Likewise.
66590         * modules/mbsrtowcs (Depends-on): Likewise.
66591         * modules/mbswidth (Depends-on): Likewise.
66592         * modules/quotearg (Depends-on): Likewise.
66593         * modules/strftime (Depends-on): Likewise.
66595 2008-12-20  Bruno Haible  <bruno@clisp.org>
66597         Ensure wctob is declared on IRIX 6.5.
66598         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
66599         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
66600         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
66601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
66602         of HAVE_WCTOB.
66603         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
66604         HAVE_WCTOB.
66605         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
66607 2008-12-19  Bruno Haible  <bruno@clisp.org>
66609         * modules/mbsrtowcs-tests: New file.
66610         * tests/test-mbsrtowcs1.sh: New file.
66611         * tests/test-mbsrtowcs2.sh: New file.
66612         * tests/test-mbsrtowcs3.sh: New file.
66613         * tests/test-mbsrtowcs4.sh: New file.
66614         * tests/test-mbsrtowcs.c: New file.
66616         New module 'mbsrtowcs'.
66617         * lib/wchar.in.h (mbsrtowcs): New declaration.
66618         * lib/mbsrtowcs.c: New file.
66619         * m4/mbsrtowcs.m4: New file.
66620         * modules/mbsrtowcs: New file.
66621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
66622         HAVE_MBSRTOWCS.
66623         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
66624         HAVE_MBSRTOWCS.
66625         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
66627 2008-12-19  Bruno Haible  <bruno@clisp.org>
66629         New module 'mbrlen'.
66630         * lib/wchar.in.h (mbrlen): New declaration.
66631         * lib/mbrlen.c: New file.
66632         * m4/mbrlen.m4: New file.
66633         * modules/mbrlen: New file.
66634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
66635         HAVE_MBRLEN.
66636         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
66637         HAVE_MBRLEN.
66638         * doc/posix-functions/mbrlen.texi: Document the new module.
66640 2008-12-19  Bruno Haible  <bruno@clisp.org>
66642         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
66643         * modules/mbrtowc (Depends-on): Add verify.
66644         Suggested by Paul Eggert.
66646 2008-12-18  Bruno Haible  <bruno@clisp.org>
66648         * modules/mbsinit-tests: New file.
66649         * tests/test-mbsinit.sh: New file.
66650         * tests/test-mbsinit.c: New file.
66652 2008-12-18  Bruno Haible  <bruno@clisp.org>
66654         * modules/mbrtowc-tests: New file.
66655         * tests/test-mbrtowc1.sh: New file.
66656         * tests/test-mbrtowc2.sh: New file.
66657         * tests/test-mbrtowc3.sh: New file.
66658         * tests/test-mbrtowc4.sh: New file.
66659         * tests/test-mbrtowc.c: New file.
66661         New module 'mbrtowc'.
66662         * lib/wchar.in.h (mbstate_t): Override when the system does not have
66663         mbsinit and mbrtowc.
66664         (mbrtowc): New declaration.
66665         * lib/mbrtowc.c: New file.
66666         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
66667         * modules/mbrtowc: New file.
66668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
66669         HAVE_MBRTOWC.
66670         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
66671         HAVE_MBRTOWC.
66672         * doc/posix-functions/mbrtowc.texi: Document the new module.
66674 2008-12-18  Bruno Haible  <bruno@clisp.org>
66676         New module 'wctob'.
66677         * lib/wchar.in.h (wctob): New declaration.
66678         * lib/wctob.c: New file.
66679         * m4/wctob.m4: New file.
66680         * modules/wctob: New file.
66681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
66682         HAVE_WCTOB.
66683         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
66684         * doc/posix-functions/wctob.texi: Document the new module.
66686 2008-12-18  Bruno Haible  <bruno@clisp.org>
66688         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
66689         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
66691 2008-12-18  Simon Josefsson  <simon@josefsson.org>
66693         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
66694         G. Christensen" <tgc@jupiterrise.com>.
66696         * lib/flock.c: Need to include errno.h.  Reported by "Tom
66697         G. Christensen" <tgc@jupiterrise.com>.
66699         * lib/flock.c: Need to include string.h.  Reported by "Tom
66700         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
66701         <ebb9@byu.net>.
66703 2008-12-18  Bruno Haible  <bruno@clisp.org>
66705         * m4/locale-ja.m4: New file, from GNU gettext.
66707 2008-12-17  Bruno Haible  <bruno@clisp.org>
66709         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
66710         Suggested by Eric Blake.
66712 2008-12-17  Bruno Haible  <bruno@clisp.org>
66714         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
66716 2008-12-17  Bruno Haible  <bruno@clisp.org>
66718         * lib/mbsinit.c: Include verify.h. Verify an assumption.
66719         * modules/mbsinit (Depends-on): Add verify.
66720         Suggested by Paul Eggert.
66722 2008-12-17  Bruno Haible  <bruno@clisp.org>
66724         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
66725         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
66726         gl_FUNC_MBRTOWC.
66727         * m4/mbiter.m4 (gl_MBITER): LIkewise.
66728         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
66729         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
66730         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
66731         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
66732         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
66733         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
66734         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
66735         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
66736         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
66737         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
66738         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
66739         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
66740         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
66741         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
66742         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66743         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
66744         * modules/trim (configure.ac): Likewise.
66746 2008-12-17  Bruno Haible  <bruno@clisp.org>
66748         * modules/btowc-tests: New file.
66749         * tests/test-btowc1.sh: New file.
66750         * tests/test-btowc2.sh: New file.
66751         * tests/test-btowc.c: New file.
66753         New module 'btowc'.
66754         * lib/wchar.in.h (btowc): New declaration.
66755         * lib/btowc.c: New file.
66756         * m4/btowc.m4: New file.
66757         * modules/btowc: New file.
66758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
66759         HAVE_BTOWC.
66760         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
66761         * doc/posix-functions/btowc.texi: Document the new module.
66763 2008-12-17  Bruno Haible  <bruno@clisp.org>
66765         New module 'mbsinit'.
66766         * lib/wchar.in.h (mbsinit): New declaration.
66767         * lib/mbsinit.c: New file.
66768         * m4/mbsinit.m4: New file.
66769         * modules/mbsinit: New file.
66770         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
66771         HAVE_MBSINIT.
66772         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
66773         HAVE_MBSINIT.
66774         * doc/posix-functions/mbsinit.texi: Document the new module.
66776 2008-12-16  Bruno Haible  <bruno@clisp.org>
66778         * lib/unistd.in.h: Add comment.
66779         * tests/test-environ.c: Don't include <stdlib.h>.
66781 2008-12-16  Bruno Haible  <bruno@clisp.org>
66783         * lib/parse-duration.h (parse_duration): Document return value
66784         convention.
66785         * lib/parse-duration.c: Include specification header first. Add
66786         comments.
66787         (_): Remove macro.
66788         (parse_year_month_day, parse_hour_minute_second): Move side effects
66789         outside of strchr call.
66790         (parse_non_iso8601): Move side effects outside of isspace call.
66791         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
66792         call.
66794 2008-12-16  Bruno Haible  <bruno@clisp.org>
66796         * tests/test-parse-duration.sh: Produce no output when the test
66797         succeeds.
66799 2008-12-16  Bruno Haible  <bruno@clisp.org>
66801         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
66802         expressions.
66804 2008-12-15  Bruno Haible  <bruno@clisp.org>
66806         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
66807         * doc/glibc-functions/flistxattr.texi: Likewise.
66808         * doc/glibc-functions/fopencookie.texi: Likewise.
66809         * doc/glibc-functions/fremovexattr.texi: Likewise.
66810         * doc/glibc-functions/fsetxattr.texi: Likewise.
66811         * doc/glibc-functions/getxattr.texi: Likewise.
66812         * doc/glibc-functions/lgetxattr.texi: Likewise.
66813         * doc/glibc-functions/listxattr.texi: Likewise.
66814         * doc/glibc-functions/llistxattr.texi: Likewise.
66815         * doc/glibc-functions/lremovexattr.texi: Likewise.
66816         * doc/glibc-functions/lsetxattr.texi: Likewise.
66817         * doc/glibc-functions/removexattr.texi: Likewise.
66818         * doc/glibc-functions/setxattr.texi: Likewise.
66819         * doc/posix-functions/open_memstream.texi: Likewise.
66821 2008-12-15  Eric Blake  <ebb9@byu.net>
66823         Update doc for cygwin 1.7.
66824         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
66825         functions.
66826         * doc/posix-functions/fchmodat.texi: Likewise.
66827         * doc/posix-functions/fchownat.texi: Likewise.
66828         * doc/posix-functions/fdopendir.texi: Likewise.
66829         * doc/posix-functions/fmemopen.texi: Likewise.
66830         * doc/posix-functions/freeaddrinfo.texi: Likewise.
66831         * doc/posix-functions/fstatat.texi: Likewise.
66832         * doc/posix-functions/futimens.texi: Likewise.
66833         * doc/posix-functions/gai_strerror.texi: Likewise.
66834         * doc/posix-functions/getaddrinfo.texi: Likewise.
66835         * doc/posix-functions/getnameinfo.texi: Likewise.
66836         * doc/posix-functions/if_freenameindex.texi: Likewise.
66837         * doc/posix-functions/if_indextoname.texi: Likewise.
66838         * doc/posix-functions/if_nameindex.texi: Likewise.
66839         * doc/posix-functions/if_nametoindex.texi: Likewise.
66840         * doc/posix-functions/insque.texi: Likewise.
66841         * doc/posix-functions/linkat.texi: Likewise.
66842         * doc/posix-functions/llrint.texi: Likewise.
66843         * doc/posix-functions/llrintf.texi: Likewise.
66844         * doc/posix-functions/llrintl.texi: Likewise.
66845         * doc/posix-functions/lockf.texi: Likewise.
66846         * doc/posix-functions/lrintl.texi: Likewise.
66847         * doc/posix-functions/mkdirat.texi: Likewise.
66848         * doc/posix-functions/mkfifoat.texi: Likewise.
66849         * doc/posix-functions/mknodat.texi: Likewise.
66850         * doc/posix-functions/mq_close.texi: Likewise.
66851         * doc/posix-functions/mq_getattr.texi: Likewise.
66852         * doc/posix-functions/mq_notify.texi: Likewise.
66853         * doc/posix-functions/mq_open.texi: Likewise.
66854         * doc/posix-functions/mq_receive.texi: Likewise.
66855         * doc/posix-functions/mq_send.texi: Likewise.
66856         * doc/posix-functions/mq_setattr.texi: Likewise.
66857         * doc/posix-functions/mq_timedreceive.texi: Likewise.
66858         * doc/posix-functions/mq_timedsend.texi: Likewise.
66859         * doc/posix-functions/mq_unlink.texi: Likewise.
66860         * doc/posix-functions/open_memstream.texi: Likewise.
66861         * doc/posix-functions/openat.texi: Likewise.
66862         * doc/posix-functions/posix_fadvise.texi: Likewise.
66863         * doc/posix-functions/posix_fallocate.texi: Likewise.
66864         * doc/posix-functions/posix_madvise.texi: Likewise.
66865         * doc/posix-functions/posix_memalign.texi: Likewise.
66866         * doc/posix-functions/posix_openpt.texi: Likewise.
66867         * doc/posix-functions/readlinkat.texi: Likewise.
66868         * doc/posix-functions/remque.texi: Likewise.
66869         * doc/posix-functions/renameat.texi: Likewise.
66870         * doc/posix-functions/rintl.texi: Likewise.
66871         * doc/posix-functions/sem_unlink.texi: Likewise.
66872         * doc/posix-functions/shm_open.texi: Likewise.
66873         * doc/posix-functions/shm_unlink.texi: Likewise.
66874         * doc/posix-functions/signgam.texi: Likewise.
66875         * doc/posix-functions/sigset.texi: Likewise.
66876         * doc/posix-functions/stpcpy.texi: Likewise.
66877         * doc/posix-functions/stpncpy.texi: Likewise.
66878         * doc/posix-functions/strerror.texi: Likewise.
66879         * doc/posix-functions/strtod.texi: Likewise.
66880         * doc/posix-functions/symlinkat.texi: Likewise.
66881         * doc/posix-functions/unlinkat.texi: Likewise.
66882         * doc/posix-functions/utimensat.texi: Likewise.
66883         * doc/glibc-functions/bindresvport.texi: Likewise.
66884         * doc/glibc-functions/dn_expand.texi: Likewise.
66885         * doc/glibc-functions/exp10.texi: Likewise.
66886         * doc/glibc-functions/exp10f.texi: Likewise.
66887         * doc/glibc-functions/fgetxattr.texi: Likewise.
66888         * doc/glibc-functions/flistxattr.texi: Likewise.
66889         * doc/glibc-functions/fopencookie.texi: Likewise.
66890         * doc/glibc-functions/freeifaddrs.texi: Likewise.
66891         * doc/glibc-functions/fremovexattr.texi: Likewise.
66892         * doc/glibc-functions/fsetxattr.texi: Likewise.
66893         * doc/glibc-functions/getifaddrs.texi: Likewise.
66894         * doc/glibc-functions/getxattr.texi: Likewise.
66895         * doc/glibc-functions/lgetxattr.texi: Likewise.
66896         * doc/glibc-functions/listxattr.texi: Likewise.
66897         * doc/glibc-functions/llistxattr.texi: Likewise.
66898         * doc/glibc-functions/lremovexattr.texi: Likewise.
66899         * doc/glibc-functions/lsetxattr.texi: Likewise.
66900         * doc/glibc-functions/pow10.texi: Likewise.
66901         * doc/glibc-functions/pow10f.texi: Likewise.
66902         * doc/glibc-functions/rcmd_af.texi: Likewise.
66903         * doc/glibc-functions/removexattr.texi: Likewise.
66904         * doc/glibc-functions/res_init.texi: Likewise.
66905         * doc/glibc-functions/res_mkquery.texi: Likewise.
66906         * doc/glibc-functions/res_query.texi: Likewise.
66907         * doc/glibc-functions/res_querydomain.texi: Likewise.
66908         * doc/glibc-functions/res_send.texi: Likewise.
66909         * doc/glibc-functions/rresvport_af.texi: Likewise.
66910         * doc/glibc-functions/setxattr.texi: Likewise.
66911         * doc/glibc-functions/strcasestr.texi: Likewise.
66913 2008-12-15  Bruno Haible  <bruno@clisp.org>
66915         Fix compilation error on OSF/1 4.0.
66916         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
66917         <sys/time.h>, simply delegate to the system header.
66918         Reported by Daniel Richard G. <oss@teragram.com>.
66920 2008-12-15  Bruno Haible  <bruno@clisp.org>
66922         * doc/posix-functions/openat.texi: Mention the 'openat' module.
66923         * doc/posix-functions/fchmodat.texi: Likewise.
66924         * doc/posix-functions/fchownat.texi: Likewise.
66925         * doc/posix-functions/fdopendir.texi: Likewise.
66926         * doc/posix-functions/fstatat.texi: Likewise.
66927         * doc/posix-functions/mkdirat.texi: Likewise.
66928         * doc/posix-functions/unlinkat.texi: Likewise.
66930 2008-12-14  Bruno Haible  <bruno@clisp.org>
66932         Update doc for POSIX:2008.
66933         * doc/posix-functions/faccessat.texi: New file.
66934         * doc/posix-functions/fchmodat.texi: New file.
66935         * doc/posix-functions/fchownat.texi: New file.
66936         * doc/posix-functions/fdopendir.texi: New file.
66937         * doc/posix-functions/fstatat.texi: New file.
66938         * doc/posix-functions/futimens.texi: New file.
66939         * doc/posix-functions/linkat.texi: New file.
66940         * doc/posix-functions/mkdirat.texi: New file.
66941         * doc/posix-functions/mkfifoat.texi: New file.
66942         * doc/posix-functions/mknodat.texi: New file.
66943         * doc/posix-functions/open_wmemstream.texi: New file.
66944         * doc/posix-functions/openat.texi: New file.
66945         * doc/posix-functions/psiginfo.texi: New file.
66946         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
66947         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
66948         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
66949         * doc/posix-functions/readlinkat.texi: New file.
66950         * doc/posix-functions/renameat.texi: New file.
66951         * doc/posix-functions/strerror_l.texi: New file.
66952         * doc/posix-functions/symlinkat.texi: New file.
66953         * doc/posix-functions/unlinkat.texi: New file.
66954         * doc/posix-functions/utimensat.texi: New file.
66955         * doc/gnulib.texi (Function Substitutes): Add these subsections.
66957 2008-12-14  Bruno Haible  <bruno@clisp.org>
66959         Update doc for POSIX:2008.
66960         * doc/posix-functions/alphasort.texi: Renamed from
66961         doc/glibc-functions/alphasort.texi.
66962         * doc/posix-functions/dirfd.texi: Renamed from
66963         doc/glibc-functions/dirfd.texi.
66964         * doc/posix-functions/dprintf.texi: Renamed from
66965         doc/glibc-functions/dprintf.texi.
66966         * doc/posix-functions/duplocale.texi: Renamed from
66967         doc/glibc-functions/duplocale.texi.
66968         * doc/posix-functions/fexecve.texi: Renamed from
66969         doc/glibc-functions/fexecve.texi.
66970         * doc/posix-functions/fmemopen.texi: Renamed from
66971         doc/glibc-functions/fmemopen.texi.
66972         * doc/posix-functions/freelocale.texi: Renamed from
66973         doc/glibc-functions/freelocale.texi.
66974         * doc/posix-functions/getdate_err.texi: Renamed from
66975         doc/glibc-functions/getdate_err.texi.
66976         * doc/posix-functions/isalnum_l.texi: Renamed from
66977         doc/glibc-functions/isalnum_l.texi.
66978         * doc/posix-functions/isalpha_l.texi: Renamed from
66979         doc/glibc-functions/isalpha_l.texi.
66980         * doc/posix-functions/isblank_l.texi: Renamed from
66981         doc/glibc-functions/isblank_l.texi.
66982         * doc/posix-functions/iscntrl_l.texi: Renamed from
66983         doc/glibc-functions/iscntrl_l.texi.
66984         * doc/posix-functions/isdigit_l.texi: Renamed from
66985         doc/glibc-functions/isdigit_l.texi.
66986         * doc/posix-functions/isgraph_l.texi: Renamed from
66987         doc/glibc-functions/isgraph_l.texi.
66988         * doc/posix-functions/islower_l.texi: Renamed from
66989         doc/glibc-functions/islower_l.texi.
66990         * doc/posix-functions/isprint_l.texi: Renamed from
66991         doc/glibc-functions/isprint_l.texi.
66992         * doc/posix-functions/ispunct_l.texi: Renamed from
66993         doc/glibc-functions/ispunct_l.texi.
66994         * doc/posix-functions/isspace_l.texi: Renamed from
66995         doc/glibc-functions/isspace_l.texi.
66996         * doc/posix-functions/isupper_l.texi: Renamed from
66997         doc/glibc-functions/isupper_l.texi.
66998         * doc/posix-functions/iswalnum_l.texi: Renamed from
66999         doc/glibc-functions/iswalnum_l.texi.
67000         * doc/posix-functions/iswalpha_l.texi: Renamed from
67001         doc/glibc-functions/iswalpha_l.texi.
67002         * doc/posix-functions/iswblank_l.texi: Renamed from
67003         doc/glibc-functions/iswblank_l.texi.
67004         * doc/posix-functions/iswcntrl_l.texi: Renamed from
67005         doc/glibc-functions/iswcntrl_l.texi.
67006         * doc/posix-functions/iswctype_l.texi: Renamed from
67007         doc/glibc-functions/iswctype_l.texi.
67008         * doc/posix-functions/iswdigit_l.texi: Renamed from
67009         doc/glibc-functions/iswdigit_l.texi.
67010         * doc/posix-functions/iswgraph_l.texi: Renamed from
67011         doc/glibc-functions/iswgraph_l.texi.
67012         * doc/posix-functions/iswlower_l.texi: Renamed from
67013         doc/glibc-functions/iswlower_l.texi.
67014         * doc/posix-functions/iswprint_l.texi: Renamed from
67015         doc/glibc-functions/iswprint_l.texi.
67016         * doc/posix-functions/iswpunct_l.texi: Renamed from
67017         doc/glibc-functions/iswpunct_l.texi.
67018         * doc/posix-functions/iswspace_l.texi: Renamed from
67019         doc/glibc-functions/iswspace_l.texi.
67020         * doc/posix-functions/iswupper_l.texi: Renamed from
67021         doc/glibc-functions/iswupper_l.texi.
67022         * doc/posix-functions/iswxdigit_l.texi: Renamed from
67023         doc/glibc-functions/iswxdigit_l.texi.
67024         * doc/posix-functions/isxdigit_l.texi: Renamed from
67025         doc/glibc-functions/isxdigit_l.texi.
67026         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
67027         doc/glibc-functions/mbsnrtowcs.texi.
67028         * doc/posix-functions/mkdtemp.texi: Renamed from
67029         doc/glibc-functions/mkdtemp.texi.
67030         * doc/posix-functions/newlocale.texi: Renamed from
67031         doc/glibc-functions/newlocale.texi.
67032         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
67033         doc/glibc-functions/nl_langinfo_l.texi.
67034         * doc/posix-functions/open_memstream.texi: Renamed from
67035         doc/glibc-functions/open_memstream.texi.
67036         * doc/posix-functions/opterr.texi: Renamed from
67037         doc/glibc-functions/opterr.texi.
67038         * doc/posix-functions/optind.texi: Renamed from
67039         doc/glibc-functions/optind.texi.
67040         * doc/posix-functions/optopt.texi: Renamed from
67041         doc/glibc-functions/optopt.texi.
67042         * doc/posix-functions/psignal.texi: Renamed from
67043         doc/glibc-functions/psignal.texi.
67044         * doc/posix-functions/scandir.texi: Renamed from
67045         doc/glibc-functions/scandir.texi.
67046         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
67047         doc/glibc-functions/sched_get_priority_min.texi.
67048         * doc/posix-functions/signgam.texi: Renamed from
67049         doc/glibc-functions/signgam.texi.
67050         * doc/posix-functions/stpcpy.texi: Renamed from
67051         doc/glibc-functions/stpcpy.texi.
67052         * doc/posix-functions/stpncpy.texi: Renamed from
67053         doc/glibc-functions/stpncpy.texi.
67054         * doc/posix-functions/strcasecmp_l.texi: Renamed from
67055         doc/glibc-functions/strcasecmp_l.texi.
67056         * doc/posix-functions/strcoll_l.texi: Renamed from
67057         doc/glibc-functions/strcoll_l.texi.
67058         * doc/posix-functions/strfmon_l.texi: Renamed from
67059         doc/glibc-functions/strfmon_l.texi.
67060         * doc/posix-functions/strftime_l.texi: Renamed from
67061         doc/glibc-functions/strftime_l.texi.
67062         * doc/posix-functions/strncasecmp_l.texi: Renamed from
67063         doc/glibc-functions/strncasecmp_l.texi.
67064         * doc/posix-functions/strndup.texi: Renamed from
67065         doc/glibc-functions/strndup.texi.
67066         * doc/posix-functions/strnlen.texi: Renamed from
67067         doc/glibc-functions/strnlen.texi.
67068         * doc/posix-functions/strsignal.texi: Renamed from
67069         doc/glibc-functions/strsignal.texi.
67070         * doc/posix-functions/strxfrm_l.texi: Renamed from
67071         doc/glibc-functions/strxfrm_l.texi.
67072         * doc/posix-functions/timer_gettime.texi: Renamed from
67073         doc/glibc-functions/timer_gettime.texi.
67074         * doc/posix-functions/tolower_l.texi: Renamed from
67075         doc/glibc-functions/tolower_l.texi.
67076         * doc/posix-functions/toupper_l.texi: Renamed from
67077         doc/glibc-functions/toupper_l.texi.
67078         * doc/posix-functions/towctrans_l.texi: Renamed from
67079         doc/glibc-functions/towctrans_l.texi.
67080         * doc/posix-functions/towlower_l.texi: Renamed from
67081         doc/glibc-functions/towlower_l.texi.
67082         * doc/posix-functions/towupper_l.texi: Renamed from
67083         doc/glibc-functions/towupper_l.texi.
67084         * doc/posix-functions/uselocale.texi: Renamed from
67085         doc/glibc-functions/uselocale.texi.
67086         * doc/posix-functions/vdprintf.texi: Renamed from
67087         doc/glibc-functions/vdprintf.texi.
67088         * doc/posix-functions/wcpcpy.texi:
67089         Renamed from doc/glibc-functions/wcpcpy.texi.
67090         * doc/posix-functions/wcpncpy.texi: Renamed from
67091         doc/glibc-functions/wcpncpy.texi.
67092         * doc/posix-functions/wcscasecmp.texi: Renamed from
67093         doc/glibc-functions/wcscasecmp.texi.
67094         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
67095         doc/glibc-functions/wcscasecmp_l.texi.
67096         * doc/posix-functions/wcscoll_l.texi: Renamed from
67097         doc/glibc-functions/wcscoll_l.texi.
67098         * doc/posix-functions/wcsdup.texi: Renamed from
67099         doc/glibc-functions/wcsdup.texi.
67100         * doc/posix-functions/wcsncasecmp.texi: Renamed from
67101         doc/glibc-functions/wcsncasecmp.texi.
67102         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
67103         doc/glibc-functions/wcsncasecmp_l.texi.
67104         * doc/posix-functions/wcsnlen.texi: Renamed from
67105         doc/glibc-functions/wcsnlen.texi.
67106         * doc/posix-functions/wcsnrtombs.texi: Renamed from
67107         doc/glibc-functions/wcsnrtombs.texi.
67108         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
67109         doc/glibc-functions/wcsxfrm_l.texi.
67110         * doc/posix-functions/wctrans_l.texi: Renamed from
67111         doc/glibc-functions/wctrans_l.texi.
67112         * doc/posix-functions/wctype_l.texi: Renamed from
67113         doc/glibc-functions/wctype_l.texi.
67114         * doc/gnulib.texi (Function Substitutes): Add these subsections.
67115         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
67116         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
67117         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
67118         these subsections.
67119         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
67120         Remove sections.
67122 2008-12-14  Bruno Haible  <bruno@clisp.org>
67124         Update doc for POSIX:2008.
67125         * doc/posix-functions/*.texi: Update URL of POSIX specification.
67127 2008-12-14  Bruno Haible  <bruno@clisp.org>
67129         Update doc for POSIX:2008.
67130         * doc/pastposix-functions/bcmp.texi: Renamed from
67131         doc/posix-functions/bcmp.texi.
67132         * doc/pastposix-functions/bcopy.texi: Renamed from
67133         doc/posix-functions/bcopy.texi.
67134         * doc/pastposix-functions/bsd_signal.texi: Renamed from
67135         doc/posix-functions/bsd_signal.texi.
67136         * doc/pastposix-functions/bzero.texi: Renamed from
67137         doc/posix-functions/bzero.texi.
67138         * doc/pastposix-functions/ecvt.texi: Renamed from
67139         doc/posix-functions/ecvt.texi.
67140         * doc/pastposix-functions/fcvt.texi: Renamed from
67141         doc/posix-functions/fcvt.texi.
67142         * doc/pastposix-functions/ftime.texi: Renamed from
67143         doc/posix-functions/ftime.texi.
67144         * doc/pastposix-functions/gcvt.texi: Renamed from
67145         doc/posix-functions/gcvt.texi.
67146         * doc/pastposix-functions/getcontext.texi: Renamed from
67147         doc/posix-functions/getcontext.texi.
67148         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
67149         doc/posix-functions/gethostbyaddr.texi.
67150         * doc/pastposix-functions/gethostbyname.texi: Renamed from
67151         doc/posix-functions/gethostbyname.texi.
67152         * doc/pastposix-functions/getwd.texi: Renamed from
67153         doc/posix-functions/getwd.texi.
67154         * doc/pastposix-functions/h_errno.texi: Renamed from
67155         doc/posix-functions/h_errno.texi.
67156         * doc/pastposix-functions/index.texi: Renamed from
67157         doc/posix-functions/index.texi.
67158         * doc/pastposix-functions/makecontext.texi: Renamed from
67159         doc/posix-functions/makecontext.texi.
67160         * doc/pastposix-functions/mktemp.texi: Renamed from
67161         doc/posix-functions/mktemp.texi.
67162         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
67163         doc/posix-functions/pthread_attr_getstackaddr.texi.
67164         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
67165         doc/posix-functions/pthread_attr_setstackaddr.texi.
67166         * doc/pastposix-functions/rindex.texi: Renamed from
67167         doc/posix-functions/rindex.texi.
67168         * doc/pastposix-functions/scalb.texi: Renamed from
67169         doc/posix-functions/scalb.texi.
67170         * doc/pastposix-functions/setcontext.texi: Renamed from
67171         doc/posix-functions/setcontext.texi.
67172         * doc/pastposix-functions/swapcontext.texi: Renamed from
67173         doc/posix-functions/swapcontext.texi.
67174         * doc/pastposix-functions/ualarm.texi: Renamed from
67175         doc/posix-functions/ualarm.texi.
67176         * doc/pastposix-functions/usleep.texi: Renamed from
67177         doc/posix-functions/usleep.texi.
67178         * doc/pastposix-functions/vfork.texi: Renamed from
67179         doc/posix-functions/vfork.texi.
67180         * doc/pastposix-functions/wcswcs.texi: Renamed from
67181         doc/posix-functions/wcswcs.texi.
67182         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
67183         (Function Substitutes): Update.
67185 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67187         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
67188         m4/strerror.m4.
67190 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67191             Bruno Haible  <bruno@clisp.org>
67193         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
67195 2008-12-13  Bruno Haible  <bruno@clisp.org>
67197         * modules/strtoull (Depends-on): Remove unistd.
67199 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67201         * modules/strtoull (Depends-on): Add stdlib.
67203 2008-12-11  Simon Josefsson  <simon@josefsson.org>
67205         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
67207 2008-12-10  Jim Meyering  <meyering@redhat.com>
67209         gl_ASSERT: don't say assertions are disabled when they're not
67210         * m4/assert.m4 (gl_ASSERT): Do not make configure report
67211         "checking whether to enable assertions... no", when they are in
67212         fact enabled.  This is solely a bug in the output of configure.
67213         In spite of saying "no", NDEBUG was not defined in that case.
67214         Also, as noted by Eric Blake, leave assertions enabled upon
67215         --enable-assert=INVALID.
67217 2008-12-10  Bruno Haible  <bruno@clisp.org>
67219         Change MODULES.html to refer to POSIX:2008 where possible.
67220         * MODULES.html.sh (POSIX2008_URL): New variable.
67221         (posix_headers): Remove sys/timeb, ucontext.
67222         (posix2001_headers): New variable.
67223         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
67224         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
67225         index, makecontext, mktemp, pthread_attr_getstackaddr,
67226         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
67227         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
67228         (posix2001_functions): New variable.
67229         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
67230         otherwise.
67232 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67234         add missing include to parse-duration.c
67235         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
67236         * modules/parse-duration (Depends-on): Add xalloc.
67238         fix sed script reading maint.mk
67239         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
67240         (syntax-check-rules): Use it.
67242 2008-12-09  Bruno Haible  <bruno@clisp.org>
67244         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
67245         MacOS X 10.4/PowerPC.
67246         Reported by Simon Josefsson.
67248 2008-12-08  Jim Meyering  <meyering@redhat.com>
67250         work around mingw's lack of some S_IF definitions
67251         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
67252         Reported by Simon Josefsson.
67254 2008-12-08  Bruno Haible  <bruno@clisp.org>
67256         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
67257         applied to variables. Needed on MacOS X 10.4/PowerPC.
67258         Reported by Simon Josefsson.
67260 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
67261         and Eric Blake  <ebb9@byu.net>
67263         assert: honor --enable-assert
67264         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
67265         order to honor --enable-assert, rather than treating it as a
67266         synonym for --disable-assert.
67268 2008-12-08  Jim Meyering  <meyering@redhat.com>
67270         * lib/posixtm.c: Remove now-useless declaration of mktime.
67272         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
67274 2008-12-07  Bruno Haible  <bruno@clisp.org>
67276         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
67277         test_once): Mark functions as static.
67278         * tests/test-tls.c (test_tls): Likewise.
67280 2008-12-07  Bruno Haible  <bruno@clisp.org>
67282         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
67283         iconv_register_autodetect.
67285 2008-12-07  Jim Meyering  <meyering@redhat.com>
67287         posixtm.c: avoid a warning
67288         * lib/posixtm.c (posixtime): Don't initialize tm0.
67289         It's no longer needed to placate gcc4's -Wuninitialized,
67290         and the attempt to placate would elicit a new warning.
67292         unicodeio.c: mark unused parameters
67293         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
67294         (fallback_failure_callback): Likewise.
67296 2008-12-07  Bruno Haible  <bruno@clisp.org>
67298         * gnulib-tool (func_create_testdir): When building the tests
67299         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
67300         Reported by Simon Josefsson.
67302 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67304         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
67306 2008-12-06  Bruno Haible  <bruno@clisp.org>
67308         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
67309         Suggested by Eric Blake.
67311 2008-12-06  Bruno Haible  <bruno@clisp.org>
67313         Fix a c-stack test failure on MacOS X.
67314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
67315         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
67316         handler for SIGBUS as well.
67317         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
67318         install a signal handler for SIGBUS as well.
67319         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
67321 2008-12-06  Bruno Haible  <bruno@clisp.org>
67323         Advocacy documentation.
67324         * doc/gnulib-intro.texi (Benefits): New section.
67325         * doc/gnulib.texi: Update.
67327 2008-12-06  Bruno Haible  <bruno@clisp.org>
67329         Document the 'manywarnings' module.
67330         * doc/manywarnings.texi: New file.
67331         * doc/gnulib.texi: Include it.
67333 2008-12-05  Eric Blake  <ebb9@byu.net>
67335         tests: silence some gcc warnings
67336         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
67337         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
67338         type mismatches.
67340 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67341             Bruno Haible  <bruno@clisp.org>
67343         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
67345 2008-11-29  Jim Meyering  <meyering@redhat.com>
67347         unicodeio.c: mark unused parameters
67348         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
67349         (fallback_failure_callback): Likewise.
67351         fts: fix a thinko
67352         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
67353         (set_stat_type): Return S_IF*-valued "type" directly.
67354         Prompted by James Youngman's spotting a related bug.
67355         Confirmed by further testing through find.
67357         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
67358         * lib/fts.c (D_TYPE): Define.
67359         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
67360         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
67361         (s_ifmt_shift_bits): New function.
67362         (set_stat_type): New function.
67363         (fts_build): When not calling fts_stat, call set_stat_type
67364         to propagate dirent.d_type info to fts_read caller.
67365         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
67366         fts_statp->st_mode type information may be valid.
67368 2008-11-28  Simon Josefsson  <simon@josefsson.org>
67370         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
67371         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
67372         <sds@gnu.org>.
67374 2008-11-20  Bruno Haible  <bruno@clisp.org>
67376         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
67377         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
67378         INCLUDE_NEXT.
67379         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
67380         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
67381         * modules/math (Makefile.am): Substitute
67382         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
67383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67385 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
67386             Bruno Haible  <bruno@clisp.org>
67388         * lib/stdint.in.h: Define all type macros so that their expansion is
67389         a single typedef'ed token. Fixes a compilation failure in Boost which
67390         does "using ::int8_t;".
67392 2008-11-18  Simon Josefsson  <simon@josefsson.org>
67394         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
67395         gl_MANYWARN_ALL_GCC.
67396         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
67397         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
67398         * modules/manywarnings: New file.
67399         * MODULES.html.sh: Mention manywarnings module.
67401 2008-11-18  Bruno Haible  <bruno@clisp.org>
67403         * doc/gnulib-tool.texi (Unit tests): New section.
67405 2008-11-18  Simon Josefsson  <simon@josefsson.org>
67407         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
67408         paths like 'lib/po/foo.po'.
67410 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67412         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
67413         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
67415 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67417         * m4/warnings.m4: Use CPPFLAGS to really check whether the
67418         parameter works.
67420 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67422         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
67424 2008-11-17  Bruce Korb  <bkorb@gnu.org>
67426         * modules/parse-duration-tests: New file.
67427         * tests/test-parse-duration.sh: New file.
67428         * tests/test-parse-duration.c: New file.
67430         New module 'parse-duration'.
67431         * lib/parse-duration.h: New file.
67432         * lib/parse-duration.c: New file.
67433         * modules/parse-duration: New file.
67435 2008-11-17  Bruno Haible  <bruno@clisp.org>
67437         * tests/test-select-out.sh: Comment out the first pipe test.
67438         Reported by Simon Josefsson.
67440 2008-11-17  Bruno Haible  <bruno@clisp.org>
67442         * modules/getaddrinfo (Depends-on): Add servent, hostent.
67443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
67444         gl_HOSTENT.
67446 2008-11-17  Bruno Haible  <bruno@clisp.org>
67448         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
67449         -lnetwork and -lnet. Needed for Haiku and BeOS.
67451 2008-11-16  Bruno Haible  <bruno@clisp.org>
67453         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
67455 2008-11-16  Bruno Haible  <bruno@clisp.org>
67457         Avoid test failure on Haiku.
67458         * tests/test-fsync.c: Include <errno.h>.
67459         (main): Don't require that fsync (0) fails.
67461 2008-11-15  Bruno Haible  <bruno@clisp.org>
67463         New module 'hostent'.
67464         * modules/hostent: New file.
67465         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
67467 2008-11-15  Bruno Haible  <bruno@clisp.org>
67469         New module 'servent'.
67470         * modules/servent: New file.
67471         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
67473 2008-11-15  Bruno Haible  <bruno@clisp.org>
67475         Avoid generating same test program with two different rules.
67476         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
67477         test-frexp to test-frexp-nolibm.
67478         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
67479         test-frexpl to test-frexpl-nolibm.
67481 2008-11-15  Bruno Haible  <bruno@clisp.org>
67483         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
67484         $(FREXPL_LIBM).
67486 2008-11-15  Bruno Haible  <bruno@clisp.org>
67488         * lib/netdb.in.h: Activate the definitions also when the system's
67489         <netdb.h> has 'struct addrinfo'.
67490         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
67491         EAI_OVERFLOW or AI_NUMERICSERV.
67492         * doc/posix-headers/netdb.texi: Document the problem.
67494 2008-11-15  Bruno Haible  <bruno@clisp.org>
67496         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
67498         Make the 'sched' module work on platforms where <sched.h> exists but
67499         is incomplete (such as Haiku).
67500         * lib/sched.in.h; Include the system's <sched.h> if it exists.
67501         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
67502         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
67503         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
67504         HAVE_STRUCT_SCHED_PARAM.
67505         * modules/sched (Depends-on): Add include_next.
67506         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
67507         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
67508         * doc/posix-headers/sched.texi: Document the issue.
67510 2008-11-13  Jim Meyering  <meyering@redhat.com>
67512         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
67513         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
67514         test would fail due to the difference in the Report bugs to ...
67515         line.  The expected address is empty, "<>", while the actual
67516         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
67518 2008-11-12  Bruno Haible  <bruno@clisp.org>
67520         lstat: don't compile lstat.c on systems lacking lstat
67521         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
67522         which don't have lstat; this is handled by lib/sys_stat.in.h already.
67523         Reported by Daniel P. Berrange via Jim Meyering.
67525 2008-11-12  Jim Meyering  <meyering@redhat.com>
67527         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
67529 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67531         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
67532         instead.
67534 2008-11-12  Bruno Haible  <bruno@clisp.org>
67536         * lib/unicodeio.c: Include unistr.h.
67537         (utf8_wctomb): Remove function.
67538         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
67540 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67542         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
67543         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
67544         <bruno@clisp.org>.
67545         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
67547 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67549         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
67550         * doc/gnulib.texi: Add section for warnings.
67552 2008-11-11  Bruno Haible  <bruno@clisp.org>
67554         * lib/sockets.h: Add a comment.
67556 2008-11-11  Karl Berry  <karl@gnu.org>
67558         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
67560 2008-11-11  Eric Blake  <ebb9@byu.net>
67562         fdl.texi: avoid git symlinks
67563         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
67565 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67567         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
67569 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67571         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
67572         (gl_WARN_ADD): Substitute $2 if literal.
67574 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67576         * m4/warning.m4: Remove.
67578 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67580         * m4/warnings.m4: Almost complete rewrite. :-)
67582 2008-11-10  Simon Josefsson  <simon@josefsson.org>
67584         * modules/warnings: New module.
67585         * m4/warnings.m4: New file.
67586         * MODULES.html.sh: Mention warnings module.
67587         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
67588         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67590 2008-11-10  Eric Blake  <ebb9@byu.net>
67592         fdl.texi: make a symlink to the latest version
67593         * doc/standards.texi: Revert today's earlier change.
67594         * doc/fdl-1.2.texi: Rename from old fdl.texi...
67595         * doc/fdl.texi: ...and replace this with a symlink to the newer
67596         fdl-1.3.texi.
67598 2008-11-10  Bruno Haible  <bruno@clisp.org>
67600         * tests/test-select-fd.c (main): Accept the result file name as fourth
67601         argument.
67602         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
67603         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
67605 2008-11-10  Bruno Haible  <bruno@clisp.org>
67607         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
67608         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
67609         as autoconf-substituted macros.
67610         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
67611         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
67612         gl_NETDB_H_DEFAULTS. Set these variables.
67613         * modules/netdb (Makefile.am): Substitute these variables.
67615 2008-11-10  Eric Blake  <ebb9@byu.net>
67617         standards.texi: include correct file for FDL 1.3
67618         * doc/standards.texi (GNU Free Documentation License): Change
67619         include file to pull in FDL 1.3, not 1.2.
67621         fdl.texi: revert accidental change to license
67622         * doc/fdl.texi: This is FDL 1.2, not 1.3.
67624 2008-11-10  Bruno Haible  <bruno@clisp.org>
67626         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
67627         cross-compiling guesses also when the native compile gives no result.
67629 2008-11-10  Bruno Haible  <bruno@clisp.org>
67631         * lib/spawni.c (__spawni): Force variable into the stack.
67633 2008-11-10  Bruno Haible  <bruno@clisp.org>
67635         Add support for Haiku.
67636         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
67637         glibc and BeOS, but also on Haiku.
67638         * lib/fpurge.c (fpurge): Likewise.
67639         * lib/freadable.c (freadable): Likewise.
67640         * lib/freadahead.c (freadahead): Likewise.
67641         * lib/freading.c (freading): Likewise.
67642         * lib/freadptr.c (freadptr): Likewise.
67643         * lib/freadseek.c (freadptrinc): Likewise.
67644         * lib/fseeko.c (rpl_fseeko): Likewise.
67645         * lib/fseterr.c (fseterr): Likewise.
67646         * lib/fwritable.c (fwritable): Likewise.
67647         * lib/fwriting.c (fwriting): Likewise.
67648         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
67650 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
67652         * lib/config.charset: Treat Haiku like BeOS.
67654 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
67656         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
67657         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
67659 2008-11-08  Bruno Haible  <bruno@clisp.org>
67661         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
67662         AC_CACHE_CHECK.
67664 2008-11-08  Bruno Haible  <bruno@clisp.org>
67666         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
67668 2008-11-08  Bruno Haible  <bruno@clisp.org>
67670         * tests/test-select-fd.c: New file.
67671         * tests/test-select-in.sh: New file.
67672         * tests/test-select-out.sh: New file.
67673         * tests/test-select-stdin.c: New file.
67674         * modules/select-tests (Files): Add the new files.
67675         (Depends-on): Add gettimeofday.
67676         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
67677         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
67678         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
67680 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
67681             Bruno Haible  <bruno@clisp.org>
67683         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
67685 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
67687         * build-aux/pmccabe2html: Added support for C++ source files.
67689 2008-11-05  Ben Pfaff  <blp@gnu.org>
67691         Fix lib/close.c build on Windows.
67692         * modules/close (Files): Add lib/w32sock.h.
67694 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
67696         Accept Bison's NEWS format.
67697         * build-aux/announce-gen (print_news_deltas): Tweak
67698         $re_prefix.
67700 2008-11-04  Bruno Haible  <bruno@clisp.org>
67702         * modules/random_r (Maintainer): Add glibc.
67704 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67706         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
67707         by karl@freefriends.org (Karl Berry).
67708         * doc/alloca.texi: Likewise.
67709         * doc/c-ctype.texi: Likewise.
67710         * doc/c-strcase.texi: Likewise.
67711         * doc/c-strcaseeq.texi: Likewise.
67712         * doc/c-strcasestr.texi: Likewise.
67713         * doc/c-strstr.texi: Likewise.
67714         * doc/c-strtod.texi: Likewise.
67715         * doc/c-strtold.texi: Likewise.
67716         * doc/ctime.texi: Likewise.
67717         * doc/error.texi: Likewise.
67718         * doc/fdl.texi: Likewise.
67719         * doc/gcd.texi: Likewise.
67720         * doc/getdate.texi: Likewise.
67721         * doc/gnulib-intro.texi: Likewise.
67722         * doc/gnulib-tool.texi: Likewise.
67723         * doc/gnulib.texi: Likewise.
67724         * doc/inet_ntoa.texi: Likewise.
67725         * doc/maintain.texi: Likewise.
67726         * doc/make-stds.texi: Likewise.
67727         * doc/quote.texi: Likewise.
67728         * doc/regexprops-generic.texi: Likewise.
67729         * doc/standards.texi: Likewise.
67730         * doc/verify.texi: Likewise.
67731         * doc/visibility.texi: Likewise.
67732         * doc/gnulib.texi (GNU Free Documentation License): Include
67733         fdl-1.3.texi instead of fdl.texi.
67735 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67737         * doc/fdl-1.3.texi: New file, from
67738         <http://www.gnu.org/licenses/fdl-1.3.texi>.
67739         * modules/fdl-1.3: Add.
67740         * MODULES.html.sh: Add fdl-1.3.
67742 2008-11-03  Bruno Haible  <bruno@clisp.org>
67744         Make determination of absolute name of header file work with AIX xlc.
67745         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
67746         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
67747         preprocessing.
67748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67749         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67751 2008-11-03  Simon Josefsson  <simon@josefsson.org>
67753         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
67754         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
67755         <ludo@gnu.org>.
67757 2008-11-02  Bruno Haible  <bruno@clisp.org>
67759         Mark 'strpbrk' obsolete.
67760         * modules/strpbrk (Status, Notice): New sections.
67761         * modules/strtok_r (Depends-on): Add strpbrk.
67763 2008-11-02  Bruno Haible  <bruno@clisp.org>
67765         Mark 'strdup' obsolete.
67766         * modules/strdup (Status, Notice): New sections.
67767         * modules/findprog (Depends-on): Add strdup.
67768         * modules/getaddrinfo (Depends-on): Likewise.
67769         * modules/localename (Depends-on): Likewise.
67770         * modules/relocatable-lib (Depends-on): Likewise.
67771         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
67772         * modules/relocatable-prog (Depends-on): Likewise.
67773         * modules/trim (Depends-on): Likewise.
67774         * modules/unictype/gen-ctype (Depends-on): Likewise.
67775         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
67777 2008-11-02  Bruno Haible  <bruno@clisp.org>
67779         Mark 'strcspn' obsolete.
67780         * modules/strcspn (Status, Notice): New sections.
67782 2008-11-02  Bruno Haible  <bruno@clisp.org>
67784         Mark 'rmdir' obsolete.
67785         * modules/rmdir (Status, Notice): New sections.
67786         * modules/clean-temp (Depends-on): Add rmdir.
67787         * modules/openat (Depends-on): Likewise.
67789 2008-11-02  Bruno Haible  <bruno@clisp.org>
67791         Mark 'raise' obsolete.
67792         * modules/raise (Status, Notice): New sections.
67793         (Include): Specify <signal.h>.
67794         * modules/stdio (Depends-on): Add raise.
67795         * modules/write (Depends-on): Likewise.
67797 2008-11-02  Bruno Haible  <bruno@clisp.org>
67799         Mark 'memset' obsolete.
67800         * modules/memset (Status, Notice): New sections.
67802 2008-11-02  Bruno Haible  <bruno@clisp.org>
67804         Mark 'memmove' obsolete.
67805         * modules/memmove (Status, Notice): New sections.
67806         * modules/argp (Depends-on): Add memmove.
67807         * modules/argz (Depends-on): Likewise.
67808         * modules/canonicalize (Depends-on): Likewise.
67809         * modules/canonicalize-lgpl (Depends-on): Likewise.
67810         * modules/fts (Depends-on): Likewise.
67811         * modules/getcwd (Depends-on): Likewise.
67812         * modules/human (Depends-on): Likewise.
67813         * modules/regex (Depends-on): Likewise.
67814         * modules/striconveh (Depends-on): Likewise.
67815         * modules/trim (Depends-on): Likewise.
67816         * modules/unistr/u8-move (Depends-on): Likewise.
67817         * modules/unistr/u16-move (Depends-on): Likewise.
67818         * modules/unistr/u32-move (Depends-on): Likewise.
67820 2008-11-02  Bruno Haible  <bruno@clisp.org>
67822         Mark 'memcpy' obsolete.
67823         * modules/memcpy (Status, Notice): New sections.
67825 2008-11-02  Bruno Haible  <bruno@clisp.org>
67827         Mark 'memcmp' obsolete.
67828         * modules/memcmp (Status, Notice): New sections.
67829         * modules/argmatch (Depends-on): Add memchr.
67830         * modules/backupfile (Depends-on): Likewise.
67831         * modules/c-strcasestr (Depends-on): Likewise.
67832         * modules/crypto/des (Depends-on): Likewise.
67833         * modules/csharpcomp (Depends-on): Likewise.
67834         * modules/fnmatch (Depends-on): Likewise.
67835         * modules/git-merge-changelog (Depends-on): Likewise.
67836         * modules/isnand (Depends-on): Likewise.
67837         * modules/isnand-nolibm (Depends-on): Likewise.
67838         * modules/isnanf (Depends-on): Likewise.
67839         * modules/isnanf-nolibm (Depends-on): Likewise.
67840         * modules/isnanl (Depends-on): Likewise.
67841         * modules/isnanl-nolibm (Depends-on): Likewise.
67842         * modules/mbchar (Depends-on): Likewise.
67843         * modules/memcoll (Depends-on): Likewise.
67844         * modules/quotearg (Depends-on): Likewise.
67845         * modules/regex (Depends-on): Likewise.
67846         * modules/relocatable-prog (Depends-on): Likewise.
67847         * modules/same (Depends-on): Likewise.
67848         * modules/signbit (Depends-on): Likewise.
67849         * modules/strcasestr-simple (Depends-on): Likewise.
67850         * modules/unictype/gen-ctype (Depends-on): Likewise.
67851         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
67852         * modules/uniname/uniname (Depends-on): Likewise.
67853         * modules/unistr/u8-cmp (Depends-on): Likewise.
67855 2008-11-02  Bruno Haible  <bruno@clisp.org>
67857         Mark 'memchr' obsolete.
67858         * modules/memchr (Status, Notice): New sections.
67859         * modules/argp (Depends-on): Add memchr.
67860         * modules/base64 (Depends-on): Likewise.
67861         * modules/c-strcasestr (Depends-on): Likewise.
67862         * modules/chdir-long (Depends-on): Likewise.
67863         * modules/fnmatch (Depends-on): Likewise.
67864         * modules/getsubopt (Depends-on): Likewise.
67865         * modules/git-merge-changelog (Depends-on): Likewise.
67866         * modules/glob (Depends-on): Likewise.
67867         * modules/strcasestr-simple (Depends-on): Likewise.
67868         * modules/strnlen (Depends-on): Likewise.
67870 2008-11-02  Bruno Haible  <bruno@clisp.org>
67872         Mark 'atexit' obsolete.
67873         * modules/atexit (Status, Notice): New sections.
67874         * modules/chdir-long (Depends-on): Add atexit.
67875         * modules/wait-process (Depends-on): Likewise.
67877 2008-11-02  Bruno Haible  <bruno@clisp.org>
67879         * gnulib-tool: New option --with-obsolete.
67880         (func_usage): Document it.
67881         (func_modules_transitive_closure): Drop obsolete dependencies if
67882         incobsolete is not true.
67883         (func_import): Read and save the incobsolete variable to the cache.
67885 2008-11-02  Bruno Haible  <bruno@clisp.org>
67887         * modules/TEMPLATE-EXTENDED: New field 'Status'.
67888         * gnulib-tool: New option --extract-status.
67889         (func_usage): Document it.
67890         (sed_extract_prog): Recognize it.
67891         (func_get_status): New function.
67893 2008-10-30  Simon Josefsson  <simon@josefsson.org>
67895         * modules/sockets (License): Change from LGPL to LGPLv2+.
67897 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67899         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
67901 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67903         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67904         Mention times and sys_times.
67905         * modules/sys_times, modules/sys_times-tests: New modules.
67906         * modules/times, modules/times-tests: Likewise
67907         * m4/sys_times_h.m4: New file.
67908         * lib/sys_times.in.h: Likewise
67909         * lib/times.c: Likewise.
67910         * tests/test-sys_times.c: Likewise.
67911         * tests/test-times.c: Likewise.
67912         * doc/posix-headers/sys_times.texi: Update.
67913         * doc/posix-functions/times.texi: Update.
67915 2008-10-28  Jim Meyering  <meyering@redhat.com>
67917         * modules/tempname (Depends-on): Add lstat.
67919         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
67921 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67923         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
67924         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
67925         using idiom used elsewhere in gnulib.
67927 2008-10-27  Jim Meyering  <meyering@redhat.com>
67929         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
67931 2008-10-27  Simon Josefsson  <simon@josefsson.org>
67933         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
67934         TESTS_ENVIRONMENT, for shell scripts that needs to call built
67935         programs.
67936         * tests/test-argp-2.sh: Use $EXEEXT when needed.
67938 2008-10-27  Simon Josefsson  <simon@josefsson.org>
67940         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
67942 2008-10-27  Bruno Haible  <bruno@clisp.org>
67944         * tests/test-lstat.c: Include <stdio.h>.
67946 2008-10-27  Simon Josefsson  <simon@josefsson.org>
67948         * modules/lstat-tests: New module.
67949         * tests/test-lstat.c: New file.
67951 2008-10-26  Jim Meyering  <meyering@redhat.com>
67953         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
67955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67956             Bruno Haible  <bruno@clisp.org>
67958         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
67959         * modules/configmake (Include): Add a note that the include must come
67960         after all system headers.
67961         * lib/javaversion.c: Include configmake.h after all other includes.
67963 2008-10-26  Bruno Haible  <bruno@clisp.org>
67965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
67966         HAVE_STRUCT_RANDOM_DATA to 1.
67967         (gl_STDLIB_H): Simplify.
67969 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67971         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
67972         substitute HAVE_STRUCT_RANDOM_DATA.
67973         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
67974         random_data.
67975         * modules/stdlib (Makefile.am): Substitute
67976         HAVE_STRUCT_RANDOM_DATA.
67978 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67980         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
67981         * doc/gnulib-intro.texi (Copyright): Likewise.
67983 2008-10-26  Simon Josefsson  <simon@josefsson.org>
67985         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
67986         findings.
67988 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
67989             Bruno Haible  <bruno@clisp.org>
67991         * lib/unistd.in.h: Include <winsock2.h>.
67992         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
67993         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
67994         Provide dummy declarations.
67995         (gethostname): Override.
67996         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
67997         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
67998         gl_PREREQ_SYS_H_WINSOCK2.
67999         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
68000         * doc/posix-functions/gethostname.texi: More details.
68002 2008-10-25  Bruno Haible  <bruno@clisp.org>
68004         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
68005         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
68006         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
68008         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
68009         here ...
68010         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
68011         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
68012         gl_UNISTD_H_DEFAULTS.
68014 2008-10-25  Eric Blake  <ebb9@byu.net>
68016         signbit: avoid spurious compiler failure
68017         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
68018         declarations inside function.
68020 2008-10-24  Simon Josefsson  <simon@josefsson.org>
68021             Bruno Haible  <bruno@clisp.org>
68023         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
68024         * modules/random_r (Depends-on): Add stdint.
68026 2008-10-24  Bruno Haible  <bruno@clisp.org>
68028         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
68029         Eggert.
68030         * modules/strerror (License): Likewise.
68032 2008-10-24  Jim Meyering  <meyering@redhat.com>
68034         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
68035         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
68037 2008-10-24  Eric Blake  <ebb9@byu.net>
68039         getgroups: fix compilation when getgroups is available
68040         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
68041         but with <config.h> override of getgroups disabled.
68043 2008-10-24  Simon Josefsson  <simon@josefsson.org>
68045         * doc/gnulib.texi (Header files): Add note about C++ problems.
68046         Explained by Bruno Haible <bruno@clisp.org>.
68048 2008-10-23  Bruno Haible  <bruno@clisp.org>
68050         Define a dummy SA_NODEFER macro on Interix.
68051         * lib/signal.in.h (SA_NODEFER): Define fallback.
68052         Reported by Aleksey Cheusov <cheusov@tut.by> via
68053         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
68055 2008-10-23  Bruno Haible  <bruno@clisp.org>
68057         * modules/freadahead (License): Change to LGPLv2+.
68058         Suggested by Simon Josefsson.
68060 2008-10-23  Jim Meyering  <meyering@redhat.com>
68062         random_r: new module
68063         * modules/random_r: New file.
68064         * m4/random_r.m4: New file.
68065         * lib/random_r.c: New file, from glibc.
68066         * modules/random_r-tests: New file.
68067         * tests/test-random_r.c: New file.
68068         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
68069          Declare.
68070         (RAND_MAX): Define.
68071         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
68072         * modules/stdlib: Substitute them, too.
68073         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
68074         * doc/glibc-functions/initstate_r.texi: Mention the new module.
68075         * doc/glibc-functions/random_r.texi: Likewise.
68076         * doc/glibc-functions/setstate_r.texi: Likewise.
68077         * doc/glibc-functions/srandom_r.texi: Likewise.
68078         * config/srclist.txt: Mention it.
68080 2008-10-23  David Lutterkort  <lutter@redhat.com>
68082         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
68083         link requirement
68085 2008-10-23  Jim Meyering  <meyering@redhat.com>
68087         selinux-h: mark parameters of stub functions as intentionally unused
68088         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
68089         * lib/se-context.in.h: Likewise.
68091 2008-10-22  Simon Josefsson  <simon@josefsson.org>
68093         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
68095 2008-10-22  Simon Josefsson  <simon@josefsson.org>
68097         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
68099 2008-10-22  Eric Blake  <ebb9@byu.net>
68101         glthread/thread: avoid compiler warning
68102         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
68103         Add unreachable abort to silence compiler.
68105 2008-10-22  Eric Blake  <ebb9@byu.net>
68107         netdb: also supply struct addrinfo for cygwin 1.5.x
68108         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
68109         older cygwin.
68110         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
68111         cygwin.
68112         * doc/posix-headers/netdb.texi (netdb.h): Document this.
68114 2008-10-22  Bruno Haible  <bruno@clisp.org>
68116         * users.txt: Update entry about pspp.
68118 2008-10-21  Bruno Haible  <bruno@clisp.org>
68120         Simplification.
68121         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
68122         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
68124         Simplification.
68125         * lib/ioctl.c (ioctl): Don't undefine.
68126         * lib/socket.c (socket): Don't undefine.
68128         Remove unused module indicator macros.
68129         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
68130         GNULIB_$1 as a C macro.
68132         * doc/posix-functions/close.texi: Undo last change.
68133         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
68134         Windows platforms.
68136 2008-10-21  Bruno Haible  <bruno@clisp.org>
68138         Add gethostname() declaration to <unistd.h>.
68139         * lib/unistd.in.h (gethostname): New declaration.
68140         * lib/gethostname.c: Include <unistd.h>.
68141         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
68142         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
68143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
68144         and HAVE_GETHOSTNAME.
68145         * modules/gethostname (Depends-on): Add unistd.
68146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68147         (Include): Specify <unistd.h>.
68148         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
68149         HAVE_GETHOSTNAME.
68150         * tests/test-gethostname.c: Include <unistd.h> first.
68152 2008-10-21  Bruno Haible  <bruno@clisp.org>
68154         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
68155         * modules/select-tests (Depends-on): Likewise.
68156         Reported by Simon Josefsson.
68158 2008-10-21  Simon Josefsson  <simon@josefsson.org>
68160         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
68161         * lib/accept.c: New file, based on winsock.c.
68162         * lib/bind.c: New file, based on winsock.c.
68163         * lib/connect.c: New file, based on winsock.c.
68164         * lib/getpeername.c: New file, based on winsock.c.
68165         * lib/getsockname.c: New file, based on winsock.c.
68166         * lib/getsockopt.c: New file, based on winsock.c.
68167         * lib/ioctl.c: New file, based on winsock.c.
68168         * lib/listen.c: New file, based on winsock.c.
68169         * lib/recv.c: New file, based on winsock.c.
68170         * lib/recvfrom.c: New file, based on winsock.c.
68171         * lib/send.c: New file, based on winsock.c.
68172         * lib/sendto.c: New file, based on winsock.c.
68173         * lib/setsockopt.c: New file, based on winsock.c.
68174         * lib/shutdown.c: New file, based on winsock.c.
68175         * lib/socket.c: New file, based on winsock.c.
68176         * lib/w32sock.h: New file, based on winsock.c.
68177         * lib/winsock.c: Remove file.
68178         * modules/accept: Likewise.
68179         * modules/bind: Likewise.
68180         * modules/connect: Likewise.
68181         * modules/getpeername: Likewise.
68182         * modules/getsockname: Likewise.
68183         * modules/getsockopt: Likewise.
68184         * modules/ioctl: Likewise.
68185         * modules/listen: Likewise.
68186         * modules/recv: Likewise.
68187         * modules/recvfrom: Likewise.
68188         * modules/send: Likewise.
68189         * modules/sendto: Likewise.
68190         * modules/setsockopt: Likewise.
68191         * modules/shutdown: Likewise.
68192         * modules/socket: Use socket.c instead of winsock.c.
68193         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
68194         * doc/posix-functions/accept.texi: Doc fix.
68195         * doc/posix-functions/bind.texi: Doc fix.
68196         * doc/posix-functions/close.texi: Doc fix.
68197         * doc/posix-functions/connect.texi: Doc fix.
68198         * doc/posix-functions/getpeername.texi: Doc fix.
68199         * doc/posix-functions/getsockname.texi: Doc fix.
68200         * doc/posix-functions/getsockopt.texi: Doc fix.
68201         * doc/posix-functions/ioctl.texi: Doc fix.
68202         * doc/posix-functions/listen.texi: Doc fix.
68203         * doc/posix-functions/recv.texi: Doc fix.
68204         * doc/posix-functions/recvfrom.texi: Doc fix.
68205         * doc/posix-functions/send.texi: Doc fix.
68206         * doc/posix-functions/sendto.texi: Doc fix.
68207         * doc/posix-functions/setsockopt.texi: Doc fix.
68208         * doc/posix-functions/shutdown.texi: Doc fix.
68209         * doc/posix-functions/socket.texi: Doc fix.
68211 2008-10-20  Bruno Haible  <bruno@clisp.org>
68213         Take into account the role of SIGABRT_COMPAT on Windows 2008.
68214         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
68215         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
68216         as an alias for SIGABRT.
68217         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
68218         (sigaction): Map it to SIGABRT.
68219         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
68221 2008-10-20  Bruno Haible  <bruno@clisp.org>
68223         * lib/fts.c: Don't include lstat.h.
68224         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
68226         Move the lstat() declaration to <sys/stat.h>.
68227         * lib/lstat.h: Remove file.
68228         * lib/sys_stat.in.h: Add special invocation convention.
68229         (lstat): New declaration.
68230         * lib/lstat.c (orig_lstat): New function.
68231         (rpl_lstat): Use orig_lstat instead of lstat.
68232         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
68233         AC_C_INLINE. Set REPLACE_LSTAT.
68234         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
68235         and REPLACE_LSTAT.
68236         * modules/lstat (Files): Remove lib/lstat.h.
68237         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
68238         (Include): Specify <sys/stat.h> instead of lstat.h.
68239         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
68240         REPLACE_LSTAT.
68241         * NEWS: Mention the change.
68243 2008-10-20  Bruno Haible  <bruno@clisp.org>
68245         * modules/posix_spawn-tests: New file.
68246         * tests/test-posix_spawn3.c: New file.
68248 2008-10-20  Bruno Haible  <bruno@clisp.org>
68250         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
68251         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
68252         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
68253         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
68254         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
68256 2008-10-20  Bruno Haible  <bruno@clisp.org>
68258         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
68259         of posix_spawn on AIX 5.3.
68261 2008-10-20  Bruno Haible  <bruno@clisp.org>
68263         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
68265 2008-10-20  Bruno Haible  <bruno@clisp.org>
68267         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
68268         of AC_LANG_PROGRAM.
68270 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68272         * lib/netdb.in.h: Don't define GNU specific constants until they
68273         are supported or needed.  Reported by Bruno Haible
68274         <bruno@clisp.org>.
68276 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68278         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
68280 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68282         * lib/getaddrinfo.h: Remove file.
68283         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
68284         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
68285         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
68286         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
68287         * modules/netdb: Substitute GNULIB_GETADDRINFO.
68288         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
68289         * tests/test-getaddrinfo.c: Likewise.
68290         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
68291         * NEWS: Mention change.
68293 2008-10-19  Bruno Haible  <bruno@clisp.org>
68295         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
68297 2008-10-19  Bruno Haible  <bruno@clisp.org>
68299         * lib/wait-process.c: Include simply <sys/wait.h>.
68300         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
68301         WIFSTOPPED): Remove fallback definitions.
68302         * modules/wait-process (Depends-on): Add sys_wait.
68304         New module 'sys_wait'.
68305         * modules/sys_wait: New file.
68306         * lib/sys_wait.in.h: New file, partially copied from
68307         lib/wait-process.c.
68308         * m4/sys_wait_h.m4: New file.
68309         * doc/posix-headers/sys_wait.texi: Mention the new module.
68311 2008-10-19  Bruno Haible  <bruno@clisp.org>
68313         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
68315 2008-10-19  Bruno Haible  <bruno@clisp.org>
68317         Assume that waitpid() fills an 'int' status, not a 'union wait'.
68318         * lib/wait-process.c (WAIT_T): Remove type.
68319         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
68320         (wait_subprocess): Update.
68322 2008-10-19  Bruno Haible  <bruno@clisp.org>
68324         New module 'atoll'.
68325         * modules/atoll: New file.
68326         * lib/stdlib.in.h (atoll): New declaration.
68327         * lib/atoll.c: New file, from glibc with modifications.
68328         * m4/atoll.m4: New file.
68329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
68330         HAVE_ATOLL.
68331         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
68332         * doc/posix-functions/atoll.texi: Mention the new module.
68334 2008-10-19  Bruno Haible  <bruno@clisp.org>
68336         Add strtoull() declaration to <stdlib.h>.
68337         * lib/stdlib.in.h (strtoull): New declaration.
68338         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
68339         Set HAVE_STRTOULL.
68340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
68341         HAVE_STRTOULL.
68342         * modules/strtoull (Depends-on): Add stdlib.
68343         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68344         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
68345         HAVE_STRTOULL.
68347 2008-10-19  Bruno Haible  <bruno@clisp.org>
68349         Add strtoll() declaration to <stdlib.h>.
68350         * lib/stdlib.in.h (strtoll): New declaration.
68351         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
68352         Set HAVE_STRTOLL.
68353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
68354         HAVE_STRTOLL.
68355         * modules/strtoll (Depends-on): Add stdlib.
68356         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68357         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
68359 2008-10-19  Bruno Haible  <bruno@clisp.org>
68361         * modules/bcopy (Depends-on): Add strings.
68362         (Include): Specify <strings.h>.
68364 2008-10-19  Bruno Haible  <bruno@clisp.org>
68366         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
68368 2008-10-19  Bruno Haible  <bruno@clisp.org>
68370         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
68371         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
68372         mingw.
68374 2008-10-19  Bruno Haible  <bruno@clisp.org>
68376         * lib/atanl.c: Don't include isnanl.h.
68377         * lib/cosl.c: Likewise.
68378         * lib/ldexpl.c: Likewise.
68379         * lib/logl.c: Likewise.
68380         * lib/sinl.c: Likewise.
68381         * lib/sqrtl.c: Likewise.
68382         * lib/tanl.c: Likewise.
68384         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
68385         * lib/isnanf.h: Remove file.
68386         * lib/isnand.h: Remove file.
68387         * lib/isnanl.h: Remove file.
68388         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
68389         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
68390         macros.
68391         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
68392         HAVE_ISNANF, don't define it as a C macro.
68393         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
68394         HAVE_ISNAND, don't define it as a C macro.
68395         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
68396         HAVE_ISNANL, don't define it as a C macro.
68397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
68398         HAVE_ISNAN[FDL].
68399         * modules/isnanf (Files): Remove lib/isnanf.h.
68400         (Depends-on): Add math.
68401         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68402         (Include): Specify <math.h> instead of isnanf.h.
68403         * modules/isnand (Files): Remove lib/isnand.h.
68404         (Depends-on): Add math.
68405         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68406         (Include): Specify <math.h> instead of isnand.h.
68407         * modules/isnanl (Files): Remove lib/isnanl.h.
68408         (Depends-on): Add math.
68409         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68410         (Include): Specify <math.h> instead of isnanl.h.
68411         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
68412         HAVE_ISNAN[FDL].
68413         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
68414         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
68415         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
68416         * NEWS: Mention the change.
68418 2008-10-18  Bruno Haible  <bruno@clisp.org>
68420         Add getusershell(), setusershell(), endusershell() declarations to
68421         <unistd.h>.
68422         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
68423         declarations.
68424         * lib/getusershell.c: Include unistd.h.
68425         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
68426         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
68427         HAVE_GETUSERSHELL.
68428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
68429         and HAVE_GETUSERSHELL.
68430         * modules/getusershell (Depends-on): Add unistd, extensions.
68431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68432         (Include): Specify <unistd.h>.
68433         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
68434         HAVE_GETUSERSHELL.
68436 2008-10-18  Bruno Haible  <bruno@clisp.org>
68438         Add a getloadavg() declaration to <stdlib.h>.
68439         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
68440         getloadavg declaration.
68441         (getloadavg): New declaration.
68442         * lib/getloadavg.c: Include <stdlib.h> first.
68443         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
68444         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
68445         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
68446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
68447         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
68448         * modules/getloadavg (Depends-on): Add stdlib, extensions.
68449         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68450         (Include): Specify <stdlib.h>.
68451         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
68452         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
68454 2008-10-18  Bruno Haible  <bruno@clisp.org>
68456         * lib/dirchownmod.c: Don't include lchmod.h.
68458         Move the lchmod() declaration to <sys/stat.h>.
68459         * lib/lchmod.h: Remove file.
68460         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
68461         (lchmod): New declaration, moved here from lib/lchown.h.
68462         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
68463         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
68464         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
68465         and HAVE_LCHMOD.
68466         * modules/lchmod (Files): Remove lib/lchmod.h.
68467         (Depends-on): Add sys_stat, extensions.
68468         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
68469         (Include): Specify <sys/stat.h> instead of lchmod.h.
68470         * modules/sys_stat (Depends-on): Add link-warning.
68471         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
68472         definition of GL_LINK_WARNING.
68473         * NEWS: Mention the change.
68475 2008-10-18  Bruno Haible  <bruno@clisp.org>
68477         * lib/fchdir.c: Don't include dirfd.h.
68478         * lib/fts.c: Likewise.
68479         * lib/getcwd.c: Likewise.
68480         * lib/glob.c: Likewise.
68482         Move the dirfd() declaration to <dirent.h>.
68483         * lib/dirfd.h: Remove file.
68484         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
68485         (dirfd): New declaration.
68486         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
68487         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
68488         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
68489         HAVE_DECL_DIRFD.
68490         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
68491         HAVE_DECL_DIRFD.
68492         * modules/dirfd (Files): Remove lib/dirfd.h.
68493         (Depends-on): Add dirent, extensions.
68494         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
68495         (Include): Specify <dirent.h> instead of dirfd.h.
68496         * modules/dirent (Depends-on): Add link-warning.
68497         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
68498         definition of GL_LINK_WARNING.
68499         * NEWS: Mention the change.
68501 2008-10-18  Bruno Haible  <bruno@clisp.org>
68503         Move the euidaccess() declaration to <unistd.h>.
68504         * lib/euidaccess.h: Remove file.
68505         * lib/unistd.in.h (euidaccess): New declaration.
68506         * lib/euidaccess.c: Don't include euidaccess.h.
68507         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
68508         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
68509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
68510         and HAVE_EUIDACCESS.
68511         * modules/euidaccess (Files): Remove lib/euidaccess.h.
68512         (Depends-on): Add unistd.
68513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68514         (Include): Specify <unistd.h> instead of euidaccess.h.
68515         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
68516         HAVE_EUIDACCESS.
68517         * NEWS: Mention the change.
68519 2008-10-18  Bruno Haible  <bruno@clisp.org>
68521         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
68523         Move the getdomainname() declaration to <unistd.h>.
68524         * lib/getdomainname.h: Remove file.
68525         * lib/unistd.in.h (getdomainname): New declaration.
68526         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
68527         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
68528         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
68529         HAVE_GETDOMAINNAME.
68530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68531         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
68532         * modules/getdomainname (Files): Remove lib/getdomainname.h.
68533         (Depends-on): Add unistd, extensions.
68534         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68535         (Includes): Specify <unistd.h> instead of getdomainname.h.
68536         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
68537         HAVE_GETDOMAINNAME.
68538         * NEWS: Mention the change.
68540 2008-10-18  Bruno Haible  <bruno@clisp.org>
68542         * modules/dirent: New file.
68543         * m4/dirent_h.m4: New file.
68544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
68545         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
68546         * modules/fchdir (Files): Remove lib/dirent.in.h.
68547         (Depends-on): Add dirent.
68548         (Makefile.am): Move rules to modules/dirent.
68549         * doc/posix-headers/dirent.texi: Mention the new module.
68551 2008-10-18  Bruno Haible  <bruno@clisp.org>
68553         Avoid -Wunused-parameter warnings in public gnulib header files.
68554         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
68555         macro.
68556         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
68558 2008-10-18  Bruno Haible  <bruno@clisp.org>
68560         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
68561         * doc/glibc-functions/error.texi: Mention the module 'error'.
68562         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
68563         * doc/glibc-functions/getdomainname.texi: Mention the module
68564         'getdomainname'.
68565         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
68566         * doc/glibc-functions/getpagesize.texi: Mention the module
68567         'getpagesize'.
68568         * doc/glibc-functions/getusershell.texi: Mention the module
68569         'getusershell'.
68570         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
68571         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
68572         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
68573         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
68574         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
68575         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
68576         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
68577         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
68578         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
68579         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
68580         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
68581         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
68582         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
68583         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
68585 2008-10-17  Bruno Haible  <bruno@clisp.org>
68587         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
68588         HP-UX and IRIX, use -0.0L.
68589         * tests/test-ceill.c (minus_zero): Likewise.
68590         * tests/test-floorl.c (minus_zero): Likewise.
68591         * tests/test-frexpl.c (minus_zero): Likewise.
68592         * tests/test-isnan.c (minus_zerol): Likewise.
68593         * tests/test-isnanl.h (minus_zero): Likewise.
68594         * tests/test-ldexpl.c (minus_zero): Likewise.
68595         * tests/test-roundl.c (minus_zero): Likewise.
68596         * tests/test-signbit.c (minus_zerol): Likewise.
68597         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68598         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68599         * tests/test-truncl.c (minus_zero): Likewise.
68600         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68601         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68602         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
68603         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
68605 2008-10-17  Bruno Haible  <bruno@clisp.org>
68607         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
68608         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
68609         that it gets activated only for gcc >= 3.0.
68610         * lib/dirent.in.h: Likewise.
68611         * lib/errno.in.h: Likewise.
68612         * lib/fcntl.in.h: Likewise.
68613         * lib/float.in.h: Likewise.
68614         * lib/iconv.in.h: Likewise.
68615         * lib/inttypes.in.h: Likewise.
68616         * lib/locale.in.h: Likewise.
68617         * lib/math.in.h: Likewise.
68618         * lib/netdb.in.h: Likewise.
68619         * lib/netinet_in.in.h: Likewise.
68620         * lib/search.in.h: Likewise.
68621         * lib/signal.in.h: Likewise.
68622         * lib/spawn.in.h: Likewise.
68623         * lib/stdarg.in.h: Likewise.
68624         * lib/stdint.in.h: Likewise.
68625         * lib/stdio.in.h: Likewise.
68626         * lib/stdlib.in.h: Likewise.
68627         * lib/string.in.h: Likewise.
68628         * lib/strings.in.h: Likewise.
68629         * lib/sys_file.in.h: Likewise.
68630         * lib/sys_ioctl.in.h: Likewise.
68631         * lib/sys_select.in.h: Likewise.
68632         * lib/sys_socket.in.h: Likewise.
68633         * lib/sys_stat.in.h: Likewise.
68634         * lib/sys_time.in.h: Likewise.
68635         * lib/sysexits.in.h: Likewise.
68636         * lib/time.in.h: Likewise.
68637         * lib/unistd.in.h: Likewise.
68638         * lib/wchar.in.h: Likewise.
68639         * lib/wctype.in.h: Likewise.
68640         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68642 2008-10-17  Jim Meyering  <meyering@redhat.com>
68644         ignore-value: don't depend on inline module
68645         * modules/ignore-value (Depends-on): Remove 'inline'.
68646         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
68647         Suggestion from Bruno Haible.
68649 2008-10-17  Bruno Haible  <bruno@clisp.org>
68651         New implementation of condition variables for Win32.
68652         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
68653         (gl_linked_waitqueue_t): New type.
68654         (gl_cond_t): Use it.
68655         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
68656         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
68657         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
68658         (glthread_cond_init_func, glthread_cond_wait_func,
68659         glthread_cond_timedwait_func, glthread_cond_signal_func,
68660         glthread_cond_broadcast_func, glthread_cond_destroy_func):
68661         Reimplemented on the basis of gl_linked_waitqueue_t.
68662         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
68663         gl_waitqueue_t.
68664         (gl_rwlock_t): Update.
68665         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
68667 2008-10-17  Simon Josefsson  <simon@josefsson.org>
68669         * modules/recvfrom (Depends-on): Add dependency on getpeername.
68670         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68672 2008-10-17  Jim Meyering  <meyering@redhat.com>
68674         ignore-value: new module
68675         * modules/ignore-value: New file.
68676         * lib/ignore-value.h: New file.
68677         * MODULES.html.sh (Compiler warning management): New section,
68678         just for this module.  More to come.
68680 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68682         open-safer.c: avoid 'signed and unsigned in conditional...' warning
68683         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
68684         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
68686 2008-10-16  Jim Meyering  <meyering@redhat.com>
68688         openat-die.c: avoid 'no previous prototype' warning
68689         * lib/openat-die.c: Include "openat.h".
68690         Reported by Reuben Thomas <rrt@sc3d.org>.
68692 2008-10-16  Simon Josefsson  <simon@josefsson.org>
68694         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
68695         * lib/netdb.in.h: Fix typo.
68696         Reported by Bruno Haible  <bruno@clisp.org>
68698         * lib/netdb.in.h: Include sys/socket.h for platforms without
68699         netdb.h, to get structures like hostent on MinGW.
68700         * modules/netdb (Depends-on): Add sys_socket.
68702 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68704         * modules/netdb, modules/netdb-tests: New file.
68705         * m4/netdb_h.m4: New file.
68706         * lib/netdb.in.h: Add, currently just an empty file pending
68707         definitions.
68708         * tests/test-netdb.c: New file.
68709         * doc/posix-headers/netdb.texi: Mention that we replace it if
68710         needed.
68711         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68712         netdb.
68714 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68716         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
68717         with code.
68719 2008-10-13  Bruno Haible  <bruno@clisp.org>
68721         * lib/glthread/cond.c (glthread_cond_wait_func,
68722         glthread_cond_timedwait_func): Add a comment.
68724 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68726         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
68727         * tests/test-select.c: Likewise,
68729 2008-10-13  Bruno Haible  <bruno@clisp.org>
68731         * lib/glthread/cond.c (glthread_cond_wait_func,
68732         glthread_cond_timedwait_func): Fix variable name.
68733         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68735 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
68737         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
68738         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
68739         struct sockaddr.sa_len.
68740         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
68742 2008-10-13  Simon Josefsson  <simon@josefsson.org>
68744         * build-aux/pmccabe2html: Add css and css_url parameters.
68746 2008-10-12  Bruno Haible  <bruno@clisp.org>
68748         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
68749         calling aclx_get.
68750         Reported by Rainer Tammer <tammer@tammer.net>.
68752 2008-10-12  Bruno Haible  <bruno@clisp.org>
68754         Use msvcrt aware primitives for creation/termination of Win32 threads.
68755         * lib/glthread/thread.c: Include <process.h>.
68756         (glthread_create_func): Use _beginthreadex instead of CreateThread.
68757         (wrapper_func): Update signature.
68758         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
68760 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68761             Bruno Haible  <bruno@clisp.org>
68763         Provide a Win32 implementation of the 'cond' module.
68764         * lib/glthread/cond.h [USE_WIN32]: New implementation.
68765         * lib/glthread/cond.c (glthread_cond_init_func,
68766         glthread_cond_wait_func, glthread_cond_timedwait_func,
68767         glthread_cond_signal_func, glthread_cond_broadcast_func,
68768         glthread_cond_destroy_func) [USE_WIN32]: New functions.
68769         * modules/cond (Dependencies): Add gettimeofday.
68771 2008-10-11  Bruno Haible  <bruno@clisp.org>
68773         Make sleep work on older versions of mingw.
68774         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
68775         only whether it exists.
68776         * doc/posix-functions/sleep.texi: Mention the problem with older
68777         versions of mingw.
68779 2008-10-11  Bruno Haible  <bruno@clisp.org>
68781         New module 'shutdown'.
68782         * modules/shutdown: New file.
68783         * lib/sys_socket.in.h (shutdown): New declaration.
68784         * lib/winsock.c (shutdown): New function.
68785         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
68786         GNULIB_SHUTDOWN.
68787         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
68788         * doc/posix-functions/shutdown.texi: Document the new module.
68790 2008-10-11  Jim Meyering  <meyering@redhat.com>
68792         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
68794 2008-10-11  Bruno Haible  <bruno@clisp.org>
68796         New module 'fclose'.
68797         * modules/fclose: New file.
68798         * lib/stdio.in.h (fclose): New declaration.
68799         * lib/fclose.c: New file.
68800         * m4/fclose.m4: New file.
68801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
68802         REPLACE_FCLOSE.
68803         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
68804         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
68805         REPLACE_FCLOSE.
68806         * modules/close (Depends-on): fclose.
68807         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
68809 2008-10-11  Bruno Haible  <bruno@clisp.org>
68811         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
68812         set errno and don't call _close.
68814 2008-10-10  Bruno Haible  <bruno@clisp.org>
68816         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
68817         ACL, not afterwards. Fixes test failure on Cygwin.
68819 2008-10-09  Ben Pfaff  <blp@gnu.org>
68821         * build-aux/announce-gen: Fix gnulib version related part of usage
68822         message.  Die with a useful error message if no tarballs are
68823         found.
68825 2008-10-10  Jim Meyering  <meyering@redhat.com>
68827         bootstrap: use git's --depth=N option only if it's supported
68828         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
68829         recognize the --depth option.  Reported by Pádraig Brady.
68831 2008-10-09  Bruno Haible  <bruno@clisp.org>
68833         New module 'ioctl'.
68834         * modules/ioctl: New file.
68835         * lib/sys_socket.in.h (ioctl): Remove declaration.
68836         * lib/winsock.c: Include <sys/ioctl.h>.
68837         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
68838         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
68839         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
68840         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
68841         * doc/posix-functions/ioctl.texi: Mention the new module.
68843 2008-10-09  Bruno Haible  <bruno@clisp.org>
68845         New module 'sys_ioctl'.
68846         * lib/sys_ioctl.in.h: New file.
68847         * m4/sys_ioctl_h.m4: New file.
68848         * modules/sys_ioctl: New file.
68849         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
68851 2008-10-09  Bruno Haible  <bruno@clisp.org>
68853         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
68854         * lib/winsock.c: Include <stdarg.h>.
68855         (rpl_ioctl): Change to second argument 'int' and then varargs.
68857 2008-10-09  Bruno Haible  <bruno@clisp.org>
68859         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
68860         when the sys_socket module is present and the system has <winsock2.h>.
68862 2008-10-09  Bruno Haible  <bruno@clisp.org>
68864         * doc/posix-functions/close.texi: Mention module 'close' instead of
68865         module 'sys_socket'.
68867 2008-10-09  Bruno Haible  <bruno@clisp.org>
68869         * doc/glibc-headers/sys_ioctl.texi: New file.
68870         * doc/gnulib.texi: Include it.
68872 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68873             Bruno Haible  <bruno@clisp.org>
68875         Combine the two replacements of 'close'.
68876         * lib/sys_socket.in.h (close): Define to a reminder to include
68877         <unistd.h>.
68878         (_gl_close_fd_maybe_socket): New declaration.
68879         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
68880         * lib/winsock.c (close): Remove undefinition.
68881         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
68882         needed for the gnulib module 'close'.
68883         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
68884         define to an error symbol or to a warning, if suitable.
68885         * lib/close.c: Include <sys/socket.h>.
68886         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
68887         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
68888         UNISTD_H_HAVE_WINSOCK2_H.
68889         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
68890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68891         UNISTD_H_HAVE_WINSOCK2_H.
68892         * modules/sys_socket (Files): Add m4/unistd_h.m4.
68893         (configure.ac): Set a module indicator.
68894         (Makefile.am): Substitute GNULIB_CLOSE.
68895         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
68896         * modules/poll-tests (Depends-on): Add close.
68897         * modules/select-tests (Depends-on): Likewise.
68899 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68900             Bruno Haible  <bruno@clisp.org>
68902         New module 'close'.
68903         * modules/close: New file.
68904         * lib/unistd.in.h (close): Move declaration out of the
68905         FCHDIR_REPLACEMENT scope.
68906         (_gl_unregister_fd): New declaration.
68907         * lib/close.c: New file.
68908         * lib/fchdir.c (rpl_close): Remove function.
68909         * m4/close.m4: New file.
68910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
68911         close.
68912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
68913         REPLACE_CLOSE.
68914         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
68915         REPLACE_CLOSE.
68916         * modules/fchdir (Depends-on): Add close.
68918 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68919             Bruno Haible  <bruno@clisp.org>
68921         * lib/fcntl.in.h (open): Simplify conditionals.
68922         (_gl_register_fd): New declaration.
68923         * lib/fchdir.c (rpl_open): Remove function.
68924         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
68925         also.
68926         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
68927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
68928         open.
68930 2008-10-09  Jim Meyering  <meyering@redhat.com>
68932         GNUmakefile: use the more name-space-friendly "_version"
68933         * top/GNUmakefile (_dummy): Update.
68934         (_version): Rename from "version".
68936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68937             Bruno Haible  <bruno@clisp.org>
68939         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
68940         rpl_close.
68941         (_gl_register_fd): New function, extracted from rpl_open.
68942         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
68943         (rpl_open, rpl_opendir): Use _gl_register_fd.
68945 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68947         Fix organization of 'open' replacement.
68948         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
68949         (gl_FUNC_OPEN): Use it.
68950         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
68952 2008-10-08  Bruno Haible  <bruno@clisp.org>
68954         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
68956 2008-10-08  Simon Josefsson  <simon@josefsson.org>
68958         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
68959         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
68960         listen).
68962 2008-10-08  Eric Blake  <ebb9@byu.net>
68964         GNUmakefile: add 'make version' target
68965         * top/GNUmakefile (_curr-ver): Split version update rules...
68966         (version): ...into a target.
68968 2008-10-07  Bruno Haible  <bruno@clisp.org>
68970         Use a more portable replacement expression for -0.0L.
68971         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
68972         instead of -0.0L. Fix m4 quotation.
68974         * tests/test-signbit.c: Include <float.h>.
68975         (minus_zero): New variable.
68976         (test_signbitl): Use minus_zero instead of -zero.
68977         * modules/signbit-tests (Depends-on): Add float.
68979         * tests/test-ceill.c: Include <float.h>.
68980         (zero): Remove variable.
68981         (minus_zero): New variable.
68982         (main): Use minus_zero instead of -zero.
68983         * modules/ceill-tests (Depends-on): Add float.
68985         * tests/test-floorl.c: Include <float.h>.
68986         (zero): Remove variable.
68987         (minus_zero): New variable.
68988         (main): Use minus_zero instead of -zero.
68989         * modules/floorl-tests (Depends-on): Add float.
68991         * tests/test-roundl.c: Include <float.h>.
68992         (zero): Remove variable.
68993         (minus_zero): New variable.
68994         (main): Use minus_zero instead of -zero.
68995         * modules/roundl-tests (Depends-on): Add float.
68997         * tests/test-truncl.c: Include <float.h>.
68998         (zero): Remove variable.
68999         (minus_zero): New variable.
69000         (main): Use minus_zero instead of -zero.
69001         * modules/truncl-tests (Depends-on): Add float.
69003         * tests/test-frexpl.c (zero): Remove variable.
69004         (minus_zero): New variable.
69005         (main): Use minus_zero instead of -zero.
69006         * modules/frexpl-tests (Depends-on): Add float.
69008         * tests/test-isnan.c (zerol): Remove variable.
69009         (minus_zerol): New variable.
69010         (test_long_double): Use minus_zerol instead of -zerol.
69011         * modules/isnan-tests (Depends-on): Add float.
69013         * tests/test-isnanl.h (zero): Remove variable.
69014         (minus_zero): New variable.
69015         (main): Use minus_zero instead of -zero.
69016         * modules/isnanl-nolibm-tests (Depends-on): Add float.
69017         * modules/isnanl-tests (Depends-on): Add float.
69019         * tests/test-ldexpl.c (zero): Remove variable.
69020         (minus_zero): New variable.
69021         (main): Use minus_zero instead of -zero.
69022         * modules/ldexpl-tests (Depends-on): Add float.
69024         * tests/test-snprintf-posix.h (zerol): Remove variable.
69025         (minus_zerol): New variable.
69026         (test_function): Use minus_zerol instead of -zerol.
69027         * modules/snprintf-posix-tests (Depends-on): Add float.
69028         * modules/vsnprintf-posix-tests (Depends-on): Add float.
69030         * tests/test-sprintf-posix.h (zerol): Remove variable.
69031         (minus_zerol): New variable.
69032         (test_function): Use minus_zerol instead of -zerol.
69033         * modules/sprintf-posix-tests (Depends-on): Add float.
69034         * modules/vsprintf-posix-tests (Depends-on): Add float.
69036         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
69037         (minus_zerol): New variable.
69038         (test_function): Use minus_zerol instead of -zerol.
69039         * modules/vasnprintf-posix-tests (Depends-on): Add float.
69041         * tests/test-vasprintf-posix.c (zerol): Remove variable.
69042         (minus_zerol): New variable.
69043         (test_function): Use minus_zerol instead of -zerol.
69044         * modules/vasprintf-posix-tests (Depends-on): Add float.
69046 2008-10-07  Simon Josefsson  <simon@josefsson.org>
69048         * MODULES.html.sh (Support for building documentation): Mention
69049         pmccabe2html.  Sort entries.
69051         Add pmccabe2html module, from gnupdf.
69052         * build-aux/pmccabe.css: New file.
69053         * build-aux/pmccabe2html: New file.
69054         * m4/pmccabe2html.m4: New file.
69055         * modules/pmccabe2html: New file.
69057 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
69059         flock: new module
69060         * MODULES.html.sh: Add to list of modules.
69061         * lib/flock.c: flock implementation for Windows and Unix systems
69062         which have fcntl.
69063         * doc/glibc-functions/flock.texi: Update documentation.
69064         * lib/sys_file.in.h: <sys/file.h> header file.
69065         * m4/flock.m4: M4 macros.
69066         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
69067         * modules/flock: flock module.
69068         * modules/flock-tests: flock tests module.
69069         * modules/sys_file: sys/file.h module.
69070         * tests/test-flock.c: test suite for flock.
69072 2008-10-06  Jim Meyering  <meyering@redhat.com>
69074         bootstrap: check for LT_INIT more portably still ;-)
69075         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
69076         Spotted by Bruno Haible.
69078 2008-10-06  Eric Blake  <ebb9@byu.net>
69080         test-signbit: avoid tripping Irix cc bug on -0.0L
69081         * tests/test-signbit.c (minus_zerol): Delete, and replace with
69082         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
69083         entire testsuite consistent and avoids an Irix 6.2 bug.
69085 2008-10-05  Bruno Haible  <bruno@clisp.org>
69086             Jim Meyering  <jim@meyering.net>
69088         Add an option for ignoring EPIPE during close_stdout.
69089         * lib/closeout.h: Include <stdbool.h>.
69090         (close_stdout_set_ignore_EPIPE): New declaration.
69091         * lib/closeout.c: Include <stdbool.h>.
69092         (ignore_EPIPE): New variable.
69093         (close_stdout_set_ignore_EPIPE): New function.
69094         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
69095         * lib/close-stream.c (close_stream): Mention the possible EPIPE
69096         failure.
69097         * modules/closeout (Depends-on): Add stdbool.
69099 2008-10-05  Bruno Haible  <bruno@clisp.org>
69101         * modules/accept: New file.
69102         * modules/bind: New file.
69103         * modules/connect: New file.
69104         * modules/getpeername: New file.
69105         * modules/getsockname: New file.
69106         * modules/getsockopt: New file.
69107         * modules/listen: New file.
69108         * modules/recv: New file.
69109         * modules/recvfrom: New file.
69110         * modules/send: New file.
69111         * modules/sendto: New file.
69112         * modules/setsockopt: New file.
69113         * modules/socket: New file.
69114         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
69115         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
69116         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
69117         the particular module is requested. Add a link warning when the
69118         particular module is not requested.
69119         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
69120         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
69121         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
69122         the particular module is requested.
69123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
69124         gl_SYS_SOCKET_H_DEFAULTS): New macros.
69125         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
69126         * modules/sys_socket (Depends-on): Add link-warning.
69127         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
69128         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
69129         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
69130         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
69131         GL_LINK_WARNING.
69132         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
69133         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
69134         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
69135         * doc/posix-functions/getpeername.texi: Mention the new module
69136         'getpeername'.
69137         * doc/posix-functions/getsockname.texi: Mention the new module
69138         'getsockname'.
69139         * doc/posix-functions/getsockopt.texi: Mention the new module
69140         'getsockopt'.
69141         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
69142         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
69143         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
69144         * doc/posix-functions/send.texi: Mention the new module 'send'.
69145         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
69146         * doc/posix-functions/setsockopt.texi: Mention the new module
69147         'setsockopt'.
69148         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
69149         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
69150         listen, connect, accept.
69151         * modules/select-tests (Depends-on): Likewise.
69153 2008-10-05  Bruno Haible  <bruno@clisp.org>
69155         * lib/winsock.c (strerror): Remove unused #undef.
69156         (rpl_close): Remove unused local variable.
69158         * modules/sys_socket (Depends-on); Add errno.
69160 2008-10-05  Bruno Haible  <bruno@clisp.org>
69162         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
69163         (select): Add a link warning when the 'select' module is not used.
69164         * modules/sys_select (Depends-on): Add link-warning.
69165         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
69166         Suggested by Paolo Bonzini.
69168 2008-10-05  Jim Meyering  <meyering@redhat.com>
69170         bootstrap: check for LT_INIT more portably
69171         * build-aux/bootstrap: Avoid using grep -E, since it's not
69172         portable enough.  Suggestion from Bruno Haible.
69174 2008-10-05  Bruno Haible  <bruno@clisp.org>
69176         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
69177         as being fixed by gnulib.
69179 2008-10-05  Bruno Haible  <bruno@clisp.org>
69181         * modules/select-tests: New file, mostly copied from
69182         modules/sys_select-tests.
69183         * tests/test-select.c: New file, mostly copied from
69184         tests/test-sys_select.c.
69185         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
69186         * modules/sys_select-tests (Depends-on): Remove all dependencies.
69187         (Makefile.am): Remove test_sys_select_LDADD.
69189         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
69190         to an undefined symbol, for an error message.
69191         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
69192         (gl_SYS_SELECT_H_DEFAULTS): New macro.
69193         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
69194         winsock-select.c here.
69195         * modules/sys_select (Files): Remove lib/winsock-select.c.
69196         (Depends-on): Remove alloca.
69197         (Makefile.am): Substitute GNULIB_SELECT.
69198         * modules/select: New file.
69199         * doc/posix-functions/select.texi: Update.
69201 2008-10-05  Bruno Haible  <bruno@clisp.org>
69203         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
69204         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
69205         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
69206         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
69207         getdtablesize.
69208         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
69209         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
69211 2008-10-05  Bruno Haible  <bruno@clisp.org>
69213         * modules/getdtablesize-tests: New file.
69214         * tests/test-getdtablesize.c: New file.
69216         New module 'getdtablesize'.
69217         * lib/unistd.in.h (getdtablesize): New declaration.
69218         * lib/getdtablesize.c: New file.
69219         * m4/getdtablesize.m4: New file.
69220         * modules/getdtablesize: New file.
69221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69222         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
69223         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
69224         HAVE_GETDTABLESIZE.
69225         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
69227 2008-10-05  Bruno Haible  <bruno@clisp.org>
69229         * modules/sched (Makefile.am): Fix typo.
69230         Reported by Simon Josefsson.
69232 2008-10-05  Jim Meyering  <meyering@redhat.com>
69234         bootstrap: check for LT_INIT, too
69235         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
69236         are deprecated.  Suggestion from Ralf Wildenhues.
69238 2008-10-05  Bruno Haible  <bruno@clisp.org>
69240         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
69241         overriding them by ours.
69242         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
69244 2008-10-05  Jim Meyering  <meyering@redhat.com>
69246         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
69247         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
69248         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
69250 2008-10-04  Bruno Haible  <bruno@clisp.org>
69252         * modules/dup2 (License): Change to LGPLv2+.
69253         * modules/sleep (License): Likewise.
69254         * modules/perror (License): Likewise.
69255         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
69256         Blake.
69257         * modules/signal (License): Likewise.
69258         * modules/sigprocmask (License): Likewise.
69259         * modules/raise (License): Change to LGPLv2+, with approval by Jim
69260         Meyering.
69262 2008-10-04  Bruno Haible  <bruno@clisp.org>
69264         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
69265         Reported by Rainer Tammer <tammer@tammer.net>.
69267 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
69268             Bruno Haible  <bruno@clisp.org>
69270         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
69271         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
69272         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
69274 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
69276         filevercmp: new module
69277         * lib/filevercmp.h: New function filevercmp comparing version strings.
69278         * lib/filevercmp.c: Implementation of filevercmp function.
69279         * modules/filevercmp: Module metadata.
69280         * tests/test-filevercmp.c: Unit test for new module.
69281         * modules/filevercmp-tests: Unit test metadata.
69282         * MODULES.html.sh: Add filevercmp module.
69284 2008-10-03  Bruno Haible  <bruno@clisp.org>
69286         * lib/c-ctype.h: Add comment.
69287         Reported by Jim Meyering.
69289 2008-10-02  Bruno Haible  <bruno@clisp.org>
69291         * modules/posix_spawn-internal (Depends-on): Add 'open'.
69293 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69295         * build-aux/bootstrap: Allow renaming bootstrap, and change the
69296         name of bootstrap.conf accordingly.
69298 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69300         * build-aux/bootstrap: Install git-merge-changelog configuration
69301         items into .gitconfig if needed.
69303 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69305         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
69306         git repository, and initialize/update it accordingly.
69308 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
69310         * modules/fsync-tests: New file.
69311         * tests/test-fsync.c: New file.
69313         New module 'fsync'.
69314         * lib/fsync.c: New file.
69315         * m4/fsync.m4: New file.
69316         * modules/fsync: New file.
69317         * lib/unistd.in.h (fsync): New declaration.
69318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
69319         GNULIB_FSYNC and HAVE_FSYNC.
69320         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
69321         * MODULES.html.sh (posix_functions): Add fsync.
69322         * doc/posix-functions/fsync.texi: Mention the new module.
69324 2008-10-02  Jim Meyering  <meyering@redhat.com>
69326         fts.c: sync with similar code from coreutils' remove.c
69327         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
69328         Guard also with "#if defined __linux__", since for now at least,
69329         this code is Linux-kernel-specific.
69331 2008-10-02  Jim Meyering  <meyering@redhat.com>
69333         fts: bug fixes
69334         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
69335         Include <sys/vfs.h>, not <sys/statfs.h>.
69337         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
69338         Include <sys/vfs.h>, not <sys/statfs.h>.
69340 2008-10-01  Bruno Haible  <bruno@clisp.org>
69342         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
69343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
69344         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
69345         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
69346         * doc/posix-functions/posix_spawnp.texi: Likewise.
69347         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
69348         whether posix_spawn actually works.
69349         * m4/pipe.m4 (gl_PIPE): Likewise.
69350         * modules/execute (Files): Add m4/posix_spawn.m4.
69351         * modules/pipe (Files): Add m4/posix_spawn.m4.
69352         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
69354 2008-10-01  Jim Meyering  <meyering@redhat.com>
69356         remove trailing spaces
69357         * NEWS: Likewise.
69358         * lib/poll.c (poll): Likewise.
69359         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
69360         * lib/winsock.c (rpl_close): Likewise.
69361         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
69362         * modules/yield: Likewise.
69363         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
69364         * tests/test-sys_select.c (connect_to_socket): Likewise.
69366         fts.c: adjust a new interface to be more generally useful
69367         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
69368         (fts_build): Adjust caller.
69370 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69372         * modules/cond-tests: New file.
69373         * tests/test-cond.c: New file.
69375 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69376             Bruno Haible  <bruno@clisp.org>
69378         * modules/cond (Dependencies): Add errno, time.
69379         * lib/glthread/cond.h: Include <time.h>.
69380         (gl_cond_define, gl_cond_define_initialized): Use the same definition
69381         across platforms.
69383 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69384             Bruno Haible  <bruno@clisp.org>
69386         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
69388 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69389             Bruno Haible  <bruno@clisp.org>
69391         * modules/tls-tests (Depends-on): Add thread, yield.
69392         (configure.ac): Remove all checks.
69393         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
69394         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
69395         gl_thread_self): Remove definitions. Include glthread/thread.h and
69396         glthread/yield.h instead.
69397         (test_tls): Pass an additional NULL argument to gl_thread_join.
69399 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69400             Bruno Haible  <bruno@clisp.org>
69402         * modules/lock-tests (Depends-on): Add thread, yield.
69403         (configure.ac): Remove all checks.
69404         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
69405         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
69406         gl_thread_self): Remove definitions. Include glthread/thread.h and
69407         glthread/yield.h instead.
69408         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
69409         additional NULL argument to gl_thread_join.
69411 2008-09-30  Bruno Haible  <bruno@clisp.org>
69413         Fix the Win32 implementation of the 'thread' module.
69414         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
69415         pointer type.
69416         (gl_thread_self): Invoke gl_thread_self_func.
69417         (gl_thread_self_func): New declaration.
69418         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
69419         (do_init_self_key, init_self_key): New functions.
69420         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
69421         Remove some fields.
69422         (running_threads, running_lock): Remove variables.
69423         (get_current_thread_handle): New function.
69424         (gl_thread_self_func, wrapper_func, glthread_create_func,
69425         glthread_join_func, gl_thread_exit_func): Largely rewritten and
69426         simplified.
69428 2008-09-30  Bruno Haible  <bruno@clisp.org>
69430         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
69431         files.
69433 2008-09-30  Jim Meyering  <meyering@redhat.com>
69435         fts.m4: correct the test for statfs.f_type
69436         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
69437         when checking for statfs.f_type.
69439 2008-09-15  Simon Josefsson  <simon@josefsson.org>
69441         tests: avoid some compiler warnings
69442         * tests/test-memchr.c (main): Pass NULL indirectly.
69443         * tests/test-getdate.c (main): Remove unused variable 'ret'.
69445 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
69447         getdate.y: disallow countable dayshifts like "4 yesterday ago"
69448         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
69449         exactly specified dayshifts.
69450         (dayshift): New rule.
69451         (rel): Add dayshift.
69452         (relative_time_table) [tomorrow, yesterday, today, now]:
69453         Use tDAY_SHIFT in place of tDAY_UNIT.
69454         * tests/test-getdate.c: Add tests for now-disallowed countable
69455         dayshifts, e.g., "4 yesterday ago".
69457 2008-09-29  Bruno Haible  <bruno@clisp.org>
69459         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
69460         * tests/test-posix_spawn1.in.sh: Renamed from
69461         tests/test-posix_spawn.in.sh.
69462         * tests/test-posix_spawn2.c: New file.
69463         * tests/test-posix_spawn2.in.sh: New file.
69464         * modules/posix_spawnp-tests (Files): Update.
69465         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
69467 2008-09-29  Bruno Haible  <bruno@clisp.org>
69469         Propagate effects of putenv/setenv/unsetenv to child processes.
69470         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
69471         * lib/pipe.c (create_pipe): Likewise.
69473 2008-09-29  Bruno Haible  <bruno@clisp.org>
69475         Enable use of shell scripts as executables in mingw.
69476         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
69477         run the program as a shell script.
69478         * lib/pipe.c (create_pipe): Likewise.
69479         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
69480         resulting array.
69482 2008-09-29  Eric Blake  <ebb9@byu.net>
69484         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
69486 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
69488         * doc/posix-functions/accept.texi: Update mingw problems.
69489         * doc/posix-functions/bind.texi: Update mingw problems.
69490         * doc/posix-functions/close.texi: Update mingw problems.
69491         * doc/posix-functions/connect.texi: Update mingw problems.
69492         * doc/posix-functions/getpeername.texi: Update mingw problems.
69493         * doc/posix-functions/getsockname.texi: Update mingw problems.
69494         * doc/posix-functions/getsockopt.texi: Update mingw problems.
69495         * doc/posix-functions/ioctl.texi: Update mingw problems.
69496         * doc/posix-functions/listen.texi: Update mingw problems.
69497         * doc/posix-functions/recv.texi: Update mingw problems.
69498         * doc/posix-functions/recvfrom.texi: Update mingw problems.
69499         * doc/posix-functions/select.texi: Update mingw problems.
69500         * doc/posix-functions/send.texi: Update mingw problems.
69501         * doc/posix-functions/sendto.texi: Update mingw problems.
69502         * doc/posix-functions/setsockopt.texi: Update mingw problems.
69503         * doc/posix-functions/socket.texi: Update mingw problems.
69505 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
69506             Bruno Haible  <bruno@clisp.org>
69508         * lib/sys_select.in.h: Include sys/time.h.
69509         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
69510         * modules/sys_select: Depend on sys_time.
69511         * tests/test-sys_select.c: Test that sys/select.h defines struct
69512         timeval fully.
69514 2008-09-29  Bruno Haible  <bruno@clisp.org>
69516         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
69517         * lib/sys_select.in.h: Likewise.
69519 2008-09-29  Bruno Haible  <bruno@clisp.org>
69521         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
69523 2008-09-29  Bruno Haible  <bruno@clisp.org>
69525         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
69526         Set LIBSOCKET instead of augmenting LIBS.
69527         * modules/sockets (Link): New section.
69528         * modules/sockets-tests (test_sockets_LDADD): New variable.
69529         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
69530         * modules/poll-tests (test_poll_LDADD): New variable.
69531         * NEWS: Document the change.
69533 2008-09-29  Bruno Haible  <bruno@clisp.org>
69535         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
69536         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
69537         ARPA_INET_H directly.
69538         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69540 2008-09-28  Bruno Haible  <bruno@clisp.org>
69542         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
69543         from gl_HEADER_SYS_SOCKET.
69544         (gl_HEADER_SYS_SOCKET): Invoke it.
69545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69547 2008-09-28  Bruno Haible  <bruno@clisp.org>
69549         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
69550         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
69551         Needed on OSF/1 4.0.
69553 2008-09-28  Bruno Haible  <bruno@clisp.org>
69555         Override open more carefully.
69556         * lib/open.c (orig_open): New function.
69557         (rpl_open): Use orig_open instead of open.
69558         * lib/fcntl.in.h: Add special invocation convention.
69559         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
69560         (gl_FUNC_OPEN): Invoke it.
69562         Override freopen more carefully.
69563         * lib/freopen.c (orig_freopen): New function.
69564         (rpl_freopen): Use orig_freopen instead of freopen.
69565         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
69566         (gl_FUNC_FREOPEN): Invoke it.
69568         Override fopen more carefully.
69569         * lib/fopen.c (orig_fopen): New function.
69570         (rpl_fopen): Use orig_fopen instead of fopen.
69571         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
69572         (gl_FUNC_FOPEN): Invoke it.
69573         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
69575 2008-09-28  Bruno Haible  <bruno@clisp.org>
69577         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
69578         SIGPIPE.
69580 2008-09-28  Bruno Haible  <bruno@clisp.org>
69582         * tests/test-sigaction.c (handler, main): Disable the check whether
69583         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
69584         glibc systems with LinuxThreads.
69586 2008-09-28  Bruno Haible  <bruno@clisp.org>
69588         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
69590         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
69591         with AIX xlc.
69592         * lib/fcntl.in.h (open): Likewise.
69593         Reported by Rainer Tammer <tammer@tammer.net>.
69595 2008-09-28  Bruno Haible  <bruno@clisp.org>
69597         * modules/posix_spawnp-tests: New file.
69598         * tests/test-posix_spawn.c: New file.
69599         * tests/test-posix_spawn.in.sh: New file.
69601         New module 'posix_spawnp'.
69602         * modules/posix_spawnp: New file.
69603         * lib/spawnp.c: New file, from GNU libc with modifications.
69604         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
69606         New module 'posix_spawn'.
69607         * modules/posix_spawn: New file.
69608         * lib/spawn.c: New file, from GNU libc with modifications.
69609         * doc/posix-functions/posix_spawn.texi: Mention the new module.
69611         New module 'posix_spawnattr_destroy'.
69612         * modules/posix_spawnattr_destroy: New file.
69613         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
69614         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
69615         module.
69617         New module 'posix_spawnattr_setsigmask'.
69618         * modules/posix_spawnattr_setsigmask: New file.
69619         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
69620         modifications.
69621         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
69622         new module.
69624         New module 'posix_spawnattr_getsigmask'.
69625         * modules/posix_spawnattr_getsigmask: New file.
69626         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
69627         modifications.
69628         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
69629         new module.
69631         New module 'posix_spawnattr_setsigdefault'.
69632         * modules/posix_spawnattr_setsigdefault: New file.
69633         * lib/spawnattr_setdefault.c: New file, from GNU libc with
69634         modifications.
69635         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
69636         new module.
69638         New module 'posix_spawnattr_getsigdefault'.
69639         * modules/posix_spawnattr_getsigdefault: New file.
69640         * lib/spawnattr_getdefault.c: New file, from GNU libc with
69641         modifications.
69642         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
69643         new module.
69645         New module 'posix_spawnattr_setschedpolicy'.
69646         * modules/posix_spawnattr_setschedpolicy: New file.
69647         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
69648         modifications.
69649         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
69650         new module.
69652         New module 'posix_spawnattr_getschedpolicy'.
69653         * modules/posix_spawnattr_getschedpolicy: New file.
69654         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
69655         modifications.
69656         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
69657         new module.
69659         New module 'posix_spawnattr_setschedparam'.
69660         * modules/posix_spawnattr_setschedparam: New file.
69661         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
69662         modifications.
69663         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
69664         new module.
69666         New module 'posix_spawnattr_getschedparam'.
69667         * modules/posix_spawnattr_getschedparam: New file.
69668         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
69669         modifications.
69670         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
69671         new module.
69673         New module 'posix_spawnattr_setpgroup'.
69674         * modules/posix_spawnattr_setpgroup: New file.
69675         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
69676         modifications.
69677         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
69678         module.
69680         New module 'posix_spawnattr_getpgroup'.
69681         * modules/posix_spawnattr_getpgroup: New file.
69682         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
69683         modifications.
69684         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
69685         module.
69687         New module 'posix_spawnattr_setflags'.
69688         * modules/posix_spawnattr_setflags: New file.
69689         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
69690         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
69691         module.
69693         New module 'posix_spawnattr_getflags'.
69694         * modules/posix_spawnattr_getflags: New file.
69695         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
69696         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
69697         module.
69699         New module 'posix_spawnattr_init'.
69700         * modules/posix_spawnattr_init: New file.
69701         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
69702         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
69703         module.
69705         New module 'posix_spawn_file_actions_destroy'.
69706         * modules/posix_spawn_file_actions_destroy: New file.
69707         * lib/spawn_faction_destroy.c: New file, from GNU libc with
69708         modifications.
69709         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
69710         the new module.
69712         New module 'posix_spawn_file_actions_addopen'.
69713         * modules/posix_spawn_file_actions_addopen: New file.
69714         * lib/spawn_faction_addopen.c: New file, from GNU libc with
69715         modifications.
69716         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
69717         the new module.
69719         New module 'posix_spawn_file_actions_adddup2'.
69720         * modules/posix_spawn_file_actions_adddup2: New file.
69721         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
69722         modifications.
69723         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
69724         the new module.
69726         New module 'posix_spawn_file_actions_addclose'.
69727         * modules/posix_spawn_file_actions_addclose: New file.
69728         * lib/spawn_faction_addclose.c: New file, from GNU libc with
69729         modifications.
69730         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
69731         the new module.
69733         New module 'posix_spawn_file_actions_init'.
69734         * modules/posix_spawn_file_actions_init: New file.
69735         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
69736         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
69737         new module.
69739         New module 'posix_spawn-internal'.
69740         * modules/posix_spawn-internal: New file.
69741         * lib/spawn_int.h: New file, from GNU libc with modifications.
69742         * lib/spawni.c: New file, from GNU libc with modifications.
69743         * m4/posix_spawn.m4: New file.
69745         New module 'spawn'.
69746         * modules/spawn: New file.
69747         * lib/spawn.in.h: New file, from GNU libc with modifications.
69748         * m4/spawn_h.m4: New file.
69749         * doc/posix-headers/spawn.texi: Mention the new module.
69751 2008-09-28  Bruno Haible  <bruno@clisp.org>
69753         * modules/sched-tests: New file.
69754         * tests/test-sched.c: New file.
69756         New module 'sched'.
69757         * modules/sched: New file.
69758         * lib/sched.in.h: New file.
69759         * m4/sched_h.m4: New file.
69760         * doc/posix-headers/sched.texi: Mention the new module.
69762 2008-09-27  Eric Blake  <ebb9@byu.net>
69764         Fix previous patch, and tweak references to $0.
69765         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
69766         (func_version, func_gnulib_dir): Don't call this program
69767         gnulib-tool.
69768         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
69769         with using $0 in function.
69770         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
69771         (func_fatal_error): Reuse the name the user invoked us with.
69773 2008-09-27  Bruno Haible  <bruno@clisp.org>
69775         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
69776         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
69777         (gl_ICONV_H): Not here.
69778         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
69779         instead of assigning ICONV_H directly.
69781         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
69782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
69783         WCHAR_H directly.
69785 2008-09-27  Bruno Haible  <bruno@clisp.org>
69787         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
69788         * modules/arpa_inet (Depends-on): Add link-warning.
69789         (Makefile.am): Insert the definition of GL_LINK-WARNING.
69790         * modules/unistd (Makefile.am): Likewise.
69792 2008-09-26  Bruno Haible  <bruno@clisp.org>
69794         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
69795         variables.
69796         (func_version): Essentially copied from gnulib-tool.
69797         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
69798         func_readlink): Copied from gnulib-tool.
69800 2008-09-26  Bruno Haible  <bruno@clisp.org>
69802         * gnulib-tool (func_version): Change directory to $gnulib_dir before
69803         invoking git-version-gen.
69805 2008-09-26  Bruno Haible  <bruno@clisp.org>
69807         * posix-modules: Update to directory names changed on 2008-01-19.
69808         Remove commas in output before splitting into words. No more need to
69809         avoid 'ftruncate' since 2007-02-19.
69811 2008-09-26  Bruno Haible  <bruno@clisp.org>
69813         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
69815 2008-09-26  Bruno Haible  <bruno@clisp.org>
69817         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
69818         * modules/fwriteerror (Depends-on): Add errno.
69820 2008-09-26  Bruno Haible  <bruno@clisp.org>
69822         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
69823         * tests/test-vc-list-files-cvs.sh: Likewise.
69825 2008-09-26  Bruno Haible  <bruno@clisp.org>
69827         * doc/posix-headers/sys_resource.texi: Reorder items.
69829 2008-09-26  Jim Meyering  <meyering@redhat.com>
69831         fts: tweak inode comparison function
69832         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
69833         inode numbers, as documented.
69835         fts: sort dirent entries on inode number before traversing
69836         This avoids a quadratic, seek-related performance penalty when
69837         operating on a directory containing many entries (measurable at 10k;
69838         3.5 hours at 2 million entries with a cold cache) on certain types
69839         of file systems, including ext3 and ext4, but not tmpfs.
69840         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
69841         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
69842         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
69843         (fs_handles_readdir_ordered_dirents_efficiently): New function.
69844         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
69845         (fts_build): Set the stat.st_ino member from D_INO.
69846         If it is likely to be useful, sort dirent entries on inode number.
69848         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
69849         and the struct statfs.f_type member.
69850         * modules/fts (Depends-on): Add d-ino.
69852 2008-09-26  Bruno Haible  <bruno@clisp.org>
69854         * modules/sigpipe-die (Depends-on): Add sigpipe.
69856         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
69857         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
69858         and GNULIB_STDIO_H_SIGPIPE are set.
69859         * lib/stdio-write.c: New file.
69860         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
69861         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69862         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69863         REPLACE_STDIO_WRITE_FUNCS.
69864         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
69865         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69866         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69867         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
69868         * modules/stdio (Files): Add lib/stdio-write.c.
69869         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
69870         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69871         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69872         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
69873         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
69874         REPLACE_FPRINTF_POSIX.
69875         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
69876         REPLACE_PRINTF_POSIX.
69877         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
69878         REPLACE_VFPRINTF_POSIX.
69879         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
69880         REPLACE_VPRINTF_POSIX.
69881         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
69882         SIGPIPE issue.
69883         * doc/posix-functions/fputc.texi: Likewise.
69884         * doc/posix-functions/fputs.texi: Likewise.
69885         * doc/posix-functions/fwrite.texi: Likewise.
69886         * doc/posix-functions/printf.texi: Likewise.
69887         * doc/posix-functions/putc.texi: Likewise.
69888         * doc/posix-functions/putchar.texi: Likewise.
69889         * doc/posix-functions/puts.texi: Likewise.
69890         * doc/posix-functions/vfprintf.texi: Likewise.
69891         * doc/posix-functions/vprintf.texi: Likewise.
69893         * modules/safe-write (Depends-on): Add write.
69895         * modules/sigpipe-tests: New file.
69896         * tests/test-sigpipe.c: New file.
69897         * tests/test-sigpipe.sh: New file.
69899         * modules/write: New file.
69900         * lib/unistd.in.h: Include <sys/types.h>.
69901         (write): New declaration.
69902         * lib/write.c: New file.
69903         * m4/write.m4: New file.
69904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69905         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
69906         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
69907         GNULIB_WRITE, REPLACE_WRITE.
69908         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
69909         and the SIGPIPE issue.
69911         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
69912         (raise): New declaration.
69913         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
69914         (ext_signal): New function.
69915         (rpl_raise): New function.
69916         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
69917         GNULIB_SIGNAL_H_SIGPIPE.
69918         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
69919         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
69921         * modules/sigpipe: New file.
69922         * m4/sigpipe.m4: New file.
69924 2008-09-25  Derek Price  <derek@ximbiot.com>
69925             Bruno Haible  <bruno@clisp.org>
69927         * gnulib-tool (func_import): Report all license incompatibilities, not
69928         just the first one.
69930 2008-09-25  Bruno Haible  <bruno@clisp.org>
69932         * gnulib-tool (func_import): When computing the edits, consider not
69933         only the Makefile.ams that exist but also those that will be generated.
69935 2008-09-25  Simon Josefsson  <simon@josefsson.org>
69937         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
69938         fixes gnulib-tool --test warning about duplicate dependency.
69940 2008-09-25  Bruno Haible  <bruno@clisp.org>
69942         * gnulib-tool: Don't ask the user to perform edits in the generated
69943         Makefile.ams.
69944         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
69945         apply to the Makefile.am being generated.
69946         (func_emit_tests_Makefile_am): Execute edits that apply to the
69947         Makefile.am being generated.
69948         (func_import): Setup list of Makefile.am edits before emitting the
69949         Makefile.ams, not at the end.
69950         (func_create_testdir): Update.
69951         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69953 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69955         * gnulib-tool (func_import): Store the --tests-base option in the
69956         comment in gnulib-cache.m4.
69958 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
69960         * NEWS: Document increased portability that sys_select now provides.
69962         * lib/sys_select.in.h: Install select wrapper.
69963         * lib/sys_socket.in.h: Use more descriptive name when there is no
69964         select wrapper.
69965         * lib/winsock-select.c: New.
69966         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
69967         Require gl_HEADER_SYS_SOCKET.
69968         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
69969         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
69970         * tests/test-sys_select.c: Add functional tests.
69972 2008-09-24  Eric Blake  <ebb9@byu.net>
69974         open, fopen: close fd leak in last patch
69975         * lib/open.c (rpl_open): Close fd before returning error.
69976         * lib/fopen.c (rpl_fopen): Close fd before returning error.
69977         * doc/posix-functions/open.texi (open): Document that Irix also
69978         has the bug.
69979         * doc/posix-functions/fopen.texi (fopen): Likewise.
69980         Reported by Paolo Bonzini.
69982 2008-09-24  Bruno Haible  <bruno@clisp.org>
69984         Ensure that a filename ending in a slash cannot be used to access a
69985         non-directory.
69986         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
69987         to check whether it's really a directory.
69988         * lib/fopen.c: Include fcntl.h, unistd.h.
69989         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
69990         and fdopen().
69991         * modules/fopen (Depends-on): Add unistd.
69992         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
69993         * tests/test-fopen.c (main): Likewise.
69994         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
69995         * doc/posix-functions/fopen.texi: Likewise.
69996         Reported by Eric Blake.
69998 2008-09-23  Eric Blake  <ebb9@byu.net>
70000         c-stack: avoid compiler optimizations when provoking overflow
70001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
70002         recursion harder to optimize, to ensure a stack overflow occurs.
70003         * tests/test-c-stack.c (recurse): Likewise.
70004         Borrowed from libsigsegv.
70006         c-stack: work around Irix sigaltstack bug
70007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
70008         whether sigaltstack uses wrong end of stack_t (copied in part from
70009         libsigsegv).
70010         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
70011         Irix bug, without requiring an over-allocation.
70012         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
70013         bug.
70015         fopen: document mingw bug on directories
70016         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
70017         not allowing a stream visiting a directory, even though reading
70018         from such a stream is not portable.
70020 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70022         * lib/poll.c: Rewrite.
70023         * modules/poll: Depend on alloca.
70025 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70027         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
70028         instead define prototypes for a full set of wrappers.  Ensure
70029         that Cygwin does not use the compatibility code, which is only
70030         for MinGW.
70031         * lib/winsock.c: New.
70032         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
70033         * modules/sys_socket: Add lib/winsock.c.
70035         * modules/poll-tests: Add errno and perror.
70036         * tests/test-poll.c: Use ioctl, not ioctlsocket.
70038 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70040         * tests/test-poll.c: Downgrade minimum needed Winsock version.
70042 2008-09-23  Bruno Haible  <bruno@clisp.org>
70044         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
70045         * doc/glibc-functions/*: Likewise.
70047 2008-09-23  Simon Josefsson  <simon@josefsson.org>
70049         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
70050         success.
70052 2008-09-22  Eric Blake  <ebb9@byu.net>
70053             Bruno Haible  <bruno@clisp.org>
70055         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
70056         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
70057         supply %A but mishandle pseudo-NaN.
70058         Reported by Simon Josefsson.
70060 2008-09-21  Bruno Haible  <bruno@clisp.org>
70062         * tests/test-lock.c (main): Tweak skip message.
70063         * tests/test-tls.c (main): Likewise.
70065 2008-09-21  Bruno Haible  <bruno@clisp.org>
70067         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
70068         whether 'struct sigaction' has sa_sigaction here...
70069         (gl_PREREQ_SIG_HANDLER_H): ... not here.
70070         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
70072 2008-09-21  Bruno Haible  <bruno@clisp.org>
70074         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
70075         section.
70076         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
70077         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
70078         the new section.
70079         (Support for obsolete systems lacking POSIX:2001): New section.
70080         (String handling <string.h>): Move strdup to the new section.
70081         Suggested by Simon Josefsson and Paolo Bonzini.
70083 2008-09-21  Bruno Haible  <bruno@clisp.org>
70085         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
70086         exponents in %e and %g results on 'long double'. Needed for mingw's
70087         improved *printf functions.
70088         * tests/test-vasprintf-posix.c (test_function): Likewise.
70089         * tests/test-snprintf-posix.h (test_function): Likewise.
70090         * tests/test-sprintf-posix.h (test_function): Likewise.
70091         Reported by Eric Blake.
70093 2008-09-21  Bruno Haible  <bruno@clisp.org>
70095         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
70096         * tests/test-sprintf-posix.h (test_function): Likewise.
70098 2008-09-21  Bruno Haible  <bruno@clisp.org>
70100         * modules/getpass (Depends-on): Add strdup-posix.
70102         New module 'strdup-posix'.
70103         * modules/strdup-posix: New file.
70104         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
70105         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
70106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70107         REPLACE_STRDUP.
70108         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
70109         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
70110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70111         strdup-posix.
70113         * modules/strdup (Depends-on): Remove malloc-posix.
70115 2008-09-20  Bruno Haible  <bruno@clisp.org>
70117         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
70118         Wildenhues.
70120 2008-09-20  Bruno Haible  <bruno@clisp.org>
70122         Ensure that wint_t gets defined on IRIX 5.3.
70123         * lib/wchar.in.h (wint_t): Define if not defined by the system.
70124         * lib/wctype.in.h (wint_t): Likewise.
70125         (__wctype_wint_t): Remove type.
70126         (isw*): Use wint_t instead of __wctype_wint_t.
70127         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
70128         * modules/wchar (Files): Add m4/wint_t.m4.
70129         (Makefile.am): Substitute HAVE_WINT_T.
70130         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
70131         * tests/test-wctype.c: Check that wint_t is defined.
70132         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
70133         * doc/posix-headers/wctype.texi: Likewise.
70134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70136 2008-09-18  Bruno Haible  <bruno@clisp.org>
70138         * gnulib-tool (func_exit): Update comment.
70140 2008-09-18  Simon Josefsson  <simon@josefsson.org>
70142         * modules/getaddrinfo (Depends-on): Remove strdup, this module
70143         assumes strdup exists and does not depend on strdup to return
70144         ENOMEM on out of memory conditions.
70146 2008-09-18  Bruno Haible  <bruno@clisp.org>
70148         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
70149         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
70150         digits for the exponent.
70152 2008-09-18  Jim Meyering  <meyering@redhat.com>
70153             Bruno Haible  <bruno@clisp.org>
70155         * lib/vasnprintf.c (decimal_point_char): Define also if
70156         NEED_PRINTF_INFINITE_LONG_DOUBLE.
70158 2008-09-16  Bruno Haible  <bruno@clisp.org>
70159         and Eric Blake  <ebb9@byu.net>
70161         vasnprintf: support Irix 5.3
70162         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
70163         that mishandle long double infinity.
70164         Reported by Tom G. Christensen.
70166 2008-09-16  Bruno Haible  <bruno@clisp.org>
70168         * doc/glibc-functions/scandir.texi: Mention the function is missing on
70169         Solaris 9.
70170         * doc/glibc-functions/alphasort.texi: Likewise.
70171         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
70173 2008-09-16  Jim Meyering  <meyering@redhat.com>
70175         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
70176         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
70177         a umask modification leak out of a subshell.  Otherwise, the
70178         opensolaris /bin/sh would be accepted and thus cause unwarranted
70179         failures in the coreutils test suite.
70181 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
70183         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
70184         to succeed.
70186 2008-09-16  Jim Meyering  <meyering@redhat.com>
70188         avoid spurious test failure when library is built without ACL support
70189         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
70190         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
70191         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
70192         * tests/test-copy-acl.sh: Likewise.
70194 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70196         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
70197         based on character occurrence counts.
70199 2008-09-15  Eric Blake  <ebb9@byu.net>
70201         tests: avoid some compiler warnings
70202         * tests/test-memchr.c (main): Pass NULL indirectly.
70203         * tests/test-closein.c (main): Avoid unused variable.
70205 2008-09-15  Bruno Haible  <bruno@clisp.org>
70207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
70208         are missing on OpenBSD 4.0 individually.
70209         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70211 2008-09-15  Bruno Haible  <bruno@clisp.org>
70213         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
70214         * doc/posix-functions/strerror.texi: Mention also Cygwin.
70215         * doc/posix-functions/perror.texi: Likewise.
70216         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
70217         is missing.
70218         Reported by Eric Blake.
70220         * lib/errno.in.h: Use replacement values >= 2000.
70221         Reported by Eric Blake.
70223 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70225         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
70226         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
70227         limit.
70228         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
70229         compareseq was aborted.
70231 2008-09-14  Bruno Haible  <bruno@clisp.org>
70233         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
70234         yvec_edit_count.
70235         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
70236         (fstrcmp_bounded): Simplify result computation accordingly.
70238 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70240         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
70241         (fstrcmp): Define in terms of fstrcmp_bounded.
70242         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
70243         lower_bound argument.
70244         Return quickly if the result is certainly < lower_bound.
70245         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
70247 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70249         * lib/diffseq.h (EARLY_ABORT): New macro.
70250         (compareseq): Change return type to bool. Return true when EARLY_ABORT
70251         evaluates to true.
70253 2008-09-14  Bruno Haible  <bruno@clisp.org>
70255         * modules/perror-tests: New file.
70256         * tests/test-perror.sh: New file.
70257         * tests/test-perror.c: New file.
70259         New module 'perror'.
70260         * lib/stdio.in.h (perror): New declaration.
70261         * lib/perror.c: New file.
70262         * m4/perror.m4: New file.
70263         * modules/perror: New file.
70264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
70265         * doc/posix-functions/perror.texi: Mention the perror module.
70266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
70267         REPLACE_PERROR.
70268         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
70269         REPLACE_PERROR.
70271 2008-09-14  Bruno Haible  <bruno@clisp.org>
70273         * modules/stdio (Makefile.am): Reorder to match the order in
70274         lib/stdio.in.h.
70275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70277 2008-09-13  Bruno Haible  <bruno@clisp.org>
70279         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
70281 2008-09-13  Bruno Haible  <bruno@clisp.org>
70283         Extend strerror to cover the added errno values.
70284         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
70285         (rpl_strerror): Provide error messages for the added errno values and
70286         for the WSA* values.
70287         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
70288         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
70289         strerror.
70290         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
70291         * modules/strerror (Depends-on): Add errno.
70292         * doc/posix-functions/strerror.texi: Document the change.
70293         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
70294         and EOVERFLOW.
70296 2008-09-13  Bruno Haible  <bruno@clisp.org>
70298         * modules/EOVERFLOW: Remove file.
70299         * m4/eoverflow.m4: Remove file.
70300         * modules/EOVERFLOW-tests: Remove file.
70301         * tests/test-EOVERFLOW.c: Remove file.
70302         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
70303         * modules/ftell (Depends-on): Likewise.
70304         * modules/getdelim (Depends-on): Likewise.
70305         * modules/getugroups (Depends-on): Likewise.
70306         * modules/poll (Depends-on): Likewise.
70307         * modules/snprintf (Depends-on): Likewise.
70308         * modules/sprintf-posix (Depends-on): Likewise.
70309         * modules/vasnprintf (Depends-on): Likewise.
70310         * modules/vasprintf (Depends-on): Likewise.
70311         * modules/vfprintf-posix (Depends-on): Likewise.
70312         * modules/vsnprintf (Depends-on): Likewise.
70313         * modules/vsprintf-posix (Depends-on): Likewise.
70314         * modules/xvasprintf (Depends-on): Likewise.
70315         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
70316         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
70317         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
70318         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
70319         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
70320         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
70321         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
70322         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
70323         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
70324         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
70325         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
70326         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
70327         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
70328         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
70329         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
70330         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
70331         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
70332         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
70333         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
70334         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
70335         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
70336         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
70337         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
70338         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
70339         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
70340         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
70341         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
70342         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
70343         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
70344         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
70345         * MODULES.html.sh: Remove EOVERFLOW.
70346         * NEWS: Mention the change.
70348 2008-09-13  Bruno Haible  <bruno@clisp.org>
70350         * modules/errno-tests: New file.
70351         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
70353         * lib/errno.in.h: New file.
70354         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
70355         * modules/errno: New file.
70356         * doc/posix-headers/errno.texi: Update documentation.
70357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
70359 2008-09-13  Bruno Haible  <bruno@clisp.org>
70361         * tests/test-poll.c: Use #if for native Windows, rather than testing
70362         __MSVCRT__.
70364 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70365             Bruno Haible  <bruno@clisp.org>
70367         * lib/glob.c: Don't include <pwd.h> on native Windows.
70368         (WINDOWS32): New macro.
70369         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
70371 2008-09-13  Bruno Haible  <bruno@clisp.org>
70373         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
70374         (ETIMEDOUT): Remove macro.
70375         (glthread_cond_timedwait_multithreaded): New declaration.
70376         (glthread_cond_timedwait): Use it.
70377         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
70378         (glthread_cond_timedwait_multithreaded): New function.
70380 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70382         * modules/poll-tests: Do not check for io.h.
70383         * tests/test-poll.c: Check for __MSVCRT__ instead.
70385 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70387         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
70388         * modules/poll-tests: Add inet_pton, stdbool, sockets.
70389         * tests/test-poll.c: Use them.  Use _pipe on Windows.
70391 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70393         * modules/poll-tests: New.
70394         * tests/test-poll.c: New.
70396 2008-09-12  Eric Blake  <ebb9@byu.net>
70398         frexp: test for NetBSD failure on -0.0
70399         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
70400         not all, bugs from NetBSD 3.0 have been fixed.
70401         * doc/posix-functions/frexp.texi (frexp): Document bug.
70402         Reported by Thomas Klausner.
70404         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
70405         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
70406         literal -0.0.
70407         Reported by Jonathan C. Patschke <jp@centtech.com>.
70409 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70411         * lib/glthread/cond.h: Use dummy implementation also if
70412         USE_WIN32_THREADS.
70414 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70416         * modules/fnmatch-posix (License): Change to LGPLv2+.
70417         * modules/fnmatch-gnu (License): Likewise.
70419 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70421         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
70423 2008-09-11  Jim Meyering  <meyering@redhat.com>
70425         * users.txt: Add gtk-vnc.
70427 2008-09-08  Simon Josefsson  <simon@josefsson.org>
70429         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
70430         rotate amounts.
70432         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
70433         required for 16-bit and 8-bit rotates.
70434         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
70435         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
70436         UINT8_MAX instead of hard-coded constants.
70437         Suggested by Paul Eggert.
70439 2008-09-07  Bruno Haible  <bruno@clisp.org>
70441         * tests/test-striconveh.c (main): Check behaviour when converting from
70442         UTF-7.
70444         Make striconveh work better with stateful encodings.
70445         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
70446         that iconv does not increment the inptr when returning -1/EINVAL.
70448 2008-09-07  Bruno Haible  <bruno@clisp.org>
70450         * build-aux/config.rpath: Update according to libtool-2.2.6.
70451         * build-aux/config.libpath: Likewise.
70453 2008-09-06  Bruno Haible  <bruno@clisp.org>
70455         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
70456         * lib/freadptr.c (freadptr): Likewise.
70457         * lib/freadseek.c (freadptrinc): Likewise.
70458         Reported by Simon Josefsson.
70460 2008-09-06  Bruno Haible  <bruno@clisp.org>
70462         * modules/freadptr (License): Change to LGPLv2+.
70463         * modules/freadseek (License): Likewise.
70464         Suggested by Eric Blake.
70466         * modules/memchr2 (License): Change to LGPLv2+.
70467         Approved by Eric Blake.
70469 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70470             Bruno Haible  <bruno@clisp.org>
70472         Make gnulib-tool work with native 'sed' on AIX.
70473         * gnulib-tool (sed_noop): New variable.
70474         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
70475         func_add_or_update, func_create_testdir): Use it to initialize sed
70476         script variables.
70477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70479 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
70480             Bruno Haible  <bruno@clisp.org>
70482         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
70483         also works after #include directives.
70485 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
70487         getdate.y: reject an out-of-range timezone value
70488         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
70489         the range [-24...+24].  When specified with only one or two digits,
70490         * tests/test-getdate.c: Tests for the fix.
70491         * doc/getdate.texi: Document this change.
70493 2008-09-03  Bruno Haible  <bruno@clisp.org>
70495         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
70497 2008-09-02  Simon Josefsson  <simon@josefsson.org>
70499         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
70500         <bruce.korb@gmail.com> with ideas from Ben Pfaff
70501         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
70502         Blake <ebb9@byu.net>.
70504         * tests/test-bitrotate.c: Add more test vectors.
70506 2008-09-02  Eric Blake  <ebb9@byu.net>
70508         vasnprintf-posix: handle large precision via %.*d
70509         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
70510         when handling it ourselves.
70511         * tests/test-vasnprintf-posix.c (test_function): Add test.
70512         * tests/test-snprintf-posix.h (test_function): Likewise.
70513         * tests/test-sprintf-posix.h (test_function): Likewise.
70514         * tests/test-vasprintf-posix.c (test_function): Likewise.
70515         Reported by Alain Guibert.
70517 2008-09-01  Eric Blake  <ebb9@byu.net>
70519         c-stack: make configure-time check more robust
70520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
70521         successful sigaction call.
70522         Reported by Tom G. Christensen.
70524 2008-09-01  Bruno Haible  <bruno@clisp.org>
70526         New module 'findprog-lgpl'.
70527         * modules/findprog-lgpl: New file.
70528         * lib/findprog-lgpl.c: New file.
70529         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
70530         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
70531         to decide whether to use strdup or xstrdup, concatenated_filename or
70532         xconcatenated_filename.
70534 2008-09-01  Bruno Haible  <bruno@clisp.org>
70536         Split module 'concat-filename' into 'concat-filename' (LGPL) and
70537         'xconcat-filename' (GPL).
70538         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
70539         (License): Change to LGPLv2+.
70540         * modules/xconcat-filename: New file.
70541         * lib/concat-filename.h (concatenated_filename): Change specification.
70542         (xconcatenated_filename): New declaration.
70543         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
70544         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
70545         memory situations.
70546         * lib/xconcat-filename.c: New file.
70547         * NEWS: Mention the change.
70548         * lib/findprog.c: Include concat-filename.h, not filename.h.
70549         (find_in_path): Use xconcatenated_filename instead of
70550         concatenated_filename.
70551         * lib/javacomp.c: Include concat-filename.h, not filename.h.
70552         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70553         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70554         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70555         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
70556         instead of concatenated_filename.
70557         * lib/javaexec.c: Include concat-filename.h, not filename.h.
70558         (execute_java_class): Use xconcatenated_filename instead of
70559         concatenated_filename.
70560         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
70561         * modules/javacomp (Depends-on): Likewise.
70562         * modules/javaexec (Depends-on): Likewise.
70564 2008-09-01  Bruno Haible  <bruno@clisp.org>
70566         Split module 'filename' into 'filename' and 'concat-filename'.
70567         * modules/filename: Keep only lib/filename.h.
70568         (License): Change to LGPLv2+.
70569         * modules/concat-filename: New file, extracted from modules/filename.
70570         * lib/filename.h (concatenated_filename): Remove declaration.
70571         * lib/concat-filename.h: New file, extracted from lib/filename.h.
70572         * lib/concat-filename.c: Include concat-filename.h.
70573         * NEWS: Mention the change.
70575 2008-09-01  Simon Josefsson  <simon@josefsson.org>
70577         * lib/bitrotate.h (rotl8, rotr8): Add.
70579         * modules/bitrotate (configure.ac): Need
70580         AC_REQUIRE([AC_C_INLINE]).
70581         (Description): Mention stdint.h.  Reported by Bruno Haible
70582         <bruno@clisp.org>.
70584         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
70585         Paolo Bonzini <bonzini@gnu.org>.
70587 2008-08-31  Bruno Haible  <bruno@clisp.org>
70589         Assume Solaris specific bi-arch conventions on Solaris systems.
70590         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
70591         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
70592         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
70593         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
70594         like acl_libdirstem.
70595         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
70596         acl_libdirstem.
70597         * NEWS: Mention the change.
70598         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
70600 2008-08-31  Jim Meyering  <meyering@redhat.com>
70602         * lib/strftime.h: Add comments describing the two added arguments.
70604         remove duplicate #include directives
70605         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
70606         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
70608 2008-08-31  Bruno Haible  <bruno@clisp.org>
70610         New module 'sigpipe-die'.
70611         * modules/sigpipe-die: New file.
70612         * lib/sigpipe-die.h: New file.
70613         * lib/sigpipe-die.c: New file.
70614         * MODULES.html.sh (Signal handling): Add sigpipe-die.
70616 2008-08-31  Bruno Haible  <bruno@clisp.org>
70618         Don't override previously installed signal handlers.
70619         * lib/fatal-signal.c (saved_sigactions): New variable.
70620         (uninstall_handlers): Reset the signal to the saved handler, not
70621         to SIG_DFL (except when ignored).
70622         (install_handlers): Save the previous handlers.
70624 2008-08-30  Bruno Haible  <bruno@clisp.org>
70626         * gnulib-tool (func_reset_sigpipe): New function.
70627         (func_get_automake_snippet, func_modules_transitive_closure,
70628         func_import): Invoke it before a join command that reads from stdin,
70629         to avoid "echo: write error: Broken pipe" error messages on stderr.
70630         Reported by Sam Steingold <sds@gnu.org>.
70632 2008-08-30  Bruno Haible  <bruno@clisp.org>
70634         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
70635         Code copied from m4/open.m4.
70636         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
70637         access and the filename ends in a slash. Code copied from lib/open.c.
70638         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
70639         * tests/test-fopen.c (main): Check against bug with trailing slash.
70641 2008-08-29  Bruno Haible  <bruno@clisp.org>
70643         Avoid some "gcc -pedantic" warnings.
70644         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
70645         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
70646         * lib/dirent.in.h: Likewise.
70647         * lib/fcntl.in.h: Likewise.
70648         * lib/float.in.h: Likewise.
70649         * lib/iconv.in.h: Likewise.
70650         * lib/inttypes.in.h: Likewise.
70651         * lib/locale.in.h: Likewise.
70652         * lib/math.in.h: Likewise.
70653         * lib/netinet_in.in.h: Likewise.
70654         * lib/search.in.h: Likewise.
70655         * lib/signal.in.h: Likewise.
70656         * lib/stdarg.in.h: Likewise.
70657         * lib/stdint.in.h: Likewise.
70658         * lib/stdio.in.h: Likewise.
70659         * lib/stdlib.in.h: Likewise.
70660         * lib/string.in.h: Likewise.
70661         * lib/strings.in.h: Likewise.
70662         * lib/sys_select.in.h: Likewise.
70663         * lib/sys_socket.in.h: Likewise.
70664         * lib/sys_stat.in.h: Likewise.
70665         * lib/sys_time.in.h: Likewise.
70666         * lib/sysexits.in.h: Likewise.
70667         * lib/time.in.h: Likewise.
70668         * lib/unistd.in.h: Likewise.
70669         * lib/wchar.in.h: Likewise.
70670         * lib/wctype.in.h: Likewise.
70671         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
70672         * modules/fchdir (Makefile.am): Likewise.
70673         * modules/fcntl (Makefile.am): Likewise.
70674         * modules/float (Makefile.am): Likewise.
70675         * modules/iconv_open (Makefile.am): Likewise.
70676         * modules/inttypes (Makefile.am): Likewise.
70677         * modules/locale (Makefile.am): Likewise.
70678         * modules/math (Makefile.am): Likewise.
70679         * modules/netinet_in (Makefile.am): Likewise.
70680         * modules/search (Makefile.am): Likewise.
70681         * modules/signal (Makefile.am): Likewise.
70682         * modules/stdarg (Makefile.am): Likewise.
70683         * modules/stdint (Makefile.am): Likewise.
70684         * modules/stdio (Makefile.am): Likewise.
70685         * modules/stdlib (Makefile.am): Likewise.
70686         * modules/string (Makefile.am): Likewise.
70687         * modules/strings (Makefile.am): Likewise.
70688         * modules/sys_select (Makefile.am): Likewise.
70689         * modules/sys_socket (Makefile.am): Likewise.
70690         * modules/sys_stat (Makefile.am): Likewise.
70691         * modules/sys_time (Makefile.am): Likewise.
70692         * modules/sysexits (Makefile.am): Likewise.
70693         * modules/time (Makefile.am): Likewise.
70694         * modules/unistd (Makefile.am): Likewise.
70695         * modules/wchar (Makefile.am): Likewise.
70696         * modules/wctype (Makefile.am): Likewise.
70697         Reported by Reuben Thomas <rrt@sc3d.org>.
70699 2008-08-29  Bruno Haible  <bruno@clisp.org>
70701         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
70702         any more.
70704 2008-08-29  Simon Josefsson  <simon@josefsson.org>
70706         * MODULES.html.sh (Misc): Add bitrotate.
70708         * modules/bitrotate: New file.
70710         * lib/bitrotate.h: New file.
70712         * modules/bitrotate-tests: New file.
70714         * tests/test-bitrotate.c: New file.
70716         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
70717         on the bitrotate module.
70719         * lib/arctwo.c: Use new bitrotate module.
70721 2008-08-29  Jim Meyering  <meyering@redhat.com>
70723         bootstrap: merge changes from coreutils
70724         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
70725         of copied files.  Remove a kludge, now that this is fixed.
70726         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
70727         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
70728         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
70730 2008-08-29  Bruno Haible  <bruno@clisp.org>
70732         * MODULES.html.sh: Remove --cvs-urls option.
70734 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
70736         maint.mk: adjust to file name change
70737         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
70739 2008-08-28  Jim Meyering  <meyering@redhat.com>
70741         * modules/getndelim2 (License): Relicense to LGPLv2+.
70742         Approved by Richard Stallman for the version of 1995, and by
70743         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
70745 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
70747         * lib/getdelim.c (flockfile, funlockfile): Make all of them
70748         dummy if one is not available.  Do not touch them if
70749         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
70750         (getc_maybe_unlocked): New.
70751         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
70753 2008-08-26  Eric Blake  <ebb9@byu.net>
70755         doc/INSTALL: resync from autoconf
70756         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
70757         (INSTALL_PRELUDE): Delete; this is done more efficiently by
70758         moving...
70759         * install.texi [!autoconf]: ...here.  Resync from autoconf.
70760         * INSTALL: Regenerate.
70761         * INSTALL.ISO: New file.
70762         * INSTALL.UTF-8: Likewise.
70764 2008-08-26  Jim Meyering  <meyering@redhat.com>
70766         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
70767         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
70768         these definitions conditional, so that they may be overridden, too.
70770 2008-08-26  Bruno Haible  <bruno@clisp.org>
70772         Generate INSTALL file variants with prettier quotes.
70773         * doc/Makefile (INSTALL_PRELUDE): New macro.
70774         (INSTALL): Use it.
70775         (INSTALL.ISO, INSTALL.UTF-8): New rules.
70777 2008-08-26  Bruno Haible  <bruno@clisp.org>
70779         Run makeinfo in an English locale.
70780         * doc/Makefile (MAKEINFO): New variable.
70782 2008-08-26  Bruno Haible  <bruno@clisp.org>
70784         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
70785         Suggested by Eric Blake.
70787 2008-08-25  Bruno Haible  <bruno@clisp.org>
70789         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
70791 2008-08-25  Eric Blake  <ebb9@byu.net>
70793         c-stack: test that stack overflow can be caught
70794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
70795         that platform allows handling stack overflow; at least OS/2 EMX
70796         has sigaltstack, but crashes before transferring control to
70797         handler on stack overflow.
70798         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
70799         check for HAVE_STACK_OVERFLOW_HANDLING.
70800         Reported by Elbert Pol.
70802 2008-08-25  Bruno Haible  <bruno@clisp.org>
70804         * doc/posix-functions/strftime.texi: Fix description of strftime
70805         module.
70807 2008-08-24  Bruno Haible  <bruno@clisp.org>
70809         * tests/uniwidth/test-uc_width2.c: New file.
70810         * tests/uniwidth/test-uc_width2.sh: New file.
70811         * modules/uniwidth/width-tests (Files): Add the new files.
70812         (TESTS): Add uniwidth/test-uc_width2.sh.
70813         (TESTS_ENVIRONMENT): New variable.
70814         (check_PROGRAMS): Add test-uc_width2.
70815         (test_uc_width2_SOURCES): New variable.
70817         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
70818         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
70819         not 0x00AB.
70820         Reported by Alexander V. Lukyanov <lav@netis.ru>.
70822 2008-08-22  Eric Blake  <ebb9@byu.net>
70824         test-lock, test-tls: mention why a test is skipped
70825         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
70826         skipped.
70827         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
70829         count-one-bits: relax license
70830         * modules/count-one-bits (License): Relicense to LGPLv2+.
70831         Suggested by Ludovic Courtès, approved by Ben Pfaff.
70833 2008-08-22  Andreas Schwab  <schwab@suse.de>
70835         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
70836         Remove spurious space in assignment.
70838 2008-08-21  Simon Josefsson  <simon@josefsson.org>
70840         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
70841         Paul Eggert <eggert@CS.UCLA.EDU>.
70843 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
70845         * modules/gettext: Add m4/threadlib.m4.
70847 2008-08-19  Eric Blake  <ebb9@byu.net>
70849         test-c-stack: fix compilation failure on FreeBSD 5.0
70850         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
70851         headers before <sys/resource.h>.
70852         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
70853         the bug.
70854         Reported by Nelson H. F. Beebe.
70856         strverscmp: migrate from "strverscmp.h" to <string.h>
70857         * modules/string (Makefile.am): Add new hooks.
70858         * modules/strverscmp (Files): Remove strverscmp.h.
70859         (Depends-on): Add string.
70860         (configure.ac): Add indicator.
70861         (Include): Mention new header.
70862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
70863         defaults.
70864         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
70865         results.
70866         * lib/strverscmp.h: Delete.
70867         * lib/string.in.h (strverscmp): Provide declaration, when needed.
70868         * tests/test-strverscmp.c (includes): Adjust client.
70869         * lib/check-version.c (includes): Likewise.
70870         * NEWS: Document the change.
70872         strverscmp: add unit test
70873         * modules/strverscmp-tests: New file.
70874         * tests/test-strverscmp.c: Likewise.
70876 2008-08-19  Simon Josefsson  <simon@josefsson.org>
70878         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
70879         regarding Windows crypto stuff, from Mono.
70881 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
70883         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
70884         if present, for intel RND.  Return error on failures.
70886 2008-08-18  Ben Pfaff  <blp@gnu.org>
70888         gitlog-to-changelog: give better diagnostic for failed pipe-open
70889         * build-aux/gitlog-to-changelog: Improve error message: suggest
70890         that the version of Git may be too old.
70892 2008-08-18  Simon Josefsson  <simon@josefsson.org>
70894         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
70895         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
70897 2008-08-18  Bruno Haible  <bruno@clisp.org>
70899         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
70900         pthread_in_use().
70902 2008-08-18  Bruno Haible  <bruno@clisp.org>
70904         * lib/glthread/threadlib.c: Include <pthread.h>.
70906 2008-08-18  Bruno Haible  <bruno@clisp.org>
70908         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
70909         glthread_recursive_lock_* macros.
70910         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
70911         Fix syntax error.
70913 2008-08-18  Bruno Haible  <bruno@clisp.org>
70915         * lib/glthread/thread.c: Avoid forcing a context switch right after
70916         thread creation.
70918 2008-08-17  Bruno Haible  <bruno@clisp.org>
70920         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
70921         * lib/glthread/thread.h: Provide Win32 specific implementation.
70922         * modules/thread (Files): Add lib/glthread/thread.c.
70923         (Depends-on): Add lock.
70924         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
70926 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70928         New module 'yield'.
70929         * modules/yield: New file.
70930         * lib/glthread/yield.h: New file.
70931         * m4/yield.m4: New file.
70932         * MODULES.html.sh (Multithreading): Add yield.
70934 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70936         New module 'thread'.
70937         * modules/thread: New file.
70938         * lib/glthread/thread.h: New file.
70939         * m4/thread.m4: New file.
70940         * MODULES.html.sh (Multithreading): Add thread.
70942 2008-08-17  Bruno Haible  <bruno@clisp.org>
70944         * lib/glthread/lock.h: Include <stdlib.h> always.
70945         * lib/glthread/tls.h: Likewise.
70946         * lib/glthread/cond.h: Likewise.
70948 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70950         New module 'cond'.
70951         * modules/cond: New file.
70952         * lib/glthread/cond.h: New file.
70953         * lib/glthread/cond.c: New file.
70954         * m4/cond.m4: New file.
70955         * MODULES.html.sh (Multithreading): Add cond.
70957 2008-08-16  Eric Blake  <ebb9@byu.net>
70959         c-stack: fix regression on Irix 5.3 from 2008-06-21
70960         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
70961         sa_sigaction...
70962         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
70963         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
70964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
70965         * modules/signal (Makefile.am): Use the value.
70966         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
70967         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
70968         * doc/posix-headers/signal.texi (signal.h): Document this
70969         portability issue.
70970         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
70971         Reported by Tom G. Christensen.
70973 2008-08-17  Bruno Haible  <bruno@clisp.org>
70975         New module 'threadlib'.
70976         * modules/threadlib: New file.
70977         * lib/glthread/threadlib.c: New file, extracted from
70978         lib/glthread/lock.c.
70979         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
70980         functions.
70981         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
70982         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
70983         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
70984         macros.
70985         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
70986         (gl_DISABLE_THREADS): Remove macro.
70987         * modules/lock (Files): Remove build-aux/config.rpath.
70988         (Depends-on): Remove havelib. Add threadlib.
70989         (configure.ac-early): Remove section.
70990         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
70991         * modules/tls (Depends-on): Remove lock. Add threadlib.
70992         (Link): New section, copied from threadlib.
70993         * MODULES.html.sh (Multithreading): Add threadlib.
70995 2008-08-14  Bruno Haible  <bruno@clisp.org>
70997         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
70998         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
70999         glthread_rwlock_unlock, glthread_rwlock_destroy,
71000         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
71001         glthread_recursive_lock_destroy): Define as macros always.
71002         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
71003         glthread_lock_lock.
71004         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
71005         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
71006         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
71007         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
71008         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
71009         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
71010         (glthread_recursive_lock_lock_func): Renamed from
71011         glthread_recursive_lock_lock.
71012         (glthread_recursive_lock_unlock_func): Renamed from
71013         glthread_recursive_lock_unlock.
71014         (glthread_recursive_lock_destroy_func): Renamed from
71015         glthread_recursive_lock_destroy.
71017 2008-08-14  Bruno Haible  <bruno@clisp.org>
71019         * lib/glthread/lock.h: Renamed from lib/lock.h.
71020         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
71021         * lib/glthread/tls.h: Renamed from lib/tls.h.
71022         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
71023         * lib/fstrcmp.c: Update includes.
71024         * lib/strsignal.c: Update includes.
71025         * modules/lock (Files, Makefile.am): Update.
71026         (Include): Change to "glthread/lock.h".
71027         * modules/tls (Files, Makefile.am): Update.
71028         (Include): Change to "glthread/tls.h".
71029         * tests/test-lock.c: Update includes.
71030         * tests/test-tls.c: Update includes.
71031         * NEWS: Mention the renamed header files.
71033 2008-08-11  Jim Meyering  <meyering@redhat.com>
71035         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
71037 2008-08-11  Eric Blake  <ebb9@byu.net>
71039         test-c-stack: avoid C99-ism
71040         * tests/test-c-stack.c (main): Fix whitespace, move declaration
71041         before statement.
71042         Reported by Alain Guibert.
71044 2008-08-10  Jim Meyering  <meyering@redhat.com>
71046         ensure that return value of uinttostr et al are not ignored
71047         * lib/inttostr.h (__GNUC_PREREQ): Define.
71048         (__attribute_warn_unused_result__): Define.
71049         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
71051 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
71053         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
71054         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
71056 2008-08-07  Jim Meyering  <meyering@redhat.com>
71058         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
71060         * modules/mkstemp (License): Relicense under LGPLv2+.
71061         * modules/tempname (License): Likewise.
71063 2008-08-06  Bruno Haible  <bruno@clisp.org>
71065         * lib/poll.c (poll): Further micro-optimization.
71067 2008-08-06  Jim Meyering  <meyering@redhat.com>
71069         inet_pton.c: use locale-independent tolower
71070         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
71071         (inet_pton6): Use c_tolower rather than tolower.
71072         * modules/inet_pton (Depends-on): Add c-ctype.
71074 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
71076         * lib/poll.c (poll): Avoid division when timeout is 0, cache
71077         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
71079 2008-08-06  Jim Meyering  <meyering@redhat.com>
71081         * modules/inet_pton (License): Relicense under LGPLv2+.
71083 2008-08-03  Bruno Haible  <bruno@clisp.org>
71085         Additional non-aborting API for lock and tls.
71086         * lib/lock.h: Include <errno.h>.
71087         (glthread_lock_init): New macro/function.
71088         (gl_lock_init): Define as wrapper around glthread_lock_init.
71089         (glthread_lock_lock): New macro/function.
71090         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
71091         (glthread_lock_unlock): New macro/function.
71092         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
71093         (glthread_lock_destroy): New macro/function.
71094         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
71095         (glthread_rwlock_init): New macro/function.
71096         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
71097         (glthread_rwlock_rdlock): New macro/function.
71098         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
71099         (glthread_rwlock_wrlock): New macro/function.
71100         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
71101         (glthread_rwlock_unlock): New macro/function.
71102         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
71103         (glthread_rwlock_destroy): New macro/function.
71104         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
71105         (glthread_recursive_lock_init): New macro/function.
71106         (gl_recursive_lock_init): Define as wrapper around
71107         glthread_recursive_lock_init.
71108         (glthread_recursive_lock_lock): New macro/function.
71109         (gl_recursive_lock_lock): Define as wrapper around
71110         glthread_recursive_lock_lock.
71111         (glthread_recursive_lock_unlock): New macro/function.
71112         (gl_recursive_lock_unlock): Define as wrapper around
71113         glthread_recursive_lock_unlock.
71114         (glthread_recursive_lock_destroy): New macro/function.
71115         (gl_recursive_lock_destroy): Define as wrapper around
71116         glthread_recursive_lock_destroy.
71117         (glthread_once): New macro/function.
71118         (gl_once): Define as wrapper around glthread_once.
71119         Update function declarations.
71120         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
71121         glthread_rwlock_init. Return error code.
71122         (glthread_rwlock_rdlock_multithreaded): Renamed from
71123         glthread_rwlock_rdlock. Return error code.
71124         (glthread_rwlock_wrlock_multithreaded): Renamed from
71125         glthread_rwlock_wrlock. Return error code.
71126         (glthread_rwlock_unlock_multithreaded): Renamed from
71127         glthread_rwlock_unlock. Return error code.
71128         (glthread_rwlock_destroy_multithreaded): Renamed from
71129         glthread_rwlock_destroy. Return error code.
71130         (glthread_recursive_lock_init_multithreaded): Renamed from
71131         glthread_recursive_lock_init. Return error code.
71132         (glthread_recursive_lock_lock_multithreaded): Renamed from
71133         glthread_recursive_lock_lock. Return error code.
71134         (glthread_recursive_lock_unlock_multithreaded): Renamed from
71135         glthread_recursive_lock_unlock. Return error code.
71136         (glthread_recursive_lock_destroy_multithreaded): Renamed from
71137         glthread_recursive_lock_destroy. Return error code.
71138         (glthread_once_call): Make static.
71139         (glthread_once_multithreaded): Renamed from glthread_once.
71140         * lib/tls.h: Include <errno.h>.
71141         (glthread_tls_key_init): New macro/function.
71142         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
71143         (glthread_tls_set): New macro/function.
71144         (gl_tls_set): Define as wrapper around glthread_tls_set.
71145         (glthread_tls_key_destroy): New macro/function.
71146         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
71147         Update function declarations.
71148         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
71149         glthread_tls_get.
71150         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71152 2008-08-04  Eric Blake  <ebb9@byu.net>
71154         gnumakefile: use space, not TAB, outside of targets
71155         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
71157 2008-08-02  Jim Meyering  <meyering@redhat.com>
71159         getdate.y: avoid locale-dependent date parsing failure
71160         In Turkish locales, getdate would fail to recognize keywords
71161         containing a lowercase "i".  The solution is not to rely on
71162         locale-sensitive case-conversion.
71163         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
71164         (lookup_word): Use c_toupper in place of toupper.
71165         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
71166         Reported by Vefa Bicakci <bicave@superonline.com> in
71167         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
71168         * modules/getdate (Depends-on): Add c-ctype.
71170 2008-08-02  Bruno Haible  <bruno@clisp.org>
71172         * gnulib-tool (func_import): When updating or creating a .gitignore
71173         file, prepend each added line with a slash, and ignore leading slashes
71174         from the existing lines.
71175         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71177 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71179         Portability fix for GNU make 3.79.1.
71180         * top/GNUmakefile: Avoid 'else COND', which older GNU make
71181         versions do not understand.
71183 2008-08-01  Bruno Haible  <bruno@clisp.org>
71185         Work around bug of HP-UX 10.20 cc with -0.0 literal.
71186         * tests/test-isnanf.h (zero): New variable.
71187         (main): Avoid literal -0.0f.
71188         * tests/test-isnand.h (zero): New variable.
71189         (main): Avoid literal -0.0.
71190         * tests/test-isnanl.h (zero): New variable.
71191         (main): Avoid literal -0.0L.
71192         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
71193         (test_float, test_double, test_long_double): Avoid literals -0.0f,
71194         -0.0, -0.0L.
71195         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
71196         (test_signbitd): Avoid literal -0.0.
71197         (test_signbitl): Avoid literal -0.0L.
71198         * tests/test-ceilf1.c (zero): New variable.
71199         (main): Avoid literal -0.0f.
71200         * tests/test-ceill.c (zero): New variable.
71201         (main): Avoid literal -0.0L.
71202         * tests/test-floorf1.c (zero): New variable.
71203         (main): Avoid literal -0.0f.
71204         * tests/test-floorl.c (zero): New variable.
71205         (main): Avoid literal -0.0L.
71206         * tests/test-roundf1.c (zero): New variable.
71207         (main): Avoid literal -0.0f.
71208         * tests/test-round1.c (zero): New variable.
71209         (main): Avoid literal -0.0.
71210         * tests/test-roundl.c (zero): New variable.
71211         (main): Avoid literal -0.0L.
71212         * tests/test-truncf1.c (zero): New variable.
71213         (main): Avoid literal -0.0f.
71214         * tests/test-trunc1.c (zero): New variable.
71215         (main): Avoid literal -0.0.
71216         * tests/test-truncl.c (zero): New variable.
71217         (main): Avoid literal -0.0L.
71218         * tests/test-frexp.c (zero): New variable.
71219         (main): Avoid literal -0.0.
71220         * tests/test-frexpl.c (zero): New variable.
71221         (main): Avoid literal -0.0L.
71222         * tests/test-ldexpl.c (zero): New variable.
71223         (main): Avoid literal -0.0L.
71224         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
71225         (zerod, zerol): New variables.
71226         (test_function): Avoid literals -0.0, -0.0L.
71227         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
71228         (zerod, zerol): New variables.
71229         (test_function): Avoid literals -0.0, -0.0L.
71230         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
71231         (zerod, zerol): New variables.
71232         (test_function): Avoid literals -0.0, -0.0L.
71233         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
71234         (zerod, zerol): New variables.
71235         (test_function): Avoid literals -0.0, -0.0L.
71236         * tests/test-strtod.c (zero): New variable.
71237         (main): Avoid literal -0.0.
71238         Reported by Jonathan C. Patschke <jp@centtech.com>.
71240 2008-07-31  Jim Meyering  <meyering@redhat.com>
71242         sha256.h: correct definition of SHA224_DIGEST_SIZE
71243         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
71244         Reported by Paulie Pena IV <paulie4@gmail.com>.
71245         Define as 224 / 8, rather than as a literal.
71246         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
71247         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
71248         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
71250 2008-07-31  Bruno Haible  <bruno@clisp.org>
71252         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
71253         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
71254         Reported by Jonathan Patschke <jp@centtech.com>.
71256 2008-07-31  Bruno Haible  <bruno@clisp.org>
71258         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
71259         Reported by Paolo Bonzini <bonzini@gnu.org>.
71261 2008-07-30  Eric Blake  <ebb9@byu.net>
71263         test-strtod: allow compilation without -lm
71264         * tests/test-strtod.c (main): Avoid link dependence on fabs.
71265         Reported by Dennis Clarke <blastwave@gmail.com>.
71267 2008-07-28  Jim Meyering  <meyering@redhat.com>
71269         bootstrap: work also when there are no .po files in po/
71270         * build-aux/bootstrap (update_po_files): Complete the change
71271         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
71273 2008-07-27  Jim Meyering  <meyering@redhat.com>
71275         * users.txt: Add zile.
71277 2008-07-26  Ben Pfaff  <blp@gnu.org>
71279         Add missing dependencies on new m4/exponent[fdl].m4 files.
71280         * modules/isnanf-nolibm: Add m4/exponentf.m4.
71281         * modules/isnand-nolibm: Add m4/exponentd.m4.
71282         * modules/isnanl-nolibm: Add m4/exponentl.m4.
71283         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
71284         m4/isnan[fdl].m4, because the macros actually used moved.
71285         Reported by Jim Meyering.
71287 2008-07-14  Ben Pfaff  <blp@gnu.org>
71289         Add isinf module.
71290         * lib/isinf.c: New file.
71291         * lib/math.in.h: Define isinf macro if we have decided to replace
71292         it.
71293         * m4/isinf.m4: New file.
71294         * m4/math_h.m4: Initialize and substitute variables for isinf
71295         module.
71296         * modules/isinf: New file.
71297         * modules/isinf-tests: New file.
71298         * modules/math: Add substitutions for new module.
71299         * tests/test-isinf.c: New file.
71300         * doc/posix-functions/isinf.texi: Mention new module.
71301         * MODULES.html.sh: Mention new module.
71303 2008-07-14  Ben Pfaff  <blp@gnu.org>
71305         Factor out some macros for use by additional modules.
71306         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
71307         exponentf.m4.
71308         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
71309         exponentd.m4.
71310         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
71311         file exponentl.m4.
71312         * m4/exponentf.m4: New file.
71313         * m4/exponentd.m4: New file.
71314         * m4/exponentl.m4: New file.
71315         * modules/isnanf: Use new file m4/exponentf.m4.
71316         * modules/isnand: Use new file m4/exponentd.m4.
71317         * modules/isnanl: Use new file m4/exponentl.m4.
71319 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
71321         mktime.c: normalize tp->tm_isdst value to -1/0/1.
71322         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
71323         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
71324         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
71326         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
71327         readlink on platforms without PATH_MAX.
71329 2008-07-21  Eric Blake  <ebb9@byu.net>
71331         Warn, not fail, on stale version.
71332         * top/GNUmakefile (_curr-ver): Tone down previous patch.
71334         Don't allow installation with stale devel version number.
71335         * top/GNUmakefile (_is-install-target): New macro.
71336         (_curr-ver): Forbid installation with stale version number.
71338 2008-07-20  Bruno Haible  <bruno@clisp.org>
71340         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
71341         TESTS_ENVIRONMENT.
71342         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
71344 2008-07-20  Bruno Haible  <bruno@clisp.org>
71346         * lib/c-stack.h (c_stack_action): Add documentation.
71347         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
71349 2008-07-20  Bruno Haible  <bruno@clisp.org>
71351         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
71352         * modules/readlink (License): Likewise.
71354 2008-07-17  Eric Blake  <ebb9@byu.net>
71356         * modules/c-stack (Link): Fix typo.
71358         Make c-stack use libsigsegv, when available.
71359         * modules/c-stack (Depends-on): Add libsigsegv.
71360         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
71361         needed.
71362         * lib/c-stack.c (SIGSTKSZ): Define fallback.
71363         (segv_handler, overflow_handler, c_stack_action)
71364         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
71365         implementation when libsigsegv is available, but only when using
71366         the library is necessary.
71367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
71368         comment, explaining why XSI check fails on Linux.
71369         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
71370         * tests/test-c-stack2.sh: Tweak skip message.
71371         * NEWS: Document new link-time requirements.
71373 2008-07-16  Eric Blake  <ebb9@byu.net>
71375         c-stack: Expose false positives when not using libsigsegv.
71376         * modules/c-stack-tests (Files): Expand test.
71377         * tests/test-c-stack.c (main): Add means to conditionally trigger
71378         non-overflow SIGSEGV.
71379         * tests/test-c-stack2.sh: New file.
71381 2008-07-14  Bruno Haible  <bruno@clisp.org>
71383         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
71384         Reported by Eric Blake.
71386 2008-07-14  Sam Steingold  <sds@gnu.org>
71387             Bruno Haible  <bruno@clisp.org>
71389         New module libsigsegv.
71390         * modules/libsigsegv: New file.
71391         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
71392         modifications.
71393         * MODULES.html.sh (Signal handling): New section.
71395 2008-07-14  Bruno Haible  <bruno@clisp.org>
71397         * modules/unictype/ctype-* (Description): Add the word "function".
71398         Improves the resulting doc in MODULES.html.
71400 2008-07-12  Ben Pfaff  <blp@gnu.org>
71402         Add longlong module.
71403         * modules/longlong: New file.
71405 2008-07-12  Bruno Haible  <bruno@clisp.org>
71407         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
71408         to empty.
71410 2008-07-10  Ben Pfaff  <blp@gnu.org>
71412         Add isnan module.
71413         * doc/posix-functions/isnan.texi: Mention new module.
71414         * lib/math.in.h: Define isnan macro if we have decided to replace
71415         it.
71416         * m4/isnan.m4: New file.
71417         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
71418         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
71419         also.
71420         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
71421         redundancy.
71422         * m4/math_h.m4: Initialize and substitute variables for isnan
71423         module.
71424         * modules/isnan: New file.
71425         * modules/isnan-tests: New file.
71426         * modules/math: Add substitutions for new module.
71427         * tests/test-isnan.c: New file.
71428         * MODULES.html.sh: Mention new module.
71430 2008-07-10  Ben Pfaff  <blp@gnu.org>
71432         Add isnanf module.
71433         * lib/isnanf.m4: New file.
71434         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
71435         (gl_HAVE_ISNANF_IN_LIBM): New macro.
71436         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
71437         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
71438         * modules/isnanf: New file.
71439         * modules/isnanf-tests: New file.
71440         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
71441         files.
71442         * tests/test-isnanf-nolibm.c: factored most of its contents into
71443         new file tests/test-isnanf.h.
71444         * tests/test-isnanf.h: New file.
71445         * tests/test-isnanf.c: New file.
71446         * MODULES.html.sh: Mention new module.
71447         * doc/glibc-functions/isnanf.texi: Mention new module.
71449 2008-07-10  Ben Pfaff  <blp@gnu.org>
71451         Add isnand module.
71452         * lib/isnand.h: New file.
71453         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
71454         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
71455         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
71456         functionality also.
71457         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
71458         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
71459         (gl_HAVE_ISNAND_IN_LIBM): New macro.
71460         * modules/isnand: New file.
71461         * modules/isnand-tests: New file.
71462         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
71463         files.
71464         * tests/test-isnand-nolibm.c: factored most of its contents into
71465         new file tests/test-isnand.h.
71466         * tests/test-isnand.h: New file.
71467         * tests/test-isnand.c: New file.
71468         * MODULES.html.sh: Mention new module.
71470 2008-07-10  Ben Pfaff  <blp@gnu.org>
71472         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
71473         * lib/isnand.h: Rename lib/isnand-nolibm.h.
71474         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
71475         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
71476         * modules/isnanf-nolibm: Update references to renamed files.
71477         * modules/isnand-nolibm: Likewise.
71478         * modules/isnanf-nolibm-tests: Likewise.
71479         * modules/isnand-nolibm-tests: Likewise.
71480         * lib/frexp.c: Likewise.
71481         * lib/isfinite.c: Likewise.
71482         * lib/signbitd.c: Likewise.
71483         * lib/signbitf.c: Likewise.
71484         * lib/vasnprintf.c: Likewise.
71485         * tests/test-ceilf1.c: Likewise.
71486         * tests/test-ceilf2.c: Likewise.
71487         * tests/test-floorf1.c: Likewise.
71488         * tests/test-floorf2.c: Likewise.
71489         * tests/test-frexp.c: Likewise.
71490         * tests/test-round1.c: Likewise.
71491         * tests/test-round2.c: Likewise.
71492         * tests/test-roundf1.c: Likewise.
71493         * tests/test-strtod.c: Likewise.
71494         * tests/test-trunc1.c: Likewise.
71495         * tests/test-trunc2.c: Likewise.
71496         * tests/test-truncf1.c: Likewise.
71497         * tests/test-truncf2.c: Likewise.
71498         * NEWS: Mention the renamed header files.
71500 2008-07-11  Jim Meyering  <meyering@redhat.com>
71502         vc-list-files: make the last-resort awk code more portable
71503         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
71504         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
71505         does not support it.
71507 2008-07-10  Eric Blake  <ebb9@byu.net>
71509         Work with tar's bootstrap.
71510         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
71511         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
71512         an m4 comment.
71514 2008-07-09  Jim Meyering  <meyering@redhat.com>
71516         posix-shell.m4: fix typo that made this test malfunction
71517         * m4/posix-shell.m4: Remove capitalization in variable name.
71519 2008-07-08  Bruno Haible  <bruno@clisp.org>
71521         * m4/onceonly.m4: Update comments.
71522         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71524 2008-07-04  Jim Meyering  <meyering@redhat.com>
71526         * users.txt: Add vc-dwim.
71527         (bison, coreutils): Use the gitweb URL.
71529 2008-07-03  Jim Meyering  <meyering@redhat.com>
71531         * users.txt: Add libffcall.  From Sam Steingold.
71533 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
71535         getdate.y: do not ignore TZ with relative day, month or year offset
71536         * lib/getdate.y (get_date): Move the tz-handling block to follow the
71537         relative-date-handling, since otherwise, the latter would clobber the
71538         sole output (an updated Start value) of the tz-handling block.
71539         * tests/test-getdate.c: Tests for the fix
71541 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71543         Recognize 'foo_LIBRARIES += libgnu.a'.
71544         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
71545         makefile snippet has already specified an installation location,
71546         also using '+='.
71548 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
71550         getdate.y: factor out common actions
71551         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
71552         Use them in place of open-coded actions.
71554 2008-07-01  Simon Josefsson  <simon@josefsson.org>
71556         Add self-test for getdate module.
71557         * modules/getdate-tests: New file.
71558         * tests/test-getdate.c: New file.
71560 2008-06-29  Bruno Haible  <bruno@clisp.org>
71562         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
71563         .gitignore.
71564         Reported by Sylvain Beucler <beuc@beuc.net>.
71566 2008-06-29  Bruno Haible  <bruno@clisp.org>
71568         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
71569         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
71571 2008-06-29  Bruno Haible  <bruno@clisp.org>
71573         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
71574         EXTRA_DIST.
71575         Reported by Sylvain Beucler <beuc@beuc.net>.
71577 2008-06-26  Jim Meyering  <meyering@redhat.com>
71579         make several modules depend on the "open" module
71580         This provides slightly increased consistency when opening-for-write
71581         the name of a non-directory spelled with a trailing slash.
71582         * modules/chdir-safer: Likewise.
71583         * modules/chown: Likewise.
71584         * modules/clean-temp: Likewise.
71585         * modules/copy-file: Likewise.
71586         * modules/fchdir: Likewise.
71587         * modules/fcntl-safer: Likewise.
71588         * modules/pipe: Likewise.
71589         * modules/utime: Likewise.
71590         Prompted by Eric Blake and Bruno Haible.
71592 2008-06-24  Andreas Schwab  <schwab@suse.de>
71594         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
71595         literals can be used as initializers for global variables.
71597 2008-06-23  Eric Blake  <ebb9@byu.net>
71599         Make gnulib-cache.m4 easier to diff.
71600         * gnulib-tool (func_import): Allow newlines when reading cached
71601         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
71603 2008-06-23  Bruno Haible  <bruno@clisp.org>
71605         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
71606         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
71607         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
71608         m4/signalblocking.m4.
71609         (gl_PREREQ_SIGACTION): Don't invoke it.
71610         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
71611         gl_PREREQ_SIG_HANDLER_H.
71612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71613         Don't check for sigaction here.
71615 2008-06-23  Bruno Haible  <bruno@clisp.org>
71617         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
71618         (install_handlers): Don't set the SA_RESETHAND flag.
71620 2008-06-23  Bruno Haible  <bruno@clisp.org>
71622         * m4/sigaction.m4: Comment fixes.
71623         * lib/signal.in.h: Likewise.
71625 2008-06-23  Eric Blake  <ebb9@byu.net>
71627         Fix typo.
71628         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
71630         Avoid SA_ namespace.
71631         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
71632         Reported by Ralf Wildenhues.
71634         Avoid test failure due to SA_RESTORER.
71635         * tests/test-sigaction.c (SA_MASK): New macro.
71636         (main): Avoid failing due to extension flags being set.
71637         Reported by Jim Meyering.
71639         Revert use of sig-handler.h in sigprocmask.c.
71640         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
71641         it requires the existence of struct sigaction.
71642         * lib/sigprocmask.c (handler_t): Restore typedef.
71643         (rpl_signal, old_handlers): Use local type.
71645 2008-06-22  Bruno Haible  <bruno@clisp.org>
71647         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
71648         conditionally.
71649         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71651 2008-06-22  Bruno Haible  <bruno@clisp.org>
71653         * doc/posix-functions/siginterrupt.texi: Move note.
71655         * lib/signal.in.h (SA_RESTART): New macro.
71656         * lib/sigaction.c: Update comment.
71658         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
71660         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
71661         (gl_PREREQ_SIGPROCMASK): Invoke it.
71662         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
71664         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
71666         * lib/sigprocmask.c: Update a comment.
71668 2008-06-21  Eric Blake  <ebb9@byu.net>
71670         Use sigaction module rather than signal().
71671         * modules/c-stack (Depends-on): Add sigaction.
71672         * modules/fatal-signal (Depends-on): Likewise.
71673         * modules/nanosleep (Depends-on): Likewise.
71674         * modules/sigprocmask (Files): Add sig-handler.h.
71675         * modules/sigaction (Files): Likewise.
71676         * lib/sig-handler.h (get_handler): New file, suggested by Paul
71677         Eggert.
71678         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
71679         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
71680         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
71681         (init_fatal_signals): Likewise.
71682         * lib/nanosleep.c (rpl_nanosleep): Likewise.
71683         (siginterrupt): Delete fallback.
71684         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
71685         instead.
71686         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
71687         siginterrupt.
71689         New module sigaction, for mingw.
71690         * modules/sigaction: New module...
71691         * modules/sigaction-tests: ...and its test.
71692         * m4/sigaction.m4: New file.
71693         * lib/sigaction.c: Likewise.
71694         * tests/test-sigaction.c: Likewise.
71695         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
71696         * modules/signal (Makefile.am): Likewise.
71697         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
71698         needed.
71699         * doc/posix-headers/signal.texi (signal.h): Mention provided
71700         types.
71701         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
71702         that sigaction is preferable.
71703         * doc/posix-functions/sigaction.texi (sigaction): Mention new
71704         module.
71705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71706         sigaction.
71708         Improve robustness of sigprocmask by overriding signal.
71709         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
71710         is in use.
71711         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
71712         (SIGKILL, SIGSTOP): Provide fallbacks.
71713         (rpl_signal): Implement.
71714         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
71715         signal can be called inside handlers.
71717         Fix nanosleep module on mingw.
71718         * modules/nanosleep (Depends-on): Add sys_select.
71719         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
71721         Fix licensing of sigprocmask.
71722         * modules/raise (License): Relicense as LGPL.
71724 2008-06-21  Bruno Haible  <bruno@clisp.org>
71726         * lib/propername.c (proper_name_utf8): Don't use the transliterated
71727         result if it contains question marks.
71728         Reported by Michael Geng <linux@michaelgeng.de>.
71730 2008-06-19  Bruno Haible  <bruno@clisp.org>
71732         Fix CVS-ism.
71733         * doc/gnulib.texi: Include updated-stamp.texi.
71734         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
71735         (updated-stamp.texi): New rule.
71736         (gnulib.info): Depend on it.
71737         * doc/.gitignore: Add updated-stamp.texi.
71738         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
71740 2008-06-19  Bruno Haible  <bruno@clisp.org>
71742         * doc/Makefile (gnulib.info): Update and simplify dependencies.
71743         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71745 2008-06-19  Eric Blake  <ebb9@byu.net>
71747         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
71748         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
71749         Reported by Stepan Kasal.
71751 2008-06-18  Bruno Haible  <bruno@clisp.org>
71753         * lib/fatal-signal.c (init_fatal_signals): Add comment.
71754         Reported by Eric Blake.
71756 2008-06-18  Eric Blake  <ebb9@byu.net>
71758         Work around cygwin 1.5.25 strsignal bug.
71759         * tests/test-strsignal.c: Allow for const char *.
71760         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
71762 2008-06-18  Simon Josefsson  <simon@josefsson.org>
71764         * users.txt: Update URL to article and add author/date
71765         information.
71767 2008-06-17  Bruno Haible  <bruno@clisp.org>
71769         New macro gl_DISABLE_THREADS.
71770         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
71771         if the user did not pass --enable-threads or --disable-threads option.
71772         (gl_DISABLE_THREADS): New macro.
71773         Reported by Eric Blake <ebb9@byu.net>.
71775 2008-06-17  Bruno Haible  <bruno@clisp.org>
71777         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
71778         when the macro ignores it.
71779         Based on a patch by Eric Blake <ebb9@byu.net>.
71781 2008-06-17  Bruno Haible  <bruno@clisp.org>
71783         * modules/tls (License): Change to LGPLv2+.
71784         Reported by Eric Blake.
71786 2008-06-17  Eric Blake  <ebb9@byu.net>
71788         Simplify c-stack prerequisites.
71789         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
71790         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
71791         no longer requires <ucontext.h> to exist.  Optimize setrlimit
71792         check.
71793         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
71794         <sys/resource.h>.
71796         Move c-stack test into testsuite.
71797         * modules/c-stack-tests: New file.
71798         * lib/c-stack.c [DEBUG]: Move test program...
71799         * tests/test-c-stack.c: ...into this new file.  Skip rather than
71800         fail test if sigaltstack is lacking.
71801         * tests/test-c-stack.sh: New driver file.
71803 2008-06-16  Eric Blake  <ebb9@byu.net>
71805         Use raise module consistently.
71806         * modules/fatal-signal (Depends-on): Add raise.
71807         * modules/sigprocmask (Depends-on): Likewise.
71808         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
71809         * lib/sigprocmask.c (sigprocmask): Likewise.
71810         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71811         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
71813         Fix compliance bug in sigpending.
71814         * lib/sigprocmask.c (sigpending): Return pending array via
71815         parameter, not return value.
71817 2008-06-14  Eric Blake  <ebb9@byu.net>
71819         Improve obstack-printf test code.
71820         * tests/test-obstack-printf.c (test_function): Fix comment, and
71821         simplify usage of obstack_* in macros.  Add a test for coverage.
71822         Reported by Bruno Haible.
71824 2008-06-14  Bruno Haible  <bruno@clisp.org>
71826         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
71827         array size as a constant, not as a const variable.
71828         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
71829         AC_USE_SYSTEM_EXTENSIONS.
71830         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
71831         Test whether the obstack_printf function actually exists.
71832         * modules/obstack-printf (Depends-on): Add extensions.
71833         (Include): Remove obstack.h.
71834         * modules/obstack-printf-posix (Depends-on): Add extensions.
71835         (Include): Remove obstack.h.
71837 2008-06-13  Eric Blake  <ebb9@byu.net>
71839         Add obstack-printf and obstack-printf-posix modules.
71840         * modules/obstack-printf: New file.
71841         * modules/obstack-printf-posix: Likewise.
71842         * MODULES.html.sh (Misc): Mention them.
71843         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71844         Likewise.
71845         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71846         Likewise.
71847         * modules/stdio (Makefile.am): Accomodate new modules.
71848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71849         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
71850         Declare.
71851         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
71852         functions.
71853         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
71854         (gl_REPLACE_OBSTACK_PRINTF): New macros
71855         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
71856         * tests/test-obstack-printf.c: New file.
71857         * modules/obstack-printf-tests: Likewise.
71858         * modules/obstack-printf-posix-tests: Likewise.
71860 2008-06-11  Bruno Haible  <bruno@clisp.org>
71862         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
71863         * lib/open.c: Include errno.h.
71864         (open): Fail when attempting to write to a file that has a trailing
71865         slash.
71866         * tests/test-open.c (main): Test against trailing slash bug.
71867         * doc/posix-functions/open.texi: Mention the trailing slash bug.
71869 2008-06-10  Bruno Haible  <bruno@clisp.org>
71871         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
71872         for $? to work inside the trap command, with various /bin/sh-s.
71873         * tests/test-vc-list-files-cvs.sh: Likewise.
71875 2008-06-10  Bruno Haible  <bruno@clisp.org>
71877         * lib/acl-internal.h: Don't include gettext.h here.
71878         * lib/set-mode-acl.c: Include gettext.h here.
71879         * lib/copy-acl.c: Likewise.
71881 2008-06-10  Bruno Haible  <bruno@clisp.org>
71883         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
71884         * lib/wait-process.c (wait_subprocess): Likewise.
71885         * lib/execute.h (execute): Add termsigp argument.
71886         * lib/execute.c (execute): Likewise.
71887         * lib/csharpcomp.c (compile_csharp_using_pnet,
71888         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
71889         * lib/csharpexec.c (execute_csharp_using_pnet,
71890         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
71891         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
71892         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
71893         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
71894         is_jikes_present): Update.
71895         * lib/javaexec.c (execute_java_class): Update.
71896         * lib/javaversion.c (execute_and_read_line): Update.
71897         * NEWS: Document the changes.
71898         Reported by Eric Blake.
71900 2008-06-10  Eric Blake  <ebb9@byu.net>
71902         Add missing include.
71903         * tests/test-strstr.c (includes): Add <signal.h>.
71904         * tests/test-strcasestr.c (includes): Likewise.
71905         * tests/test-memmem.c (includes): Likewise.
71907 2008-06-10  Bruno Haible  <bruno@clisp.org>
71909         * lib/wait-process.c (wait_subprocess): Add an assertion.
71911 2008-06-10  Bruno Haible  <bruno@clisp.org>
71913         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
71915 2008-06-10  Bruno Haible  <bruno@clisp.org>
71917         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
71918         using alarm().
71919         * tests/test-strcasestr.c (main): Likewise.
71920         * tests/test-strstr.c (main): Likewise.
71922 2008-06-09  Bruno Haible  <bruno@clisp.org>
71924         Work around the Solaris 10 ACE ACLs ABI change.
71925         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
71926         declare if ACL_NO_TRIVIAL is present.
71927         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
71928         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
71929         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
71930         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
71931         define if ACL_NO_TRIVIAL is present.
71932         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
71933         and use the current ABI.
71934         (file_has_acl): Use same #if condition as elsewhere.
71935         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
71936         in use, and use the current ABI.
71937         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
71938         Reported by Jim Meyering.
71940 2008-06-09  Eric Blake  <ebb9@byu.net>
71942         Work around environments that (stupidly) ignore SIGALRM.
71943         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
71944         before using alarm().
71945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71946         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
71947         Reported by Ian Beckwith <ianb@erislabs.net>.
71949         Produce autobuild blurb earlier in log.
71950         * modules/autobuild (configure.ac-early): Move AB_INIT here.
71952 2008-06-09  Jim Meyering  <meyering@redhat.com>
71953         and Ondřej Vašík  <ovasik@redhat.com>
71955         utimens.c: correct kernel bug work-around
71956         Ondřej Vašík found that the invalid return value of 280 indicates
71957         failure, not success, and the kernel bug we're trying to work
71958         around affects not just the utimensat call, but also the fallback
71959         futimens call.
71960         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
71961         not success.
71962         [HAVE_FUTIMENS]: Use the same work-around, here.
71964 2008-06-09  Jim Meyering  <meyering@redhat.com>
71966         add more guards around definition of ACE_-related code
71967         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
71968         ALLOW and ACE_OWNER are also defined.
71970 2008-06-08  Bruno Haible  <bruno@clisp.org>
71972         * lib/acl-internal.h: Add me as co-author.
71973         * lib/file-has-acl.c: Likewise.
71974         * lib/set-mode-acl.c: Likewise.
71975         * lib/copy-acl.c: Likewise.
71977 2008-06-08  Bruno Haible  <bruno@clisp.org>
71979         Add support for AIX ACLs.
71980         * lib/acl-internal.h (acl_nontrivial): New declaration.
71981         * lib/file-has-acl.c (acl_nontrivial): New function.
71982         (file_has_acl): Add implementation using AIX 4 ACL API.
71983         * lib/set-mode-acl.c (qset_acl): Likewise.
71984         * lib/copy-acl.c (qcopy_acl): Likewise.
71986 2008-06-08  Bruno Haible  <bruno@clisp.org>
71988         Add support for HP-UX ACLs.
71989         * lib/acl-internal.h (acl_nontrivial): New declaration.
71990         * lib/file-has-acl.c (acl_nontrivial): New function.
71991         (file_has_acl): Add implementation using HP-UX 11 ACL API.
71992         * lib/set-mode-acl.c (qset_acl): Likewise.
71993         * lib/copy-acl.c (qcopy_acl): Likewise.
71995 2008-06-08  Bruno Haible  <bruno@clisp.org>
71997         Add support for Cygwin ACLs.
71998         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
71999         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
72000         the chmod_or_fchmod call.
72001         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
72003 2008-06-08  Bruno Haible  <bruno@clisp.org>
72005         Fix bug with setuid modes in Solaris 10+ code.
72006         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
72007         succeeded, when the mode contains some special bits.
72009 2008-06-08  Bruno Haible  <bruno@clisp.org>
72011         Add support for Solaris 7..10 ACLs.
72012         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
72013         declarations.
72014         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
72015         functions.
72016         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
72017         * lib/set-mode-acl.c (qset_acl): Likewise.
72018         * lib/copy-acl.c (qcopy_acl): Likewise.
72020 2008-06-08  Bruno Haible  <bruno@clisp.org>
72022         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
72023         declaration.
72024         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
72025         (acl_access_nontrivial): Remove MacOS X case.
72026         (file_has_acl): Use acl_extended_nontrivial.
72027         * lib/copy-acl.c (qcopy_acl): Likewise.
72029 2008-06-08  Bruno Haible  <bruno@clisp.org>
72031         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
72033 2008-06-08  Jim Meyering  <meyering@redhat.com>
72035         * modules/acl (Maintainer): Add Bruno Haible.
72037 2008-06-07  Bruno Haible  <bruno@clisp.org>
72039         Improve support for Tru64 ACLs.
72040         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
72041         ACL on OSF/1.
72043 2008-06-07  Bruno Haible  <bruno@clisp.org>
72045         Add support for MacOS X ACLs.
72046         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
72047         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
72048         * lib/set-mode-acl.c (qset_acl): Likewise.
72049         * lib/copy-acl.c (qcopy_acl): Likewise.
72051 2008-06-07  Bruno Haible  <bruno@clisp.org>
72053         Fix memory leak introduced on 2008-05-22.
72054         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
72055         use.
72057 2008-06-07  Bruno Haible  <bruno@clisp.org>
72059         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
72060         to construct an empty ACL.
72062 2008-06-07  Bruno Haible  <bruno@clisp.org>
72064         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
72065         precisely.
72066         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
72068 2008-06-07  Bruno Haible  <bruno@clisp.org>
72070         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
72071         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
72073 2008-06-07  Bruno Haible  <bruno@clisp.org>
72075         * doc/posix-functions/_setjmp.texi: Explain the use of this function
72076         regardless of POSIX.
72077         * doc/posix-functions/_longjmp.texi: Likewise.
72078         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
72079         SystemV platform in this case.
72081 2008-06-06  Eric Blake  <ebb9@byu.net>
72083         Document abort() bugs.
72084         * doc/posix-functions/abort.texi (abort): Mention anomalies.
72086         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
72087         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
72088         sigsetjmp.
72089         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
72090         siglongjmp, but only as a macro.
72091         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
72092         is obsolete.
72093         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
72095         Tweak documentation to cover cygwin argz bugs.
72096         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
72097         argz bug fix; no code change needed since no cygwin releases
72098         occurred between the last fix and the bug being tested.
72099         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
72100         module and recently fixed cygwin bugs.
72101         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
72102         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
72103         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
72104         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
72105         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
72106         Likewise.
72107         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
72108         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
72109         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
72110         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
72111         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
72112         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
72113         Likewise.
72115         Avoid gcc warning on cygwin.
72116         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
72117         !ACL_NO_TRIVIAL]: Avoid unused variable.
72119 2008-06-05  Eric Blake  <ebb9@byu.net>
72121         Be tolerant of UNKNOWN version in gnulib-tool test dir.
72122         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
72123         git-version-gen fails to come up with a version.
72124         Reported by Simon Josefsson.
72126 2008-06-05  Jim Meyering  <meyering@redhat.com>
72127             Paul Eggert  <eggert@cs.ucla.edu>
72129         utimens.c: work around a probable Linux kernel bug
72130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
72131         appears to be a kernel bug that causes utimensat to return 280
72132         instead of 0, indicating success.
72134 2008-06-04  Bruno Haible  <bruno@clisp.org>
72136         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
72137         2008-06-01 commit.
72139 2008-06-04  Bruno Haible  <bruno@clisp.org>
72141         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
72142         * lib/file-has-acl.c (acl_access_nontrivial): New function.
72143         (file_has_acl): Use it. Save errno afterwards.
72144         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
72146 2008-06-03  Bruno Haible  <bruno@clisp.org>
72148         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
72149         draft code. Simplify #ifs.
72150         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
72151         Put Solaris code after POSIX-draft code. Fix comments regarding
72152         Solaris 10, HP-UX. Mention Cygwin.
72153         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
72155 2008-06-03  Eric Blake  <ebb9@byu.net>
72157         Provide fallback for older kernels.
72158         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
72159         Provide runtime fallback if kernel lacks support.
72160         Reported by Mike Frysinger.
72162 2008-06-02  Bruno Haible  <bruno@clisp.org>
72164         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
72165         it exists.
72167 2008-06-02  Bruno Haible  <bruno@clisp.org>
72169         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
72170         * lib/copy-acl.c (qcopy_acl): Update comment.
72172 2008-06-02  Bruno Haible  <bruno@clisp.org>
72174         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
72175         like ACL APIs.
72177 2008-06-02  Bruno Haible  <bruno@clisp.org>
72179         * tests/test-file-has-acl.sh: Use different code for Cygwin.
72180         * tests/test-set-mode-acl.sh: Likewise.
72181         * tests/test-copy-acl.sh: Likewise.
72182         * tests/test-copy-file.sh: Likewise.
72184 2008-06-02  Bruno Haible  <bruno@clisp.org>
72186         * tests/test-file-has-acl.sh: Remove unused code.
72188 2008-06-01  Bruno Haible  <bruno@clisp.org>
72190         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
72191         (copy_acl): Just a wrapper around qcopy_acl that emits the error
72192         messages.
72193         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
72195 2008-06-01  Bruno Haible  <bruno@clisp.org>
72197         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
72198         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
72199         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
72200         APIs.
72201         * modules/acl-tests (configure.ac): Remove tests now contained in
72202         m4/acl.m4.
72204 2008-06-02  Jim Meyering  <meyering@redhat.com>
72206         announce-gen: use a better key-server host name
72207         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
72208         it may be more consistently reliable.  Suggested by Werner Koch
72209         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
72211 2008-06-01  Bruno Haible  <bruno@clisp.org>
72213         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
72214         Reported by Voroskoi Andras <voroskoi@gmail.com>.
72216 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
72218         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
72220 2008-06-01  Bruno Haible  <bruno@clisp.org>
72222         New ACL tests.
72223         * tests/test-file-has-acl.sh: New file.
72224         * tests/test-file-has-acl.c: New file.
72225         * tests/test-set-mode-acl.sh: New file.
72226         * tests/test-set-mode-acl.c: New file.
72227         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
72228         * tests/test-copy-acl.c: New file.
72229         * modules/acl-tests: New file, based on modules/copy-file-tests.
72230         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
72231         (Depends-on): Add acl-tests.
72232         (configure.ac): Remove checks.
72233         (Makefile.am): Don't create test-sameacls program here any more.
72235 2008-06-01  Bruno Haible  <bruno@clisp.org>
72237         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
72238         * tests/test-sameacls.c: Include progname.h.
72239         (main): Invoke set_program_name. Portability fixes for MacOS X,
72240         Solaris, HP-UX.
72242 2008-06-01  Bruno Haible  <bruno@clisp.org>
72244         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
72245         function.
72246         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
72248 2008-06-01  Bruno Haible  <bruno@clisp.org>
72250         * modules/rpmatch (Depends-on): Add strdup.
72252 2008-06-01  Bruno Haible  <bruno@clisp.org>
72254         * lib/pipe.c: Include unistd-safer.h.
72255         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
72256         * modules/pipe (Depends-on): Add unistd-safer.
72258 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72260         * modules/autobuild (configure.ac): Call AB_INIT.
72262 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72264         * tests/test-getaddrinfo.c: Don't print debug messages by default.
72265         Suggested by Bruno Haible <bruno@clisp.org>.
72267 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72269         * tests/test-base64.c: Cast size_t to unsigned long when invoking
72270         printf.  Use %lu instead of %d.  Reported by Bruno Haible
72271         <bruno@clisp.org>.
72273 2008-05-29  Eric Blake  <ebb9@byu.net>
72275         Prefer new POSIX 200x interfaces over futimesat.
72276         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
72277         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
72278         when available.
72279         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
72281 2008-05-28  Bruno Haible  <bruno@clisp.org>
72283         * modules/stpcpy (License): Change to LGPLv2+.
72284         Requested by David Lutterkort <dlutter@redhat.com>.
72286 2008-05-27  Bruno Haible  <bruno@clisp.org>
72288         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
72289         current mingw.
72290         Reported by Jose E. Marchesi <jemarch@gnu.org>.
72292 2008-05-27  Bruno Haible  <bruno@clisp.org>
72294         * modules/iconv_open (Link): New section, from module 'iconv'.
72295         * modules/striconv (Link): Likewise.
72296         * modules/striconveh (Link): Likewise.
72297         * modules/xstriconv (Link): Likewise.
72298         * modules/unicodeio (Link): Likewise.
72299         * modules/propername (Link): Likewise.
72300         Reported by Jim Meyering.
72302 2008-05-26  Jim Meyering  <meyering@redhat.com>
72304         sha256: do not artificially restrict buffer length to be < 2^32
72305         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
72306         uint32_t to size_t.
72307         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
72308         to match.
72310         avoid unaligned access errors, e.g., on sparc
72311         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
72312         direct access through a possibly-unaligned uint64* pointer.
72313         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
72314         direct access through a possibly-unaligned uint32* pointer.
72315         Prompted by this patch from Tom "spot" Callaway:
72316         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
72318         sha512.c: fix typo in comment
72319         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
72321 2008-05-25  Bruno Haible  <bruno@clisp.org>
72323         * lib/set-mode-acl.c: Renamed from lib/acl.c.
72324         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
72325         (Makefile.am): Update lib_SOURCES.
72327 2008-05-25  Bruno Haible  <bruno@clisp.org>
72329         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
72331 2008-05-25  Jim Meyering  <meyering@redhat.com>
72333         useless-if-before-free: freed expr may have white-space differences
72334         * build-aux/useless-if-before-free: Recognize cases in which the
72335         freed expression differs from the tested one in embedded white
72336         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
72337         $1 was used, so we can't make any regexp shy.  Improved tests now
72338         detect this.
72340         useless-if-before-free: accept white space in the expression.
72341         * build-aux/useless-if-before-free: For now, any white space
72342         in the expression must be identical in the free argument.
72344         useless-if-before-free: efficiency tweak
72345         * build-aux/useless-if-before-free: Make the expression-matching
72346         regexp "shy".
72347         Make the *outer* regexp shy, not the expr-matching one.
72349         update code-in-comment to accept cast of free arg
72350         * build-aux/useless-if-before-free: Update regexp.
72352 2008-05-25  Bruno Haible  <bruno@clisp.org>
72354         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
72355         * modules/copy-file-tests (Files, Makefile.am): Update.
72356         * tests/test-copy-file.c (func_test_copy): Update.
72358 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
72360         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
72362 2008-05-23  Bruno Haible  <bruno@clisp.org>
72364         Improve support for ACLs on OSF/1.
72365         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
72366         Remove fallback for unknown flavors of ACLs.
72368 2008-05-22  Bruno Haible  <bruno@clisp.org>
72370         Add support for ACLs on OSF/1.
72371         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
72372         replacements.
72373         (acl_free_text): New macro fallback.
72374         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
72375         acl_free.
72376         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
72377         acl_free_text function. Require AC_C_INLINE.
72379 2008-05-22  Bruno Haible  <bruno@clisp.org>
72381         Make copy_acl work on MacOS X 10.5.
72382         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
72383         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
72384         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
72385         If MODE_INSIDE_ACL, don't assume that every system has the same text
72386         representation for ACLs as FreeBSD.
72387         * lib/copy-acl.c (copy_acl): Add support for platforms with
72388         !MODE_INSIDE_ACL.
72389         * lib/file-has-acl.c (file_has_acl): Likewise.
72390         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
72391         FreeBSD, MacOS X, or IRIX, respectively.
72393 2008-05-22  Bruno Haible  <bruno@clisp.org>
72395         * lib/acl.h: Don't include <sys/acl.h>.
72396         (GETACLCNT): Move fallback to lib/acl-internal.h.
72397         * lib/acl-internal.h: Include <sys/acl.h> here.
72398         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
72400 2008-05-22  Bruno Haible  <bruno@clisp.org>
72402         Split off copy_acl function to separate file.
72403         * lib/copy-acl.c: New file, extracted from lib/acl.c.
72404         * lib/acl.c (copy_acl): Moved function to separate file.
72405         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
72406         * modules/acl (Files): Add lib/copy-acl.c.
72407         (Makefiles.am): Augment lib_SOURCES.
72409 2008-05-22  Bruno Haible  <bruno@clisp.org>
72411         * modules/copy-file-tests: New file.
72412         * tests/test-copy-file.sh: New file.
72413         * tests/test-copy-file.c: New file.
72414         * tests/test-copy-file-sameacls.c: New file.
72416 2008-05-22  Eric Blake  <ebb9@byu.net>
72418         Avoid gcc warning.
72419         * tests/test-memcmp.c (main): Pass NULL indirectly.
72421 2008-05-21  Bruno Haible  <bruno@clisp.org>
72423         Add reference doc about ACLs.
72424         * doc/acl-resources.txt: New file.
72425         * doc/acl-cygwin.txt: New file.
72427 2008-05-21  Bruno Haible  <bruno@clisp.org>
72429         Avoid one more warning from gcc.
72430         * lib/vasnprintf.c (IF_LINT): Update comments.
72431         (VASNPRINTF): Use it also for the 'prefix' array initializer.
72433 2008-05-21  Jim Meyering  <meyering@redhat.com>
72435         avoid a warning from gcc
72436         * lib/vasnprintf.c (IF_LINT): Define.
72437         (scale10_round_decimal_long_double):
72438         Use it to avoid a "may be used uninitialized" warning.
72439         (scale10_round_decimal_double): Likewise.
72441 2008-05-21  Simon Josefsson  <simon@josefsson.org>
72443         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
72444         declared.
72446 2008-05-20  Bruno Haible  <bruno@clisp.org>
72448         * tests/test-memcmp.c (main): Test also the sign of the result. Test
72449         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
72451 2008-05-20  Simon Josefsson  <simon@josefsson.org>
72453         * modules/memcmp-tests: New file.
72454         * tests/test-memcmp.c: New file.
72456 2008-05-19  Bruno Haible  <bruno@clisp.org>
72458         * modules/propername (Notice, configure.ac): Put quoted "..." into
72459         --keyword option.
72460         * lib/propername.h: Update comments accordingly.
72461         Reported by Eric Blake.
72463 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
72465         * modules/getpass-gnu (Depends-on): Add fseeko.
72467 2008-05-19  Simon Josefsson  <simon@josefsson.org>
72469         * modules/base64-tests: New file.
72471 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
72473         * lib/base64.c (base64_decode_ctx): If a decode context structure
72474         was passed in use it to ignore newlines.  If a context structure
72475         was _not_ passed in, continue to treat newlines as garbage (this
72476         is the historical behavior).  Formerly base64_decode.
72477         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
72478         takes a decode context structure.
72479         * lib/base64.h (base64_decode): Macro for four-argument calls.
72480         (base64_decode_alloc): Likewise.
72481         * lib/base64.c (base64_decode_ctx): If a decode context structure
72482         was passed in use it to ignore newlines.  If a context structure
72483         was _not_ passed in, continue to treat newlines as garbage (this
72484         is the historical behavior).  Formerly base64_decode.
72485         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
72486         takes a decode context structure.
72487         * lib/base64.h (base64_decode): Macro for four-argument calls.
72488         (base64_decode_alloc): Likewise.
72490 2008-05-19  Jim Meyering  <meyering@redhat.com>
72492         avoid a warning from gcc
72493         * lib/trim.c (IF_LINT): Define.
72494         (trim2): Use it to avoid a "may be used uninitialized" warning.
72496         Fix doc typo.
72497         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
72499 2008-05-19  Bruno Haible  <bruno@clisp.org>
72501         * doc/glibc-functions/getpass.texi: Document limits of other
72502         implementations.
72504 2008-05-19  Simon Josefsson  <simon@josefsson.org>
72505             Bruno Haible <bruno@clisp.org>
72507         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
72509 2008-05-18  Bruno Haible  <bruno@clisp.org>
72511         * modules/propername: New file, from GNU gettext.
72512         * lib/propername.h: New file, from GNU gettext.
72513         * lib/propername.c: New file, from GNU gettext.
72514         * MODULES.html.sh (Internationalization functions): Add propername.
72516 2008-05-16  Jim Meyering  <meyering@redhat.com>
72517             Bruno Haible  <bruno@clisp.org>
72519         Avoid some warnings from "gcc -Wshadow".
72520         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
72522 2008-05-15  Eric Blake  <ebb9@byu.net>
72524         Extend previous patch to cygwin 1.7.0.
72525         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
72526         fast implementation in cygwin >= 1.7.0.
72527         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72530 2008-05-15  Bruno Haible  <bruno@clisp.org>
72532         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
72533         implementation in glibc >= 2.9.
72534         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72537 2008-05-15  Bruno Haible  <bruno@clisp.org>
72539         * MODULES.html.sh (Internationalization functions): Remove linebreak.
72540         (Unicode string functions): Add unilbrk/*.
72541         Reported by Karl Berry.
72543 2008-05-15  Eric Blake  <ebb9@byu.net>
72545         Fix violation of <stdbool.h> replacement in regex.
72546         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
72547         * lib/regexec.c (re_search_internal): Likewise.
72548         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
72550 2008-05-15  Jim Meyering  <meyering@redhat.com>
72552         avoid distracting test output when git or cvs is not found
72553         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
72554         * tests/test-vc-list-files-git.sh: Likewise.
72556 2008-05-15  Eric Blake  <ebb9@byu.net>
72558         Glibc finally accepted the memmem speedup code, bugzilla #5514.
72559         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
72560         glibc version.
72561         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
72562         * doc/posix-functions/strstr.texi (strstr): Likewise.
72563         * lib/str-two-way.h (MAX): Sychronize with glibc.
72565 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
72567         * lib/regcomp.c (optimize_utf8): Add a note on why we test
72568         opr.ctx_type.
72569         (calc_first): Initialize constraint field.
72570         (duplicate_node_closure): Use it instead of special casing ANCHORS.
72571         Fix grammar.
72572         (duplicate_node): Merge constraint field for all node types.
72573         (calc_eclosure_iter): Look at constraint field for all node types.
72574         * lib/regex_internal.c (create_cd_newstate): Don't look at
72575         opr.ctx_type.
72577 2008-05-14  Bruno Haible  <bruno@clisp.org>
72579         Help GCC to do better code generation.
72580         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
72581         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
72582         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
72583         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
72584         Declare with attribute 'malloc' if supported.
72586 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
72588         use "echo STR|wc -c" rather than unportable "expr length STR"
72589         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
72590         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
72592 2008-05-14  Jim Meyering  <meyering@redhat.com>
72594         use dd ibs=$n count=1 ... rather than less-portable head -c$n
72595         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
72596         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
72597         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
72598         via Collin Lasse.
72600 2008-05-14  Eric Blake  <ebb9@byu.net>
72602         Avoid quadratic growth in gl_LIBSOURCES.
72603         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
72604         Suggested by Bruno Haible.
72606         Test xmemdup0.
72607         * modules/xmemdup0-tests: New file.
72608         * tests/test-xmemdup0.c: Likewise.
72610 2008-05-13  Eric Blake  <ebb9@byu.net>
72612         Split xmemdup0 into its own module.
72613         * modules/xmemdup0: New file.
72614         * lib/xmemdup0.h: Likewise.
72615         * lib/xmemdup0.c: Likewise.
72616         * MODULES.html.sh (Memory management functions): Add xmemdup0.
72617         * lib/xalloc.h (xmemdup0): Remove.
72618         * lib/xmalloc.c (xmemdup0): Likewise.
72620 2008-05-13  Eric Blake  <ebb9@byu.net>
72621             Bruno Haible  <bruno@clisp.org>
72623         Reduce number of forks required during autoconf.
72624         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
72625         and gl_LIBSOURCES_DIR.
72626         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
72627         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
72628         m4_syscmd per file.
72629         <m4_foreach_w>: Move...
72630         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
72632 2008-05-13  Eric Blake  <ebb9@byu.net>
72634         * gnulib-tool: Fix various comment typos.
72636 2008-05-12  Bruno Haible  <bruno@clisp.org>
72638         Tailor the linebreaking algorithm.
72639         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
72641 2008-05-12  Bruno Haible  <bruno@clisp.org>
72643         Update to Unicode 5.0.0.
72644         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
72645         LBP_JV, LBP_JT. Redistribute values.
72646         (unilbrk_table): Change size.
72647         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
72648         Unicode TR#14 rev. 22.
72649         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
72650         LBP_JV, LBP_JT. Redistribute values.
72651         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
72652         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
72653         Update.
72654         * lib/unilbrk/lbrkprop1.h: Regenerated.
72655         * lib/unilbrk/lbrkprop2.h: Regenerated.
72656         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
72657         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
72658         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
72659         Likewise.
72660         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
72661         Likewise.
72662         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
72663         result.
72664         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
72665         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
72666         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
72667         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
72668         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
72669         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
72671 2008-05-11  Bruno Haible  <bruno@clisp.org>
72673         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
72675 2008-05-11  Bruno Haible  <bruno@clisp.org>
72677         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
72678         * modules/unilbrk/gen-lbrk: New file.
72680 2008-05-11  Bruno Haible  <bruno@clisp.org>
72682         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
72683         * m4/sha512.m4 (gl_SHA512): Likewise.
72685 2008-05-11  Jim Meyering  <meyering@redhat.com>
72687         New modules: crypto/sha256, crypto/sha512 (from coreutils)
72688         * modules/crypto/sha256: New file.
72689         * modules/crypto/sha512: Likewise.
72690         * lib/sha256.c: Likewise.
72691         * lib/sha256.h: Likewise.
72692         * lib/sha512.c: Likewise.
72693         * lib/sha512.h: Likewise.
72694         * lib/u64.h: Likewise.
72695         * m4/sha256.m4: Likewise.
72696         * m4/sha512.m4: Likewise.
72697         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
72699 2008-05-10  Bruno Haible  <bruno@clisp.org>
72701         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
72702         (Input/Output <stdio.h>): Add xprintf.
72703         (Signal handling <signal.h>): Add strsignal.
72704         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
72705         (Core language properties): Add func.
72706         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
72707         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
72708         strings.
72709         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
72710         (Input/output): New section.
72711         (File system functions): Add openat-die, stat-macros.
72712         (Networking functions): Add sockets.
72713         (Unicode string functions): Add unictype/*.
72714         (Support for building libraries and executables): Add gperf.
72715         (Support for building documentation): Add agpl-3.0.
72716         (Misc): Add nocrash.
72718 2008-05-10  Bruno Haible  <bruno@clisp.org>
72720         * modules/unictype/gen-ctype: New file.
72722 2008-05-10  Jim Meyering  <meyering@redhat.com>
72724         Make chdir-safer.c more efficient on a system with no symlinks.
72725         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
72726         also if ELOOP is zero.  Suggested by Bruno Haible.
72728         Make chdir-safer.c slightly safer.
72729         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
72730         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
72732         Avoid compile failure on systems without ELOOP (like mingw).
72733         * lib/chdir-safer.c (ELOOP): Define if not already defined.
72734         Reported by Bruno Haible.
72736 2008-05-10  Bruno Haible  <bruno@clisp.org>
72738         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
72739         (is_utf8_encoding): Use a case-insensitive comparison.
72740         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
72741         streq.
72743 2008-05-10  Bruno Haible  <bruno@clisp.org>
72745         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
72746         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
72747         * lib/unilbrk/ulc-common.h (iconv_string_length,
72748         iconv_string_keeping_offsets): Remove declarations.
72749         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
72750         Don't include <iconv.h>, streq.h, xsize.h.
72751         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
72752         conversion.
72753         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
72754         <iconv.h>, streq.h, xsize.h.
72755         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
72756         conversion.
72757         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
72758         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
72759         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
72760         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
72762 2008-05-10  Bruno Haible  <bruno@clisp.org>
72764         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
72765         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
72767         * modules/unilbrk/u32-width-linebreaks-tests: New file.
72768         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
72770         * modules/unilbrk/u16-width-linebreaks-tests: New file.
72771         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
72773         * modules/unilbrk/u8-width-linebreaks-tests: New file.
72774         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
72776         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
72777         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
72779         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
72780         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
72782         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
72783         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
72785         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
72786         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
72788 2008-05-10  Bruno Haible  <bruno@clisp.org>
72790         Split up 'linebreak' module.
72791         * lib/unilbrk.h: New file, based on lib/linebreak.h.
72792         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
72793         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
72794         modifications.
72795         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
72796         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
72797         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
72798         lib/linebreak.c.
72799         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
72800         lib/linebreak.c.
72801         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
72802         lib/linebreak.c.
72803         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
72804         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
72805         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
72806         lib/linebreak.c.
72807         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
72808         lib/linebreak.c.
72809         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
72810         lib/linebreak.c.
72811         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
72812         lib/linebreak.c.
72813         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
72814         lib/linebreak.c.
72815         * modules/unilbrk/base: New file.
72816         * modules/unilbrk/tables: New file.
72817         * modules/unilbrk/u8-possible-linebreaks: New file.
72818         * modules/unilbrk/u16-possible-linebreaks: New file.
72819         * modules/unilbrk/u32-possible-linebreaks: New file.
72820         * modules/unilbrk/ulc-common: New file.
72821         * modules/unilbrk/ulc-possible-linebreaks: New file.
72822         * modules/unilbrk/u8-width-linebreaks: New file.
72823         * modules/unilbrk/u16-width-linebreaks: New file.
72824         * modules/unilbrk/u32-width-linebreaks: New file.
72825         * modules/unilbrk/ulc-width-linebreaks: New file.
72826         * lib/linebreak.h: Remove file.
72827         * lib/linebreak.c: Remove file.
72828         * m4/linebreak.m4: Remove file.
72829         * modules/linebreak: Remove file.
72830         * NEWS: Mention the changes.
72832 2008-05-09  Eric Blake  <ebb9@byu.net>
72834         Add xmemdup0.
72835         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
72836         implementation.
72837         * lib/xmalloc.c (xmemdup0): New C implementation.
72839 2008-05-08  Bruno Haible  <bruno@clisp.org>
72841         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
72843 2008-05-07  Eric Blake  <ebb9@byu.net>
72845         Support cross-compilation of <wctype.h>.
72846         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
72847         AC_CACHE_CHECK.
72849 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
72851         * build-aux/vc-list-files: Add support for bzr.
72853 2008-05-03  Jim Meyering  <meyering@redhat.com>
72855         avoid failed assertion with tight malloc
72856         * tests/test-getndelim2.c: Correct an off-by-one assertion.
72858 2008-05-03  Simon Josefsson  <simon@josefsson.org>
72860         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
72861         are needed from arpa/inet.h.
72862         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
72863         Reported by Bruno Haible.
72865 2008-05-02  Jim Meyering  <meyering@redhat.com>
72867         avoid compilation error on FreeBSD 6
72868         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
72870 2008-05-01  Jim Meyering  <meyering@redhat.com>
72872         useless-if-before-free: correct --help's exit status description
72873         * build-aux/useless-if-before-free (usage): Like grep, exit 0
72874         for one or more matches, etc.  Reported by Bruno Haible.
72876         vc-list-files: make the stand-alone gnulib test work
72877         * modules/vc-list-files-tests (configure.ac):
72878         Define and AC_SUBST abs_aux_dir.
72879         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
72880         $(abs_top_srcdir) to each script and having each of them
72881         duplicate the work of setting PATH, set PATH here, using
72882         the new variable, abs_aux_dir instead.
72883         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
72884         * tests/test-vc-list-files-git.sh: Likewise.
72885         Reported by Bruno Haible.
72887 2008-05-01  Bruno Haible  <bruno@clisp.org>
72889         * lib/getndelim2.c (getndelim2): Fix newsize computation during
72890         reallocation. Rename 'done' to 'found_delimiter'.
72892 2008-05-01  Jim Meyering  <meyering@redhat.com>
72894         vc-list-files: accommodate /bin/sh like the one from Solaris 10
72895         * build-aux/vc-list-files: Use `...`, not $(...).
72897 2008-04-30  Jim Meyering  <meyering@redhat.com>
72899         add tests for vc-list-files
72900         * modules/vc-list-files-tests: New module.
72901         * tests/test-vc-list-files-cvs.sh: New file.
72902         * tests/test-vc-list-files-git.sh: New file.
72904         avoid a warning from gcc
72905         * lib/getndelim2.c (IF_LINT): Define.
72906         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
72908         vc-list-files: work properly with build-aux/cvsu, too
72909         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
72910         to all cvs-based clauses.
72912         vc-list-files: work properly in the CVS+awk case, too
72913         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
72915         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
72916         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
72917         take more than one file argument, so .  Add quotes, just in case $dir
72918         ever contains a shell meta-character.  Prompted by Soren Hansen in
72919         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
72921 2008-04-29  Eric Blake  <ebb9@byu.net>
72923         Optimize getndelim2 to use block operations when possible.
72924         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
72925         freadseek, and memchr2.
72926         * lib/getndelim2.c (getndelim2): Use them for block reads.
72928 2008-04-29  Bruno Haible  <bruno@clisp.org>
72930         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
72931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72932         * modules/inet_ntop (Depends-on): Add extensions.
72933         * modules/inet_pton (Depends-on): Likewise.
72934         Reported by Simon Josefsson.
72936 2008-04-29  Jim Meyering  <meyering@redhat.com>
72938         When the is more than one match in a block, match all of them.
72939         * build-aux/useless-if-before-free: Iterate through each block
72940         until there are no more matches.
72942         Fix broken useless-if-before-free script.
72943         * build-aux/useless-if-before-free: Fix typo: missing "?" after
72944         the expression to match cast of argument to free-like function.
72946 2008-04-29  Eric Blake  <ebb9@byu.net>
72948         Use new header.
72949         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
72951 2008-04-29  Jim Meyering  <meyering@redhat.com>
72953         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
72954         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
72955         by gnulib to exist and to declare e.g., inet_ntop.
72956         Don't include "inet_ntop.h", now removed.
72958         * m4/arpa_inet_h.m4: Remove trailing blanks.
72960 2008-04-29  Eric Blake  <ebb9@byu.net>
72962         Silence valgrind on safe reads beyond potential array bounds.
72963         * lib/rawmemchr.valgrind: New file.
72964         * lib/strchrnul.valgrind: Likewise.
72965         * modules/rawmemchr (Files): Distribute new file.
72966         * modules/strchrnul (Files): Likewise.
72967         Suggested by Bruno Haible.
72969 2008-04-29  Bruno Haible  <bruno@clisp.org>
72971         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
72972         (inet_ntop, inet_pton): Change portability warning's wording.
72973         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
72974         Invoke gl_CHECK_NEXT_HEADERS.
72975         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
72976         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
72977         set ARPA_INET_H.
72978         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72979         * modules/arpa_inet (Description): No longer only for systems that
72980         lack it.
72981         (Depends-on): Add include_next.
72982         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
72983         HAVE_ARPA_INET_H.
72985 2008-04-29  Jim Meyering  <meyering@redhat.com>
72987         * modules/mkdir (License): Re-license as LGPLv2+.
72989 2008-04-29  Bruno Haible  <bruno@clisp.org>
72991         * modules/rawmemchr (Maintainer): Set to Eric.
72992         * modules/strchrnul (Maintainer): Likewise.
72994 2008-04-29  Simon Josefsson  <simon@josefsson.org>
72996         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
72997         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
72999         * modules/arpa_inet (arpa/inet.h): Use them.
73001 2008-04-28  Eric Blake  <ebb9@byu.net>
73003         Test getndelim2.
73004         * modules/getndelim2-tests: New file.
73005         * tests/test-getndelim2.c: Likewise.
73006         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
73007         stream.
73008         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
73010         * MODULES.html.sh: Document new module.
73012 2008-04-20  Bruno Haible  <bruno@clisp.org>
73014         * lib/c-stack.c (die): Use raise.
73015         * modules/c-stack (Depends-on): Add raise.
73017 2008-04-28  Bruno Haible  <bruno@clisp.org>
73019         Expect rpmatch to be declared.
73020         * lib/yesno.c (rpmatch): Remove declaration.
73022         Declare rpmatch.
73023         * lib/stdlib.in.h (rpmatch): New declaration.
73024         * lib/rpmatch.c: Include <stdlib.h> first.
73025         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
73026         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
73027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
73028         HAVE_RPMATCH.
73029         * modules/rpmatch (Depends-on): Add stdlib, extensions.
73030         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73031         (Include): Set to <stdlib.h>.
73032         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
73033         HAVE_RPMATCH.
73034         * NEWS: Document the change.
73036 2008-04-28  Bruno Haible  <bruno@clisp.org>
73038         Change rpmatch to use nl_langinfo when appropriate.
73039         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
73040         (N_): New macro.
73041         (localized_pattern): New function/macro.
73042         (try): Remove match, nomatch arguments. Copy the pattern into safe
73043         memory before caching it.
73044         (rpmatch): Use localized_pattern. Add translator comments.
73045         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
73046         Suggested by Eric Blake.
73047         * modules/rpmatch (Depends-on): Add stdbool.
73049 2008-04-28  Eric Blake  <ebb9@byu.net>
73051         Add rawmemchr module, matching glibc.
73052         * modules/string (Makefile.am): New indicator.
73053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
73054         * lib/string.in.h (rawmemchr): Declare when appropriate.
73055         * modules/rawmemchr: New file.
73056         * m4/rawmemchr.m4: Likewise.
73057         * lib/rawmemchr.c: Likewise.
73058         * modules/rawmemchr-tests: Likewise.
73059         * tests/test-rawmemchr.c: Likewise.
73060         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
73061         module.
73062         * modules/strchrnul (Depends-on): Add rawmemchr.
73063         * lib/strchrnul.c (strchrnul): Optimize a corner case.
73065         Whitespace cleanup.
73066         * tests/test-strchrnul.c: Reindent.
73067         * lib/strchrnul.c: Likewise.
73069         Optimize and test strchrnul.
73070         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
73071         * modules/strchrnul-tests: New file.
73072         * tests/test-strchrnul.c: Likewise.
73074         Remove intprops dependency.
73075         * modules/memchr (Depends-on): Remove intprops.
73076         * modules/memrchr (Depends-on): Likewise.
73077         * modules/memchr2 (Depends-on): Likewise.
73078         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
73079         * lib/memrchr.c (__memrchr): Likewise.
73080         * lib/memrchr2.c (memchr2): Likewise.
73081         Reported by Simon Josefsson.
73083 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73085         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
73086         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73088 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73090         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
73092         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
73094         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
73096         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
73097         declarations.
73098         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
73100         * m4/inet_pton.m4: Don't check for header files.
73102         * m4/inet_ntop.m4: Don't check for header files.
73104 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73106         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
73107         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
73108         trigger for cygwin).
73109         Reported by Bruno Haible  <bruno@clisp.org>.
73111 2008-04-28  Bruno Haible  <bruno@clisp.org>
73113         * doc/posix-functions/strdup.texi: Mention mingw problem.
73115 2008-04-27  Bruno Haible  <bruno@clisp.org>
73117         * modules/stat-time-tests (Depends-on): Add sleep.
73118         * tests/test-stat-time.c (force_unlink): New function.
73119         (cleanup): Use it.
73120         (test_mtime): Remove the ctime related tests.
73121         (test_ctime): New function, containing the ctime related tests.
73122         (main): Call test_ctime, except on native Windows platforms.
73124 2008-04-27  Bruno Haible  <bruno@clisp.org>
73126         * lib/rpmatch.c (rpmatch): Add some comments.
73127         Reported by James Youngman <jay@gnu.org>.
73129 2008-04-27  Bruno Haible  <bruno@clisp.org>
73131         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
73132         quiet NaNs.
73134 2008-04-27  Bruno Haible  <bruno@clisp.org>
73136         Make test-yesno.sh work on mingw.
73137         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
73138         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
73139         (main): Set stdin to binary mode.
73140         * modules/yesno-tests (Depends-on): Add binary-io.
73142 2008-04-27  Bruno Haible  <bruno@clisp.org>
73144         Fix 'isfinite' on x86, x86_64, ia64 platforms.
73145         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
73146         argument that lie outside the IEEE 854 domain.
73147         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
73148         (gl_ISFINITE): Use it.
73149         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
73151 2008-04-27  Bruno Haible  <bruno@clisp.org>
73153         Allow local renaming in config.h.
73154         * lib/memrchr.c (memrchr): Don't undefine outside libc.
73156 2008-04-27  Bruno Haible  <bruno@clisp.org>
73158         * lib/memchr.c (__memchr): Change type of 'i'.
73159         * lib/memchr2.c (memchr2): Likewise.
73161 2008-04-26  Eric Blake  <ebb9@byu.net>
73162         and Bruno Haible  <bruno@clisp.org>
73164         Optimize and test memrchr.
73165         * modules/memrchr (Depends-on): Add intprops.
73166         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
73167         * modules/memrchr-tests: New file.
73168         * tests/test-memrchr.c: New file.
73170 2008-04-26  Bruno Haible  <bruno@clisp.org>
73172         Add tentative support for DragonFly BSD.
73173         * lib/stdio-impl.h: Add macros for DragonFly BSD.
73174         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
73175         fp.
73176         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
73177         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
73178         * lib/fpurge.c (fpurge): Likewise.
73179         * lib/freadable.c (freaadable): Likewise.
73180         * lib/freadahead.c (freadahead): Likewise.
73181         * lib/freading.c (freading): Likewise.
73182         * lib/freadptr.c (freadptr): Likewise.
73183         * lib/freadseek.c (freadptrinc): Likewise.
73184         * lib/fseeko.c (fseeko): Likewise.
73185         * lib/fseterr.c (fseterr): Likewise.
73186         * lib/fwritable.c (fwritable): Likewise.
73187         * lib/fwriting.c (fwriting): Likewise.
73189 2008-04-26  Bruno Haible  <bruno@clisp.org>
73191         * lib/stdio-impl.h: New file.
73192         * lib/fbufmode.c: Include stdio-impl.h.
73193         (fbufmode): Use fp_, remove redundant #defines.
73194         * lib/fflush.c: Include stdio-impl.h.
73195         (clear_ungetc_buffer): Remove redundant #defines.
73196         * lib/fpurge.c: Include stdio-impl.h.
73197         (fpurge): Remove redundant #defines.
73198         * lib/freadable.c: Include stdio-impl.h.
73199         (freadable): Remove redundant #defines.
73200         * lib/freadahead.c: Include stdio-impl.h.
73201         (freadahead): Remove redundant #defines.
73202         * lib/freading.c: Include stdio-impl.h.
73203         (freading): Remove redundant #defines.
73204         * lib/freadptr.c: Include stdio-impl.h.
73205         (freadptr): Remove redundant #defines.
73206         * lib/freadseek.c: Include stdio-impl.h.
73207         (freadptrinc): Remove redundant #defines.
73208         * lib/fseeko.c: Include stdio-impl.h.
73209         (rpl_fseeko): Remove redundant #defines.
73210         * lib/fseterr.c: Include stdio-impl.h.
73211         (fseterr): Remove redundant #defines.
73212         * lib/fwritable.c: Include stdio-impl.h.
73213         (fwritable: Remove redundant #defines.
73214         * lib/fwriting.c: Include stdio-impl.h.
73215         (fwriting): Remove redundant #defines.
73216         * modules/fbufmode (Files): Add lib/stdio-impl.h.
73217         * modules/fflush (Files): Likewise.
73218         * modules/fpurge (Files): Likewise.
73219         * modules/freadable (Files): Likewise.
73220         * modules/freadahead (Files): Likewise.
73221         * modules/freading (Files): Likewise.
73222         * modules/freadptr (Files): Likewise.
73223         * modules/freadseek (Files): Likewise.
73224         * modules/fseeko (Files): Likewise.
73225         * modules/fseterr (Files): Likewise.
73226         * modules/fwritable (Files): Likewise.
73227         * modules/fwriting (Files): Likewise.
73229 2008-04-26  Bruno Haible  <bruno@clisp.org>
73231         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
73232         restore_seek_optimization, update_fpos_cache): New functions, extracted
73233         from rpl_fflush.
73234         (rpl_fflush): Use them.
73235         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
73236         (gl_REPLACE_FFLUSH): Use it.
73238 2008-04-26  Bruno Haible  <bruno@clisp.org>
73240         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
73241         on Solaris.
73242         * tests/test-xstrtoimax.sh: Likewise.
73243         * tests/test-xstrtoumax.sh: Likewise.
73244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73246 2008-04-26  Bruno Haible  <bruno@clisp.org>
73248         * modules/memchr-tests: New file.
73249         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
73251 2008-04-26  Eric Blake  <ebb9@byu.net>
73252             Bruno Haible  <bruno@clisp.org>
73254         * lib/memchr.c: Include intprops.h.
73255         (__memchr): Optimize parallel detection of matching bytes. Rename local
73256         variables. Add explanatory comments.
73258 2008-04-26  Bruno Haible  <bruno@clisp.org>
73260         Fix module 'memchr', broken since 2000-10-28.
73261         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
73263 2008-04-26  Bruno Haible  <bruno@clisp.org>
73265         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
73266         comments.
73268 2008-04-25  Eric Blake  <ebb9@byu.net>
73270         Use native fstatat on cygwin 1.7.0.
73271         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
73272         first.
73274 2008-04-23  Eric Blake  <ebb9@byu.net>
73276         Improve memchr2 performance.
73277         * lib/memchr2.c (memchr2): Further optimize parallel detection of
73278         NUL bytes.
73279         * modules/memchr2 (Depends-on): Use intprops.h.
73281 2008-04-23  Simon Josefsson  <simon@josefsson.org>
73283         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
73284         an inline function instead of a CPP macro.  Patch by Ben Pfaff
73285         <blp@cs.stanford.edu>.
73287 2008-04-23  Simon Josefsson  <simon@josefsson.org>
73289         * lib/arpa_inet.in.h: New file.
73291         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
73292         (Makefile.am): Sed in substitute header file.
73294         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
73295         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
73297         * modules/inet_ntop (configure.ac): Use
73298         gl_ARPA_INET_MODULE_INDICATOR.
73300         * modules/inet_pton (configure.ac): Use
73301         gl_ARPA_INET_MODULE_INDICATOR.
73303 2008-04-22  Jim Meyering  <meyering@redhat.com>
73305         * modules/verify (License): Re-license as LGPLv2+.
73307 2008-04-22  Simon Josefsson  <simon@josefsson.org>
73309         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
73310         parameter to void* as per POSIX standard (MinGW uses char*).
73312 2008-04-21  Bruno Haible  <bruno@clisp.org>
73314         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73315         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73316         Define to replacements if REPLACE_ISWCNTRL is 1.
73317         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
73318         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
73319         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
73320         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
73321         what it fixes.
73322         * doc/posix-functions/iswalpha.texi: Likewise.
73323         * doc/posix-functions/iswblank.texi: Likewise.
73324         * doc/posix-functions/iswcntrl.texi: Likewise.
73325         * doc/posix-functions/iswdigit.texi: Likewise.
73326         * doc/posix-functions/iswgraph.texi: Likewise.
73327         * doc/posix-functions/iswlower.texi: Likewise.
73328         * doc/posix-functions/iswprint.texi: Likewise.
73329         * doc/posix-functions/iswpunct.texi: Likewise.
73330         * doc/posix-functions/iswspace.texi: Likewise.
73331         * doc/posix-functions/iswupper.texi: Likewise.
73332         * doc/posix-functions/iswxdigit.texi: Likewise.
73333         Reported by Alain Guibert.
73335 2008-04-21  Bruno Haible  <bruno@clisp.org>
73337         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
73338         Patch by Alain Guibert.
73340 2008-04-21  Bruno Haible  <bruno@clisp.org>
73342         Fix test failures on mingw.
73343         * tests/test-xstrtol.c (print_no_progname): New function.
73344         (main): Install it in error_print_progname hook.
73345         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
73346         * tests/test-xstrtoimax.sh: Likewise.
73347         * tests/test-xstrtoumax.sh: Likewise.
73349 2008-04-21  Bruno Haible  <bruno@clisp.org>
73351         Fix test failure on mingw.
73352         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
73354 2008-04-21  Bruno Haible  <bruno@clisp.org>
73356         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
73357         Actually assign a value.
73359 2008-04-20  Bruno Haible  <bruno@clisp.org>
73361         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
73362         take 2.
73363         * lib/canonicalize.c (canonicalize_file_name): Elide if the
73364         'canonicalize-lgpl' module is also used.
73365         * lib/canonicalize-lgpl.c: Undo last change.
73366         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
73368 2008-04-20  Bruno Haible  <bruno@clisp.org>
73370         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
73371         config.h. Provide _mkdir based fallback for mingw.
73372         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
73373         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
73374         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
73375         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
73376         rather than defining mkdir in config.h.
73377         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
73378         (gl_SYS_STAT_H_DEFAULTS): New macro.
73379         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
73380         HAVE_IO_H any more.
73381         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
73382         HAVE_DECL_MKDIR and HAVE_IO_H.
73384 2008-04-20  Bruno Haible  <bruno@clisp.org>
73386         * lib/isapipe.c: Port to native Windows platforms.
73388 2008-04-20  Bruno Haible  <bruno@clisp.org>
73390         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
73392 2008-04-21  Eric Blake  <ebb9@byu.net>
73394         Work around preprocessors that don't handle UINTMAX_MAX.
73395         * lib/memchr2.c (memchr2): Avoid embedded #if.
73396         Reported by Alain Guibert, fix suggested by Bruno Haible.
73398 2008-04-21  Simon Josefsson  <simon@josefsson.org>
73400         * doc/posix-functions/strftime.texi (strftime): Explain better
73401         Windows incompatibility.  Suggested by Micah Cowan
73402         <micah@cowan.name>.
73404 2008-04-20  Bruno Haible  <bruno@clisp.org>
73406         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
73407         unistr/u8-mblen.
73409 2008-04-20  Bruno Haible  <bruno@clisp.org>
73411         Fix test failure on platforms with non-GNU iconv.
73412         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
73413         (U_TO_U8): Use it, rather than u16_to_u8.
73414         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
73415         units at the end of the input string.
73416         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
73418 2008-04-20  Bruno Haible  <bruno@clisp.org>
73420         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
73421         when the resulting length is 0.
73422         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
73424 2008-04-20  Bruno Haible  <bruno@clisp.org>
73426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
73427         works.
73428         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
73430 2008-04-20  Bruno Haible  <bruno@clisp.org>
73432         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
73433         * modules/tsearch-tests (configure.ac): Test for initstate function.
73435 2008-04-20  Bruno Haible  <bruno@clisp.org>
73437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
73438         for nlink_t if missing.
73439         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
73441 2008-04-19  Bruno Haible  <bruno@clisp.org>
73443         Work around snprintf bug on Linux libc5.
73444         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
73445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
73446         gl_SNPRINTF_SIZE1.
73447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73448         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
73449         that test failed.
73450         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
73451         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
73452         * modules/snprintf (Files): Add m4/printf.m4.
73453         * modules/vsnprintf (Files): Likewise.
73454         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
73455         * doc/posix-functions/vsnprintf.texi: Likewise.
73457 2008-04-19  Bruno Haible  <bruno@clisp.org>
73459         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
73460         from 0.0058 to less than 10^-7.
73462 2008-04-19  Bruno Haible  <bruno@clisp.org>
73464         Fix rounding when a precision is given.
73465         * lib/vasnprintf.c (is_borderline): New function.
73466         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
73467         9...9x.
73468         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
73469         %e, %g.
73470         * tests/test-vasprintf-posix.c (test_function): Likewise.
73471         * tests/test-snprintf-posix.h (test_function): Likewise.
73472         * tests/test-sprintf-posix.h (test_function): Likewise.
73473         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
73474         * tests/test-printf-posix.h (test_function): Likewise.
73475         * tests/test-printf-posix.output: Update.
73476         Reported by John Darrington <john@darrington.wattle.id.au> via
73477         Ben Pfaff <blp@cs.stanford.edu>.
73479 2008-04-18  Simon Josefsson  <simon@josefsson.org>
73481         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
73482         Suggested by Bruno Haible <bruno@clisp.org>.
73484 2008-04-17  Bruno Haible  <bruno@clisp.org>
73486         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
73487         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
73488         implementation.
73489         Patch by Bruce Merry <bmerry@gmail.com>.
73491 2008-04-17  Simon Josefsson  <simon@josefsson.org>
73493         * doc/posix-functions/strftime.texi (strftime): Mention that %e
73494         doesn't work under Windows.
73496 2008-04-16  Bruno Haible  <bruno@clisp.org>
73498         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
73499         New macros.
73500         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
73501         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
73502         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
73503         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
73504         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
73505         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
73506         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
73507         macros.
73508         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
73509         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
73510         Northern Sotho, Uighur.
73512 2008-04-16  Bruno Haible  <bruno@clisp.org>
73514         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
73515         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
73516         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
73517         Reported by Daniel Bergström <daniel@octocode.com>.
73519 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
73520             Bruno Haible  <bruno@clisp.org>
73522         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
73523         function.
73524         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
73525         New functions, mostly extracted from gl_locale_name_default.
73526         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
73528 2008-04-16  Eric Blake  <ebb9@byu.net>
73530         Adjust strtod detection to catch glibc 2.7 bug.
73531         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
73532         Reported by John Gatewood Ham.
73534 2008-04-16  Bruno Haible  <bruno@clisp.org>
73536         Add tentative support for Linux libc5.
73537         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
73538         * lib/fpurge.c (fpurge): Likewise.
73539         * lib/freadable.c (freadable): Likewise.
73540         * lib/freadahead.c (freadahead): Likewise.
73541         * lib/freading.c (freading): Likewise.
73542         * lib/freadptr.c (freadptr): Likewise.
73543         * lib/freadseek.c (freadptrinc): Likewise.
73544         * lib/fseeko.c (rpl_fseeko): Likewise.
73545         * lib/fseterr.c (fseterr): Likewise.
73546         * lib/fwritable.c (fwritable): Likewise.
73547         * lib/fwriting.c (fwriting): Likewise.
73548         Reported by Alain Guibert <alguibert+bts@free.fr>.
73550 2008-04-15  Bruno Haible  <bruno@clisp.org>
73552         * modules/mathl (configure.ac): Define module indicator.
73554 2008-04-15  Bruno Haible  <bruno@clisp.org>
73556         * lib/logl.c (logl): Remove unused variables.
73558 2008-04-15  Bruno Haible  <bruno@clisp.org>
73560         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
73561         fails.
73563 2008-04-15  Bruno Haible  <bruno@clisp.org>
73565         * lib/trim.c (trim2): Fix argument of isspace() macro.
73567 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
73569         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
73570         to 0.
73571         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
73573 2008-04-14  Bruno Haible  <bruno@clisp.org>
73575         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
73576         AC_LANG_PROGRAM argument.
73577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
73578         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
73579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
73580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73581         * m4/math_h.m4 (gl_MATH_H): Likewise.
73582         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
73583         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
73584         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
73585         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
73586         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73587         * m4/regex.m4 (gl_REGEX): Likewise.
73588         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
73589         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
73590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73591         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
73592         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73593         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73594         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73597 2008-04-14  Jim Meyering  <meyering@redhat.com>
73599         test-strtod: fix typos: s/abs/fabs/
73600         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
73602 2008-04-13  Bruno Haible  <bruno@clisp.org>
73604         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
73605         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
73606         module is also used and while not building the reloc-wrapper.
73608 2008-04-13  Bruno Haible  <bruno@clisp.org>
73610         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
73612 2008-04-13  Bruno Haible  <bruno@clisp.org>
73614         Fix AIX compilation failure introduced on 2008-04-02.
73615         * tests/test-frexp.c (exp): Undefine before redefining.
73616         * tests/test-frexpl.c (exp): Likewise.
73618 2008-04-13  Bruno Haible  <bruno@clisp.org>
73620         Work around a HP-UX stdio bug.
73621         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
73622         * tests/test-ftello.c (main): Likewise.
73623         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
73624         * doc/posix-functions/ftello.texi: Likewise.
73626 2008-04-13  Bruno Haible  <bruno@clisp.org>
73628         Make test-signbit pass on HP-UX/hppa.
73629         * tests/test-signbit.c (minus_zerol): New variable.
73630         (test_signbitl): Use it.
73632 2008-04-13  Bruno Haible  <bruno@clisp.org>
73634         Make truncl work on OSF/1 4.0.
73635         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
73636         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
73637         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
73638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
73639         HAVE_DECL_TRUNCL.
73640         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
73641         HAVE_DECL_TRUNCL.
73642         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
73644 2008-04-13  Bruno Haible  <bruno@clisp.org>
73646         * lib/unictype.h: Remove trailing comma from enumeration definitions.
73648 2008-04-13  Bruno Haible  <bruno@clisp.org>
73650         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
73651         expression, so as to avoid HP-UX 11 cc compiler bug.
73653 2008-04-13  Bruno Haible  <bruno@clisp.org>
73655         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
73657 2008-04-13  Bruno Haible  <bruno@clisp.org>
73659         * lib/git-merge-changelog.c: Remove empty declaration outside of
73660         functions.
73662 2008-04-13  Bruno Haible  <bruno@clisp.org>
73664         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
73666 2008-04-13  Bruno Haible  <bruno@clisp.org>
73668         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
73669         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
73670         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
73671         also if it exists but lacks definitions of the SHUT_* macros.
73672         * modules/sys_socket (Description): Update.
73673         Reported by Elbert Pol <e.pol@chello.nl>.
73675 2008-04-13  Bruno Haible  <bruno@clisp.org>
73677         * lib/localcharset.c (OS2): Don't redefine if already defined.
73678         Reported by Elbert Pol <e.pol@chello.nl>.
73680 2008-04-13  Bruno Haible  <bruno@clisp.org>
73682         * lib/binary-io.h [__EMX__]: Include <io.h>.
73683         Reported by Elbert Pol <e.pol@chello.nl>.
73685 2008-04-12  Bruno Haible  <bruno@clisp.org>
73687         * lib/fpucw.h: Enable the definitions also for x86_64.
73688         Needed for NetBSD/x86_64.
73689         Reported by Thomas Klausner <tk@giga.or.at>.
73691 2008-04-12  Bruno Haible  <bruno@clisp.org>
73693         * tests/test-strtod.c: Include isnand.h.
73694         (main): Use isnand instead of isnan.
73695         Reported by Jim Meyering.
73697 2008-04-12  Bruno Haible  <bruno@clisp.org>
73699         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
73700         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73702 2008-04-12  Jim Meyering  <meyering@redhat.com>
73704         * m4/math_h.m4 (gl_MATH_H): Fix typos.
73706 2008-04-12  Bruno Haible  <bruno@clisp.org>
73708         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
73709         Reported by Elbert Pol <e.pol@chello.nl>.
73711 2008-04-12  Eric Blake  <ebb9@byu.net>
73713         Work around Solaris 10 math.h bug.
73714         * m4/math_h.m4 (gl_MATH_H): Check for bug.
73715         (gl_MATH_H_DEFAULTS): Set up default.
73716         * modules/math (Makefile.am): Replace new indicators.
73717         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
73718         * tests/test-math.c (main): Test this.
73719         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
73720         * doc/posix-headers/math.texi (math.h): Mention bug.
73721         Reported by Nelson H. F. Beebe and Jim Meyering.
73723 2008-04-11  Bruno Haible  <bruno@clisp.org>
73725         Adapt to future versions of Apple GCC.
73726         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
73727         Reported by Peter O'Gorman <peter@pogma.com>.
73729 2008-04-11  Bruno Haible  <bruno@clisp.org>
73731         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
73733 2008-04-11  Bruno Haible  <bruno@clisp.org>
73735         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
73737         * modules/getaddrinfo-tests (Makefile.am): Define
73738         test_getaddrinfo_LDADD.
73740 2008-04-11  Bruno Haible  <bruno@clisp.org>
73742         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
73743         (init): Fix syntax error.
73744         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
73745         is declared.
73747 2008-04-11  Bruno Haible  <bruno@clisp.org>
73749         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
73750         * modules/glob (Depends-on): Add stdbool.
73752 2008-04-11  Bruno Haible  <bruno@clisp.org>
73754         * lib/trim.c: Include <string.h>.
73756 2008-04-11  Eric Blake  <ebb9@byu.net>
73758         Avoid compile failure on OS/2.
73759         * lib/regex_internal.h (internal_function): Disable optimization
73760         on OS/2 (__EMX__), where it caused compiler error.
73761         Reported by Elbert Pol.
73763 2008-04-11  Bruno Haible  <bruno@clisp.org>
73765         Flush the standard error stream before aborting. Needed on mingw.
73766         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
73767         * tests/test-array_list.c (ASSERT): Likewise.
73768         * tests/test-array_oset.c (ASSERT): Likewise.
73769         * tests/test-avltree_list.c (ASSERT): Likewise.
73770         * tests/test-avltree_oset.c (ASSERT): Likewise.
73771         * tests/test-avltreehash_list.c (ASSERT): Likewise.
73772         * tests/test-binary-io.c (ASSERT): Likewise.
73773         * tests/test-byteswap.c (ASSERT): Likewise.
73774         * tests/test-c-ctype.c (ASSERT): Likewise.
73775         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
73776         * tests/test-c-strcasestr.c (ASSERT): Likewise.
73777         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
73778         * tests/test-c-strstr.c (ASSERT): Likewise.
73779         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
73780         * tests/test-canonicalize.c (ASSERT): Likewise.
73781         * tests/test-carray_list.c (ASSERT): Likewise.
73782         * tests/test-ceilf1.c (ASSERT): Likewise.
73783         * tests/test-ceilf2.c (ASSERT): Likewise.
73784         * tests/test-ceill.c (ASSERT): Likewise.
73785         * tests/test-count-one-bits.c (ASSERT): Likewise.
73786         * tests/test-fbufmode.c (ASSERT): Likewise.
73787         * tests/test-fflush2.c (ASSERT): Likewise.
73788         * tests/test-floorf1.c (ASSERT): Likewise.
73789         * tests/test-floorf2.c (ASSERT): Likewise.
73790         * tests/test-floorl.c (ASSERT): Likewise.
73791         * tests/test-fopen.c (ASSERT): Likewise.
73792         * tests/test-fpending.c (ASSERT): Likewise.
73793         * tests/test-fprintf-posix.c (ASSERT): Likewise.
73794         * tests/test-fpurge.c (ASSERT): Likewise.
73795         * tests/test-freadable.c (ASSERT): Likewise.
73796         * tests/test-freadahead.c (ASSERT): Likewise.
73797         * tests/test-freading.c (ASSERT): Likewise.
73798         * tests/test-freadptr.c (ASSERT): Likewise.
73799         * tests/test-freadptr2.c (ASSERT): Likewise.
73800         * tests/test-freadseek.c (ASSERT): Likewise.
73801         * tests/test-freopen.c (ASSERT): Likewise.
73802         * tests/test-frexp.c (ASSERT): Likewise.
73803         * tests/test-frexpl.c (ASSERT): Likewise.
73804         * tests/test-fseek.c (ASSERT): Likewise.
73805         * tests/test-fseeko.c (ASSERT): Likewise.
73806         * tests/test-fstrcmp.c (ASSERT): Likewise.
73807         * tests/test-ftell.c (ASSERT): Likewise.
73808         * tests/test-ftello.c (ASSERT): Likewise.
73809         * tests/test-func.c (ASSERT): Likewise.
73810         * tests/test-fwritable.c (ASSERT): Likewise.
73811         * tests/test-fwriting.c (ASSERT): Likewise.
73812         * tests/test-getdelim.c (ASSERT): Likewise.
73813         * tests/test-getline.c (ASSERT): Likewise.
73814         * tests/test-i-ring.c (ASSERT): Likewise.
73815         * tests/test-iconv-utf.c (ASSERT): Likewise.
73816         * tests/test-iconv.c (ASSERT): Likewise.
73817         * tests/test-isfinite.c (ASSERT): Likewise.
73818         * tests/test-isnand.c (ASSERT): Likewise.
73819         * tests/test-isnanf.c (ASSERT): Likewise.
73820         * tests/test-isnanl.h (ASSERT): Likewise.
73821         * tests/test-ldexpl.c (ASSERT): Likewise.
73822         * tests/test-linked_list.c (ASSERT): Likewise.
73823         * tests/test-linkedhash_list.c (ASSERT): Likewise.
73824         * tests/test-localename.c (ASSERT): Likewise.
73825         * tests/test-lseek.c (ASSERT): Likewise.
73826         * tests/test-mbscasecmp.c (ASSERT): Likewise.
73827         * tests/test-mbscasestr1.c (ASSERT): Likewise.
73828         * tests/test-mbscasestr2.c (ASSERT): Likewise.
73829         * tests/test-mbscasestr3.c (ASSERT): Likewise.
73830         * tests/test-mbscasestr4.c (ASSERT): Likewise.
73831         * tests/test-mbschr.c (ASSERT): Likewise.
73832         * tests/test-mbscspn.c (ASSERT): Likewise.
73833         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
73834         * tests/test-mbspbrk.c (ASSERT): Likewise.
73835         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
73836         * tests/test-mbsrchr.c (ASSERT): Likewise.
73837         * tests/test-mbsspn.c (ASSERT): Likewise.
73838         * tests/test-mbsstr1.c (ASSERT): Likewise.
73839         * tests/test-mbsstr2.c (ASSERT): Likewise.
73840         * tests/test-mbsstr3.c (ASSERT): Likewise.
73841         * tests/test-memchr2.c (ASSERT): Likewise.
73842         * tests/test-memmem.c (ASSERT): Likewise.
73843         * tests/test-open.c (ASSERT): Likewise.
73844         * tests/test-printf-frexp.c (ASSERT): Likewise.
73845         * tests/test-printf-frexpl.c (ASSERT): Likewise.
73846         * tests/test-printf-posix.c (ASSERT): Likewise.
73847         * tests/test-quotearg.c (ASSERT): Likewise.
73848         * tests/test-rbtree_list.c (ASSERT): Likewise.
73849         * tests/test-rbtree_oset.c (ASSERT): Likewise.
73850         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
73851         * tests/test-round1.c (ASSERT): Likewise.
73852         * tests/test-roundf1.c (ASSERT): Likewise.
73853         * tests/test-roundl.c (ASSERT): Likewise.
73854         * tests/test-signbit.c (ASSERT): Likewise.
73855         * tests/test-sleep.c (ASSERT): Likewise.
73856         * tests/test-snprintf-posix.c (ASSERT): Likewise.
73857         * tests/test-snprintf.c (ASSERT): Likewise.
73858         * tests/test-sprintf-posix.c (ASSERT): Likewise.
73859         * tests/test-stat-time.c (ASSERT): Likewise.
73860         * tests/test-strcasestr.c (ASSERT): Likewise.
73861         * tests/test-strerror.c (ASSERT): Likewise.
73862         * tests/test-striconv.c (ASSERT): Likewise.
73863         * tests/test-striconveh.c (ASSERT): Likewise.
73864         * tests/test-striconveha.c (ASSERT): Likewise.
73865         * tests/test-strsignal.c (ASSERT): Likewise.
73866         * tests/test-strstr.c (ASSERT): Likewise.
73867         * tests/test-strtod.c (ASSERT): Likewise.
73868         * tests/test-trunc1.c (ASSERT): Likewise.
73869         * tests/test-trunc2.c (ASSERT): Likewise.
73870         * tests/test-truncf1.c (ASSERT): Likewise.
73871         * tests/test-truncf2.c (ASSERT): Likewise.
73872         * tests/test-truncl.c (ASSERT): Likewise.
73873         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
73874         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
73875         * tests/test-vasnprintf.c (ASSERT): Likewise.
73876         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
73877         * tests/test-vasprintf.c (ASSERT): Likewise.
73878         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
73879         * tests/test-vprintf-posix.c (ASSERT): Likewise.
73880         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
73881         * tests/test-vsnprintf.c (ASSERT): Likewise.
73882         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
73883         * tests/test-wcwidth.c (ASSERT): Likewise.
73884         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
73885         * tests/test-xprintf-posix.c (ASSERT): Likewise.
73886         * tests/test-xvasprintf.c (ASSERT): Likewise.
73887         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
73888         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
73889         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
73890         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
73891         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
73892         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
73893         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
73894         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
73895         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
73896         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
73897         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
73898         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
73899         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
73900         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
73901         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
73902         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
73903         * tests/unictype/test-block_list.c (ASSERT): Likewise.
73904         * tests/unictype/test-block_of.c (ASSERT): Likewise.
73905         * tests/unictype/test-block_test.c (ASSERT): Likewise.
73906         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
73907         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
73908         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
73909         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
73910         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
73911         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
73912         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
73913         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
73914         * tests/unictype/test-combining.c (ASSERT): Likewise.
73915         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
73916         * tests/unictype/test-digit.c (ASSERT): Likewise.
73917         * tests/unictype/test-mirror.c (ASSERT): Likewise.
73918         * tests/unictype/test-numeric.c (ASSERT): Likewise.
73919         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
73920         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
73921         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
73922         * tests/unictype/test-scripts.c (ASSERT): Likewise.
73923         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
73924         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
73925         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
73926         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
73927         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
73928         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
73929         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
73930         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
73931         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
73932         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
73933         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
73934         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
73935         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
73936         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
73937         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
73938         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
73939         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
73940         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
73941         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
73942         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
73943         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
73944         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
73945         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
73946         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
73947         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
73948         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
73949         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
73950         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
73951         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
73952         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
73953         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
73954         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
73955         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
73956         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
73957         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
73958         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
73959         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
73960         Reported by Eric Blake.
73962 2008-04-11  Bruno Haible  <bruno@clisp.org>
73964         * lib/wchar.in.h: Tweak comment.
73966 2008-04-11  Bruno Haible  <bruno@clisp.org>
73968         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
73969         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
73970         gl_COMMON.
73971         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
73973 2008-04-11  Bruno Haible  <bruno@clisp.org>
73975         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
73977 2008-04-11  Simon Josefsson  <simon@josefsson.org>
73979         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
73980         of attempting to use non-existing /dev/*random.  Based on patch
73981         from Adam Strzelecki <ono@java.pl> in
73982         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
73984 2008-04-08  Bruno Haible  <bruno@clisp.org>
73986         Add tentative support for emx+gcc.
73987         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
73988         * lib/fpurge.c (fpurge): Likewise.
73989         * lib/freadable.c (freadable): Likewise.
73990         * lib/freadahead.c (freadahead): Likewise.
73991         * lib/freading.c (freading): Likewise.
73992         * lib/freadptr.c (freadptr): Likewise.
73993         * lib/freadseek.c (freadptrinc): Likewise.
73994         * lib/fseeko.c (rpl_fseeko): Likewise.
73995         * lib/fseterr.c (fseterr): Likewise.
73996         * lib/fwritable.c (fwritable): Likewise.
73997         * lib/fwriting.c (fwriting): Likewise.
73998         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
74000 2008-04-09  Eric Blake  <ebb9@byu.net>
74002         Avoid some autoconf warnings.
74003         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
74004         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
74005         * m4/afs.m4 (gl_AFS): Likewise.
74006         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
74007         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
74008         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74009         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
74010         (gl_INTEGER_TYPE_SUFFIX): Likewise.
74011         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
74012         (AC_CHECK_DECLS_ONCE): Likewise.
74013         Rename file...
74014         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
74015         gnulib-tool requires autoconf 2.59 or better.
74016         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
74018 2008-04-08  Eric Blake  <ebb9@byu.net>
74020         Use 'git describe --match' if present (added in git 1.5.5).
74021         * build-aux/git-version-gen: Limit result to tags that match 'v*'
74022         if possible.
74024 2008-04-08  Bruno Haible  <bruno@clisp.org>
74026         Add tentative support for OpenServer.
74027         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
74028         _ptr, _cnt.
74029         * lib/fpurge.c (fpurge): Likewise.
74030         * lib/freadable.c (freadable): Likewise.
74031         * lib/freadahead.c (freadahead): Likewise.
74032         * lib/freading.c (freading): Likewise.
74033         * lib/freadptr.c (freadptr): Likewise.
74034         * lib/freadseek.c (freadptrinc): Likewise.
74035         * lib/fseeko.c (rpl_fseeko): Likewise.
74036         * lib/fseterr.c (fseterr): Likewise.
74037         * lib/fwritable.c (fwritable): Likewise.
74038         * lib/fwriting.c (fwriting): Likewise.
74039         Reported by Roger Cornelius <rac@tenzing.org> and
74040         Brian K. White <brian@aljex.com>.
74042 2008-04-06  Jim Meyering  <meyering@redhat.com>
74044         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
74046 2008-04-06  Bruno Haible  <bruno@clisp.org>
74048         Avoid possible error with non-ASCII bytes in UTF-8 locales.
74049         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
74050         * tests/test-printf-posix.sh: Likewise.
74051         * tests/test-vfprintf-posix.sh: Likewise.
74052         * tests/test-vprintf-posix.sh: Likewise.
74053         * tests/test-xprintf-posix.sh: Likewise.
74055 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74057         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
74058         hide error from 'ls', needed on OS/2.
74059         Report by Elbert Pol <elbert.pol@gmail.com>.
74061 2008-04-04  Eric Blake  <ebb9@byu.net>
74063         Make test-fseeko.c failures meaningful.
74064         * tests/test-fseeko.c: Print line number on failure.
74065         * tests/test-fseek.c: Likewise.
74066         Reported by Nelson H. F. Beebe.
74068         Improve strtod bug detection check.
74069         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
74070         required for Solaris 10.
74071         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
74073 2008-04-04  Bruno Haible  <bruno@clisp.org>
74075         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
74076         by m4/setenv.m4.
74078 2008-04-03  Eric Blake  <ebb9@byu.net>
74080         Ensure sane .version contents.
74081         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
74082         version string.
74083         * build-aux/git-version-gen: Improve documentation.
74085         Make GNU make output nicer.
74086         * top/GNUmakefile [!_have-Makefile]: Add dependency on
74087         MAKECMDGOALS to enforce message for all command line targets.  Set
74088         srcdir for use in maint.mk.
74090         Another maintainer tweak.
74091         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
74092         a target that regenerates version.
74094 2008-04-03  Jim Meyering  <meyering@redhat.com>
74096         vc-list-files: don't cause coreutils "make po-check" failure
74097         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
74099 2008-04-03  Eric Blake  <ebb9@byu.net>
74101         Allow VPATH usage of vc-list-files.
74102         * build-aux/vc-list-files (scriptversion): Add timestamp.
74103         (options): Add --help, --version, -C.
74104         (CVS): Support installed cvsu.
74106 2008-04-02  Bruno Haible  <bruno@clisp.org>
74108         Avoid some "statement with no effect" warnings from gcc.
74109         * tests/test-wctype.c (main): Explicitly ignore unused values.
74110         Reported by Jim Meyering.
74112 2008-04-02  Jim Meyering  <meyering@redhat.com>
74114         Avoid some warnings from "gcc -Wshadow".
74115         * tests/test-frexp.c (exp): Define to a different identifier.
74116         * tests/test-frexpl.c (exp): Likewise.
74118 2008-04-03  Jim Meyering  <meyering@redhat.com>
74120         bootstrap: remove dangling *.[ch] symlinks from lib
74121         * build-aux/bootstrap [dangling symlink removal]: Move find's
74122         -depth option to precede all others, to avoid a warning.
74123         Remove *.[ch] files too, and from "$source_base" (usually lib/).
74125 2008-04-02  Bruno Haible  <bruno@clisp.org>
74127         Avoid some warnings from "gcc -Wshadow".
74128         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
74129         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
74130         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
74131         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
74132         Reported by Jim Meyering.
74134 2008-04-01  Bruno Haible  <bruno@clisp.org>
74136         Fix test to work on IRIX 6.5 with cc.
74137         * tests/test-math.c (numeric_equal): New function.
74138         (main): Use it.
74140 2008-04-01  Bruno Haible  <bruno@clisp.org>
74142         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
74144 2008-04-01  Bruno Haible  <bruno@clisp.org>
74146         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
74147         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74148         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
74149         (Depends-on): Remove math.
74151         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
74152         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74153         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
74154         (Depends-on): Remove math.
74156         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
74157         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74158         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
74159         (Depends-on): Remove math.
74160         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
74161         (Depends-on): Remove math.
74163         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
74164         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74165         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
74166         (Depends-on): Remove math.
74167         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
74168         (Depends-on): Remove math.
74170         * tests/test-round1.c: Include nan.h.
74171         (main): Use NaNd instead of NAN.
74172         * modules/round-tests (Files): Add tests/nan.h.
74174         * tests/test-trunc1.c: Include nan.h.
74175         (main): Use NaNd instead of NAN.
74176         * modules/trunc-tests (Files): Add tests/nan.h.
74178         * tests/test-roundf1.c: Include nan.h.
74179         (main): Use NaNf instead of NAN.
74180         * modules/roundf-tests (Files): Add tests/nan.h.
74182         * tests/test-truncf1.c: Include nan.h.
74183         (main): Use NaNf instead of NAN.
74184         * modules/truncf-tests (Files): Add tests/nan.h.
74186         * tests/test-ceilf1.c: Include nan.h.
74187         (main): Use NaNf instead of NAN.
74188         * modules/ceilf-tests (Files): Add tests/nan.h.
74190         * tests/test-floorf1.c: Include nan.h.
74191         (main): Use NaNf instead of NAN.
74192         * modules/floorf-tests (Files): Add tests/nan.h.
74194         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
74195         (main): Use NaNf instead of NAN.
74196         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
74198         * tests/test-isnand.c: Include nan.h instead of <math.h>.
74199         (main): Use NaNd instead of NAN.
74200         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
74202         * tests/test-frexp.c: Include nan.h.
74203         (main): Use NaNd instead of NAN.
74204         * modules/frexp-tests (Files): Add tests/nan.h.
74206         * lib/isnan.c: Don't include <math.h>.
74207         (FUNC): Don't use NAN macro.
74208         * modules/isnand-nolibm (Depends-on): Remove math.
74209         * modules/isnanf-nolibm (Depends-on): Remove math.
74210         * modules/isnanl (Depends-on): Remove math.
74211         * modules/isnanl-nolibm (Depends-on): Remove math.
74213         * tests/nan.h: New file.
74215 2008-04-01  Eric Blake  <ebb9@byu.net>
74217         Fix typos.
74218         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
74219         values to be the right type.
74221         For now, cater to gnulib strtod inaccuracies.
74222         * tests/test-strtod.c (main): Allow 1-ulp error on expected
74223         fractional results.  While not as nice from a QoI perspective, it
74224         is a quicker patch than correctly implementing decimal to binary
74225         rounding.
74227 2008-03-31  Eric Blake  <ebb9@byu.net>
74229         Guarantee a definition of NAN.
74230         * lib/math.in.h (NAN): Define if missing.
74231         * tests/test-math.c (main): Test it.
74232         * doc/posix-headers/math.texi (math.h): Document this.
74233         * lib/isnan.c (rpl_isnand): Use it.
74234         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
74235         * tests/test-floorf1.c (NaN): Likewise.
74236         * tests/test-frexp.c (NaN): Likewise.
74237         * tests/test-isnand.c (NaN): Likewise.
74238         * tests/test-isnanf.c (NaN): Likewise.
74239         * tests/test-round1.c (NaN): Likewise.
74240         * tests/test-roundf1.c (NaN): Likewise.
74241         * tests/test-snprintf-posix.h (NaN): Likewise.
74242         * tests/test-sprintf-posix.h (NaN): Likewise.
74243         * tests/test-trunc1.c (NaN): Likewise.
74244         * tests/test-truncf1.c (NaN): Likewise.
74245         * tests/test-vasnprintf-posix.c (NaN): Likewise.
74246         * tests/test-vasprintf-posix.c (NaN): Likewise.
74247         * modules/isnand-nolibm (Depends-on): Add math.
74248         * modules/isnanf-nolibm (Depends-on): Likewise.
74249         * modules/isnanl (Depends-on): Likewise.
74250         * modules/isnanl-nolibm (Depends-on): Likewise.
74251         * modules/snprintf-posix-tests (Depends-on): Likewise.
74252         * modules/sprintf-posix-tests (Depends-on): Likewise.
74253         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
74254         * modules/vsprintf-posix-tests (Depends-on): Likewise.
74255         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
74256         * modules/vasprintf-posix-tests (Depends-on): Likewise.
74258 2008-03-31  Bruno Haible  <bruno@clisp.org>
74260         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
74261         * doc/posix-functions/strtod.texi: Likewise.
74263 2008-03-31  Bruno Haible  <bruno@clisp.org>
74265         * tests/test-strtod.c (main): Don't use C99 syntax.
74267 2008-03-31  Bruno Haible  <bruno@clisp.org>
74269         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
74270         Reported by Eric Blake.
74272 2008-03-31  Jim Meyering  <meyering@redhat.com>
74274         Don't compare actual signbit return values.
74275         * tests/test-strtod.c (main): Rather, compare only their
74276         zero/non-zero nature.
74278 2008-03-31  Eric Blake  <ebb9@byu.net>
74280         More strtod documentation.
74281         * doc/posix-functions/strtod.texi (strtod): Interpret more test
74282         failures as distinct bugs.
74284 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
74286         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
74287         Problem reported by Erik Benada in
74288         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
74290 2008-03-30  Bruno Haible  <bruno@clisp.org>
74292         * tests/test-strtod.c: Add comments about which assertion fails on which
74293         platform.
74294         * doc/posix-functions/strtod.texi: Add info about many more platforms.
74296 2008-03-30  Eric Blake  <ebb9@byu.net>
74298         Test signbit behavior on zeros.
74299         * tests/test-signbit.c (test_signbitf): Add tests for zero.
74300         (test_signbitd, test_signbitl): Likewise.
74302         More strtod touchups.
74303         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
74304         sign of negative underflow, for now.  Use .5, not .1.
74305         * doc/posix-functions/strtod.texi (strtod): Mention these
74306         limitations.
74307         Reported by Jim Meyering.
74309 2008-03-30  Bruno Haible  <bruno@clisp.org>
74311         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
74312         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
74314 2008-03-30  Bruno Haible  <bruno@clisp.org>
74316         Avoid failure when attempting to return empty iconv results on some
74317         platforms.
74318         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
74319         allocation, don't report ENOMEM when the resulting string is empty.
74321 2008-03-30  Bruno Haible  <bruno@clisp.org>
74323         Fix buffer overrun.
74324         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
74325         Don't consider the width for tmp_length. Check count against tmp_length
74326         before doing the padding. Ensure enough allocation during padding.
74328 2008-03-30  Eric Blake  <ebb9@byu.net>
74330         strtod touchups.
74331         * lib/strtod.c (strtod): Avoid compiler warnings.
74332         Reported by Jim Meyering.
74334 2008-03-30  Bruno Haible  <bruno@clisp.org>
74336         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
74337         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
74338         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
74339         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
74340         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
74341         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
74342         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
74343         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
74345         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
74346         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
74347         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
74348         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
74349         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
74350         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
74351         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
74352         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
74354         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
74355         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
74356         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
74357         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
74358         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
74359         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
74360         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
74361         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
74363         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
74364         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
74366         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
74367         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
74369         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
74370         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
74372         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
74373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
74374         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
74376         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
74377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
74378         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
74380         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
74381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
74382         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
74384         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
74385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
74386         * modules/vasprintf (Depends-on): Add EOVERFLOW.
74388         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
74389         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
74390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
74391         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
74392         (Depends-on): Add EOVERFLOW.
74393         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
74394         (Depends-on): Add EOVERFLOW.
74395         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
74396         (Depends-on): Add EOVERFLOW.
74397         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
74398         (Depends-on): Add EOVERFLOW.
74399         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
74400         (Depends-on): Add EOVERFLOW.
74401         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
74402         (Depends-on): Add EOVERFLOW.
74403         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
74404         (Depends-on): Add EOVERFLOW.
74405         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
74406         (Depends-on): Add EOVERFLOW.
74408         * lib/sprintf.c (EOVERFLOW): Remove fallback.
74409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
74410         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
74412         * lib/snprintf.c (EOVERFLOW): Remove fallback.
74413         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
74414         * modules/snprintf (Depends-on): Add EOVERFLOW.
74416         * lib/poll.c (EOVERFLOW): Remove fallback.
74417         * modules/poll (Depends-on): Add EOVERFLOW.
74419         * lib/getugroups.c (EOVERFLOW): Remove fallback.
74420         * modules/getugroups (Depends-on): Add EOVERFLOW.
74422         * lib/getdelim.c (EOVERFLOW): Remove fallback.
74423         * modules/getdelim (Depends-on): Add EOVERFLOW.
74425         * lib/ftell.c (EOVERFLOW): Remove fallback.
74426         * modules/ftell (Depends-on): Add EOVERFLOW.
74428         * lib/fprintf.c (EOVERFLOW): Remove fallback.
74429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
74430         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
74432         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
74434         * modules/EOVERFLOW-tests: New file.
74435         * tests/test-EOVERFLOW.c: New file.
74437         * modules/EOVERFLOW: New file.
74438         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
74440 2008-03-30  Bruno Haible  <bruno@clisp.org>
74442         Fix bug introduced on 2007-06-10.
74443         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
74444         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
74446 2008-03-30  Bruno Haible  <bruno@clisp.org>
74448         Improve freadseek's efficiency after ungetc.
74449         * lib/freadseek.c: Include freadahead.h.
74450         (freadptrinc): New function, extracted from freadseek.
74451         (freadseek): Use it in a loop. Use freadahead to determine the number
74452         of loop iterations.
74453         * modules/freadseek (Depends-on): Add freadahead.
74454         (configure.ac): Require AC_C_INLINE.
74456 2008-03-30  Bruno Haible  <bruno@clisp.org>
74458         * lib/freadseek.c (freadseek): Don't ignore the return value of
74459         freadptr.
74461 2008-03-29  Eric Blake  <ebb9@byu.net>
74463         Add hex float support.
74464         * modules/strtod (Depends-on): Add c-ctype.
74465         (Link): Mention POW_LIB.
74466         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
74467         whitespace between 'e' and exponent.
74468         * tests/test-strtod.c (main): Enable hex float tests.
74469         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
74470         now provides.
74472         Document various strtod bugs, with some fixes.
74473         * doc/posix-functions/strtod.texi (strtod): Document bugs with
74474         "-0x", "inf", "nan", and hex constants.
74475         * doc/posix-functions/atof.texi (atof): Likewise.
74476         * modules/stdlib (Makefile.am): Support strtod.
74477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
74478         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
74479         detect additional strtod bugs.
74480         * lib/stdlib.in.h (rpl_strtod): Add declarations.
74481         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
74482         bool where appropriate.  Parse 'inf' and 'nan'.
74483         * tests/test-strtod.c: New file.
74484         * modules/strtod (Depends-on): Add stdbool, stdlib.
74485         (configure.ac): Turn on module indicator.
74486         * modules/strtod-tests: New module.
74488 2008-03-29  Eric Blake  <ebb9@byu.net>
74490         Fix ftell on mingw.
74491         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
74492         * modules/ftell-tests (Depends-on): Add binary-io.
74493         * modules/ftello-tests (Depends-on): Likewise.
74494         * tests/test-ftell.c (main): Enhance test to cover behavior after
74495         ungetc.  Enforce binary mode.
74496         * tests/test-ftello.c (main): Likewise.
74498         Pass test-freadseek on cygwin.
74499         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
74500         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
74501         ungetc buffer.
74503         * tests/test-fflush2.c (main): Fix typo.
74505 2008-03-29  Bruno Haible  <bruno@clisp.org>
74507         * tests/test-fflush2.c (main): Temporarily disable the contents of
74508         this test.
74509         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
74510         Reported by Eric Blake.
74512 2008-03-28  Simon Josefsson  <simon@josefsson.org>
74514         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
74515         (GC_SHA224_DIGEST_SIZE): Add.
74517         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
74518         (gc_hash_digest_length): Likewise.
74519         (gc_hash_buffer): Likewise.
74521 2008-03-25  Bruno Haible  <bruno@clisp.org>
74523         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
74524         detail which gettext release to use.
74525         Reported by Simon Josefsson.
74527 2008-03-26  Jim Meyering  <meyering@redhat.com>
74529         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
74530         * modules/gnumakefile (clean-GNUmakefile): Also, use
74531         test ... && ... || : syntax rather than if-then ... fi.
74533         gnumakefile: Don't double-quote-expand $(VPATH) value.
74534         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
74536 2008-03-24  Eric Blake  <ebb9@byu.net>
74538         Alter GNUmakefile to install into top directory.
74539         * modules/maintainer-makefile: Split, and add dependency...
74540         * modules/gnumakefile: to this new module.
74541         * build-aux/GNUmakefile: Move...
74542         * top/GNUmakefile: ...here.
74543         * build-aux/maint.mk: Move...
74544         * top/maint.mk: ...here.
74545         * MODULES.html.sh (Support for maintaining...): Document new
74546         module.
74548 2008-03-23  Bruno Haible  <bruno@clisp.org>
74550         * gnulib-tool: New options --vc-files, --no-vc-files.
74551         (func_usage): Document them.
74552         (vc_files): New variable.
74553         (func_import): Consider vc_files.
74554         (func_create_testdir): Set vc_files to empty.
74555         Suggested by Jim Meyering and Karl Berry.
74557 2008-03-23  Bruno Haible  <bruno@clisp.org>
74559         Fix regex compilation error on HP-UX 11.
74560         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
74561         * modules/regex (Files): Add m4/mbstate_t.m4.
74562         Reported by Ton Voon <ton.voon@altinity.com>.
74564 2008-03-23  Bruno Haible  <bruno@clisp.org>
74566         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
74568 2008-03-23  Eric Blake  <ebb9@byu.net>
74569             Bruno Haible  <bruno@clisp.org>
74571         Install files from top/ in the destination directory.
74572         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
74573         augmentation also for the files from top/.
74574         (func_import, func_create_testdir): Rewrite file names:
74575         top/filename -> filename.
74577 2008-03-23  Bruno Haible  <bruno@clisp.org>
74579         Tweak "gnulib --version" output.
74580         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
74582 2008-03-23  Bruno Haible  <bruno@clisp.org>
74584         Tweak "gnulib --version" output.
74585         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
74586         rather than contents of ChangeLog, when possible.
74588 2008-03-21  Eric Blake  <ebb9@byu.net>
74590         More --version tweaks.
74591         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
74592         date of last ChangeLog entry.
74594 2008-03-21  Jim Meyering  <meyering@redhat.com>
74596         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
74598 2008-03-20  Eric Blake  <ebb9@byu.net>
74600         VPATH fix.
74601         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
74603 2008-03-20  Simon Josefsson  <simon@josefsson.org>
74605         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
74606         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
74608 2008-03-20  Eric Blake  <ebb9@byu.net>
74610         Sync GNUmakefile with coreutils.
74611         * build-aux/GNUmakefile (have-Makefile): Rename...
74612         (_have-Makefile): ...to this, for namespace consideration.
74613         (GNUmakefile.cfg): Include, if present.
74614         (_autoreconf): Define a default.
74615         (_is-dist-target): New rule for rebuilds to pick up intra-release
74616         version.
74617         (maint-cfg.mk): Rename...
74618         (cfg.mk): ...to this.
74620 2008-03-18  Jim Meyering  <meyering@redhat.com>
74622         New script and module: mktempd
74623         * MODULES.html.sh (maint+release support): Add mktempd.
74624         * build-aux/mktempd: New file.
74625         * modules/mktempd: New file.
74627 2008-03-15  Jim Meyering  <meyering@redhat.com>
74629         Undo last change.
74630         * lib/sha1.c, lib/md5.c: 63 != ~63.
74631         Reported by Andreas Schwab.
74633         sha1.c, md5.c: Hoist a redundant expression.
74634         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
74635         "ctx->buflen" only once, before calling *_process_block.
74636         * lib/md5.c (md5_process_bytes): Likewise.
74638 2008-03-14  Eric Blake  <ebb9@byu.net>
74640         Bump copyright year in files generated by gnulib-tool.
74641         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
74642         gnulib-tool, rather than hard-coding it.
74644         Fix 'gnulib-tool --version' output to work with git.
74645         * gnulib-tool (func_gnulib_dir): New function, extracted from...
74646         (startup): ...here.
74647         (func_version): Use it to invoke git-version-gen, rather than
74648         relying on CVS keyword expansion.  Modernize wording.
74649         (cvsdatestamp, last_checkin_date, version): Kill unused
74650         variables.
74652 2008-03-12  Jim Meyering  <meyering@redhat.com>
74654         Recognize optional cast of the argument to free.
74655         * build-aux/useless-if-before-free: Update regexps.
74657         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
74659 2008-03-11  Bruno Haible  <bruno@clisp.org>
74661         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
74662         by a single package.
74663         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
74664         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
74665         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
74666         Reported by Sam Steingold <sds@gnu.org>.
74668 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74670         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
74671         repositories.
74673 2008-03-11  Bruno Haible  <bruno@clisp.org>
74675         Avoid conflicts between local macro definitions.
74676         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74677         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
74679 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
74680             Bruno Haible  <bruno@clisp.org>
74682         Make va_copy work with some version of xlc on AIX 5.1.
74683         * lib/stdarg.in.h: New file.
74684         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
74685         On AIX, use a <stdarg.h> file substitute.
74686         * modules/stdarg (Files): Add lib/stdarg.in.h.
74687         (Depends-on): Add include_next.
74688         (Makefile.am): Build a stdarg.h substitute if requested.
74689         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
74691 2008-03-10  Bruno Haible  <bruno@clisp.org>
74693         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
74694         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74695         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
74697 2008-03-10  Bruno Haible  <bruno@clisp.org>
74699         * modules/stdlib (Depends-on): Add include_next, remove
74700         absolute-header.
74702 2008-03-09  Bruno Haible  <bruno@clisp.org>
74704         * lib/freadahead.h (freadahead): Document more precisely.
74705         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
74706         the sum of both buffer sizes.
74707         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
74708         * NEWS: Document the change.
74710 2008-03-09  Bruno Haible  <bruno@clisp.org>
74712         Extend freadptr to return also the buffer size.
74713         * lib/freadptr.h (freadptr): Add sizep argument.
74714         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
74715         (freadptr): Add sizep argument. Determine buffer size like freadahead
74716         does.
74717         * tests/test-freadptr.c: Don't include freadahead.h.
74718         (main): Adapt for new calling convention of freadptr.
74719         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
74720         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
74721         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
74722         tests/test-freadptr2.sh.
74723         (Depends): Remove freadahead.
74724         (TESTS): Add test-freadptr2.sh.
74725         (check_PROGRAMS): Add test-freadptr2.
74727 2008-03-09  Bruno Haible  <bruno@clisp.org>
74729         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
74730         Report and solution by Simon Josefsson.
74732 2008-03-06  Bruno Haible  <bruno@clisp.org>
74734         Make fflush after ungetc work on BSD platforms.
74735         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
74736         * tests/test-fflush2.c: New file.
74737         * tests/test-fflush2.sh: New file.
74738         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
74739         tests/test-fflush2.c.
74740         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
74741         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
74743 2008-03-06  Eric Blake  <ebb9@byu.net>
74745         Likewise for ftello.
74746         * modules/ftello (Dependencies): Add extensions.
74747         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
74749 2008-03-06  Bruno Haible  <bruno@clisp.org>
74751         * modules/fseeko (Dependencies): Add extensions.
74752         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
74753         Needed on glibc systems.
74755 2008-03-06  Bruno Haible  <bruno@clisp.org>
74757         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
74758         email address.
74759         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74761 2008-03-06  Bruno Haible  <bruno@clisp.org>
74763         * users.txt: Add libgnupdf.
74765 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
74767         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
74768         (Header File Substitutes, Function Substitutes,
74769         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
74770         (Build robot for gnulib): Fix typo.
74772 2008-03-06  Bruno Haible  <bruno@clisp.org>
74774         * doc/gnulib-tool.texi (VCS Issues): Small updates.
74775         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74777 2008-03-06  Bruno Haible  <bruno@clisp.org>
74779         * doc/func.texi: New file, extracted from doc/gnulib.texi.
74780         * doc/gnulib.texi: Include it.
74782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74784         * modules/func (License): Change license to unlimited; there was
74785         no LGPL parts in the module anyway.
74787 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74789         * modules/__func__: Renamed to modules/func.
74790         * modules/__func__-tests: Renamed to modules/func-tests.
74791         * tests/test-__func__.c: Renamed to tests/test-func.c.
74792         * m4/__func__.m4: Renamed to m4/func.m4.
74793         * doc/gnulib.texi (__func__): Section renamed to func.
74794         Suggested by Eric Blake <ebb9@byu.net>.
74796 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74798         * doc/gnulib.texi (__func__): Use C99 terminology when talking
74799         about __func__.  Make example self-contained.  Suggested by Eric
74800         Blake <ebb9@byu.net>.
74802         * tests/test-__func__.c (main): Avoid extraneous () around __func.
74803         Suggested by Eric Blake <ebb9@byu.net>.
74805 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74807         * modules/__func__: New file.
74808         * modules/__func__-tests: New file.
74809         * tests/test-__func__.c: New file.
74810         * m4/__func__.m4: New file.
74811         * doc/gnulib.texi (__func__): Document __func__ module.
74813 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74815         * modules/byteswap (License): Re-license as LGPLv2+.
74817 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74819         * doc/Makefile: Add pdf target.
74821 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74823         * modules/inline (License): Use 'unlimited', since there are only
74824         *.m4 files in this module.
74826 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
74827             Bruno Haible  <bruno@clisp.org>
74829         Add support for HP C 7.1 on OpenVMS 8.3.
74830         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
74832 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
74834         Update VMS specifics.
74835         * lib/getopt.c [VMS]: Remove include of unixlib.h.
74837 2008-03-02  Jim Meyering  <meyering@redhat.com>
74839         Remove the last dependency on the "free" module.
74840         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
74841         Reported by Bob Proulx.
74843         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
74845         Remove useless "if" tests before free.  Deprecate "free" module.
74846         * doc/posix-functions/free.texi: Mention that this
74847         module is no longer useful.
74848         * modules/free (Notice): Say this module is obsolete.
74849         * modules/readutmp (Depends-on): Remove free.
74850         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
74851         * lib/putenv.c (putenv): Likewise.
74852         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
74853         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
74854         * tests/test-c-strcasestr.c (main): Likewise.
74855         * tests/test-c-strstr.c (main): Likewise.
74856         * tests/test-mbscasestr1.c (main): Likewise.
74857         * tests/test-mbscasestr2.c (main): Likewise.
74858         * tests/test-mbsstr1.c (main): Likewise.
74859         * tests/test-mbsstr2.c (main): Likewise.
74860         * tests/test-memmem.c (main): Likewise.
74861         * tests/test-strcasestr.c (main): Likewise.
74862         * tests/test-striconv.c (main): Likewise.
74863         * tests/test-striconveh.c (main): Likewise.
74864         * tests/test-striconveha.c (main): Likewise.
74865         * tests/test-strstr.c (main): Likewise.
74867         * build-aux/git-version-gen: Adjust a comment and the Usage string.
74869         bootstrap: sync from coreutils again
74870         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
74872 2008-03-01  Jim Meyering  <meyering@redhat.com>
74874         bootstrap: sync from coreutils
74875         * build-aux/bootstrap (update_po_files): Copy a .po file into place
74876         also when the target doesn't exist.
74878 2008-03-01  Eric Blake  <ebb9@byu.net>
74880         Fix bugs in last patch.
74881         * lib/memchr2.c (memchr2): Fix typo.
74882         * tests/test-memchr2.c: Test previous bug, and don't use GNU
74883         extension.
74884         Reported by Bruce Korb.
74886         New module 'memchr2'.
74887         * modules/memchr2: New file.
74888         * modules/memchr2-tests: Likewise.
74889         * lib/memchr2.h: Likewise.
74890         * lib/memchr2.c: Likewise, based on memchr.c.
74891         * tests/test-memchr2.c: New test.
74892         * MODULES.html.sh (String handling): Add memchr2.
74894 2008-02-29  Bruno Haible  <bruno@clisp.org>
74896         * modules/freadseek-tests: New file.
74897         * tests/test-freadseek.sh: New file.
74898         * tests/test-freadseek.c: New file.
74900         New module 'freadseek'.
74901         * modules/freadseek: New file.
74902         * lib/freadseek.h: New file.
74903         * lib/freadseek.c: New file.
74904         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
74906 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
74908         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
74909         wydawca.
74911         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
74912         program_invocation_name and program_invocation_short_name are
74913         present.
74915 2008-02-28  Bruno Haible  <bruno@clisp.org>
74917         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
74918         * tests/test-freadptr.sh: Also test non-seekable stdin.
74920 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
74922         * build-aux/bootstrap (source_base, m4_base)
74923         (doc_base, tests_base): New variables.
74924         (gnulib_tool_options): Do not hardcode base directories, use
74925         the above variables instead.
74927 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
74929         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
74931 2008-02-28  Bruno Haible  <bruno@clisp.org>
74933         * modules/freadptr-tests: New file.
74934         * tests/test-freadptr.sh: New file.
74935         * tests/test-freadptr.c: New file.
74937         New module 'freadptr'.
74938         * modules/freadptr: New file.
74939         * lib/freadptr.h: New file.
74940         * lib/freadptr.c: New file.
74941         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
74943 2008-02-26  Karl Berry  <karl@freefriends.org>
74945         Sync from Libtool:
74946         * libltdl/argz.c (argz_add, argz_count): New functions.
74947         * libltdl/argz.in.h: Declare them.
74948         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
74950 2008-02-22  Bruno Haible  <bruno@clisp.org>
74952         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
74953         is a pointer type.  Needed for HP-UX 10.
74954         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
74955         * doc/posix-functions/gmtime_r.texi: Likewise.
74956         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
74958 2008-02-24  Bruno Haible  <bruno@clisp.org>
74960         * modules/environ-tests: New file.
74961         * tests/test-environ.c: New file.
74963         New module 'environ'.
74964         * modules/environ: New file.
74965         * lib/unistd.in.h (environ): New declaration.
74966         * m4/environ.m4: New file.
74967         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
74968         after use.
74969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
74970         HAVE_DECL_ENVIRON.
74971         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
74972         HAVE_DECL_ENVIRON.
74973         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
74974         wrong claim that 'environ' is missing on some systems.
74975         * modules/execute (Depends-on): Add environ.
74976         * lib/execute.c (environ): Remove fallback declaration.
74977         * modules/pipe (Depends-on): Add environ.
74978         * lib/pipe.c (environ): Remove fallback declaration.
74979         * modules/setenv (Depends-on): Add environ.
74980         * lib/setenv.c (environ): Remove fallback declaration.
74981         * modules/unsetenv (Depends-on): Add environ.
74982         * lib/unsetenv.c (environ): Remove fallback declaration.
74983         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
74984         m4/environ.m4.
74985         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
74986         (gl_PREREQ_UNSETENV): Likewise.
74988 2008-02-24  Bruno Haible  <bruno@clisp.org>
74990         * doc/posix-functions/environ.texi: Document the MacOS X problem.
74992 2008-02-20  Bob Proulx  <bob@proulx.com>
74994         Enable use of older two part flavor 'git describe'.
74995         * build-aux/git-version-gen: If using the older two part flavor of
74996         git version then recreate the third part now present in the
74997         newer three part flavor of git describe.
74999 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
75001         * lib/fts.c (fts_build): Typo correction to comment.
75003 2008-02-17  Bruno Haible  <bruno@clisp.org>
75005         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
75006         generating no-op conflicts.
75008 2008-02-17  Bruno Haible  <bruno@clisp.org>
75010         Speed up by 10%.
75011         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
75012         result_entries, rather than an index-based loop.
75014 2008-02-17  Bruno Haible  <bruno@clisp.org>
75016         Speed up by 25%.
75017         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
75018         'hashcode_cached'.
75019         (entry_create): New function.
75020         (entry_hashcode): Use the cached hashcode if possible.
75021         (read_changelog_file, try_split_merged_entry): Use entry_create.
75023 2008-02-17  Bruno Haible  <bruno@clisp.org>
75025         Speed up from O(n^2) to O(n) for long ChangeLog files.
75026         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
75027         (read_changelog_file): Change implementation of entries_reversed list
75028         to rbtreehash.
75029         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
75031 2008-02-17  Bruno Haible  <bruno@clisp.org>
75033         New option --split-merged-entry.
75034         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
75035         (find_paragraph_end, try_split_merged_entry): New functions.
75036         (long_options): Add option --split-merged-entry.
75037         (usage): Document option --split-merged-entry.
75038         (main): Implement option --split-merged-entry.
75039         Reported by Eric Blake.
75041 2008-02-17  Bruno Haible  <bruno@clisp.org>
75043         * lib/git-merge-changelog.c: Include c-strstr.h.
75044         (main): Support the "git pull --rebase" situation.
75045         * modules/git-merge-changelog (Depends-on): Add c-strstr.
75046         Reported by Eric Blake.
75048 2008-02-16  Eric Blake  <ebb9@byu.net>
75050         Avoid doubling \ in common case of "c-maybe" quoting style.
75051         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
75052         eliding outer quotes.
75053         * lib/quotearg.h: Document this.
75054         * tests/test-quotearg.c (result_strings, inputs, results_g)
75055         (flag_results, locale_results): Test it by adding a new string to
75056         each test group.
75057         (compare_strings): Test new string.
75059 2008-02-13  Eric Blake  <ebb9@byu.net>
75061         Avoid trigraph quoting in default output.
75062         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
75063         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
75064         unless explicitly requested.
75065         * tests/test-quotearg.c (flag_results, main): Add additional tests.
75067 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
75069         Don't rely on signed integer overflowing to negative value.
75070         * lib/getugroups.c (getugroups): Include <limits.h>.
75071         Instead, compare against INT_MAX, and increment only if the test passes.
75073 2008-02-13  Jim Meyering  <meyering@redhat.com>
75074         and Eric Blake  <ebb9@byu.net>
75076         Avoid shadowing warning and compile errors on Linux.
75077         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
75078         forwarding macros on Linux.
75079         (dcgettext): Define a stub, for Linux.
75080         (results_g, main): Avoid warnings.
75082 2008-02-12  Eric Blake  <ebb9@byu.net>
75084         Silence warning in last patch.
75085         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
75087         Quotearg part 4: add tests, fix c-maybe colon quoting.
75088         * lib/quotearg.h: Improve documentation.
75089         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
75090         escapes when adding outer quotes.  When quoting trigraphs, use
75091         valid C notation.  When quoting NUL, omit extra characters if next
75092         character is not digit.  Alter prototype.
75093         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
75094         callers.
75095         * modules/quotearg-tests: New module.
75096         * tests/test-quotearg.c: New test.
75098 2008-02-07  Eric Blake  <ebb9@byu.net>
75100         Quotearg part 3: add flag to control outer quote elision.
75101         * lib/quotearg.h (c_maybe_quoting_style): New style.
75102         (enum quoting_flags): Better documentation of flags.
75103         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
75104         c-maybe style.
75105         (quotearg_buffer_restyled): Handle new flag to elide outer
75106         quotes.
75108         Quotearg part 2: add flag that can control NUL elision.
75109         * lib/quotearg.h (set_quoting_flags): New prototype.
75110         * lib/quotearg.c (struct quoting_options): Add flag field.
75111         (set_quoting_flags): New function.
75112         (quotearg_buffer_restyled): Add flags parameter.
75113         (quotearg_alloc_mem): Set the flag if length cannot be returned.
75114         (quotearg_n_options): Set the flag, since length cannot be
75115         returned.
75116         (quoting_options_from_style): Default flags correctly.
75118         Quotearg part 1: more wrappers, restore quotearg_char state.
75119         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
75120         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
75121         (quotearg_colon_mem): New wrappers.
75122         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
75123         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
75124         functions.
75125         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
75126         (quotearg_colon_mem): New functions.
75128 2008-02-11  Bruno Haible  <bruno@clisp.org>
75130         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
75131         library in the current directory: it does not work with parallel make.
75132         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75134 2008-02-11  Bruno Haible  <bruno@clisp.org>
75136         * .gitattributes: New file.
75138 2008-02-11  Jim Meyering  <meyering@redhat.com>
75140         useless-if-before-free: Fix reversed exit values.
75141         * build-aux/useless-if-before-free: Use correct values
75142         for EXIT_MATCH and EXIT_NO_MATCH.
75144         * build-aux/useless-if-before-free: Close stdout carefully.
75146 2008-02-10  Bruno Haible  <bruno@clisp.org>
75148         New module 'git-merge-changelog'.
75149         * modules/git-merge-changelog: New file.
75150         * lib/git-merge-changelog.c: New file.
75152 2008-02-10  Jim Meyering  <meyering@redhat.com>
75154         useless-if-before-free: New option: --list (-l).
75156         useless-if-before-free: Don't exit immediately upon open failure.
75157         * build-aux/useless-if-before-free: Exit 2 for errors.
75158         Upon failure to open a file, don't exit immediately.
75159         Rather, just warn and continue with any remaining files.
75161 2008-02-10  Bruno Haible  <bruno@clisp.org>
75163         New abstract list operation 'node_set_value'.
75164         * lib/gl_list.h (gl_list_node_set_value): New function.
75165         (struct gl_list_implementation): New field node_set_value.
75166         * lib/gl_list.c (gl_list_node_set_value): New function.
75167         * lib/gl_array_list.c (gl_array_node_set_value): New function.
75168         (gl_array_list_implementation): Update.
75169         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
75170         (gl_carray_list_implementation): Update.
75171         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
75172         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75173         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75174         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
75175         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75176         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75177         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75178         Update.
75179         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75180         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
75181         (gl_sublist_list_implementation): Update.
75183 2008-02-10  Bruno Haible  <bruno@clisp.org>
75185         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
75186         Needed when ELEMENT is #defined to 'some_type *'.
75188 2008-02-10  Jim Meyering  <meyering@redhat.com>
75190         New script and module: useless-if-before-free
75191         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
75192         * build-aux/useless-if-before-free: New file.
75193         * modules/useless-if-before-free: New file.
75195         * build-aux/gitlog-to-changelog: Use committer date, not author date.
75197         xstrtol_error: Fix typo.
75198         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
75199         s/exit_failure/exit_status/.
75201 2008-02-09  Jim Meyering  <meyering@redhat.com>
75203         New script and module: gitlog-to-changelog
75204         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
75205         * modules/gitlog-to-changelog: New file.
75206         * build-aux/gitlog-to-changelog: New file.
75208 2008-02-08  Jim Meyering  <meyering@redhat.com>
75210         Avoid two "parameter unused" warnings.
75211         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
75212         Mark "st" as used.
75214         Use "git COMMAND", not "git-COMMAND".
75215         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
75216         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
75217         * build-aux/git-version-gen: Use "git status", not "git-status".
75219 2008-02-07  Bruno Haible  <bruno@clisp.org>
75221         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
75222         Avoids a crash on Windows Vista.
75223         Reported by Adam Strzelecki <ono@java.pl> via
75224         Simon Josefsson <simon@josefsson.org>.
75226 2008-02-06  Bruno Haible  <bruno@clisp.org>
75228         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
75229         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
75230         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
75231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
75232         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75234         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
75235         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
75236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75237         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75240         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75242         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75243         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
75244         left-adjust flag.
75245         * tests/test-snprintf-posix.h (test_function): Likewise.
75246         * tests/test-sprintf-posix.h (test_function): Likewise.
75247         * tests/test-vasprintf-posix.c (test_function): Likewise.
75248         * doc/posix-functions/fprintf.texi: Update.
75249         * doc/posix-functions/printf.texi: Update.
75250         * doc/posix-functions/snprintf.texi: Update.
75251         * doc/posix-functions/sprintf.texi: Update.
75252         * doc/posix-functions/vfprintf.texi: Update.
75253         * doc/posix-functions/vprintf.texi: Update.
75254         * doc/posix-functions/vsnprintf.texi: Update.
75255         * doc/posix-functions/vsprintf.texi: Update.
75256         Reported by Peter Fales <psfales@alcatel-lucent.com>.
75258 2008-02-06  Bruno Haible  <bruno@clisp.org>
75260         Fix bug introduced on 2008-01-26.
75261         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
75263 2008-02-06  Bruno Haible  <bruno@clisp.org>
75265         Fix bug introduced on 2007-06-10.
75266         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
75267         !NEED_PRINTF_FLAG_ZERO.
75269 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
75271         getloadavg: use libperfstat on AIX5
75272         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
75274 2008-02-03  Bruno Haible  <bruno@clisp.org>
75276         * lib/diffseq.h: Add comments about required #includes.
75277         Reported by Michael Biggs <gnulib@doubleplum.net>.
75279 2008-02-01  Bruno Haible  <bruno@clisp.org>
75281         * users.txt: Add gnuit.
75283 2008-01-31  Bruno Haible  <bruno@clisp.org>
75285         * lib/md4.c (set_uint32): Mark as inline.
75286         * lib/md5.c (set_uint32): Likewise.
75287         * lib/sha1.c (set_uint32): Likewise.
75288         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
75289         * m4/md5.m4 (gl_MD5): Likewise.
75290         * m4/sha1.m4 (gl_SHA1): Likewise.
75292 2008-01-31  Jim Meyering  <meyering@redhat.com>
75294         Use "sizeof VAR", rather than a literal "4".
75295         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
75296         * lib/md4.c (md4_read_ctx): Likewise.
75297         * lib/sha1.c (sha1_read_ctx): Likewise.
75299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75301         * tests/test-sha1.c: New file, based on test-md5.c.
75303         * modules/crypto/sha1-tests: New file.
75305 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75307         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
75309 2008-01-31  Jim Meyering  <meyering@redhat.com>
75311         Prefer "sizeof v" over the equivalent "4".
75312         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
75313         * lib/md5.c (set_uint32): Likewise.
75314         * lib/sha1.c (set_uint32): Likewise.
75316 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75318         * lib/sha1.c (set_uint32): Mark function as static.
75320 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75322         md2: clarify comments to say that alignment is not required.
75323         * lib/md2.h: Remove warning about alignment in comment.
75324         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
75325         never been required.
75327 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75329         md4: adapt alignment constraint fix from sha1.
75330         * lib/md4.c (set_uint32): New function, from sha1.c
75331         (md4_read_ctx): Use it.
75332         (md4_finish_ctx): Doc fix.
75333         * lib/md4.h: Doc fix.
75335 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75337         md5: adapt alignment constraint fix from sha1.
75338         * lib/md5.c (set_uint32): New function, from sha1.c
75339         (md5_read_ctx): Use it.
75340         (md5_finish_ctx): Doc fix.
75341         * lib/md5.h: Doc fix.
75343 2008-01-30  Peter Palfrader  <weasel@debian.org>
75345         sha1: remove the result buffer alignment constraint
75346         * lib/sha1.c (set_uint32): New function.
75347         (sha1_read_ctx): Rewrite to remove the result buffer alignment
75348         constraint.
75349         (sha1_finish_ctx): Remove comment warning about alignment constraint.
75350         * lib/sha1.h: Likewise.
75352 2008-01-30  Andreas Schwab  <schwab@suse.de>
75353             Bruno Haible  <bruno@clisp.org>
75355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
75356         correct definition of LDBL_MIN_EXP.
75358 2008-01-30  Karl Berry  <karl@gnu.org>
75360         * config/srclist-update: try to preserve x bit on updates.
75361         * config/srclistvars.sh: update for karl.
75363 2008-01-29  Jim Meyering  <meyering@redhat.com>
75365         vasnprintf.c: Avoid warning about unused label
75366         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
75367         "overflow" label definition and associated code with the
75368         same cpp condition that guards the sole use of that label.
75370 2008-01-26  Bruno Haible  <bruno@clisp.org>
75372         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
75373         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
75374         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
75375         * lib/isnanl-nolibm.h (isnanl): Likewise.
75376         Reported by Paul Eggert <eggert@cs.ucla.edu>.
75378 2008-01-26  Bruno Haible  <bruno@clisp.org>
75380         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
75381         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
75383 2008-01-26  Bruno Haible  <bruno@clisp.org>
75385         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
75386         GCC >= 4.0 built-in.
75387         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
75389 2008-01-26  Bruno Haible  <bruno@clisp.org>
75391         Rename isnan, applicable to 'double' only, to isnand.
75392         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
75393         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
75394         (configure.ac): Update.
75395         (Include): Replace "isnan.h" with "isnand.h".
75396         * m4/isnand.m4: Renamed from m4/isnan.m4.
75397         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
75398         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
75399         instead of isnan.c.
75400         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
75401         instead of HAVE_ISNAN_IN_LIBC.
75402         (isnand): Renamed from isnan.
75403         * lib/isnand.c: New file.
75404         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
75405         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
75406         (Makefile.am): Update.
75407         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
75408         Include isnand.h instead of isnan.h.
75409         (main): Test isnand instead of isnan.
75410         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
75411         isnan-nolibm.
75412         * modules/frexp (Depends-on): Likewise.
75413         * modules/frexp-tests (Depends-on): Likewise.
75414         * modules/frexp-nolibm (Depends-on): Likewise.
75415         * modules/frexp-nolibm-tests (Depends-on): Likewise.
75416         * modules/isfinite (Depends-on): Likewise.
75417         * modules/round-tests (Depends-on): Likewise.
75418         * modules/signbit (Depends-on): Likewise.
75419         * modules/signbit-tests (Depends-on): Likewise.
75420         * modules/snprintf-posix (Depends-on): Likewise.
75421         * modules/sprintf-posix (Depends-on): Likewise.
75422         * modules/trunc-tests (Depends-on): Likewise.
75423         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75424         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75425         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75426         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75427         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75428         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75429         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75430         * modules/vasnprintf-posix (Depends-on): Likewise.
75431         * modules/vasprintf-posix (Depends-on): Likewise.
75432         * modules/vfprintf-posix (Depends-on): Likewise.
75433         * modules/vsnprintf-posix (Depends-on): Likewise.
75434         * modules/vsprintf-posix (Depends-on): Likewise.
75435         * lib/frexp.c: Include isnand.h instead of isnan.h.
75436         (ISNAN): Set to isnand instead of isnan.
75437         * lib/isfinite.c: Include isnand.h instead of isnan.h.
75438         (gl_isfinited): Use isnand instead of isnan.
75439         * lib/signbitd.c: Include isnand.h instead of isnan.h.
75440         (gl_signbitd): Use isnand instead of isnan.
75441         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
75442         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
75443         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
75444         (main): Use isnand instead of isnan.
75445         * tests/test-round1.c: Include isnand.h.
75446         (main): Use isnand instead of isnan.
75447         * tests/test-round2.c: Include isnand.h instead of isnan.h.
75448         (ISNAN): Set to isnand instead of isnan.
75449         * tests/test-trunc1.c: Include isnand.h.
75450         (main): Use isnand instead of isnan.
75451         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
75452         (equal): Use isnand instead of isnan.
75453         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
75454         isnand-nolibm.
75455         * NEWS: Mention the change.
75457 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75458             Bruno Haible  <bruno@clisp.org>
75460         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
75461         the GCC builtins for signbits are present and set
75462         REPLACE_SIGNBIT_USING_GCC if so.
75463         * lib/math.in.h (signbit): Define using GCC builtins if
75464         REPLACE_SIGNBIT_USING_GCC is set.
75465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
75466         REPLACE_SIGNBIT_USING_GCC.
75467         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
75469 2008-01-25  Jim Meyering  <meyering@redhat.com>
75471         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
75472         * lib/poll.c: Include <config.h>, not "config.h".
75473         * tests/test-getaddrinfo.c: Likewise.
75475 2008-01-25  Simon Josefsson  <simon@josefsson.org>
75477         * modules/sockets-tests: New file.
75479 2008-01-24  Simon Josefsson  <simon@josefsson.org>
75481         * modules/sockets: New module, can be used to call WSA_Startup and
75482         WSA_Cleanup when needed.
75484         * lib/sockets.h, lib/sockets.c: New files.
75486         * m4/sockets.m4: New file.
75488         * tests/test-sockets.c: New file.
75490 2008-01-19  Bruno Haible  <bruno@clisp.org>
75492         * doc/posix-headers: Renamed from doc/headers.
75493         * doc/posix-functions: Renamed from doc/functions.
75494         * doc/gnulib.texi: Update.
75496 2008-01-19  Bruno Haible  <bruno@clisp.org>
75498         * doc/glibc-functions/strcasestr.texi: Include contents of
75499         doc/functions/strcasestr.texi, fixing the list of platforms.
75500         * doc/functions/strcasestr.texi: Remove file.
75502 2008-01-19  Bruno Haible  <bruno@clisp.org>
75504         * doc/glibc-functions/memmem.texi: Include contents of
75505         doc/functions/memmem.texi.
75506         * doc/functions/memmem.texi: Remove file.
75508 2008-01-18  Bruno Haible  <bruno@clisp.org>
75510         * doc/glibc-functions/*.texi: New files.
75511         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
75512         to use the new files.
75514 2008-01-17  Bruno Haible  <bruno@clisp.org>
75516         * tests/test-gethostname.c (main): Fix printf statement.
75518 2008-01-17  Simon Josefsson  <simon@josefsson.org>
75520         * modules/gethostname-tests: New file.
75522         * tests/test-gethostname.c: New file.
75524 2008-01-17  Simon Josefsson  <simon@josefsson.org>
75526         * lib/gethostname.c: Include string.h unconditionally, strncpy is
75527         used by the UNAME case.  Reported by Bruno Haible
75528         <bruno@clisp.org>.
75530 2008-01-17  Eric Blake  <ebb9@byu.net>
75532         Convert c-strcasestr to be more efficient.
75533         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
75534         (Depends-on): Add c-strcase, remove malloca, strnlen.
75535         * tests/test-c-strcasestr.c (main): Enhance test.
75536         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
75538 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75540         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
75541         Use it in creating po/Makevars.
75543 2008-01-15  Simon Josefsson  <simon@josefsson.org>
75545         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
75546         Applications that requires it should initialize libgcrypt
75547         manually.
75549 2008-01-16  Simon Josefsson  <simon@josefsson.org>
75551         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
75553 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
75555         Fix problem with getdate on mingw32 reported by Simon Josefsson
75556         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
75557         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
75558         tzname", when deciding whether to declare tzname.
75559         * lib/strftime.c (tzname): Likewise.
75561 2008-01-15  Bruno Haible  <bruno@clisp.org>
75563         Work around a MacOS X 10.5 bug in frexpl().
75564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
75565         * doc/functions/frexpl.texi: Document the bug.
75566         Reported by Elias Pipping <pipping@gentoo.org>.
75568 2008-01-14  Eric Blake  <ebb9@byu.net>
75570         Touch up previous patch.
75571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
75572         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
75574         Convert strcasestr module to use Two-Way algorithm.
75575         * modules/strcasestr-simple: New module, based on the old
75576         strcasestr, but with Two-Way rather than KMP.
75577         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
75578         * lib/string.in.h (rpl_strcasestr): Declare.
75579         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
75580         performance.
75581         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
75582         * modules/string (Makefile.am): Support strcasestr.
75583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
75584         * modules/strcasestr-tests (Depends-on): Check for alarm.
75585         * tests/test-strcasestr.c: Augment test.
75586         * lib/str-two-way.h: Clean up stray macro.
75587         * NEWS: Document new module.
75588         * MODULES.html.sh (string handling): Likewise.
75589         * doc/functions/strcasestr.texi: New file.
75590         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
75591         here, since it is not a POSIX function.
75593 2008-01-14  Colin Watson  <cjwatson@debian.org>
75594             Bruno Haible  <bruno@clisp.org>
75596         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
75597         works fine; if not, set REPLACE_STRSIGNAL.
75598         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
75599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75600         REPLACE_STRSIGNAL.
75601         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
75602         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
75603         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
75605 2008-01-14  Bruno Haible  <bruno@clisp.org>
75607         * modules/strsignal (Include): Change to <string.h>.
75609 2008-01-14  Colin Watson  <cjwatson@debian.org>
75611         * modules/argp (Notice): Add a notice recommending to change
75612         XGETTEXT_OPTIONS.
75613         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
75615 2008-01-13  Colin Watson  <cjwatson@debian.org>
75617         * modules/strsignal-tests: New file.
75618         * tests/test-strsignal.c: New file.
75620         * lib/strsignal.c: New file, from glibc with modifications.
75621         * lib/siglist.h: New file, from glibc with modifications.
75622         * lib/string.in.h (strsignal): New declaration.
75623         * m4/strsignal.m4: New file.
75624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75625         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
75626         * modules/strsignal: New file.
75627         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
75628         HAVE_DECL_STRSIGNAL.
75630 2008-01-13  Bruno Haible  <bruno@clisp.org>
75632         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
75633         locale encoding is not ASCII. Needed for OpenBSD 4.0.
75634         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
75635         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
75637 2008-01-13  Bruno Haible  <bruno@clisp.org>
75639         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
75640         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
75641         * lib/argp.h (__attribute__): Likewise.
75642         * lib/c-stack.c (__attribute__): Likewise.
75643         * lib/error.h (__attribute__): Likewise.
75644         * lib/fts.c (__attribute__): Likewise.
75645         * lib/openat.h (__attribute__): Likewise.
75646         * lib/stdio.in.h (__attribute__): Likewise.
75647         * lib/string.in.h (__attribute__): Likewise.
75648         * lib/utimens.c (__attribute__): Likewise.
75649         * lib/vasnprintf.h (__attribute__): Likewise.
75650         * lib/xalloc.h (__attribute__): Likewise.
75651         * lib/xprintf.h (__attribute__): Likewise.
75652         * lib/xstrtol.h (__attribute__): Likewise.
75653         * lib/xvasprintf.h (__attribute__): Likewise.
75655 2008-01-12  Bruno Haible  <bruno@clisp.org>
75657         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
75658         * doc/glibc-headers/a.out.texi: New file.
75659         * doc/glibc-headers/aliases.texi: New file.
75660         * doc/glibc-headers/alloca.texi: New file.
75661         * doc/glibc-headers/ar.texi: New file.
75662         * doc/glibc-headers/argp.texi: New file.
75663         * doc/glibc-headers/argz.texi: New file.
75664         * doc/glibc-headers/byteswap.texi: New file.
75665         * doc/glibc-headers/crypt.texi: New file.
75666         * doc/glibc-headers/endian.texi: New file.
75667         * doc/glibc-headers/envz.texi: New file.
75668         * doc/glibc-headers/err.texi: New file.
75669         * doc/glibc-headers/error.texi: New file.
75670         * doc/glibc-headers/execinfo.texi: New file.
75671         * doc/glibc-headers/fpu_control.texi: New file.
75672         * doc/glibc-headers/fstab.texi: New file.
75673         * doc/glibc-headers/fts.texi: New file.
75674         * doc/glibc-headers/getopt.texi: New file.
75675         * doc/glibc-headers/ieee754.texi: New file.
75676         * doc/glibc-headers/ifaddrs.texi: New file.
75677         * doc/glibc-headers/libintl.texi: New file.
75678         * doc/glibc-headers/mcheck.texi: New file.
75679         * doc/glibc-headers/mntent.texi: New file.
75680         * doc/glibc-headers/obstack.texi: New file.
75681         * doc/glibc-headers/paths.texi: New file.
75682         * doc/glibc-headers/printf.texi: New file.
75683         * doc/glibc-headers/pty.texi: New file.
75684         * doc/glibc-headers/resolv.texi: New file.
75685         * doc/glibc-headers/shadow.texi: New file.
75686         * doc/glibc-headers/sysexits.texi: New file.
75687         * doc/glibc-headers/ttyent.texi: New file.
75689 2008-01-12  Jim Meyering  <meyering@redhat.com>
75691         announce-gen: emit Gnulib's git-based version string.
75692         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
75693         New option --gnulib-version=V, where V is expected to be
75694         the output of running git describe in the gnulib directory.
75695         (get_tool_versions): Request feedback on xdelta.  I suspect it's
75696         not useful, and plan to stop publishing an xdelta file with each
75697         coreutils release.
75699         * build-aux/announce-gen: Also check for lzma-compressed files.
75701 2008-01-11  Bruno Haible  <bruno@clisp.org>
75703         * tests/test-memmem.c (main): Increase maximum allowed time.
75704         * tests/test-strstr.c (main): Likewise.
75706 2008-01-11  Bruno Haible  <bruno@clisp.org>
75708         * doc/functions/memmem.texi: Add more precisions about platforms.
75709         * doc/functions/strstr.texi: Likewise.
75711 2008-01-10  Eric Blake  <ebb9@byu.net>
75713         * m4/strstr.m4: Delete cruft from copy-n-paste.
75714         Reported by Bruno Haible.
75716 2008-01-10  Bruno Haible  <bruno@clisp.org>
75718         Make c-strstr rely on strstr.
75719         * lib/c-strstr.c: Don't include str-kmp.h.
75720         (c_strstr): Define in terms of strstr.
75721         * modules/c-strstr (Files): Remove lib/str-kmp.h.
75722         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
75724 2008-01-10  Bruno Haible  <bruno@clisp.org>
75726         * doc/gnulib.texi (String Functions in C Locale): New section.
75727         * doc/c-ctype.texi: New file.
75728         * doc/c-strcase.texi: New file.
75729         * doc/c-strcaseeq.texi: New file.
75730         * doc/c-strcasestr.texi: New file.
75731         * doc/c-strstr.texi: New file.
75732         * doc/c-strtod.texi: New file.
75733         * doc/c-strtold.texi: New file.
75735 2008-01-10  Eric Blake  <ebb9@byu.net>
75737         * lib/relocatable.h: Fix a comment.
75739 2008-01-10  Eric Blake  <ebb9@byu.net>
75741         Share two-way algorithm.
75742         * lib/str-two-way.h: New file, merged from...
75743         * lib/memmem.c: ...here...
75744         * lib/strstr.c: ...and here.
75745         * modules/memmem (Files): Use it.
75746         * modules/strstr (Files): Likewise.
75748         Avoid quadratic strstr implementations.
75749         * lib/strstr.c: New file.
75750         * m4/strstr.m4: Likewise.
75751         * modules/strstr: Likewise.
75752         * modules/strstr-tests: Likewise.
75753         * tests/test-strstr.c: Likewise.
75754         * lib/string.in.h (rpl_strstr): Declare.
75755         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
75756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
75757         * modules/string (Makefile.am): Likewise.
75758         * MODULES.html.sh (string handling): Mention new module.
75759         * doc/functions/strstr.texi (strstr): Document the bug.
75761 2008-01-10  Bruno Haible  <bruno@clisp.org>
75763         * lib/relocatable.h (relocate): State whether result is freshly
75764         allocated or not.
75765         * lib/relocatable.c (relocate): Return a freshly allocated string
75766         instead of a pointer to a privately held string.
75767         Reported by Sylvain Beucler <beuc@gnu.org>.
75769 2008-01-10  Colin Watson  <cjwatson@debian.org>
75771         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
75772         s/S_ISNLK/S_ISLNK/.
75774 2008-01-09  Bruno Haible  <bruno@clisp.org>
75776         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
75777         and other files.
75778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
75779         if it's only a guess.
75780         * modules/memmem: Simplify by depending on memmem-simple.
75782 2008-01-09  Bruno Haible  <bruno@clisp.org>
75784         Work around OpenBSD 4.0 tdelete() bug.
75785         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
75786         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
75787         macros and don't redefine the enum values.
75788         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
75789         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
75790         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
75792 2008-01-09  Bruno Haible  <bruno@clisp.org>
75794         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
75795         (main): Don't perform the tests if setlocale did not install a UTF-8
75796         locale. Needed on OpenBSD 4.0.
75797         * modules/wcwidth-tests (Depends-on): Add localcharset.
75799 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75801         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
75802         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
75803         * NEWS: announce this.
75804         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
75806 2008-01-09  Simon Josefsson  <simon@josefsson.org>
75807         and Eric Blake  <ebb9@byu.net>
75809         Add memmem-simple module.
75810         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
75811         (gl_FUNC_MEMMEM): Separate performance from presence checks.
75812         * modules/memmem-simple: New file.
75813         * modules/memmem (Description): Tweak.
75814         * MODULES.html.sh (string handling): Mention new module.
75815         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
75816         addressed by memmem-simple.
75817         * NEWS: Document the difference.
75819 2008-01-09  Eric Blake  <ebb9@byu.net>
75821         Give gcc some memmem optimization hints.
75822         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
75823         (strcasestr): Declare as pure.
75824         * modules/memmem (Maintainer): Claim my implementation.
75826 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75828         Support AIX 6.1 and higher.
75829         * build-aux/config.libpath: Likewise.
75830         * build-aux/config.rpath: Likewise.
75832 2008-01-08  Jim Meyering  <meyering@redhat.com>
75833             Bruno Haible  <bruno@clisp.org>
75835         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
75836         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
75837         Reported by Peter Fales in
75838         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
75840 2008-01-08  Bruno Haible  <bruno@clisp.org>
75842         * modules/unictype/category-of (Depends-on): Add
75843         unictype/category-none.
75844         * modules/unictype/category-and-tests (Depends-on): Add
75845         unictype/category-{L,N,Lu,Nd}.
75846         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
75847         * modules/unictype/category-or-tests (Depends-on): Add
75848         unictype/category-{L,N}.
75849         * modules/unictype/category-name-tests (Depends-on): Add
75850         unictype/category-{Z,Nl}.
75851         Reported by Simon Josefsson.
75853 2008-01-08  Bruno Haible  <bruno@clisp.org>
75855         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
75856         convention better.
75857         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
75858         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
75859         Reported by Peter Miller <millerp@canb.auug.org.au>.
75861 2008-01-08  Eric Blake  <ebb9@byu.net>
75863         Rewrite memmem to guarantee linear complexity without malloc.
75864         * lib/memmem.c (memmem): Use Two-Way rather than
75865         Knuth-Morris-Pratt, to allow O(1) space usage.
75866         (critical_factorization, two_way_short_needle)
75867         (two_way_long_needle): New functions.
75868         (knuth_morris_pratt): Delete.
75869         * modules/memmem (Depends-on): No longer need malloca or stdbool.
75870         Add stdint.
75871         * tests/test-memmem.c (main): Add tests for periodic needle and
75872         sublinear performance.
75873         * doc/functions/memmem.texi (memmem): Document other deficiencies
75874         in cygwin and older glibc.
75876 2008-01-08  Bruno Haible  <bruno@clisp.org>
75878         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
75879         augmentation.
75881 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
75883         Add a configure time option: --disable-acl.
75884         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
75885         AC_ARG_ENABLE(acl).
75887 2008-01-06  Simon Josefsson  <simon@josefsson.org>
75889         * tests/test-localename.c: Don't include obsolete "setenv.h".
75891         * modules/localename-tests (Depends-on): Need unsetenv.
75893 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75895         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
75897 2008-01-06  Colin Watson  <cjwatson@debian.org>
75899         * users.txt: Add man-db.
75901 2008-01-07  Bruno Haible  <bruno@clisp.org>
75903         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
75904         previous section name.
75906 2008-01-07  Bruno Haible  <bruno@clisp.org>
75908         * lib/progname.c (set_program_name): Don't strip off a leading
75909         "lt-" prefix outside a .libs directory.
75910         Suggested by Paul Eggert.
75912 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
75913             Bruno Haible  <bruno@clisp.org>
75915         Improve memory cleanup in 'relocatable' module.
75916         * lib/relocatable.h (compute_curr_prefix): Change return type to
75917         'char *'.
75918         * lib/relocatable.c (compute_curr_prefix): Change return type to
75919         'char *'. Free curr_installdir after use.
75920         (relocate): Free curr_prefix_better after use.
75921         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
75923 2008-01-01  Bruno Haible  <bruno@clisp.org>
75925         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
75926         failure on older glibc systems.
75927         Reported by Peter Fales <psfales@alcatel-lucent.com>.
75929 2008-01-05  Eric Blake  <ebb9@byu.net>
75931         Avoid quadratic system memmem.
75932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
75933         Reported by Ralf Wildenhues.
75935         Fix memmem test for mingw.
75936         * modules/memmem-tests (configure.ac): Check for alarm.
75937         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
75938         it.
75939         * doc/functions/memmem.texi: New file.
75940         * doc/gnulib.texi (Function Substitutes): Add memmem.
75941         Reported by Bruno Haible.
75943 2008-01-04  Bruno Haible  <bruno@clisp.org>
75945         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
75946         Require gl_HEADER_STRINGS_H_DEFAULTS, not
75947         gl_HEADER_STRING_H_DEFAULTS.
75949 2008-01-04  Eric Blake  <ebb9@byu.net>
75951         Shorten duration of memmem test.
75952         * tests/test-memmem.c (main): Use alarm to declare failure if test
75953         is taking too long.
75954         Reported by Ralf Wildenhues.
75956 2007-12-21  Simon Josefsson  <simon@josefsson.org>
75958         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
75959         string, needed by strerror.
75961 2008-01-03  Colin Watson  <cjwatson@debian.org>
75962             Bruno Haible  <bruno@clisp.org>
75964         * doc/gnulib-tool.texi (Localization): New section.
75966 2008-01-02  Bruno Haible  <bruno@clisp.org>
75968         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
75969         variables to 'unsigned char *' type.
75970         Reported by Paul Eggert.
75972 2008-01-02  Jim Meyering  <jim@meyering.net>
75974         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
75976 2007-12-31  Jim Meyering  <jim@meyering.net>
75978         Avoid use of private FTS type name.
75979         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
75981 2007-12-30  Karl Berry  <karl@gnu.org>
75983         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
75984         work around defect in Texinfo and/or the standalone Info browser.
75986 2007-12-30  Bruno Haible  <bruno@clisp.org>
75988         Unify 5 copies of the KMP code.
75989         * lib/str-kmp.h: New file.
75990         * lib/c-strcasestr.c: Include str-kmp.h.
75991         (knuth_morris_pratt): Remove function.
75992         (c_strcasestr): Update.
75993         * lib/c-strstr.c: Include str-kmp.h.
75994         (knuth_morris_pratt): Remove function.
75995         (c_strcasestr): Update.
75996         * lib/mbscasestr.c: Include str-kmp.h.
75997         (knuth_morris_pratt_unibyte): Remove function.
75998         * lib/mbsstr.c: Include str-kmp.h.
75999         (knuth_morris_pratt_unibyte): Remove function.
76000         * lib/strcasestr.c: Include str-kmp.h.
76001         (knuth_morris_pratt): Remove function.
76002         (strcasestr): Update.
76003         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
76004         * modules/c-strstr (Files): Likewise.
76005         * modules/mbscasestr (Files): Likewise.
76006         * modules/mbsstr (Files): Likewise.
76007         * modules/strcasestr (Files): Likewise.
76008         Suggested by Paul Eggert.
76010 2007-12-30  Bruno Haible  <bruno@clisp.org>
76012         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
76013         defined.
76015 2007-12-30  Bruno Haible  <bruno@clisp.org>
76017         * lib/xmalloca.h: Include xalloc.h.
76018         (xnmalloca): New macro.
76020 2007-12-30  Bruno Haible  <bruno@clisp.org>
76022         * lib/malloca.h (nmalloca): New macro.
76023         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
76024         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
76025         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
76026         knuth_morris_pratt_multibyte): Likewise.
76027         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
76028         knuth_morris_pratt_multibyte): Likewise.
76029         * lib/memmem.c (knuth_morris_pratt): Likewise.
76030         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
76032 2007-12-25  Bruno Haible  <bruno@clisp.org>
76034         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
76035         * lib/glob.c: Don't include openat.h.
76036         (link_exists2_p): Add back the code that deals with the
76037         !GLOB_ALTDIRFUNC case.
76038         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
76039         let it do the filename concatenation.
76040         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
76041         * modules/glob (Depends-on): Remove openat.
76043 2007-12-31  Bruno Haible  <bruno@clisp.org>
76045         * modules/dirfd (License): Change to LGPLv2+.
76046         Approved by Jim Meyering.
76048 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76050         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
76051         when multiplying M by sizeof (size_t).
76053 2007-12-10  Martin Lambers  <marlam@marlam.de>
76055         Override getpagesize on mingw.
76056         * lib/getpagesize.c: New file.
76057         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
76058         * modules/getpagesize (Files): Add lib/getpagesize.c.
76059         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
76060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76061         REPLACE_GETPAGESIZE.
76062         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
76064 2007-12-25  Bruno Haible  <bruno@clisp.org>
76066         * modules/localcharset (Notice): New field.
76067         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
76068         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
76070 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76071             Bruno Haible  <bruno@clisp.org>
76073         Avoid using the syntax symbol() in formatted documentation.
76074         * MODULES.html.sh (func_module): When replacing symbol() with a
76075         hyperlink, remove the parentheses. Show an error if some remain.
76076         Recognize and render the '...' syntax.
76077         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
76078         Rework. Add paragraph about GCC's inlining.
76079         * doc/alloca.texi: Likewise.
76080         * doc/error.texi: Remove parentheses from symbol reference.
76081         * doc/gnulib-intro.texi: Likewise.
76082         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
76083         * modules/fnmatch (Description): Reword to say "the ... function".
76084         * modules/full-read (Description): Likewise.
76085         * modules/full-write (Description): Likewise.
76086         * modules/safe-read (Description): Likewise.
76087         * modules/safe-write (Description): Likewise.
76088         * modules/strchrnul (Description): Likewise.
76089         * modules/trim (Description): Likewise.
76090         * modules/error (Description): Remove parentheses from symbol
76091         references.
76092         * modules/verror (Description): Likewise.
76093         Reported by Karl Berry.
76095 2007-12-25  Bruno Haible  <bruno@clisp.org>
76097         Fixup after 2007-10-16 commit.
76098         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
76100 2007-12-24  Bruno Haible  <bruno@clisp.org>
76102         Make --enable-relocatable work with DESTDIR.
76103         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
76104         to compute installdir from destprog.
76105         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
76106         also set the RELOC_DESTDIR variable.
76107         Reported by Левашев Иван <octagram@bluebottle.com>.
76109 2007-12-24  Bruno Haible  <bruno@clisp.org>
76111         Fix link error due to xalloc_die().
76112         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
76113         of xreadlink.
76114         * lib/relocwrapper.c: Update comments.
76115         * build-aux/install-reloc: Remove xreadlink.c from file list.
76116         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
76117         xreadlink.c.
76118         Reported by Левашев Иван <octagram@bluebottle.com>.
76120 2007-12-24  Bruno Haible  <bruno@clisp.org>
76122         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
76123         * lib/setenv.h: Remove file.
76124         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
76125         lib/setenv.h.
76126         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
76127         (Depends-on): Add stdlib.
76128         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
76129         gl_FUNC_UNSETENV.
76130         (Include): Replace setenv.h with <stdlib.h>.
76131         * modules/unsetenv: New file.
76132         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
76133         * lib/unsetenv.c: Include <stdlib.h> first.
76134         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
76135         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
76136         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
76137         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
76138         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
76139         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
76140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
76141         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
76142         * doc/functions/unsetenv.texi: Update.
76143         * modules/xsetenv (Depends-on): Add unsetenv.
76144         * modules/getdate (Depends-on): Likewise.
76145         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
76146         * lib/xsetenv.c: Don't include setenv.h.
76147         * lib/getdate.y: Likewise.
76148         * lib/relocwrapper.c: Likewise.
76149         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
76150         (Depends-on): Add stdlib.
76151         * NEWS: Mention the changes.
76152         Reported by Левашев Иван <octagram@bluebottle.com>.
76154 2007-12-23  Bruno Haible  <bruno@clisp.org>
76156         * lib/memmem.c (memmem): Use lowercase variable names. Tab
76157         indentation.
76159 2007-12-23  Bruno Haible  <bruno@clisp.org>
76161         * lib/c-strcasestr.c: Add more comments.
76162         * lib/c-strstr.c: Likewise.
76163         * lib/mbscasestr.c: Likewise.
76164         * lib/mbsstr.c: Likewise.
76165         * lib/strcasestr.c: Likewise.
76166         * lib/memmem.c: Likewise.
76168 2007-12-23  Bruno Haible  <bruno@clisp.org>
76170         * tests/test-memmem.c: Include <string.h> first.
76172 2007-12-22  Bruno Haible  <bruno@clisp.org>
76174         * gnulib-tool (func_create_testdir): Change $auxdir while generating
76175         the contents of $testsbase.
76176         Reported by Ralf Wildenhues.
76178 2007-12-22  Bruno Haible  <bruno@clisp.org>
76180         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
76181         two variables local_ldadd_before, local_ldadd_last.
76183 2007-12-20  Eric Blake  <ebb9@byu.net>
76185         Work around circular library issue when cross-compiling.
76186         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
76187         that progname.o does not need to pull in rpl_memcmp.
76189 2007-12-19  Eric Blake  <ebb9@byu.net>
76191         Fix memmem to avoid O(n^2) worst-case complexity.
76192         * lib/memmem.c (knuth_morris_pratt): New function.
76193         (memmem): Use it if first few naive iterations fail.
76194         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
76195         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
76196         * modules/memchr (License): Likewise.
76197         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
76198         malloca.
76199         * tests/test-memmem.c: Rewrite, borrowing ideas from
76200         test-mbsstr1.c; the old version wouldn't even compile!
76201         * modules/memmem-tests: New file.
76202         * lib/string.in.h (rpl_memmem): Add declaration.
76203         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
76204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
76205         REPLACE_MEMMEM.
76207 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76209         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
76210         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
76211         before any system include files, and undef after them all.  This
76212         should fix a problem on VMS reported by John E. Malmberg in
76213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
76215 2007-12-17  Eric Blake  <ebb9@byu.net>
76217         Revert addition of verify, for BSD/OS.
76218         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
76219         can't handle large files, for the sake of obsolete platforms.
76220         * modules/fseeko (Depends-on): Remove verify.
76221         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
76222         * doc/functions/ftello.texi (ftello): Likewise.
76223         * doc/functions/fgetpos.texi (fgetpos): Likewise.
76224         Reported by Larry Jones.
76226 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
76228         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
76229         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
76231 2007-12-17  Jim Meyering  <meyering@redhat.com>
76233         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
76234         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
76235         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
76236         * modules/getcwd (Depends-on): Add openat.
76237         Reported by Petr Salinger.
76239 2007-12-17  Bruno Haible  <bruno@clisp.org>
76241         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
76242         avoid a segmentation fault of the configure test on x86_64 systems.
76244 2007-12-15  Jim Meyering  <meyering@redhat.com>
76246         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
76248 2007-12-13  Eric Blake  <ebb9@byu.net>
76250         Another fseek test.
76251         * tests/test-fseek.c (main): Also test ungetc handling.
76252         * tests/test-fseeko.c (main): Likewise.
76253         * modules/fseeko (Depends-on): Add verify.
76254         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
76255         large.
76256         Reported by Larry Jones.
76258         Fix fseeko on mingw.
76259         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
76260         seek.
76262         Beef up fseek tests.
76263         * tests/test-fseek.c (main): Also test eof handling.
76264         * tests/test-fseeko.c (main): Likewise.
76265         Reported by Larry Jones.
76267 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
76269         Fix fseeko on BSD-based platforms.
76270         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
76271         successful seek.
76273 2007-12-12  Eric Blake  <ebb9@byu.net>
76275         Allow circular dependency of separate libtests.a
76276         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
76277         when use_libtests.
76279 2007-12-11  Eric Blake  <ebb9@byu.net>
76281         Fix bug with -0.0L in previous patch.
76282         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
76283         * tests/test-isnan.c (main): Also test on zeroes.
76284         * tests/test-isnanf.c (main): Likewise.
76285         * tests/test-isnanl.h (main): Likewise.
76287         Detect pseudo-denormals on x86 even when cross-compiling.
76288         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
76289         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
76290         invalid bit patterns that happen to satisfy ==.
76292         Avoid link failures with separate libtests.a.
76293         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
76294         last, to satisfy circular dependencies.
76296 2007-12-11  Eric Blake  <ebb9@byu.net>
76297         and Bruno Haible  <bruno@clisp.org>
76299         Fix OpenBSD 4.0 <float.h> handling of long double.
76300         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
76301         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
76302         * doc/headers/float.texi (float.h): Document OpenBSD bug.
76304 2007-12-11  Jim Meyering  <meyering@redhat.com>
76306         * users.txt: Add libvirt.
76308         Support versions of autoconf prior to 2.59c.
76309         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
76310         if it is not already defined.
76312 2007-12-09  Bruno Haible  <bruno@clisp.org>
76314         Let 'gnulib-tool --import' collect sources needed for the tests in
76315         tests/ rather than in lib/.
76316         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
76317         argument. If true, add rules to generate libtests.a, and put libtests.a
76318         into $(LDADD). Consider source files in subdirectories and set
76319         uses_subdirs.
76320         (func_emit_initmacro_start, func_emit_initmacro_end,
76321         func_emit_initmacro_done): Pass all arguments explicitly.
76322         (func_import): Determine two module lists main_modules,
76323         testsrelated_modules. Determine use_libtests. Determine two variables
76324         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
76325         instead of just sed_transform_lib_file. Determine two variables
76326         main_files and testsrelated_files. Compute 'files' as the union of
76327         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
76328         func_add_or_update. In the generated gnulib-comp.m4, collect the
76329         object files for tests/ in different variables than those for lib/.
76330         Substitute LIBTESTS_LIBDEPS.
76331         (func_create_testdir): Combine the uses_subdirs results from
76332         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
76334 2007-12-09  Bruno Haible  <bruno@clisp.org>
76336         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
76337         the build-aux directory.
76339 2007-12-09  Bruno Haible  <bruno@clisp.org>
76341         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
76342         introduced on 2006-09-09.
76344 2007-12-07  Jim Meyering  <meyering@redhat.com>
76346         Let these macros work also with autoconf-2.59.
76347         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
76348         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
76349         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
76351 2007-12-06  Jim Meyering  <meyering@redhat.com>
76353         Avoid a configure-time syntax error in gl_FUNC_ACL.
76354         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
76355         function in each branch, before testing the cache variable.
76357 2007-12-04  Eric Blake  <ebb9@byu.net>
76359         Make scripts executable.
76360         * build-aux/config.guess: Add execute permissions.
76361         * build-aux/config.sub: Likewise.
76362         * build-aux/gendocs.sh: Likewise.
76364         Fix frexp on mingw.
76365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
76366         cross-compiling.
76367         * doc/functions/frexp.texi (frexp): Document the bug.
76369         Make cygwin fseeko check more reliable.
76370         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
76371         version numbers, rather than unrelated feature check.
76372         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
76373         * doc/functions/ftello.texi (ftello): Likewise.
76374         Reported by Bruno Haible.
76376         * m4/strerror.m4: Bump version number.
76378 2007-12-03  Bruno Haible  <bruno@clisp.org>
76380         * doc/functions/mprotect.texi: Mention the mingw problem.
76382 2007-12-03  Eric Blake  <ebb9@byu.net>
76384         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
76385         REPLACE_STRERROR is initialized before this macro.
76387 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76389         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
76390         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
76391         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
76392         put -lsec in even for programs other than 'ls'.  This fixes a problem
76393         for gettext reported by Bruno Haible in
76394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
76395         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
76396         Add support for Solaris 10.  This isn't efficient, but should get the
76397         job done for now.
76399 2007-12-03  James Youngman  <jay@gnu.org>
76401         * doc/regexprops-generic.texi: change "an close-group" to "a
76402         close-group" and "illegal" to "not allowed".
76404 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76406         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
76407         pr_byname.h. Needed for the rare case when the maintainer has done
76408         "make maintainer-clean" in the source directory and then attempts a
76409         build outside the source directory.
76410         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
76411         scripts_byname.h.
76413 2007-12-02  Martin Lambers  <marlam@marlam.de>
76414             Bruno Haible  <bruno@clisp.org>
76416         * lib/getpagesize.h: Remove file.
76417         * lib/unistd.in.h: Include declaration of getpagesize here.
76418         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
76419         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
76420         HAVE_SYS_PARAM_H.
76421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
76422         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
76423         * modules/getpagesize (Files): Remove lib/getpagesize.h.
76424         (Depends-on): Add unistd.
76425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
76426         (Include): Use <unistd.h> instead of getpagesize.h.
76427         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
76428         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
76429         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
76430         gl_GETPAGESIZE invocation, already handled by module dependency.
76431         * lib/pagealign_alloc.c: Don't include getpagesize.h.
76433 2007-12-02  Bruno Haible  <bruno@clisp.org>
76435         * modules/strings-tests: New file.
76436         * tests/test-strings.c: New file.
76438         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
76439         * lib/strings.in.h: New file.
76440         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
76441         * m4/strings_h.m4: New file.
76442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
76443         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
76444         * modules/strings: New file.
76445         * modules/string (Makefile.am): Update.
76446         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
76447         Reported by Karl Berry.
76449 2007-12-01  Eric Blake  <ebb9@byu.net>
76451         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
76452         accommodate fix in cygwin 1.5.25.
76454 2007-12-01  Jim Meyering  <meyering@redhat.com>
76456         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
76457         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
76458         that would inhibit utf8-optimization of a regexp containing line-
76459         or buffer-anchors, e.g., `^', `$'.
76461 2007-11-30  Bruno Haible  <bruno@clisp.org>
76463         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
76464         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
76465         glthread_recursive_lock_init.
76466         * lib/lock.c (glthread_recursive_lock_init)
76467         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
76468         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76470 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
76472         New function qset_acl, like set_acl but with syscall semantics.
76473         * lib/acl.h (qset_acl): New decl.
76474         * lib/acl.c (qset_acl): New function.
76475         (set_acl): Use new function.  Use more-consistent diagnostics.
76477 2007-11-28  Jim Meyering  <meyering@redhat.com>
76479         * modules/physmem (License): Change from GPL to LGPLv2+.
76481 2007-11-26  Bruno Haible  <bruno@clisp.org>
76483         * lib/vasnprintf.c (decode_long_double): Don't abort if the
76484         'long double' type has excess precision.
76485         Reported by Jim Meyering in
76486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
76488 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76490         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
76491         Sync from <http://gnu.org/licenses>.
76492         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
76493         with license text from same location.
76494         * doc/maintain.texi, doc/standards.texi:  Sync from
76495         <http://savannah.gnu.org/projects/gnustandards>.
76497 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
76498         and Jim Meyering  <meyering@redhat.com>
76500         Adjust getdate' grammar to accept a slightly more regular language.
76501         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
76502         Before, the former was rejected.
76503         * lib/getdate.y (digits_to_date_time): New function, factored
76504         out of ...
76505         (number): ...here.  Just call digits_to_date_time.
76506         (hybrid): New non-terminal to handle an <unsigned number,
76507         signed relative offset> sequence consistently.
76509 2007-11-18  Jim Meyering  <meyering@redhat.com>
76511         Pull my changes from coreutils:
76512         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
76513         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
76514         use of $gnulib_tool_option_extras, so that it's separated from the
76515         preceding argument.
76517         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
76518         * build-aux/bootstrap (cp_mark_as_generated): Create any required
76519         parent destination directories before copying a file into place.
76521 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76523         bootstrap: work also with 4-argument variant of AC_INIT
76524         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
76526 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76528         Port test-getaddrinfo to Solaris.
76529         Problem reported by Bruno Haible in
76530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
76531         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
76532         explanation of setting 'hints'.
76533         Don't reject an implementation merely because it returns EAI_SERVICE.
76534         (EAI_SERVICE): Define to 0 if not defined.
76536 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76538         The license of gnu-make and posix-shell is now "GPLed build tool".
76539         * modules/gnu-make (License): Likewise.
76540         * modules/posix-shell (License): Likewise.
76542         New module posix-shell, for determining a POSIX shell
76543         or perhaps something that is close enough to a POSIX shell.
76544         * m4/posix-shell.m4: New file.
76545         * modules/posix-shell: New file.
76547         * MODULES.html.sh: Mention new module.
76549         New module gnu-make, for determining whether we're using GNU Make.
76550         * m4/gnu-make.m4: New file.
76551         * modules/gnu-make: New file.
76552         * MODULES.html.sh: Mention new module.
76554 2007-11-14  Jim Meyering  <meyering@redhat.com>
76556         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
76557         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
76558         use this macro to create a function _definition_.
76559         Remove useless "#undef ARGMATCH_DIE".
76561 2007-11-14  Bruno Haible  <bruno@clisp.org>
76563         * lib/config.charset: Update for OpenBSD 4.1.
76564         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
76566 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
76568         Document 64-bit #if problems in stdint.texi.
76569         * doc/headers/stdint.texi (stdint.h): Mention problems with
76570         64-bit-#if, and how to work around them.
76572         Don't insist on 'long long int' support in the preprocessor.  It
76573         breaks too many things.  For example, PRIdMAX still uses a 'long
76574         long int' format with the latest Sun compiler, even though
76575         HAVE_LONG_LONG_INT isn't defined due to that compiler's
76576         preprocessor problem.  This causes the latest coreutils to dump
76577         core on Solaris 10 sparc with the Sun C compiler.
76578         Instead, fix the 2007-10-16 problem in a different way, by evaluating
76579         the troublesome expressions at configure-time, not at #if-time.
76580         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
76581         preprocessor.
76582         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
76583         compile-time C checks, done at 'configure'-time.
76584         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
76585         * modules/inttypes (Makefile): Substitute the new symbols that
76586         gl_INTTYPES_H now generates.
76587         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
76589 2007-11-12  Bruno Haible  <bruno@clisp.org>
76591         Tests for Unicode character classification functions.
76593         * modules/unictype/bidicategory-byname-tests: New file.
76594         * modules/unictype/bidicategory-name-tests: New file.
76595         * modules/unictype/bidicategory-of-tests: New file.
76596         * modules/unictype/bidicategory-test-tests: New file.
76597         * modules/unictype/block-list-tests: New file.
76598         * modules/unictype/block-of-tests: New file.
76599         * modules/unictype/block-test-tests: New file.
76600         * modules/unictype/category-C-tests: New file.
76601         * modules/unictype/category-Cc-tests: New file.
76602         * modules/unictype/category-Cf-tests: New file.
76603         * modules/unictype/category-Cn-tests: New file.
76604         * modules/unictype/category-Co-tests: New file.
76605         * modules/unictype/category-Cs-tests: New file.
76606         * modules/unictype/category-L-tests: New file.
76607         * modules/unictype/category-Ll-tests: New file.
76608         * modules/unictype/category-Lm-tests: New file.
76609         * modules/unictype/category-Lo-tests: New file.
76610         * modules/unictype/category-Lt-tests: New file.
76611         * modules/unictype/category-Lu-tests: New file.
76612         * modules/unictype/category-M-tests: New file.
76613         * modules/unictype/category-Mc-tests: New file.
76614         * modules/unictype/category-Me-tests: New file.
76615         * modules/unictype/category-Mn-tests: New file.
76616         * modules/unictype/category-N-tests: New file.
76617         * modules/unictype/category-Nd-tests: New file.
76618         * modules/unictype/category-Nl-tests: New file.
76619         * modules/unictype/category-No-tests: New file.
76620         * modules/unictype/category-P-tests: New file.
76621         * modules/unictype/category-Pc-tests: New file.
76622         * modules/unictype/category-Pd-tests: New file.
76623         * modules/unictype/category-Pe-tests: New file.
76624         * modules/unictype/category-Pf-tests: New file.
76625         * modules/unictype/category-Pi-tests: New file.
76626         * modules/unictype/category-Po-tests: New file.
76627         * modules/unictype/category-Ps-tests: New file.
76628         * modules/unictype/category-S-tests: New file.
76629         * modules/unictype/category-Sc-tests: New file.
76630         * modules/unictype/category-Sk-tests: New file.
76631         * modules/unictype/category-Sm-tests: New file.
76632         * modules/unictype/category-So-tests: New file.
76633         * modules/unictype/category-Z-tests: New file.
76634         * modules/unictype/category-Zl-tests: New file.
76635         * modules/unictype/category-Zp-tests: New file.
76636         * modules/unictype/category-Zs-tests: New file.
76637         * modules/unictype/category-and-not-tests: New file.
76638         * modules/unictype/category-and-tests: New file.
76639         * modules/unictype/category-byname-tests: New file.
76640         * modules/unictype/category-name-tests: New file.
76641         * modules/unictype/category-none-tests: New file.
76642         * modules/unictype/category-of-tests: New file.
76643         * modules/unictype/category-or-tests: New file.
76644         * modules/unictype/category-test-withtable-tests: New file.
76645         * modules/unictype/combining-class-tests: New file.
76646         * modules/unictype/ctype-alnum-tests: New file.
76647         * modules/unictype/ctype-alpha-tests: New file.
76648         * modules/unictype/ctype-blank-tests: New file.
76649         * modules/unictype/ctype-cntrl-tests: New file.
76650         * modules/unictype/ctype-digit-tests: New file.
76651         * modules/unictype/ctype-graph-tests: New file.
76652         * modules/unictype/ctype-lower-tests: New file.
76653         * modules/unictype/ctype-print-tests: New file.
76654         * modules/unictype/ctype-punct-tests: New file.
76655         * modules/unictype/ctype-space-tests: New file.
76656         * modules/unictype/ctype-upper-tests: New file.
76657         * modules/unictype/ctype-xdigit-tests: New file.
76658         * modules/unictype/decimal-digit-tests: New file.
76659         * modules/unictype/digit-tests: New file.
76660         * modules/unictype/mirror-tests: New file.
76661         * modules/unictype/numeric-tests: New file.
76662         * modules/unictype/property-alphabetic-tests: New file.
76663         * modules/unictype/property-ascii-hex-digit-tests: New file.
76664         * modules/unictype/property-bidi-arabic-digit-tests: New file.
76665         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
76666         * modules/unictype/property-bidi-block-separator-tests: New file.
76667         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
76668         * modules/unictype/property-bidi-common-separator-tests: New file.
76669         * modules/unictype/property-bidi-control-tests: New file.
76670         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
76671         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
76672         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
76673         * modules/unictype/property-bidi-european-digit-tests: New file.
76674         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
76675         * modules/unictype/property-bidi-left-to-right-tests: New file.
76676         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
76677         * modules/unictype/property-bidi-other-neutral-tests: New file.
76678         * modules/unictype/property-bidi-pdf-tests: New file.
76679         * modules/unictype/property-bidi-segment-separator-tests: New file.
76680         * modules/unictype/property-bidi-whitespace-tests: New file.
76681         * modules/unictype/property-byname-tests: New file.
76682         * modules/unictype/property-combining-tests: New file.
76683         * modules/unictype/property-composite-tests: New file.
76684         * modules/unictype/property-currency-symbol-tests: New file.
76685         * modules/unictype/property-dash-tests: New file.
76686         * modules/unictype/property-decimal-digit-tests: New file.
76687         * modules/unictype/property-default-ignorable-code-point-tests: New file.
76688         * modules/unictype/property-deprecated-tests: New file.
76689         * modules/unictype/property-diacritic-tests: New file.
76690         * modules/unictype/property-extender-tests: New file.
76691         * modules/unictype/property-format-control-tests: New file.
76692         * modules/unictype/property-grapheme-base-tests: New file.
76693         * modules/unictype/property-grapheme-extend-tests: New file.
76694         * modules/unictype/property-grapheme-link-tests: New file.
76695         * modules/unictype/property-hex-digit-tests: New file.
76696         * modules/unictype/property-hyphen-tests: New file.
76697         * modules/unictype/property-id-continue-tests: New file.
76698         * modules/unictype/property-id-start-tests: New file.
76699         * modules/unictype/property-ideographic-tests: New file.
76700         * modules/unictype/property-ids-binary-operator-tests: New file.
76701         * modules/unictype/property-ids-trinary-operator-tests: New file.
76702         * modules/unictype/property-ignorable-control-tests: New file.
76703         * modules/unictype/property-iso-control-tests: New file.
76704         * modules/unictype/property-join-control-tests: New file.
76705         * modules/unictype/property-left-of-pair-tests: New file.
76706         * modules/unictype/property-line-separator-tests: New file.
76707         * modules/unictype/property-logical-order-exception-tests: New file.
76708         * modules/unictype/property-lowercase-tests: New file.
76709         * modules/unictype/property-math-tests: New file.
76710         * modules/unictype/property-non-break-tests: New file.
76711         * modules/unictype/property-not-a-character-tests: New file.
76712         * modules/unictype/property-numeric-tests: New file.
76713         * modules/unictype/property-other-alphabetic-tests: New file.
76714         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
76715         * modules/unictype/property-other-grapheme-extend-tests: New file.
76716         * modules/unictype/property-other-id-continue-tests: New file.
76717         * modules/unictype/property-other-id-start-tests: New file.
76718         * modules/unictype/property-other-lowercase-tests: New file.
76719         * modules/unictype/property-other-math-tests: New file.
76720         * modules/unictype/property-other-uppercase-tests: New file.
76721         * modules/unictype/property-paired-punctuation-tests: New file.
76722         * modules/unictype/property-paragraph-separator-tests: New file.
76723         * modules/unictype/property-pattern-syntax-tests: New file.
76724         * modules/unictype/property-pattern-white-space-tests: New file.
76725         * modules/unictype/property-private-use-tests: New file.
76726         * modules/unictype/property-punctuation-tests: New file.
76727         * modules/unictype/property-quotation-mark-tests: New file.
76728         * modules/unictype/property-radical-tests: New file.
76729         * modules/unictype/property-sentence-terminal-tests: New file.
76730         * modules/unictype/property-soft-dotted-tests: New file.
76731         * modules/unictype/property-space-tests: New file.
76732         * modules/unictype/property-terminal-punctuation-tests: New file.
76733         * modules/unictype/property-test-tests: New file.
76734         * modules/unictype/property-titlecase-tests: New file.
76735         * modules/unictype/property-unassigned-code-value-tests: New file.
76736         * modules/unictype/property-unified-ideograph-tests: New file.
76737         * modules/unictype/property-uppercase-tests: New file.
76738         * modules/unictype/property-variation-selector-tests: New file.
76739         * modules/unictype/property-white-space-tests: New file.
76740         * modules/unictype/property-xid-continue-tests: New file.
76741         * modules/unictype/property-xid-start-tests: New file.
76742         * modules/unictype/property-zero-width-tests: New file.
76743         * modules/unictype/scripts-tests: New file.
76744         * modules/unictype/syntax-c-ident-tests: New file.
76745         * modules/unictype/syntax-c-whitespace-tests: New file.
76746         * modules/unictype/syntax-java-ident-tests: New file.
76747         * modules/unictype/syntax-java-whitespace-tests: New file.
76748         * tests/unictype/test-bidi_byname.c: New file.
76749         * tests/unictype/test-bidi_name.c: New file.
76750         * tests/unictype/test-bidi_of.c: New file.
76751         * tests/unictype/test-bidi_test.c: New file.
76752         * tests/unictype/test-block_list.c: New file.
76753         * tests/unictype/test-block_of.c: New file.
76754         * tests/unictype/test-block_test.c: New file.
76755         * tests/unictype/test-categ_and.c: New file.
76756         * tests/unictype/test-categ_and_not.c: New file.
76757         * tests/unictype/test-categ_byname.c: New file.
76758         * tests/unictype/test-categ_name.c: New file.
76759         * tests/unictype/test-categ_none.c: New file.
76760         * tests/unictype/test-categ_of.c: New file.
76761         * tests/unictype/test-categ_or.c: New file.
76762         * tests/unictype/test-categ_test_withtable.c: New file.
76763         * tests/unictype/test-combining.c: New file.
76764         * tests/unictype/test-decdigit.c: New file.
76765         * tests/unictype/test-digit.c: New file.
76766         * tests/unictype/test-mirror.c: New file.
76767         * tests/unictype/test-numeric.c: New file.
76768         * tests/unictype/test-pr_byname.c: New file.
76769         * tests/unictype/test-pr_test.c: New file.
76770         * tests/unictype/test-predicate-part1.h: New file.
76771         * tests/unictype/test-predicate-part2.h: New file.
76772         * tests/unictype/test-scripts.c: New file.
76773         * tests/unictype/test-sy_c_ident.c: New file.
76774         * tests/unictype/test-sy_java_ident.c: New file.
76776         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
76777         for Unicode 5.0.0.
76778         * tests/unictype/test-categ_Cc.c: Likewise.
76779         * tests/unictype/test-categ_Cf.c: Likewise.
76780         * tests/unictype/test-categ_Cn.c: Likewise.
76781         * tests/unictype/test-categ_Co.c: Likewise.
76782         * tests/unictype/test-categ_Cs.c: Likewise.
76783         * tests/unictype/test-categ_L.c: Likewise.
76784         * tests/unictype/test-categ_Ll.c: Likewise.
76785         * tests/unictype/test-categ_Lm.c: Likewise.
76786         * tests/unictype/test-categ_Lo.c: Likewise.
76787         * tests/unictype/test-categ_Lt.c: Likewise.
76788         * tests/unictype/test-categ_Lu.c: Likewise.
76789         * tests/unictype/test-categ_M.c: Likewise.
76790         * tests/unictype/test-categ_Mc.c: Likewise.
76791         * tests/unictype/test-categ_Me.c: Likewise.
76792         * tests/unictype/test-categ_Mn.c: Likewise.
76793         * tests/unictype/test-categ_N.c: Likewise.
76794         * tests/unictype/test-categ_Nd.c: Likewise.
76795         * tests/unictype/test-categ_Nl.c: Likewise.
76796         * tests/unictype/test-categ_No.c: Likewise.
76797         * tests/unictype/test-categ_P.c: Likewise.
76798         * tests/unictype/test-categ_Pc.c: Likewise.
76799         * tests/unictype/test-categ_Pd.c: Likewise.
76800         * tests/unictype/test-categ_Pe.c: Likewise.
76801         * tests/unictype/test-categ_Pf.c: Likewise.
76802         * tests/unictype/test-categ_Pi.c: Likewise.
76803         * tests/unictype/test-categ_Po.c: Likewise.
76804         * tests/unictype/test-categ_Ps.c: Likewise.
76805         * tests/unictype/test-categ_S.c: Likewise.
76806         * tests/unictype/test-categ_Sc.c: Likewise.
76807         * tests/unictype/test-categ_Sk.c: Likewise.
76808         * tests/unictype/test-categ_Sm.c: Likewise.
76809         * tests/unictype/test-categ_So.c: Likewise.
76810         * tests/unictype/test-categ_Z.c: Likewise.
76811         * tests/unictype/test-categ_Zl.c: Likewise.
76812         * tests/unictype/test-categ_Zp.c: Likewise.
76813         * tests/unictype/test-categ_Zs.c: Likewise.
76814         * tests/unictype/test-ctype_alnum.c: Likewise.
76815         * tests/unictype/test-ctype_alpha.c: Likewise.
76816         * tests/unictype/test-ctype_blank.c: Likewise.
76817         * tests/unictype/test-ctype_cntrl.c: Likewise.
76818         * tests/unictype/test-ctype_digit.c: Likewise.
76819         * tests/unictype/test-ctype_graph.c: Likewise.
76820         * tests/unictype/test-ctype_lower.c: Likewise.
76821         * tests/unictype/test-ctype_print.c: Likewise.
76822         * tests/unictype/test-ctype_punct.c: Likewise.
76823         * tests/unictype/test-ctype_space.c: Likewise.
76824         * tests/unictype/test-ctype_upper.c: Likewise.
76825         * tests/unictype/test-ctype_xdigit.c: Likewise.
76826         * tests/unictype/test-decdigit.h: Likewise.
76827         * tests/unictype/test-digit.h: Likewise.
76828         * tests/unictype/test-numeric.h: Likewise.
76829         * tests/unictype/test-pr_alphabetic.c: Likewise.
76830         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
76831         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
76832         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
76833         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
76834         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
76835         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
76836         * tests/unictype/test-pr_bidi_control.c: Likewise.
76837         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
76838         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
76839         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
76840         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
76841         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
76842         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
76843         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
76844         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
76845         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
76846         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
76847         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
76848         * tests/unictype/test-pr_combining.c: Likewise.
76849         * tests/unictype/test-pr_composite.c: Likewise.
76850         * tests/unictype/test-pr_currency_symbol.c: Likewise.
76851         * tests/unictype/test-pr_dash.c: Likewise.
76852         * tests/unictype/test-pr_decimal_digit.c: Likewise.
76853         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
76854         * tests/unictype/test-pr_deprecated.c: Likewise.
76855         * tests/unictype/test-pr_diacritic.c: Likewise.
76856         * tests/unictype/test-pr_extender.c: Likewise.
76857         * tests/unictype/test-pr_format_control.c: Likewise.
76858         * tests/unictype/test-pr_grapheme_base.c: Likewise.
76859         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
76860         * tests/unictype/test-pr_grapheme_link.c: Likewise.
76861         * tests/unictype/test-pr_hex_digit.c: Likewise.
76862         * tests/unictype/test-pr_hyphen.c: Likewise.
76863         * tests/unictype/test-pr_id_continue.c: Likewise.
76864         * tests/unictype/test-pr_id_start.c: Likewise.
76865         * tests/unictype/test-pr_ideographic.c: Likewise.
76866         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
76867         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
76868         * tests/unictype/test-pr_ignorable_control.c: Likewise.
76869         * tests/unictype/test-pr_iso_control.c: Likewise.
76870         * tests/unictype/test-pr_join_control.c: Likewise.
76871         * tests/unictype/test-pr_left_of_pair.c: Likewise.
76872         * tests/unictype/test-pr_line_separator.c: Likewise.
76873         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
76874         * tests/unictype/test-pr_lowercase.c: Likewise.
76875         * tests/unictype/test-pr_math.c: Likewise.
76876         * tests/unictype/test-pr_non_break.c: Likewise.
76877         * tests/unictype/test-pr_not_a_character.c: Likewise.
76878         * tests/unictype/test-pr_numeric.c: Likewise.
76879         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
76880         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
76881         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
76882         * tests/unictype/test-pr_other_id_continue.c: Likewise.
76883         * tests/unictype/test-pr_other_id_start.c: Likewise.
76884         * tests/unictype/test-pr_other_lowercase.c: Likewise.
76885         * tests/unictype/test-pr_other_math.c: Likewise.
76886         * tests/unictype/test-pr_other_uppercase.c: Likewise.
76887         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
76888         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
76889         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
76890         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
76891         * tests/unictype/test-pr_private_use.c: Likewise.
76892         * tests/unictype/test-pr_punctuation.c: Likewise.
76893         * tests/unictype/test-pr_quotation_mark.c: Likewise.
76894         * tests/unictype/test-pr_radical.c: Likewise.
76895         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
76896         * tests/unictype/test-pr_soft_dotted.c: Likewise.
76897         * tests/unictype/test-pr_space.c: Likewise.
76898         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
76899         * tests/unictype/test-pr_titlecase.c: Likewise.
76900         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
76901         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
76902         * tests/unictype/test-pr_uppercase.c: Likewise.
76903         * tests/unictype/test-pr_variation_selector.c: Likewise.
76904         * tests/unictype/test-pr_white_space.c: Likewise.
76905         * tests/unictype/test-pr_xid_continue.c: Likewise.
76906         * tests/unictype/test-pr_xid_start.c: Likewise.
76907         * tests/unictype/test-pr_zero_width.c: Likewise.
76908         * tests/unictype/test-sy_c_whitespace.c: Likewise.
76909         * tests/unictype/test-sy_java_whitespace.c: Likewise.
76911 2007-11-12  Bruno Haible  <bruno@clisp.org>
76913         Unicode character classification functions.
76914         * lib/unictype.h: New file.
76915         * modules/unictype/base: New file.
76916         * modules/unictype/category-L: New file.
76917         * modules/unictype/category-Lu: New file.
76918         * modules/unictype/category-Ll: New file.
76919         * modules/unictype/category-Lt: New file.
76920         * modules/unictype/category-Lm: New file.
76921         * modules/unictype/category-Lo: New file.
76922         * modules/unictype/category-M: New file.
76923         * modules/unictype/category-Mn: New file.
76924         * modules/unictype/category-Mc: New file.
76925         * modules/unictype/category-Me: New file.
76926         * modules/unictype/category-N: New file.
76927         * modules/unictype/category-Nd: New file.
76928         * modules/unictype/category-Nl: New file.
76929         * modules/unictype/category-No: New file.
76930         * modules/unictype/category-P: New file.
76931         * modules/unictype/category-Pc: New file.
76932         * modules/unictype/category-Pd: New file.
76933         * modules/unictype/category-Ps: New file.
76934         * modules/unictype/category-Pe: New file.
76935         * modules/unictype/category-Pi: New file.
76936         * modules/unictype/category-Pf: New file.
76937         * modules/unictype/category-Po: New file.
76938         * modules/unictype/category-S: New file.
76939         * modules/unictype/category-Sm: New file.
76940         * modules/unictype/category-Sc: New file.
76941         * modules/unictype/category-Sk: New file.
76942         * modules/unictype/category-So: New file.
76943         * modules/unictype/category-Z: New file.
76944         * modules/unictype/category-Zs: New file.
76945         * modules/unictype/category-Zl: New file.
76946         * modules/unictype/category-Zp: New file.
76947         * modules/unictype/category-C: New file.
76948         * modules/unictype/category-Cc: New file.
76949         * modules/unictype/category-Cf: New file.
76950         * modules/unictype/category-Cs: New file.
76951         * modules/unictype/category-Co: New file.
76952         * modules/unictype/category-Cn: New file.
76953         * modules/unictype/category-or: New file.
76954         * modules/unictype/category-of: New file.
76955         * modules/unictype/category-test: New file.
76956         * modules/unictype/category-test-withtable: New file.
76957         * modules/unictype/category-byname: New file.
76958         * modules/unictype/category-none: New file.
76959         * modules/unictype/category-and: New file.
76960         * modules/unictype/category-and-not: New file.
76961         * modules/unictype/category-name: New file.
76962         * modules/unictype/combining-class: New file.
76963         * modules/unictype/category-all: New file.
76964         * modules/unictype/bidicategory-all: New file.
76965         * modules/unictype/bidicategory-byname: New file.
76966         * modules/unictype/bidicategory-name: New file.
76967         * modules/unictype/bidicategory-of: New file.
76968         * modules/unictype/bidicategory-test: New file.
76969         * modules/unictype/decimal-digit: New file.
76970         * modules/unictype/digit: New file.
76971         * modules/unictype/numeric: New file.
76972         * modules/unictype/mirror: New file.
76973         * modules/unictype/property-white-space: New file.
76974         * modules/unictype/property-alphabetic: New file.
76975         * modules/unictype/property-other-alphabetic: New file.
76976         * modules/unictype/property-not-a-character: New file.
76977         * modules/unictype/property-default-ignorable-code-point: New file.
76978         * modules/unictype/property-other-default-ignorable-code-point: New
76979         file.
76980         * modules/unictype/property-deprecated: New file.
76981         * modules/unictype/property-logical-order-exception: New file.
76982         * modules/unictype/property-variation-selector: New file.
76983         * modules/unictype/property-private-use: New file.
76984         * modules/unictype/property-unassigned-code-value: New file.
76985         * modules/unictype/property-uppercase: New file.
76986         * modules/unictype/property-other-uppercase: New file.
76987         * modules/unictype/property-lowercase: New file.
76988         * modules/unictype/property-other-lowercase: New file.
76989         * modules/unictype/property-titlecase: New file.
76990         * modules/unictype/property-soft-dotted: New file.
76991         * modules/unictype/property-id-start: New file.
76992         * modules/unictype/property-other-id-start: New file.
76993         * modules/unictype/property-id-continue: New file.
76994         * modules/unictype/property-other-id-continue: New file.
76995         * modules/unictype/property-xid-start: New file.
76996         * modules/unictype/property-xid-continue: New file.
76997         * modules/unictype/property-pattern-white-space: New file.
76998         * modules/unictype/property-pattern-syntax: New file.
76999         * modules/unictype/property-join-control: New file.
77000         * modules/unictype/property-grapheme-base: New file.
77001         * modules/unictype/property-grapheme-extend: New file.
77002         * modules/unictype/property-other-grapheme-extend: New file.
77003         * modules/unictype/property-grapheme-link: New file.
77004         * modules/unictype/property-bidi-control: New file.
77005         * modules/unictype/property-bidi-left-to-right: New file.
77006         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
77007         * modules/unictype/property-bidi-arabic-right-to-left: New file.
77008         * modules/unictype/property-bidi-european-digit: New file.
77009         * modules/unictype/property-bidi-eur-num-separator: New file.
77010         * modules/unictype/property-bidi-eur-num-terminator: New file.
77011         * modules/unictype/property-bidi-arabic-digit: New file.
77012         * modules/unictype/property-bidi-common-separator: New file.
77013         * modules/unictype/property-bidi-block-separator: New file.
77014         * modules/unictype/property-bidi-segment-separator: New file.
77015         * modules/unictype/property-bidi-whitespace: New file.
77016         * modules/unictype/property-bidi-non-spacing-mark: New file.
77017         * modules/unictype/property-bidi-boundary-neutral: New file.
77018         * modules/unictype/property-bidi-pdf: New file.
77019         * modules/unictype/property-bidi-embedding-or-override: New file.
77020         * modules/unictype/property-bidi-other-neutral: New file.
77021         * modules/unictype/property-hex-digit: New file.
77022         * modules/unictype/property-ascii-hex-digit: New file.
77023         * modules/unictype/property-ideographic: New file.
77024         * modules/unictype/property-unified-ideograph: New file.
77025         * modules/unictype/property-radical: New file.
77026         * modules/unictype/property-ids-binary-operator: New file.
77027         * modules/unictype/property-ids-trinary-operator: New file.
77028         * modules/unictype/property-zero-width: New file.
77029         * modules/unictype/property-space: New file.
77030         * modules/unictype/property-non-break: New file.
77031         * modules/unictype/property-iso-control: New file.
77032         * modules/unictype/property-format-control: New file.
77033         * modules/unictype/property-dash: New file.
77034         * modules/unictype/property-hyphen: New file.
77035         * modules/unictype/property-punctuation: New file.
77036         * modules/unictype/property-line-separator: New file.
77037         * modules/unictype/property-paragraph-separator: New file.
77038         * modules/unictype/property-quotation-mark: New file.
77039         * modules/unictype/property-sentence-terminal: New file.
77040         * modules/unictype/property-terminal-punctuation: New file.
77041         * modules/unictype/property-currency-symbol: New file.
77042         * modules/unictype/property-math: New file.
77043         * modules/unictype/property-other-math: New file.
77044         * modules/unictype/property-paired-punctuation: New file.
77045         * modules/unictype/property-left-of-pair: New file.
77046         * modules/unictype/property-combining: New file.
77047         * modules/unictype/property-composite: New file.
77048         * modules/unictype/property-decimal-digit: New file.
77049         * modules/unictype/property-numeric: New file.
77050         * modules/unictype/property-diacritic: New file.
77051         * modules/unictype/property-extender: New file.
77052         * modules/unictype/property-ignorable-control: New file.
77053         * modules/unictype/property-test: New file.
77054         * modules/unictype/property-byname: New file.
77055         * modules/unictype/property-all: New file.
77056         * modules/unictype/scripts: New file.
77057         * modules/unictype/scripts-all: New file.
77058         * modules/unictype/block-of: New file.
77059         * modules/unictype/block-test: New file.
77060         * modules/unictype/block-list: New file.
77061         * modules/unictype/block-all: New file.
77062         * modules/unictype/syntax-c-whitespace: New file.
77063         * modules/unictype/syntax-java-whitespace: New file.
77064         * modules/unictype/syntax-c-ident: New file.
77065         * modules/unictype/syntax-java-ident: New file.
77066         * modules/unictype/ctype-alnum: New file.
77067         * modules/unictype/ctype-alpha: New file.
77068         * modules/unictype/ctype-cntrl: New file.
77069         * modules/unictype/ctype-digit: New file.
77070         * modules/unictype/ctype-graph: New file.
77071         * modules/unictype/ctype-lower: New file.
77072         * modules/unictype/ctype-print: New file.
77073         * modules/unictype/ctype-punct: New file.
77074         * modules/unictype/ctype-space: New file.
77075         * modules/unictype/ctype-upper: New file.
77076         * modules/unictype/ctype-xdigit: New file.
77077         * modules/unictype/ctype-blank: New file.
77078         * lib/unictype/bidi_byname.c: New file.
77079         * lib/unictype/bidi_name.c: New file.
77080         * lib/unictype/bidi_of.c: New file.
77081         * lib/unictype/bidi_test.c: New file.
77082         * lib/unictype/bitmap.h: New file.
77083         * lib/unictype/block_test.c: New file.
77084         * lib/unictype/blocks.c: New file.
77085         * lib/unictype/categ_C.c: New file.
77086         * lib/unictype/categ_Cc.c: New file.
77087         * lib/unictype/categ_Cf.c: New file.
77088         * lib/unictype/categ_Cn.c: New file.
77089         * lib/unictype/categ_Co.c: New file.
77090         * lib/unictype/categ_Cs.c: New file.
77091         * lib/unictype/categ_L.c: New file.
77092         * lib/unictype/categ_Ll.c: New file.
77093         * lib/unictype/categ_Lm.c: New file.
77094         * lib/unictype/categ_Lo.c: New file.
77095         * lib/unictype/categ_Lt.c: New file.
77096         * lib/unictype/categ_Lu.c: New file.
77097         * lib/unictype/categ_M.c: New file.
77098         * lib/unictype/categ_Mc.c: New file.
77099         * lib/unictype/categ_Me.c: New file.
77100         * lib/unictype/categ_Mn.c: New file.
77101         * lib/unictype/categ_N.c: New file.
77102         * lib/unictype/categ_Nd.c: New file.
77103         * lib/unictype/categ_Nl.c: New file.
77104         * lib/unictype/categ_No.c: New file.
77105         * lib/unictype/categ_P.c: New file.
77106         * lib/unictype/categ_Pc.c: New file.
77107         * lib/unictype/categ_Pd.c: New file.
77108         * lib/unictype/categ_Pe.c: New file.
77109         * lib/unictype/categ_Pf.c: New file.
77110         * lib/unictype/categ_Pi.c: New file.
77111         * lib/unictype/categ_Po.c: New file.
77112         * lib/unictype/categ_Ps.c: New file.
77113         * lib/unictype/categ_S.c: New file.
77114         * lib/unictype/categ_Sc.c: New file.
77115         * lib/unictype/categ_Sk.c: New file.
77116         * lib/unictype/categ_Sm.c: New file.
77117         * lib/unictype/categ_So.c: New file.
77118         * lib/unictype/categ_Z.c: New file.
77119         * lib/unictype/categ_Zl.c: New file.
77120         * lib/unictype/categ_Zp.c: New file.
77121         * lib/unictype/categ_Zs.c: New file.
77122         * lib/unictype/categ_and.c: New file.
77123         * lib/unictype/categ_and_not.c: New file.
77124         * lib/unictype/categ_byname.c: New file.
77125         * lib/unictype/categ_name.c: New file.
77126         * lib/unictype/categ_none.c: New file.
77127         * lib/unictype/categ_of.c: New file.
77128         * lib/unictype/categ_or.c: New file.
77129         * lib/unictype/categ_test.c: New file.
77130         * lib/unictype/combining.c: New file.
77131         * lib/unictype/ctype_alnum.c: New file.
77132         * lib/unictype/ctype_alpha.c: New file.
77133         * lib/unictype/ctype_blank.c: New file.
77134         * lib/unictype/ctype_cntrl.c: New file.
77135         * lib/unictype/ctype_digit.c: New file.
77136         * lib/unictype/ctype_graph.c: New file.
77137         * lib/unictype/ctype_lower.c: New file.
77138         * lib/unictype/ctype_print.c: New file.
77139         * lib/unictype/ctype_punct.c: New file.
77140         * lib/unictype/ctype_space.c: New file.
77141         * lib/unictype/ctype_upper.c: New file.
77142         * lib/unictype/ctype_xdigit.c: New file.
77143         * lib/unictype/decdigit.c: New file.
77144         * lib/unictype/digit.c: New file.
77145         * lib/unictype/identsyntaxmap.h: New file.
77146         * lib/unictype/mirror.c: New file.
77147         * lib/unictype/numeric.c: New file.
77148         * lib/unictype/pr_alphabetic.c: New file.
77149         * lib/unictype/pr_ascii_hex_digit.c: New file.
77150         * lib/unictype/pr_bidi_arabic_digit.c: New file.
77151         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
77152         * lib/unictype/pr_bidi_block_separator.c: New file.
77153         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
77154         * lib/unictype/pr_bidi_common_separator.c: New file.
77155         * lib/unictype/pr_bidi_control.c: New file.
77156         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
77157         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
77158         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
77159         * lib/unictype/pr_bidi_european_digit.c: New file.
77160         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
77161         * lib/unictype/pr_bidi_left_to_right.c: New file.
77162         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
77163         * lib/unictype/pr_bidi_other_neutral.c: New file.
77164         * lib/unictype/pr_bidi_pdf.c: New file.
77165         * lib/unictype/pr_bidi_segment_separator.c: New file.
77166         * lib/unictype/pr_bidi_whitespace.c: New file.
77167         * lib/unictype/pr_byname.c: New file.
77168         * lib/unictype/pr_byname.gperf: New file.
77169         * lib/unictype/pr_combining.c: New file.
77170         * lib/unictype/pr_composite.c: New file.
77171         * lib/unictype/pr_currency_symbol.c: New file.
77172         * lib/unictype/pr_dash.c: New file.
77173         * lib/unictype/pr_decimal_digit.c: New file.
77174         * lib/unictype/pr_default_ignorable_code_point.c: New file.
77175         * lib/unictype/pr_deprecated.c: New file.
77176         * lib/unictype/pr_diacritic.c: New file.
77177         * lib/unictype/pr_extender.c: New file.
77178         * lib/unictype/pr_format_control.c: New file.
77179         * lib/unictype/pr_grapheme_base.c: New file.
77180         * lib/unictype/pr_grapheme_extend.c: New file.
77181         * lib/unictype/pr_grapheme_link.c: New file.
77182         * lib/unictype/pr_hex_digit.c: New file.
77183         * lib/unictype/pr_hyphen.c: New file.
77184         * lib/unictype/pr_id_continue.c: New file.
77185         * lib/unictype/pr_id_start.c: New file.
77186         * lib/unictype/pr_ideographic.c: New file.
77187         * lib/unictype/pr_ids_binary_operator.c: New file.
77188         * lib/unictype/pr_ids_trinary_operator.c: New file.
77189         * lib/unictype/pr_ignorable_control.c: New file.
77190         * lib/unictype/pr_iso_control.c: New file.
77191         * lib/unictype/pr_join_control.c: New file.
77192         * lib/unictype/pr_left_of_pair.c: New file.
77193         * lib/unictype/pr_line_separator.c: New file.
77194         * lib/unictype/pr_logical_order_exception.c: New file.
77195         * lib/unictype/pr_lowercase.c: New file.
77196         * lib/unictype/pr_math.c: New file.
77197         * lib/unictype/pr_non_break.c: New file.
77198         * lib/unictype/pr_not_a_character.c: New file.
77199         * lib/unictype/pr_numeric.c: New file.
77200         * lib/unictype/pr_other_alphabetic.c: New file.
77201         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
77202         * lib/unictype/pr_other_grapheme_extend.c: New file.
77203         * lib/unictype/pr_other_id_continue.c: New file.
77204         * lib/unictype/pr_other_id_start.c: New file.
77205         * lib/unictype/pr_other_lowercase.c: New file.
77206         * lib/unictype/pr_other_math.c: New file.
77207         * lib/unictype/pr_other_uppercase.c: New file.
77208         * lib/unictype/pr_paired_punctuation.c: New file.
77209         * lib/unictype/pr_paragraph_separator.c: New file.
77210         * lib/unictype/pr_pattern_syntax.c: New file.
77211         * lib/unictype/pr_pattern_white_space.c: New file.
77212         * lib/unictype/pr_private_use.c: New file.
77213         * lib/unictype/pr_punctuation.c: New file.
77214         * lib/unictype/pr_quotation_mark.c: New file.
77215         * lib/unictype/pr_radical.c: New file.
77216         * lib/unictype/pr_sentence_terminal.c: New file.
77217         * lib/unictype/pr_soft_dotted.c: New file.
77218         * lib/unictype/pr_space.c: New file.
77219         * lib/unictype/pr_terminal_punctuation.c: New file.
77220         * lib/unictype/pr_test.c: New file.
77221         * lib/unictype/pr_titlecase.c: New file.
77222         * lib/unictype/pr_unassigned_code_value.c: New file.
77223         * lib/unictype/pr_unified_ideograph.c: New file.
77224         * lib/unictype/pr_uppercase.c: New file.
77225         * lib/unictype/pr_variation_selector.c: New file.
77226         * lib/unictype/pr_white_space.c: New file.
77227         * lib/unictype/pr_xid_continue.c: New file.
77228         * lib/unictype/pr_xid_start.c: New file.
77229         * lib/unictype/pr_zero_width.c: New file.
77230         * lib/unictype/scripts.c: New file.
77231         * lib/unictype/sy_c_ident.c: New file.
77232         * lib/unictype/sy_c_whitespace.c: New file.
77233         * lib/unictype/sy_java_ident.c: New file.
77234         * lib/unictype/sy_java_whitespace.c: New file.
77236         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
77237         Unicode 5.0.0.
77238         * lib/unictype/blocks.h: Likewise.
77239         * lib/unictype/categ_C.h: Likewise.
77240         * lib/unictype/categ_Cc.h: Likewise.
77241         * lib/unictype/categ_Cf.h: Likewise.
77242         * lib/unictype/categ_Cn.h: Likewise.
77243         * lib/unictype/categ_Co.h: Likewise.
77244         * lib/unictype/categ_Cs.h: Likewise.
77245         * lib/unictype/categ_L.h: Likewise.
77246         * lib/unictype/categ_Ll.h: Likewise.
77247         * lib/unictype/categ_Lm.h: Likewise.
77248         * lib/unictype/categ_Lo.h: Likewise.
77249         * lib/unictype/categ_Lt.h: Likewise.
77250         * lib/unictype/categ_Lu.h: Likewise.
77251         * lib/unictype/categ_M.h: Likewise.
77252         * lib/unictype/categ_Mc.h: Likewise.
77253         * lib/unictype/categ_Me.h: Likewise.
77254         * lib/unictype/categ_Mn.h: Likewise.
77255         * lib/unictype/categ_N.h: Likewise.
77256         * lib/unictype/categ_Nd.h: Likewise.
77257         * lib/unictype/categ_Nl.h: Likewise.
77258         * lib/unictype/categ_No.h: Likewise.
77259         * lib/unictype/categ_P.h: Likewise.
77260         * lib/unictype/categ_Pc.h: Likewise.
77261         * lib/unictype/categ_Pd.h: Likewise.
77262         * lib/unictype/categ_Pe.h: Likewise.
77263         * lib/unictype/categ_Pf.h: Likewise.
77264         * lib/unictype/categ_Pi.h: Likewise.
77265         * lib/unictype/categ_Po.h: Likewise.
77266         * lib/unictype/categ_Ps.h: Likewise.
77267         * lib/unictype/categ_S.h: Likewise.
77268         * lib/unictype/categ_Sc.h: Likewise.
77269         * lib/unictype/categ_Sk.h: Likewise.
77270         * lib/unictype/categ_Sm.h: Likewise.
77271         * lib/unictype/categ_So.h: Likewise.
77272         * lib/unictype/categ_Z.h: Likewise.
77273         * lib/unictype/categ_Zl.h: Likewise.
77274         * lib/unictype/categ_Zp.h: Likewise.
77275         * lib/unictype/categ_Zs.h: Likewise.
77276         * lib/unictype/categ_of.h: Likewise.
77277         * lib/unictype/combining.h: Likewise.
77278         * lib/unictype/ctype_alnum.h: Likewise.
77279         * lib/unictype/ctype_alpha.h: Likewise.
77280         * lib/unictype/ctype_blank.h: Likewise.
77281         * lib/unictype/ctype_cntrl.h: Likewise.
77282         * lib/unictype/ctype_digit.h: Likewise.
77283         * lib/unictype/ctype_graph.h: Likewise.
77284         * lib/unictype/ctype_lower.h: Likewise.
77285         * lib/unictype/ctype_print.h: Likewise.
77286         * lib/unictype/ctype_punct.h: Likewise.
77287         * lib/unictype/ctype_space.h: Likewise.
77288         * lib/unictype/ctype_upper.h: Likewise.
77289         * lib/unictype/ctype_xdigit.h: Likewise.
77290         * lib/unictype/decdigit.h: Likewise.
77291         * lib/unictype/digit.h: Likewise.
77292         * lib/unictype/mirror.h: Likewise.
77293         * lib/unictype/numeric.h: Likewise.
77294         * lib/unictype/pr_alphabetic.h: Likewise.
77295         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
77296         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
77297         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
77298         * lib/unictype/pr_bidi_block_separator.h: Likewise.
77299         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
77300         * lib/unictype/pr_bidi_common_separator.h: Likewise.
77301         * lib/unictype/pr_bidi_control.h: Likewise.
77302         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
77303         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
77304         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
77305         * lib/unictype/pr_bidi_european_digit.h: Likewise.
77306         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
77307         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
77308         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
77309         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
77310         * lib/unictype/pr_bidi_pdf.h: Likewise.
77311         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
77312         * lib/unictype/pr_bidi_whitespace.h: Likewise.
77313         * lib/unictype/pr_combining.h: Likewise.
77314         * lib/unictype/pr_composite.h: Likewise.
77315         * lib/unictype/pr_currency_symbol.h: Likewise.
77316         * lib/unictype/pr_dash.h: Likewise.
77317         * lib/unictype/pr_decimal_digit.h: Likewise.
77318         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
77319         * lib/unictype/pr_deprecated.h: Likewise.
77320         * lib/unictype/pr_diacritic.h: Likewise.
77321         * lib/unictype/pr_extender.h: Likewise.
77322         * lib/unictype/pr_format_control.h: Likewise.
77323         * lib/unictype/pr_grapheme_base.h: Likewise.
77324         * lib/unictype/pr_grapheme_extend.h: Likewise.
77325         * lib/unictype/pr_grapheme_link.h: Likewise.
77326         * lib/unictype/pr_hex_digit.h: Likewise.
77327         * lib/unictype/pr_hyphen.h: Likewise.
77328         * lib/unictype/pr_id_continue.h: Likewise.
77329         * lib/unictype/pr_id_start.h: Likewise.
77330         * lib/unictype/pr_ideographic.h: Likewise.
77331         * lib/unictype/pr_ids_binary_operator.h: Likewise.
77332         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
77333         * lib/unictype/pr_ignorable_control.h: Likewise.
77334         * lib/unictype/pr_iso_control.h: Likewise.
77335         * lib/unictype/pr_join_control.h: Likewise.
77336         * lib/unictype/pr_left_of_pair.h: Likewise.
77337         * lib/unictype/pr_line_separator.h: Likewise.
77338         * lib/unictype/pr_logical_order_exception.h: Likewise.
77339         * lib/unictype/pr_lowercase.h: Likewise.
77340         * lib/unictype/pr_math.h: Likewise.
77341         * lib/unictype/pr_non_break.h: Likewise.
77342         * lib/unictype/pr_not_a_character.h: Likewise.
77343         * lib/unictype/pr_numeric.h: Likewise.
77344         * lib/unictype/pr_other_alphabetic.h: Likewise.
77345         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
77346         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
77347         * lib/unictype/pr_other_id_continue.h: Likewise.
77348         * lib/unictype/pr_other_id_start.h: Likewise.
77349         * lib/unictype/pr_other_lowercase.h: Likewise.
77350         * lib/unictype/pr_other_math.h: Likewise.
77351         * lib/unictype/pr_other_uppercase.h: Likewise.
77352         * lib/unictype/pr_paired_punctuation.h: Likewise.
77353         * lib/unictype/pr_paragraph_separator.h: Likewise.
77354         * lib/unictype/pr_pattern_syntax.h: Likewise.
77355         * lib/unictype/pr_pattern_white_space.h: Likewise.
77356         * lib/unictype/pr_private_use.h: Likewise.
77357         * lib/unictype/pr_punctuation.h: Likewise.
77358         * lib/unictype/pr_quotation_mark.h: Likewise.
77359         * lib/unictype/pr_radical.h: Likewise.
77360         * lib/unictype/pr_sentence_terminal.h: Likewise.
77361         * lib/unictype/pr_soft_dotted.h: Likewise.
77362         * lib/unictype/pr_space.h: Likewise.
77363         * lib/unictype/pr_terminal_punctuation.h: Likewise.
77364         * lib/unictype/pr_titlecase.h: Likewise.
77365         * lib/unictype/pr_unassigned_code_value.h: Likewise.
77366         * lib/unictype/pr_unified_ideograph.h: Likewise.
77367         * lib/unictype/pr_uppercase.h: Likewise.
77368         * lib/unictype/pr_variation_selector.h: Likewise.
77369         * lib/unictype/pr_white_space.h: Likewise.
77370         * lib/unictype/pr_xid_continue.h: Likewise.
77371         * lib/unictype/pr_xid_start.h: Likewise.
77372         * lib/unictype/pr_zero_width.h: Likewise.
77373         * lib/unictype/scripts.h: Likewise.
77374         * lib/unictype/scripts_byname.gperf: Likewise.
77375         * lib/unictype/sy_c_ident.h: Likewise.
77376         * lib/unictype/sy_c_whitespace.h: Likewise.
77377         * lib/unictype/sy_java_ident.h: Likewise.
77378         * lib/unictype/sy_java_whitespace.h: Likewise.
77380         * lib/unictype/Makefile: New file.
77381         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
77382         glibc.
77383         * lib/unictype/3level.h: New file, copied from glibc.
77384         * lib/unictype/3levelbit.h: New file.
77386 2007-11-11  Bruno Haible  <bruno@clisp.org>
77388         * modules/gperf: New file.
77389         * modules/iconv_open (Depends-on): Add it.
77390         (Makefile.am): Remove the GPERF definition.
77392 2007-11-11  Bruno Haible  <bruno@clisp.org>
77394         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
77395         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
77397 2007-11-11  Bruno Haible  <bruno@clisp.org>
77399         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
77400         (usage): Remove function.
77402 2007-11-11  Bruno Haible  <bruno@clisp.org>
77404         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
77405         gl_FUNC_CEILF_LIBS.
77406         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
77407         gl_FUNC_CEIL_LIBS.
77408         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
77409         gl_FUNC_CEILL_LIBS.
77410         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
77411         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
77412         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
77414 2007-11-11  Bruno Haible  <bruno@clisp.org>
77416         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
77417         roundf were declared but do not exist on functions.
77418         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
77419         roundl were declared but do not exist on functions.
77420         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
77421         HAVE_FLOORL_AND_CEILL, respectively.
77422         Needed for Sun C on Solaris 10.
77424 2007-11-11  Bruno Haible  <bruno@clisp.org>
77426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
77427         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
77428         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
77429         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
77430         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
77431         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
77432         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
77433         HAVE_DECL_ROUNDF.
77434         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
77435         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
77436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
77437         of HAVE_DECL_ROUND*.
77438         * modules/math (Makefile.am): Update.
77440 2007-11-10  Bruno Haible  <bruno@clisp.org>
77442         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
77443         ptrdiff_t as m4/intl.m4.
77445 2007-11-10  Jim Meyering  <meyering@redhat.com>
77447         Avoid link failure for the argmatch test.
77448         * tests/test-argmatch.c (usage): Define function to avoid a link
77449         failure: argmatch_die requires a usage function.
77451 2007-11-09  Bruno Haible  <bruno@clisp.org>
77453         * doc/functions/snprintf.texi: Mention BeOS deficiency.
77454         * doc/functions/vsnprintf.texi: Likewise.
77455         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
77456         with a size argument < 2.
77458 2007-11-09  Bruno Haible  <bruno@clisp.org>
77460         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
77461         buffer. Fixes an inefficiency introduced on 2007-11-03.
77463 2007-11-09  Bruno Haible  <bruno@clisp.org>
77465         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
77466         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
77468 2007-11-08  Jim Meyering  <meyering@redhat.com>
77470         Change cache variable name prefix "jm_" to "gl_" everywhere.
77471         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
77472         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
77473         * m4/uptime.m4: s/gl_/jm_/
77475 2007-11-07  Bruno Haible  <bruno@clisp.org>
77477         Update to GNU gettext 0.17.
77478         * m4/intl.m4: Update to GNU gettext 0.17.
77479         * m4/po.m4: Likewise.
77480         * modules/gettext (Files): Remove m4/ulonglong.m4.
77481         (configure.ac): Require gettext infrastructure from version 0.17.
77483 2007-11-06  Bruno Haible  <bruno@clisp.org>
77485         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
77486         symbolic values are not defined in a public header.
77487         * lib/freadable.c (freadable) [QNX]: Likewise.
77488         * lib/freadahead.c (freadahead) [QNX]: Likewise.
77489         * lib/freading.c (freading) [QNX]: Likewise.
77490         * lib/fseterr.c (fseterr) [QNX]: Likewise.
77491         * lib/fwritable.c (fwritable) [QNX]: Likewise.
77492         * lib/fwriting.c (fwriting) [QNX]: Likewise.
77493         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
77494         Reported by Alain Magloire.
77496         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
77498 2007-11-05  Bruno Haible  <bruno@clisp.org>
77500         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
77501         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
77502         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
77503         Reported by Eric Blake.
77505 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77506             Bruno Haible  <bruno@clisp.org>
77508         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
77509         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
77510         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
77511         (malloc): Undefine also before including <stdlib.h>.
77512         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
77513         Needed on OSF/1 4.0.
77515 2007-11-05  Jim Meyering  <meyering@redhat.com>
77517         git-version-gen: sync from coreutils.
77518         * build-aux/git-version-gen: Add comments.
77519         Change the first '-' to '.' in the snapshot version string,
77520         e.g., 6.9-377-08144 -> 6.9.377-08144
77521         Remove first parameter.
77522         Don't declare a version "-dirty" merely because a time
77523         stamp has changed.
77525 2007-11-04  Bruno Haible  <bruno@clisp.org>
77527         * lib/lock.h: Protect all macro definitions containing an 'if'
77528         statement through a "do { ... } while (0)".
77529         * lib/tls.h: Likewise.
77531 2007-11-04  Bruno Haible  <bruno@clisp.org>
77533         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
77535 2007-11-04  Bruno Haible  <bruno@clisp.org>
77537         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
77538         * modules/fprintf-posix (Depends-on): Add nocrash.
77539         * modules/snprintf-posix (Depends-on): Likewise.
77540         * modules/sprintf-posix (Depends-on): Likewise.
77541         * modules/vasnprintf-posix (Depends-on): Likewise.
77542         * modules/vasprintf-posix (Depends-on): Likewise.
77543         * modules/vfprintf-posix (Depends-on): Likewise.
77544         * modules/vsnprintf-posix (Depends-on): Likewise.
77545         * modules/vsprintf-posix (Depends-on): Likewise.
77546         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77547         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77548         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77549         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77550         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77551         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77552         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77554 2007-11-04  Bruno Haible  <bruno@clisp.org>
77556         * modules/nocrash: New file.
77557         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
77558         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
77560 2007-11-04  Bruno Haible  <bruno@clisp.org>
77562         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
77563         precision handling.
77564         * tests/test-vasprintf-posix.c (test_function): Likewise.
77565         * tests/test-snprintf-posix.h (test_function): Likewise.
77566         * tests/test-sprintf-posix.h (test_function): Likewise.
77568         Fix *printf behaviour for large precisions on mingw and BeOS.
77569         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
77570         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
77571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
77572         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77574         gl_PRINTF_PRECISION and test its result. Invoke
77575         gl_PREREQ_VASNPRINTF_PRECISION.
77576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77583         * doc/functions/fprintf.texi: Update.
77584         * doc/functions/printf.texi: Update.
77585         * doc/functions/snprintf.texi: Update.
77586         * doc/functions/sprintf.texi: Update.
77587         * doc/functions/vfprintf.texi: Update.
77588         * doc/functions/vprintf.texi: Update.
77589         * doc/functions/vsnprintf.texi: Update.
77590         * doc/functions/vsprintf.texi: Update.
77592 2007-11-04  Bruno Haible  <bruno@clisp.org>
77594         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
77596 2007-11-04  Bruno Haible  <bruno@clisp.org>
77598         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
77599         Reported by Sylvain Beucler <beuc@gnu.org>.
77601 2007-11-03  Bruno Haible  <bruno@clisp.org>
77603         * tests/test-fprintf-posix2.sh: New file.
77604         * tests/test-fprintf-posix2.c: New file.
77605         * modules/fprintf-posix-tests (Files): Add them.
77606         (TESTS): Add test-fprintf-posix2.sh.
77607         (configure.ac): Check for getrlimit and setrlimit.
77608         (check_PROGRAMS): Add test-fprintf-posix2.
77610         * tests/test-printf-posix2.sh: New file.
77611         * tests/test-printf-posix2.c: New file.
77612         * modules/printf-posix-tests (Files): Add them.
77613         (TESTS): Add test-printf-posix2.sh.
77614         (configure.ac): Check for getrlimit and setrlimit.
77615         (check_PROGRAMS): Add test-printf-posix2.
77617         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
77618         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
77619         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
77620         (decode_double): New function, copied from decode_long_double.
77621         (scale10_round_decimal_decoded): New function, extracted from
77622         scale10_round_decimal_long_double.
77623         (scale10_round_decimal_long_double): Use it.
77624         (scale10_round_decimal_double): New function.
77625         (floorlog10): New function.
77626         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
77627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
77628         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77629         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77630         gl_PRINTF_ENOMEM and test its result. Invoke
77631         gl_PREREQ_VASNPRINTF_ENOMEM.
77632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77633         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77634         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77635         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77636         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77637         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77638         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77639         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
77640         * modules/snprintf-posix (Depends-on): Likewise.
77641         * modules/sprintf-posix (Depends-on): Likewise.
77642         * modules/vasnprintf-posix (Depends-on): Likewise.
77643         * modules/vasprintf-posix (Depends-on): Likewise.
77644         * modules/vfprintf-posix (Depends-on): Likewise.
77645         * modules/vsnprintf-posix (Depends-on): Likewise.
77646         * modules/vsprintf-posix (Depends-on): Likewise.
77647         * doc/functions/fprintf.texi: Update.
77648         * doc/functions/printf.texi: Update.
77649         * doc/functions/snprintf.texi: Update.
77650         * doc/functions/sprintf.texi: Update.
77651         * doc/functions/vfprintf.texi: Update.
77652         * doc/functions/vprintf.texi: Update.
77653         * doc/functions/vsnprintf.texi: Update.
77654         * doc/functions/vsprintf.texi: Update.
77656 2007-11-03  Bruno Haible  <bruno@clisp.org>
77658         * modules/frexp-nolibm-tests: New file.
77660         * modules/frexp-nolibm: New file.
77661         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
77663 2007-11-03  Bruno Haible  <bruno@clisp.org>
77665         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
77666         value is C99 compliant.
77667         Needed for OSF/1 5.1.
77669 2007-11-03  Bruno Haible  <bruno@clisp.org>
77671         Fix out-of-memory handling of vasnprintf.
77672         * lib/printf-parse.c: Include <errno.h>.
77673         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
77674         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
77675         is already set.
77677 2007-11-02  Eric Blake  <ebb9@byu.net>
77679         Fix tests on cygwin.
77680         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
77682 2007-11-01  Bruno Haible  <bruno@clisp.org>
77684         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
77685         warning.
77686         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
77687         needed for POSIX compatibility.
77689 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77691         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
77692         for compatibility with GNU.
77694 2007-11-01  Bruno Haible  <bruno@clisp.org>
77696         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
77697         (putenv): Renamed from rpl_putenv. Change argument type from
77698         'const char *' to 'char *'.
77699         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
77700         of defining putenv in config.h, just set REPLACE_PUTENV.
77701         * modules/putenv (Depends-on): Add stdlib.
77702         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
77703         (Include): Use <stdlib.h>.
77704         * lib/stdlib.in.h (putenv): New declaration.
77705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
77706         REPLACE_PUTENV.
77707         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
77708         REPLACE_PUTENV.
77709         Needed for MacOS X 10.5.0.
77710         Reported by Peter O'Gorman <peter@pogma.com>.
77712 2007-11-01  Jim Meyering  <meyering@redhat.com>
77714         Treat an empty date string exactly like "0".
77715         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
77716         if the remaining date string (to be parsed) is empty, use "0".
77717         Reported by Mischa Molhoek and discussed in this thread:
77718         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
77720 2007-10-31  Bruno Haible  <bruno@clisp.org>
77722         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
77723         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
77724         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
77725         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
77726         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
77727         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
77729 2007-10-31  Bruno Haible  <bruno@clisp.org>
77731         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
77732         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
77733         (AC_TYPE_LONG_LONG_INT): Use it.
77734         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
77735         it as well.
77736         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
77737         to m4/longlong.m4.
77738         * modules/stdint (Files): Remove m4/ulonglong.m4.
77739         * modules/strtoull (Files): Use m4/longlong.m4 instead of
77740         m4/ulonglong.m4.
77741         * modules/strtoumax (Files): Likewise.
77743 2007-10-30  Bruno Haible  <bruno@clisp.org>
77745         * modules/xvasprintf-posix: New file.
77746         Suggested by Eric Blake.
77748 2007-10-30  Bruno Haible  <bruno@clisp.org>
77750         * modules/xprintf-posix-tests: New file.
77751         * tests/test-xprintf-posix.sh: New file.
77752         * tests/test-xprintf-posix.c: New file.
77753         * tests/test-xfprintf-posix.c: New file.
77755         * modules/xprintf-posix: New file.
77757 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77759         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
77760         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
77761         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
77763 2007-10-29  Bruno Haible  <bruno@clisp.org>
77765         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
77766         contain the special marker '_cv_'.
77767         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
77768         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
77769         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
77770         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
77771         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
77772         Reported by Ralf Wildenhues.
77774 2007-10-29  Bruno Haible  <bruno@clisp.org>
77776         * gnulib-tool (func_import): When --lgpl is not specified, set
77777         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
77778         GPLv3.
77779         Reported by Simon Josefsson.
77781 2007-10-28  Bruno Haible  <bruno@clisp.org>
77783         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
77784         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
77785         HAVE_DECL_ISFINITE.
77786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77787         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
77788         HAVE_DECL_ISFINITE.
77790 2007-10-28  Bruno Haible  <bruno@clisp.org>
77792         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
77793         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
77795 2007-10-28  Bruno Haible  <bruno@clisp.org>
77797         Fix link errors with Sun C 5.0 on Solaris 10.
77798         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
77799         function is declared but not present in the compiler's libm.
77800         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
77801         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
77802         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
77803         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
77804         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
77805         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
77806         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
77807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77808         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
77809         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
77810         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
77811         HAVE_DECL_FLOORL.
77813 2007-10-28  Bruno Haible  <bruno@clisp.org>
77815         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
77816         gl_FUNC_FLOORL. Cache the result.
77817         (gl_FUNC_FLOORL): Use it.
77818         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
77819         gl_FUNC_CEILL. Cache the result.
77820         (gl_FUNC_CEILL): Use it.
77822         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
77823         gl_FUNC_FLOOR. Cache the result.
77824         (gl_FUNC_FLOOR): Use it.
77825         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
77826         gl_FUNC_CEIL. Cache the result.
77827         (gl_FUNC_CEIL): Use it.
77829         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
77830         gl_FUNC_FLOORF. Cache the result.
77831         (gl_FUNC_FLOORF): Use it.
77832         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
77833         gl_FUNC_CEILF. Cache the result.
77834         (gl_FUNC_CEILF): Use it.
77836 2007-10-28  Bruno Haible  <bruno@clisp.org>
77838         * gnulib-tool: Allow specifying the LGPL version number through
77839         --lgpl=2 or --lgpl=3.
77840         (func_usage): Document --lgpl with argument.
77841         Handle --lgpl=... arguments.
77842         (func_import): Recognize also gl_LGPL calls with an argument. When
77843         --lgpl=2 is used and the module's license is just LGPL, report an
77844         error. Set sed_transform_lib_file according to the lgpl variable. In
77845         the generated files, use --lgpl or gl_LGPL invocations with argument,
77846         if necessary.
77847         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
77848         an LGPv2+ license.
77849         * doc/gnulib-tool.texi (Modified imports): Update explanation of
77850         gl_LGPL macro.
77852 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77853             Bruno Haible  <bruno@clisp.org>
77855         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
77856         (u16_uctomb_aux): Likewise.
77857         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
77858         !HAVE_INLINE.
77859         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
77861 2007-10-28  Bruno Haible  <bruno@clisp.org>
77863         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
77864         Invoke AM_GETTEXT_OPTION if it exists.
77865         * modules/vasprintf: Likewise.
77866         * modules/verror: Likewise.
77867         * modules/xprintf: Likewise.
77868         * modules/xvasprintf: Likewise.
77870 2007-10-27  Ben Pfaff  <blp@gnu.org>
77872         * lib/math.in.h: Define isfinite macro and prototypes for
77873         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
77874         implementations.
77875         * m4/math_h.m4: New substitutions for isfinite module.
77876         * lib/isfinite.c: New file.
77877         * m4/isfinite.m4: New file.
77878         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
77879         * modules/isfinite: New file.
77880         * modules/isfinite-tests: New file.
77881         * tests/tests-isfinite.c: New file.
77882         * doc/functions/isfinite.texi: Mention isfinite module.
77883         * MODULES.html.sh: Mention new module.
77885 2007-10-27  Ben Pfaff  <blp@gnu.org>
77887         Ralf Wildenhues reported that Tru64 4.0D declares the round
77888         functions but does not have definitions.
77889         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
77890         cannot be found in any library, set the output variable to
77891         "missing" instead of "".
77892         * m4/round.m4: Also use our substitute if we cannot find round in
77893         any library, even if it is declared.
77894         * m4/roundf.m4: Likewise for roundf.
77895         * m4/roundl.m4: Likewise for roundl.
77896         * lib/math.in.h: Undefine roundf, round, roundl before defining
77897         their replacements, to allow for hypothetical systems where these
77898         may be defined as macros but not available in libraries.
77900 2007-10-27  Bruno Haible  <bruno@clisp.org>
77902         * doc/gnulib.texi: Invoke @firstparagraphindent.
77903         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
77904         changes in gnulib.
77905         (Source changes): New section.
77907 2007-10-26  Bruno Haible  <bruno@clisp.org>
77909         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
77910         borrowed from autoconf.
77912 2007-10-26  Bruno Haible  <bruno@clisp.org>
77914         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
77915         strerror returned the empty string. Needed on HP-UX 11.00.
77917 2007-10-24  Micah Cowan  <micah@cowan.name>
77919         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
77920         * build-aux/bootstrap: Remove support for now-unnecessary option,
77921         --cvs-user, and envvars CVS_USER, CVS_RSH.
77923 2007-10-24  Jim Meyering  <meyering@redhat.com>
77925         Avoid diagnostics from sha1sum when there is no cached checksum.
77926         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
77927         if the po.s1 file hasn't been created yet.
77929         * build-aux/bootstrap: Sync from coreutils:
77930         2007-10-24  Jim Meyering  <meyering@redhat.com>
77931         Get gnulib from the git repository, not from an obsolete cvs one.
77932         * build-aux/bootstrap: Suggestion from Micah Cowan.
77933         2007-10-04  Jim Meyering  <jim@meyering.net>
77934         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
77935         (update_po_files): Work also when there are no .po files in po/.
77937 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77939         * README: Append ".git" to git and cg examples.
77940         Problem reported by Benoit Sigoure.
77942 2007-10-23  Micah Cowan  <micah@cowan.name>
77944         * users.txt: Add wget.
77946 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77948         Fix linking of some unistdio tests on FreeBSD.
77949         * modules/unistdio/u16-vsnprintf-tests
77950         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
77951         * modules/unistdio/u16-vsprintf-tests
77952         (test_u16_vsnprintf1_LDADD): Likewise.
77953         * modules/unistdio/u32-vsnprintf-tests
77954         (test_u32_vsnprintf1_LDADD): Likewise.
77955         * modules/unistdio/u32-vsprintf-tests
77956         (test_u32_vsprintf1_LDADD): Likewise.
77957         * modules/unistdio/u8-vsnprintf-tests
77958         (test_u8_vsnprintf1_LDADD): Likewise.
77959         * modules/unistdio/u8-vsprintf-tests
77960         (test_u8_vsprintf1_LDADD): Likewise.
77961         * modules/unistdio/ulc-vsnprintf-tests
77962         (test_ulc_vsnprintf1_LDADD): Likewise.
77963         * modules/unistdio/ulc-vsprintf-tests
77964         (test_ulc_vsprintf1_LDADD): Likewise.
77966         Fix linking of some uniconv tests on FreeBSD.
77967         * modules/uniconv/u16-conv-from-enc-tests
77968         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
77969         * modules/uniconv/u16-conv-to-enc-tests
77970         (test_u16_conv_to_enc_LDADD): Likewise.
77971         * modules/uniconv/u16-strconv-from-enc-tests
77972         (test_u16_strconv_from_enc_LDADD): Likewise.
77973         * modules/uniconv/u16-strconv-to-enc-tests
77974         (test_u16_strconv_to_enc_LDADD): Likewise.
77975         * modules/uniconv/u32-conv-from-enc-tests
77976         (test_u32_conv_from_enc_LDADD): Likewise.
77977         * modules/uniconv/u32-conv-to-enc-tests
77978         (test_u32_conv_to_enc_LDADD): Likewise.
77979         * modules/uniconv/u32-strconv-from-enc-tests
77980         (test_u32_strconv_from_enc_LDADD): Likewise.
77981         * modules/uniconv/u32-strconv-to-enc-tests
77982         (test_u32_strconv_to_enc_LDADD): Likewise.
77983         * modules/uniconv/u8-conv-from-enc-tests
77984         (test_u8_conv_from_enc_LDADD): Likewise.
77985         * modules/uniconv/u8-conv-to-enc-tests
77986         (test_u8_conv_to_enc_LDADD): Likewise.
77987         * modules/uniconv/u8-strconv-from-enc-tests
77988         (test_u8_strconv_from_enc_LDADD): Likewise.
77989         * modules/uniconv/u8-strconv-to-enc-tests
77990         (test_u8_strconv_to_enc_LDADD): Likewise.
77992 2007-10-22  Bruno Haible  <bruno@clisp.org>
77994         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
77995         size.
77997 2007-10-22  Eric Blake  <ebb9@byu.net>
77999         Tweak x*printf documentation.
78000         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
78001         variable name and comments.
78002         Suggested by Bruno Haible.
78004 2007-10-22  Bruno Haible  <bruno@clisp.org>
78006         * lib/acl.c (copy_acl): Fix file name in comment.
78008 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78010         Fix Tru64 problem with stdbool.h.
78011         * lib/stdbool.in.h (false, true):
78012         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
78013         Don't declare as an enum in this situation; it runs afoul of Tru64.
78014         Problem reported by Steven M. Schweda in
78015         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
78017 2007-10-22  Eric Blake  <ebb9@byu.net>
78019         Also wrap vf?printf.
78020         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
78021         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
78022         (xvprintf, xvfprintf): New functions.
78024 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78026         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
78027         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
78029         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
78030         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
78032 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78034         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
78035         by Bruno Haible.
78037 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78039         * lib/getloadavg.c
78040         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
78041         Undef `sys' after including sys/table.h, for Tru64 4.0D.
78043         * tests/test-i-ring.c: Work for C89.
78045 2007-10-22  Bruno Haible  <bruno@clisp.org>
78047         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
78048         -1u, in preprocessor expression, so that we don't test for the bug
78049         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
78050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
78052 2007-10-22  Eric Blake  <ebb9@byu.net>
78054         * tests/test-yesno.sh: Silence stderr during test.
78056 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78058         * modules/crypto/gc-camellia: New file.
78060         * m4/gc-camellia.m4: New file.
78062         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
78064         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
78066 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78068         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
78069         --help to stdout.  Reported by sms@antinode.org (Steven
78070         M. Schweda).
78072 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78074         * users.txt: Fix link to libksba.
78076 2007-10-21  Ben Pfaff  <blp@gnu.org>
78078         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
78079         round.c roundf implementation that depends on floorf and ceilf to
78080         be tested unconditionally.
78082 2007-10-21  Ben Pfaff  <blp@gnu.org>
78084         * m4/check-libm-func.m4: Removed.
78085         * m4/check-math-lib.m4: New file.
78086         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
78087         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
78088         definition and lack of AC_LIBOBJ([roundf]).
78089         * m4/roundl.m4: Ditto, and similarly for roundl.
78090         * modules/round: Reference new m4 file.
78091         * modules/roundf: Ditto.
78092         * modules/roundl: Ditto.
78093         * tests/test-round2.c (main): Use ROUND instead of round.
78094         Bug report from Bruno Haible.
78096 2007-10-21  Bruno Haible  <bruno@clisp.org>
78098         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
78099         context.
78101 2007-10-21  Bruno Haible  <bruno@clisp.org>
78103         * tests/test-wcwidth.c (main): Allow negative result for some control
78104         characters.
78106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
78107         Needed on OSF/1 5.1.
78109 2007-10-21  Bruno Haible  <bruno@clisp.org>
78111         * tests/test-floorf1.c: Include isnanf.h.
78112         (main): Use isnanf() instead of isnan().
78113         * tests/test-ceilf1.c: Include isnanf.h.
78114         (main): Use isnanf() instead of isnan().
78115         * tests/test-truncf1.c: Include isnanf.h.
78116         (main): Use isnanf() instead of isnan().
78117         * tests/test-roundf1.c: Include isnanf.h.
78118         (main): Use isnanf() instead of isnan().
78120 2007-10-21  Eric Blake  <ebb9@byu.net>
78122         * users.txt: Update URL for m4.
78124 2007-10-21  Bruno Haible  <bruno@clisp.org>
78126         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
78128 2007-10-21  Bruno Haible  <bruno@clisp.org>
78130         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
78131         Git's management files if the CVS files are not present.
78133 2007-10-20  Bruno Haible  <bruno@clisp.org>
78135         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
78136         gcc-3.4.x.
78138 2007-10-20  Ben Pfaff  <blp@gnu.org>
78140         * lib/math.in.h: Declare round, roundf, roundl if we are providing
78141         implementations.
78142         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
78143         * lib/round.c: New file.
78144         * lib/roundf.c: New file.
78145         * lib/roundl.c: New file.
78146         * m4/round.m4: New file.
78147         * m4/roundf.m4: New file.
78148         * m4/roundl.m4: New file.
78149         * m4/check-libm-func-m4: New file.
78150         * modules/math: Replace round, roundf, roundl related @VARS@ in
78151         math.in.h.
78152         * modules/round: New file.
78153         * modules/round-tests: New file.
78154         * modules/roundf: New file.
78155         * modules/roundf-tests: New file.
78156         * modules/roundl: New file.
78157         * modules/roundl-tests: New file.
78158         * tests/test-round1.c: New file.
78159         * tests/test-round2.c: New file.
78160         * tests/test-roundf1.c: New file.
78161         * tests/test-roundf2.c: New file.
78162         * tests/test-roundl.c: New file.
78163         * doc/functions/round.texi: Mention round module.
78164         * doc/functions/roundf.texi: Mention roundf module.
78165         * doc/functions/roundl.texi: Mention roundl module.
78166         * MODULES.html.sh: Mention new modules.
78167         Thanks to Bruno Haible for suggestions.
78169 2007-10-20  Jim Meyering  <meyering@redhat.com>
78171         * lib/xprintf.c: Include <config.h> unconditionally.
78173         Change xprintf's license to GPL.
78174         * modules/xprintf (License): s/LGPL/GPL/, since this module
78175         depends on modules (exit and exitfail) which are GPL.
78176         Suggestion from Bruno Haible.
78178         xprintf fixes.
78179         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
78180         Use a clearer diagnostic.
78181         Patch from Bruno Haible.
78183 2007-10-20  Bruno Haible  <bruno@clisp.org>
78185         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
78186         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
78187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78189 2007-10-20  Bruno Haible  <bruno@clisp.org>
78191         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
78192         precision in the comparison result > x - 1 or similar.
78193         * tests/test-ceilf2.c (correct_result_p): Likewise.
78194         * tests/test-truncf2.c (correct_result_p): Likewise.
78195         * tests/test-trunc2.c (correct_result_p): Likewise.
78196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78198 2007-10-20  Bruno Haible  <bruno@clisp.org>
78200         * modules/ceil: New file.
78201         * m4/ceil.m4: New file.
78202         * doc/functions/ceil.texi: Mention the 'ceil' module.
78204 2007-10-20  Bruno Haible  <bruno@clisp.org>
78206         * modules/floor: New file.
78207         * m4/floor.m4: New file.
78208         * doc/functions/floor.texi: Mention the 'floor' module.
78210 2007-10-20  Bruno Haible  <bruno@clisp.org>
78212         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
78213         of %a.
78214         * modules/floorf-tests (Depends-on): Likewise.
78215         * modules/truncf-tests (Depends-on): Likewise.
78216         * modules/trunc-tests (Depends-on): Likewise.
78217         Reported by Ben Pfaff.
78219 2007-10-19  Jim Meyering  <meyering@redhat.com>
78221         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
78222         Don't bother testing specific errno values.  Just test ferror.
78224         New module: xprintf
78225         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
78227 2007-10-19  Bruno Haible  <bruno@clisp.org>
78229         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
78230         syntax.
78231         * modules/javaexec (Makefile.am): Likewise.
78232         * modules/relocatable-prog (Makefile.am): Likewise.
78233         Suggested by Jim Meyering.
78235 2007-10-18  Bruno Haible  <bruno@clisp.org>
78237         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
78238         Reported by Jim Meyering.
78240 2007-10-18  Eric Blake  <ebb9@byu.net>
78242         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
78244 2007-10-18  Bruno Haible  <bruno@clisp.org>
78246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
78247         the format string into writable memory. Needed in Fortify conditions.
78249 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
78250             Bruno Haible  <bruno@clisp.org>
78252         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
78253         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
78254         * modules/trim (Depends-on): Add mbchar.
78255         (configure.ac): Add gl_FUNC_MBRTOWC.
78256         (Makefile.am): Augment lib_SOURCES.
78258 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78260         Modify glob.c to use fstatat and dirfd, to simplify it.
78261         Suggested by Eric Blake.
78262         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
78263         Don't include <stdbool.h>; not used.
78264         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
78265         (link_exists_p): Simplify implementation, since we can now assume
78266         dirfd and fstatat.
78267         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
78269 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78271         * gnulib-tool (func_get_dependencies): Fix sed script to
78272         match only tests.
78274 2007-10-17  Bruno Haible  <bruno@clisp.org>
78276         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
78277         allow locale names without encoding suffix.
78278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
78279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
78281 2007-10-16  Bruno Haible  <bruno@clisp.org>
78283         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
78284         * lib/getgroups.c (getgroups): Likewise.
78285         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
78287 2007-10-16  Bruno Haible  <bruno@clisp.org>
78289         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
78290         * modules/malloc-posix (License): Likewise.
78291         * modules/realloc-posix (License): Likewise.
78292         * modules/calloc-posix (License): Likewise.
78293         * modules/intprops (License): Change from GPL to LGPL, with
78294         Paul Eggert's approval.
78296 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78298         Merge glibc changes into lib/glob.c.
78300         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
78301         2007-10-15 04:59:03 UTC.  Here are the changes:
78303         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
78305         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
78307         * lib/glob.c: Add some branch prediction throughout.
78309         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
78311         [BZ #5103]
78312         * lib/glob.c (glob): Recognize patterns starting \/.
78314         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
78316         [BZ #3996]
78317         * lib/glob.c (attribute_hidden): Define if not defined.
78318         (glob): Unescape dirname, filename or username when needed and not
78319         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
78320         is NULL.  Handle unescaped [ in pattern without closing ].
78321         Don't pass GLOB_CHECK down to recursive glob for directories.
78322         (__glob_pattern_type): New function.
78323         (__glob_pattern_p): Implement using __glob_pattern_type.
78324         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
78325         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
78326         Remove unreachable code.
78328         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
78330         * lib/glob.c (glob_in_dir): Add some comments and asserts to
78331         explain why there are no leaks.
78333         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
78335         [BZ #3253]
78336         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
78337         time, rather allocate increasingly bigger arrays of pointers, if
78338         possible with alloca, if too large with malloc.
78340 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78342         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
78343         Problem reported by H.Merijn Brand in
78344         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
78345         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
78346         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78348 2007-10-15  Bruno Haible  <bruno@clisp.org>
78350         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
78351         with explicit rpl_ prefix.
78352         * lib/fopen.c (fopen): Likewise.
78353         * lib/freopen.c (freopen): Likewise.
78354         * lib/iconv.c (iconv): Likewise.
78355         * lib/iconv_close.c (iconv_close): Likewise.
78357 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78359         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
78361 2007-10-15  Bruno Haible  <bruno@clisp.org>
78363         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
78364         <stddef.h> instead of <stdlib.h> since we only need NULL.
78365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78367 2007-10-15  Bruno Haible  <bruno@clisp.org>
78369         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
78370         Replace paragraph talking about LIBOBJS.
78371         Reported by Colin Watson <cjwatson@debian.org>.
78373 2007-10-15  Bruno Haible  <bruno@clisp.org>
78375         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
78376         <stdlib.h> before using NULL.
78378 2007-10-15  Simon Josefsson  <simon@josefsson.org>
78380         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
78381         Reported by Albert Chin <china@thewrittenword.com>.
78383 2007-10-14  Bruno Haible  <bruno@clisp.org>
78385         * modules/iconv_open-utf-tests: New file.
78386         * tests/test-iconv-utf.c: New file.
78388         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
78389         * modules/iconv_open-utf: New file.
78390         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
78391         (iconv, iconv_close): New declarations.
78392         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
78393         be defined.
78394         (iconv_open): Add special handling of conversion between UTF-8 and
78395         UTF-{16,32}{BE,LE}.
78396         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
78397         * lib/iconv_close.c: New file.
78398         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
78399         gl_FUNC_ICONV_OPEN.
78400         (gl_FUNC_ICONV_OPEN): Use it.
78401         (gl_FUNC_ICONV_OPEN_UTF): New macro.
78402         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
78403         and REPLACE_ICONV_UTF.
78404         * modules/iconv_open (Depends-on): Add c-strcase.
78405         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
78406         ICONV_CONST.
78407         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
78409 2007-10-13  Albert Chin  <china@thewrittenword.com>
78410             Bruno Haible  <bruno@clisp.org>
78412         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
78413         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
78415 2007-10-13  Bruno Haible  <bruno@clisp.org>
78417         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
78418         defined, use the ISO C99 inline semantics.
78419         * lib/argp.h (ARGP_EI): Likewise.
78421 2007-10-13  Bruno Haible  <bruno@clisp.org>
78423         Handle 'inline' change in gcc 4.3.0.
78424         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
78425         argp_fmtstream_write, argp_fmtstream_set_lmargin,
78426         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
78427         argp_fmtstream_point): Disable 'extern' declaration if the function
78428         definition is going to be provided inline.
78429         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
78430         semantics, not the ISO C99 inline semantics.
78431         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
78432         'extern' declaration if the function definition is going to be provided
78433         inline.
78434         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
78435         the GNU C inline semantics, not the ISO C99 inline semantics. With
78436         GCC 4.2, avoid a warning.
78438 2007-10-13  Bruno Haible  <bruno@clisp.org>
78440         * lib/freading.h (freading): Enable the use of __freading for
78441         glibc >= 2.7.
78442         * lib/freading.c (freading): Likewise.
78444 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78446         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
78447         "warning: C99 inline functions are not supported; using GNU89".
78449 2007-10-12  Bruno Haible  <bruno@clisp.org>
78451         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
78452         of 2.
78453         * tests/test-ceilf2.c: New file.
78454         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
78456         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
78457         * modules/ceilf-tests: Update.
78459 2007-10-12  Bruno Haible  <bruno@clisp.org>
78461         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
78462         of 2.
78463         * tests/test-floorf2.c: New file.
78464         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
78466         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
78467         * modules/floorf-tests: Update.
78469 2007-10-12  Bruno Haible  <bruno@clisp.org>
78471         * tests/test-trunc2.c: New file.
78472         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
78474         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
78475         * modules/trunc-tests: Update.
78477 2007-10-12  Bruno Haible  <bruno@clisp.org>
78479         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
78480         of 2.
78481         * tests/test-truncf2.c: New file.
78482         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
78484         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
78485         * modules/truncf-tests: Update.
78487 2007-10-11  Eric Blake  <ebb9@byu.net>
78489         Don't claim strerror is broken on Interix.
78490         * doc/functions/strerror.texi (strerror): Known broken systems are
78491         now Solaris 8, and not Interix.
78492         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
78493         Interix on cross-compile.
78494         Reported by Martin Koeppe in
78495         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
78497 2007-10-11  Bruno Haible  <bruno@clisp.org>
78499         * modules/i-ring-tests: New file.
78500         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
78501         instead of assert.
78503 2007-10-11  Bruno Haible  <bruno@clisp.org>
78505         * modules/filenamecat-tests: New file.
78506         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
78507         * lib/filenamecat.c: Remove test code.
78509 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78511         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
78513         * lib/strerror.c: Include <string.h> always, to test interface,
78514         and to remove the need for the dummy.
78515         Include intprops.h to compute width instead of doing it ourselves
78516         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
78517         (strerror): Define it to return NULL if there's no system strerror.
78518         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
78519         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
78520         ancient pre-strerror Unix systems well any more.  Saying "unknown
78521         system error" is enough.
78522         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
78523         simpler strerror.c implementation.
78524         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
78525         Simplify the tests to reflect the simpler strerror implementation.
78526         * modules/strerror (Depends-on): Add intprops.
78528 2007-10-09  Eric Blake  <ebb9@byu.net>
78530         Silence test-fpending.
78531         * modules/fpending-tests (Files): Add wrapper script.
78532         * tests/test-fpending.sh: New file.
78534 2007-10-09  Bruno Haible  <bruno@clisp.org>
78536         * MODULES.html.sh (func_module): Don't create a hyperlink for
78537         function names like 'printf_frexp'.
78538         (Misc): Add crc, memxor.
78539         (Characteristics of floating types): New section.
78540         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
78541         isnanf-nolibm, signbit, trunc, truncf, truncl.
78542         (Enhancements for ISO C 99 functions): New subsection Input/output.
78543         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
78544         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
78545         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
78546         (Compatibility checks for POSIX:2001 functions): Add clock-time.
78547         (Enhancements for POSIX:2001 functions): Add chdir-long.
78548         (File system functions): Add areadlink, chdir-safer, read-file.
78549         Remove cycle-check.
78550         (File system as inode set): New section.
78551         (Date and time): Add gethrxtime.
78552         (Multithreading): Add openmp.
78553         (Internationalization functions): Add localename.
78554         (Unicode string functions): Add unistr/u*-mbsnlen.
78555         (Support for maintaining and releasing projects): Add git-version-gen.
78556         (Lone files): Remove directories.
78558 2007-10-08  Ben Pfaff  <blp@gnu.org>
78560         * lib/xmalloca.h: Fix typo in comment.
78562 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78564         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
78565         when avoiding problems with integer overflow.  Use a portable test
78566         instead.
78568 2007-10-08  Simon Josefsson  <simon@josefsson.org>
78570         * modules/dummy (License): Change to LGPLv2+.
78571         * modules/float (License): Likewise
78572         * modules/realloc (License): Likewise
78573         * modules/stdlib (License): Likewise
78575 2007-10-07  Bruno Haible  <bruno@clisp.org>
78577         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
78578         * floor.c (TWO_MANT_DIG): Likewise.
78579         * ceil.c (TWO_MANT_DIG): Likewise.
78580         Reported by Ben Pfaff.
78582 2007-10-07  Bruno Haible  <bruno@clisp.org>
78584         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
78585         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
78586         * lib/frexp.c (FUNC): Likewise.
78587         * lib/printf-frexp.h (printf_frexp): Likewise.
78588         * lib/printf-frexpl.h (printf_frexpl): Likewise.
78589         * lib/printf-frexp.c (FUNC): Likewise.
78590         Suggested by Jim Meyering.
78592 2007-10-07  Jim Meyering  <meyering@redhat.com>
78594         Make xnanosleep's integer overflow test more robust.
78595         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
78596         so that gcc-4.3.0 doesn't optimize away this test for overflow.
78598 2007-10-07  Bruno Haible  <bruno@clisp.org>
78600         * NEWS: Mention the license change.
78602         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
78603         abbreviations in the modules files.
78605         Change copyright notice from GPLv2+ to GPLv3+.
78606         * README: Change copyright notice.
78607         * MODULES.html.sh: Likewise.
78608         * build-aux/bootstrap.conf: Likewise.
78609         * build-aux/config.libpath: Likewise.
78610         * build-aux/csharpcomp.sh.in: Likewise.
78611         * build-aux/csharpexec.sh.in: Likewise.
78612         * build-aux/install-reloc: Likewise.
78613         * build-aux/javacomp.sh.in: Likewise.
78614         * build-aux/javaexec.sh.in: Likewise.
78615         * build-aux/ldd.sh.in: Likewise.
78616         * build-aux/reloc-ldflags: Likewise.
78617         * build-aux/relocatable.sh.in: Likewise.
78618         * build-aux/x-to-1.in: Likewise.
78619         * check-module: Likewise.
78620         * config/srclistvars.sh: Likewise.
78621         * gnulib-tool: Likewise.
78622         * lib/acl-internal.h: Likewise.
78623         * lib/acl.c: Likewise.
78624         * lib/acl.h: Likewise.
78625         * lib/acl_entries.c: Likewise.
78626         * lib/areadlink-with-size.c: Likewise.
78627         * lib/areadlink.c: Likewise.
78628         * lib/areadlink.h: Likewise.
78629         * lib/argmatch.c: Likewise.
78630         * lib/argmatch.h: Likewise.
78631         * lib/argp-ba.c: Likewise.
78632         * lib/argp-eexst.c: Likewise.
78633         * lib/argp-fmtstream.c: Likewise.
78634         * lib/argp-fmtstream.h: Likewise.
78635         * lib/argp-fs-xinl.c: Likewise.
78636         * lib/argp-help.c: Likewise.
78637         * lib/argp-namefrob.h: Likewise.
78638         * lib/argp-parse.c: Likewise.
78639         * lib/argp-pin.c: Likewise.
78640         * lib/argp-pv.c: Likewise.
78641         * lib/argp-pvh.c: Likewise.
78642         * lib/argp-xinl.c: Likewise.
78643         * lib/argp.h: Likewise.
78644         * lib/at-func.c: Likewise.
78645         * lib/atanl.c: Likewise.
78646         * lib/backupfile.c: Likewise.
78647         * lib/backupfile.h: Likewise.
78648         * lib/basename.c: Likewise.
78649         * lib/binary-io.h: Likewise.
78650         * lib/byteswap.in.h: Likewise.
78651         * lib/c-stack.c: Likewise.
78652         * lib/c-stack.h: Likewise.
78653         * lib/c-strcasestr.c: Likewise.
78654         * lib/c-strcasestr.h: Likewise.
78655         * lib/c-strstr.c: Likewise.
78656         * lib/c-strstr.h: Likewise.
78657         * lib/c-strtod.c: Likewise.
78658         * lib/calloc.c: Likewise.
78659         * lib/canon-host.c: Likewise.
78660         * lib/canon-host.h: Likewise.
78661         * lib/canonicalize-lgpl.c: Likewise.
78662         * lib/canonicalize.c: Likewise.
78663         * lib/canonicalize.h: Likewise.
78664         * lib/ceil.c: Likewise.
78665         * lib/ceilf.c: Likewise.
78666         * lib/ceill.c: Likewise.
78667         * lib/chdir-long.c: Likewise.
78668         * lib/chdir-long.h: Likewise.
78669         * lib/chdir-safer.c: Likewise.
78670         * lib/chdir-safer.h: Likewise.
78671         * lib/chown.c: Likewise.
78672         * lib/classpath.c: Likewise.
78673         * lib/classpath.h: Likewise.
78674         * lib/clean-temp.c: Likewise.
78675         * lib/clean-temp.h: Likewise.
78676         * lib/cloexec.c: Likewise.
78677         * lib/close-stream.c: Likewise.
78678         * lib/closein.c: Likewise.
78679         * lib/closein.h: Likewise.
78680         * lib/closeout.c: Likewise.
78681         * lib/closeout.h: Likewise.
78682         * lib/concat-filename.c: Likewise.
78683         * lib/copy-file.c: Likewise.
78684         * lib/copy-file.h: Likewise.
78685         * lib/count-one-bits.h: Likewise.
78686         * lib/crc.c: Likewise.
78687         * lib/crc.h: Likewise.
78688         * lib/creat-safer.c: Likewise.
78689         * lib/csharpcomp.c: Likewise.
78690         * lib/csharpcomp.h: Likewise.
78691         * lib/csharpexec.c: Likewise.
78692         * lib/csharpexec.h: Likewise.
78693         * lib/cycle-check.c: Likewise.
78694         * lib/cycle-check.h: Likewise.
78695         * lib/diacrit.c: Likewise.
78696         * lib/diacrit.h: Likewise.
78697         * lib/diffseq.h: Likewise.
78698         * lib/dirchownmod.c: Likewise.
78699         * lib/dirent.in.h: Likewise.
78700         * lib/dirfd.c: Likewise.
78701         * lib/dirfd.h: Likewise.
78702         * lib/dirname.c: Likewise.
78703         * lib/dirname.h: Likewise.
78704         * lib/dummy.c: Likewise.
78705         * lib/dup-safer.c: Likewise.
78706         * lib/dup2.c: Likewise.
78707         * lib/eealloc.h: Likewise.
78708         * lib/error.c: Likewise.
78709         * lib/error.h: Likewise.
78710         * lib/euidaccess.c: Likewise.
78711         * lib/exclude.c: Likewise.
78712         * lib/exclude.h: Likewise.
78713         * lib/execute.c: Likewise.
78714         * lib/execute.h: Likewise.
78715         * lib/exitfail.c: Likewise.
78716         * lib/exitfail.h: Likewise.
78717         * lib/expl.c: Likewise.
78718         * lib/fatal-signal.c: Likewise.
78719         * lib/fatal-signal.h: Likewise.
78720         * lib/fbufmode.c: Likewise.
78721         * lib/fbufmode.h: Likewise.
78722         * lib/fchdir.c: Likewise.
78723         * lib/fchmodat.c: Likewise.
78724         * lib/fchownat.c: Likewise.
78725         * lib/fcntl--.h: Likewise.
78726         * lib/fcntl-safer.h: Likewise.
78727         * lib/fcntl.in.h: Likewise.
78728         * lib/fd-safer.c: Likewise.
78729         * lib/fflush.c: Likewise.
78730         * lib/file-has-acl.c: Likewise.
78731         * lib/file-set.c: Likewise.
78732         * lib/file-type.c: Likewise.
78733         * lib/file-type.h: Likewise.
78734         * lib/fileblocks.c: Likewise.
78735         * lib/filemode.c: Likewise.
78736         * lib/filemode.h: Likewise.
78737         * lib/filename.h: Likewise.
78738         * lib/filenamecat.c: Likewise.
78739         * lib/filenamecat.h: Likewise.
78740         * lib/findprog.c: Likewise.
78741         * lib/findprog.h: Likewise.
78742         * lib/float.in.h: Likewise.
78743         * lib/floor.c: Likewise.
78744         * lib/floorf.c: Likewise.
78745         * lib/floorl.c: Likewise.
78746         * lib/fopen-safer.c: Likewise.
78747         * lib/fopen.c: Likewise.
78748         * lib/fpending.c: Likewise.
78749         * lib/fpending.h: Likewise.
78750         * lib/fprintf.c: Likewise.
78751         * lib/fprintftime.h: Likewise.
78752         * lib/fpucw.h: Likewise.
78753         * lib/fpurge.c: Likewise.
78754         * lib/fpurge.h: Likewise.
78755         * lib/freadable.c: Likewise.
78756         * lib/freadable.h: Likewise.
78757         * lib/freadahead.c: Likewise.
78758         * lib/freadahead.h: Likewise.
78759         * lib/freading.c: Likewise.
78760         * lib/freading.h: Likewise.
78761         * lib/free.c: Likewise.
78762         * lib/freopen.c: Likewise.
78763         * lib/frexp.c: Likewise.
78764         * lib/frexpl.c: Likewise.
78765         * lib/fseek.c: Likewise.
78766         * lib/fseterr.c: Likewise.
78767         * lib/fseterr.h: Likewise.
78768         * lib/fstatat.c: Likewise.
78769         * lib/fstrcmp.c: Likewise.
78770         * lib/fstrcmp.h: Likewise.
78771         * lib/fsusage.c: Likewise.
78772         * lib/fsusage.h: Likewise.
78773         * lib/ftell.c: Likewise.
78774         * lib/ftello.c: Likewise.
78775         * lib/fts-cycle.c: Likewise.
78776         * lib/fts.c: Likewise.
78777         * lib/fts_.h: Likewise.
78778         * lib/full-read.c: Likewise.
78779         * lib/full-read.h: Likewise.
78780         * lib/full-write.c: Likewise.
78781         * lib/full-write.h: Likewise.
78782         * lib/fwritable.c: Likewise.
78783         * lib/fwritable.h: Likewise.
78784         * lib/fwriteerror.c: Likewise.
78785         * lib/fwriteerror.h: Likewise.
78786         * lib/fwriting.c: Likewise.
78787         * lib/fwriting.h: Likewise.
78788         * lib/gcd.c: Likewise.
78789         * lib/gcd.h: Likewise.
78790         * lib/getcwd.c: Likewise.
78791         * lib/getdate.h: Likewise.
78792         * lib/getdate.y: Likewise.
78793         * lib/getdomainname.c: Likewise.
78794         * lib/getdomainname.h: Likewise.
78795         * lib/getgroups.c: Likewise.
78796         * lib/gethostname.c: Likewise.
78797         * lib/gethrxtime.c: Likewise.
78798         * lib/gethrxtime.h: Likewise.
78799         * lib/getloadavg.c: Likewise.
78800         * lib/getndelim2.c: Likewise.
78801         * lib/getndelim2.h: Likewise.
78802         * lib/getnline.c: Likewise.
78803         * lib/getnline.h: Likewise.
78804         * lib/getopt.c: Likewise.
78805         * lib/getopt.in.h: Likewise.
78806         * lib/getopt1.c: Likewise.
78807         * lib/getopt_int.h: Likewise.
78808         * lib/getpagesize.h: Likewise.
78809         * lib/getsubopt.c: Likewise.
78810         * lib/gettime.c: Likewise.
78811         * lib/getugroups.c: Likewise.
78812         * lib/getugroups.h: Likewise.
78813         * lib/getusershell.c: Likewise.
78814         * lib/gl_anyavltree_list1.h: Likewise.
78815         * lib/gl_anyavltree_list2.h: Likewise.
78816         * lib/gl_anyhash_list1.h: Likewise.
78817         * lib/gl_anyhash_list2.h: Likewise.
78818         * lib/gl_anylinked_list1.h: Likewise.
78819         * lib/gl_anylinked_list2.h: Likewise.
78820         * lib/gl_anyrbtree_list1.h: Likewise.
78821         * lib/gl_anyrbtree_list2.h: Likewise.
78822         * lib/gl_anytree_list1.h: Likewise.
78823         * lib/gl_anytree_list2.h: Likewise.
78824         * lib/gl_anytree_oset.h: Likewise.
78825         * lib/gl_anytreehash_list1.h: Likewise.
78826         * lib/gl_anytreehash_list2.h: Likewise.
78827         * lib/gl_array_list.c: Likewise.
78828         * lib/gl_array_list.h: Likewise.
78829         * lib/gl_array_oset.c: Likewise.
78830         * lib/gl_array_oset.h: Likewise.
78831         * lib/gl_avltree_list.c: Likewise.
78832         * lib/gl_avltree_list.h: Likewise.
78833         * lib/gl_avltree_oset.c: Likewise.
78834         * lib/gl_avltree_oset.h: Likewise.
78835         * lib/gl_avltreehash_list.c: Likewise.
78836         * lib/gl_avltreehash_list.h: Likewise.
78837         * lib/gl_carray_list.c: Likewise.
78838         * lib/gl_carray_list.h: Likewise.
78839         * lib/gl_linked_list.c: Likewise.
78840         * lib/gl_linked_list.h: Likewise.
78841         * lib/gl_linkedhash_list.c: Likewise.
78842         * lib/gl_linkedhash_list.h: Likewise.
78843         * lib/gl_list.c: Likewise.
78844         * lib/gl_list.h: Likewise.
78845         * lib/gl_oset.c: Likewise.
78846         * lib/gl_oset.h: Likewise.
78847         * lib/gl_rbtree_list.c: Likewise.
78848         * lib/gl_rbtree_list.h: Likewise.
78849         * lib/gl_rbtree_oset.c: Likewise.
78850         * lib/gl_rbtree_oset.h: Likewise.
78851         * lib/gl_rbtreehash_list.c: Likewise.
78852         * lib/gl_rbtreehash_list.h: Likewise.
78853         * lib/gl_sublist.c: Likewise.
78854         * lib/gl_sublist.h: Likewise.
78855         * lib/group-member.c: Likewise.
78856         * lib/group-member.h: Likewise.
78857         * lib/hard-locale.c: Likewise.
78858         * lib/hard-locale.h: Likewise.
78859         * lib/hash-pjw.c: Likewise.
78860         * lib/hash-pjw.h: Likewise.
78861         * lib/hash-triple.c: Likewise.
78862         * lib/hash.c: Likewise.
78863         * lib/hash.h: Likewise.
78864         * lib/human.c: Likewise.
78865         * lib/human.h: Likewise.
78866         * lib/i-ring.c: Likewise.
78867         * lib/i-ring.h: Likewise.
78868         * lib/idcache.c: Likewise.
78869         * lib/imaxabs.c: Likewise.
78870         * lib/imaxdiv.c: Likewise.
78871         * lib/inet_pton.c: Likewise.
78872         * lib/inet_pton.h: Likewise.
78873         * lib/intprops.h: Likewise.
78874         * lib/inttostr.c: Likewise.
78875         * lib/inttostr.h: Likewise.
78876         * lib/inttypes.in.h: Likewise.
78877         * lib/isapipe.c: Likewise.
78878         * lib/isdir.c: Likewise.
78879         * lib/isnan.c: Likewise.
78880         * lib/isnan.h: Likewise.
78881         * lib/isnanf.c: Likewise.
78882         * lib/isnanf.h: Likewise.
78883         * lib/isnanl-nolibm.h: Likewise.
78884         * lib/isnanl.c: Likewise.
78885         * lib/isnanl.h: Likewise.
78886         * lib/javacomp.c: Likewise.
78887         * lib/javacomp.h: Likewise.
78888         * lib/javaexec.c: Likewise.
78889         * lib/javaexec.h: Likewise.
78890         * lib/javaversion.c: Likewise.
78891         * lib/javaversion.h: Likewise.
78892         * lib/javaversion.java: Likewise.
78893         * lib/lbrkprop.h: Likewise.
78894         * lib/lchmod.h: Likewise.
78895         * lib/lchown.c: Likewise.
78896         * lib/ldexpl.c: Likewise.
78897         * lib/linebreak.c: Likewise.
78898         * lib/linebreak.h: Likewise.
78899         * lib/linebuffer.c: Likewise.
78900         * lib/linebuffer.h: Likewise.
78901         * lib/locale.in.h: Likewise.
78902         * lib/logl.c: Likewise.
78903         * lib/long-options.c: Likewise.
78904         * lib/long-options.h: Likewise.
78905         * lib/lstat.c: Likewise.
78906         * lib/lstat.h: Likewise.
78907         * lib/math.in.h: Likewise.
78908         * lib/mbchar.c: Likewise.
78909         * lib/mbchar.h: Likewise.
78910         * lib/mbfile.h: Likewise.
78911         * lib/mbiter.h: Likewise.
78912         * lib/mbscasecmp.c: Likewise.
78913         * lib/mbscasestr.c: Likewise.
78914         * lib/mbschr.c: Likewise.
78915         * lib/mbscspn.c: Likewise.
78916         * lib/mbslen.c: Likewise.
78917         * lib/mbsncasecmp.c: Likewise.
78918         * lib/mbsnlen.c: Likewise.
78919         * lib/mbspbrk.c: Likewise.
78920         * lib/mbspcasecmp.c: Likewise.
78921         * lib/mbsrchr.c: Likewise.
78922         * lib/mbssep.c: Likewise.
78923         * lib/mbsspn.c: Likewise.
78924         * lib/mbsstr.c: Likewise.
78925         * lib/mbstok_r.c: Likewise.
78926         * lib/mbswidth.c: Likewise.
78927         * lib/mbswidth.h: Likewise.
78928         * lib/mbuiter.h: Likewise.
78929         * lib/memcasecmp.c: Likewise.
78930         * lib/memcasecmp.h: Likewise.
78931         * lib/memchr.c: Likewise.
78932         * lib/memcmp.c: Likewise.
78933         * lib/memcoll.c: Likewise.
78934         * lib/memcoll.h: Likewise.
78935         * lib/memcpy.c: Likewise.
78936         * lib/memrchr.c: Likewise.
78937         * lib/mkancesdirs.c: Likewise.
78938         * lib/mkdir-p.c: Likewise.
78939         * lib/mkdir-p.h: Likewise.
78940         * lib/mkdir.c: Likewise.
78941         * lib/mkdirat.c: Likewise.
78942         * lib/mkdtemp.c: Likewise.
78943         * lib/mkstemp-safer.c: Likewise.
78944         * lib/mkstemp.c: Likewise.
78945         * lib/modechange.c: Likewise.
78946         * lib/modechange.h: Likewise.
78947         * lib/mountlist.c: Likewise.
78948         * lib/mountlist.h: Likewise.
78949         * lib/mpsort.c: Likewise.
78950         * lib/nanosleep.c: Likewise.
78951         * lib/obstack.c: Likewise.
78952         * lib/obstack.h: Likewise.
78953         * lib/open-safer.c: Likewise.
78954         * lib/open.c: Likewise.
78955         * lib/openat-die.c: Likewise.
78956         * lib/openat-priv.h: Likewise.
78957         * lib/openat-proc.c: Likewise.
78958         * lib/openat.c: Likewise.
78959         * lib/openat.h: Likewise.
78960         * lib/pagealign_alloc.c: Likewise.
78961         * lib/pagealign_alloc.h: Likewise.
78962         * lib/physmem.c: Likewise.
78963         * lib/physmem.h: Likewise.
78964         * lib/pipe-safer.c: Likewise.
78965         * lib/pipe.c: Likewise.
78966         * lib/pipe.h: Likewise.
78967         * lib/posixtm.c: Likewise.
78968         * lib/posixtm.h: Likewise.
78969         * lib/posixver.c: Likewise.
78970         * lib/printf-frexp.c: Likewise.
78971         * lib/printf-frexp.h: Likewise.
78972         * lib/printf-frexpl.c: Likewise.
78973         * lib/printf-frexpl.h: Likewise.
78974         * lib/printf.c: Likewise.
78975         * lib/progname.c: Likewise.
78976         * lib/progname.h: Likewise.
78977         * lib/progreloc.c: Likewise.
78978         * lib/putenv.c: Likewise.
78979         * lib/quote.c: Likewise.
78980         * lib/quote.h: Likewise.
78981         * lib/quotearg.c: Likewise.
78982         * lib/quotearg.h: Likewise.
78983         * lib/raise.c: Likewise.
78984         * lib/readline.c: Likewise.
78985         * lib/readline.h: Likewise.
78986         * lib/readlink.c: Likewise.
78987         * lib/readtokens.c: Likewise.
78988         * lib/readtokens.h: Likewise.
78989         * lib/readtokens0.c: Likewise.
78990         * lib/readtokens0.h: Likewise.
78991         * lib/readutmp.c: Likewise.
78992         * lib/readutmp.h: Likewise.
78993         * lib/realloc.c: Likewise.
78994         * lib/relocwrapper.c: Likewise.
78995         * lib/rename-dest-slash.c: Likewise.
78996         * lib/rename.c: Likewise.
78997         * lib/rmdir.c: Likewise.
78998         * lib/rpmatch.c: Likewise.
78999         * lib/safe-read.c: Likewise.
79000         * lib/safe-read.h: Likewise.
79001         * lib/safe-write.c: Likewise.
79002         * lib/safe-write.h: Likewise.
79003         * lib/same-inode.h: Likewise.
79004         * lib/same.c: Likewise.
79005         * lib/same.h: Likewise.
79006         * lib/save-cwd.c: Likewise.
79007         * lib/save-cwd.h: Likewise.
79008         * lib/savedir.c: Likewise.
79009         * lib/savedir.h: Likewise.
79010         * lib/savewd.c: Likewise.
79011         * lib/savewd.h: Likewise.
79012         * lib/search.in.h: Likewise.
79013         * lib/setenv.c: Likewise.
79014         * lib/setenv.h: Likewise.
79015         * lib/settime.c: Likewise.
79016         * lib/sh-quote.c: Likewise.
79017         * lib/sh-quote.h: Likewise.
79018         * lib/sig2str.c: Likewise.
79019         * lib/sig2str.h: Likewise.
79020         * lib/signal.in.h: Likewise.
79021         * lib/signbitd.c: Likewise.
79022         * lib/signbitf.c: Likewise.
79023         * lib/signbitl.c: Likewise.
79024         * lib/sigprocmask.c: Likewise.
79025         * lib/sincosl.c: Likewise.
79026         * lib/sleep.c: Likewise.
79027         * lib/sprintf.c: Likewise.
79028         * lib/sqrtl.c: Likewise.
79029         * lib/stat-time.h: Likewise.
79030         * lib/stdio--.h: Likewise.
79031         * lib/stdio-safer.h: Likewise.
79032         * lib/stdlib--.h: Likewise.
79033         * lib/stdlib-safer.h: Likewise.
79034         * lib/stdlib.in.h: Likewise.
79035         * lib/stpcpy.c: Likewise.
79036         * lib/stpncpy.c: Likewise.
79037         * lib/strchrnul.c: Likewise.
79038         * lib/strcspn.c: Likewise.
79039         * lib/strerror.c: Likewise.
79040         * lib/strftime.c: Likewise.
79041         * lib/strftime.h: Likewise.
79042         * lib/striconveh.c: Likewise.
79043         * lib/striconveh.h: Likewise.
79044         * lib/striconveha.c: Likewise.
79045         * lib/striconveha.h: Likewise.
79046         * lib/stripslash.c: Likewise.
79047         * lib/strnlen1.c: Likewise.
79048         * lib/strnlen1.h: Likewise.
79049         * lib/strtod.c: Likewise.
79050         * lib/strtoimax.c: Likewise.
79051         * lib/strtok_r.c: Likewise.
79052         * lib/strtol.c: Likewise.
79053         * lib/strtoll.c: Likewise.
79054         * lib/strtoul.c: Likewise.
79055         * lib/strtoull.c: Likewise.
79056         * lib/sysexits.in.h: Likewise.
79057         * lib/tempname.c: Likewise.
79058         * lib/tempname.h: Likewise.
79059         * lib/timespec.h: Likewise.
79060         * lib/tls.c: Likewise.
79061         * lib/tls.h: Likewise.
79062         * lib/tmpdir.c: Likewise.
79063         * lib/tmpdir.h: Likewise.
79064         * lib/tmpfile-safer.c: Likewise.
79065         * lib/tmpfile.c: Likewise.
79066         * lib/trigl.c: Likewise.
79067         * lib/trigl.h: Likewise.
79068         * lib/trim.c: Likewise.
79069         * lib/trim.h: Likewise.
79070         * lib/trunc.c: Likewise.
79071         * lib/truncf.c: Likewise.
79072         * lib/truncl.c: Likewise.
79073         * lib/tsearch.c: Likewise.
79074         * lib/unicodeio.c: Likewise.
79075         * lib/unicodeio.h: Likewise.
79076         * lib/unistd--.h: Likewise.
79077         * lib/unistd-safer.h: Likewise.
79078         * lib/unistdio/ulc-fprintf.c: Likewise.
79079         * lib/unistdio/ulc-vfprintf.c: Likewise.
79080         * lib/unlinkdir.c: Likewise.
79081         * lib/unlinkdir.h: Likewise.
79082         * lib/unlocked-io.h: Likewise.
79083         * lib/unsetenv.c: Likewise.
79084         * lib/userspec.c: Likewise.
79085         * lib/utime.c: Likewise.
79086         * lib/utimecmp.c: Likewise.
79087         * lib/utimecmp.h: Likewise.
79088         * lib/utimens.c: Likewise.
79089         * lib/verify.h: Likewise.
79090         * lib/verror.c: Likewise.
79091         * lib/verror.h: Likewise.
79092         * lib/version-etc-fsf.c: Likewise.
79093         * lib/version-etc.c: Likewise.
79094         * lib/version-etc.h: Likewise.
79095         * lib/vfprintf.c: Likewise.
79096         * lib/vprintf.c: Likewise.
79097         * lib/vsprintf.c: Likewise.
79098         * lib/w32spawn.h: Likewise.
79099         * lib/wait-process.c: Likewise.
79100         * lib/wait-process.h: Likewise.
79101         * lib/wcwidth.c: Likewise.
79102         * lib/write-any-file.c: Likewise.
79103         * lib/xalloc-die.c: Likewise.
79104         * lib/xalloc.h: Likewise.
79105         * lib/xasprintf.c: Likewise.
79106         * lib/xgetcwd.c: Likewise.
79107         * lib/xgetcwd.h: Likewise.
79108         * lib/xgetdomainname.c: Likewise.
79109         * lib/xgetdomainname.h: Likewise.
79110         * lib/xgethostname.c: Likewise.
79111         * lib/xmalloc.c: Likewise.
79112         * lib/xmalloca.c: Likewise.
79113         * lib/xmalloca.h: Likewise.
79114         * lib/xmemcoll.c: Likewise.
79115         * lib/xnanosleep.c: Likewise.
79116         * lib/xreadlink.c: Likewise.
79117         * lib/xreadlink.h: Likewise.
79118         * lib/xsetenv.c: Likewise.
79119         * lib/xsetenv.h: Likewise.
79120         * lib/xstriconv.c: Likewise.
79121         * lib/xstriconv.h: Likewise.
79122         * lib/xstrndup.c: Likewise.
79123         * lib/xstrndup.h: Likewise.
79124         * lib/xstrtod.c: Likewise.
79125         * lib/xstrtod.h: Likewise.
79126         * lib/xstrtol-error.c: Likewise.
79127         * lib/xstrtol.c: Likewise.
79128         * lib/xstrtol.h: Likewise.
79129         * lib/xtime.h: Likewise.
79130         * lib/xvasprintf.c: Likewise.
79131         * lib/xvasprintf.h: Likewise.
79132         * lib/yesno.c: Likewise.
79133         * lib/yesno.h: Likewise.
79134         * posix-modules: Likewise.
79135         * tests/test-alloca-opt.c: Likewise.
79136         * tests/test-arcfour.c: Likewise.
79137         * tests/test-arctwo.c: Likewise.
79138         * tests/test-argmatch.c: Likewise.
79139         * tests/test-argp-2.sh: Likewise.
79140         * tests/test-argp.c: Likewise.
79141         * tests/test-arpa_inet.c: Likewise.
79142         * tests/test-array_list.c: Likewise.
79143         * tests/test-array_oset.c: Likewise.
79144         * tests/test-atexit.c: Likewise.
79145         * tests/test-avltree_list.c: Likewise.
79146         * tests/test-avltree_oset.c: Likewise.
79147         * tests/test-avltreehash_list.c: Likewise.
79148         * tests/test-base64.c: Likewise.
79149         * tests/test-binary-io.c: Likewise.
79150         * tests/test-byteswap.c: Likewise.
79151         * tests/test-c-ctype.c: Likewise.
79152         * tests/test-c-strcasecmp.c: Likewise.
79153         * tests/test-c-strcasestr.c: Likewise.
79154         * tests/test-c-strncasecmp.c: Likewise.
79155         * tests/test-c-strstr.c: Likewise.
79156         * tests/test-canonicalize-lgpl.c: Likewise.
79157         * tests/test-canonicalize.c: Likewise.
79158         * tests/test-carray_list.c: Likewise.
79159         * tests/test-ceilf.c: Likewise.
79160         * tests/test-ceill.c: Likewise.
79161         * tests/test-count-one-bits.c: Likewise.
79162         * tests/test-crc.c: Likewise.
79163         * tests/test-dirname.c: Likewise.
79164         * tests/test-fbufmode.c: Likewise.
79165         * tests/test-fcntl.c: Likewise.
79166         * tests/test-fflush.c: Likewise.
79167         * tests/test-floorf.c: Likewise.
79168         * tests/test-floorl.c: Likewise.
79169         * tests/test-fopen.c: Likewise.
79170         * tests/test-fprintf-posix.c: Likewise.
79171         * tests/test-fprintf-posix.h: Likewise.
79172         * tests/test-fpurge.c: Likewise.
79173         * tests/test-freadable.c: Likewise.
79174         * tests/test-freadahead.c: Likewise.
79175         * tests/test-freading.c: Likewise.
79176         * tests/test-freopen.c: Likewise.
79177         * tests/test-frexp.c: Likewise.
79178         * tests/test-frexpl.c: Likewise.
79179         * tests/test-fseek.c: Likewise.
79180         * tests/test-fseeko.c: Likewise.
79181         * tests/test-fseterr.c: Likewise.
79182         * tests/test-fstrcmp.c: Likewise.
79183         * tests/test-ftell.c: Likewise.
79184         * tests/test-ftello.c: Likewise.
79185         * tests/test-fwritable.c: Likewise.
79186         * tests/test-fwriting.c: Likewise.
79187         * tests/test-getaddrinfo.c: Likewise.
79188         * tests/test-getpass.c: Likewise.
79189         * tests/test-gettimeofday.c: Likewise.
79190         * tests/test-hmac-md5.c: Likewise.
79191         * tests/test-hmac-sha1.c: Likewise.
79192         * tests/test-iconv.c: Likewise.
79193         * tests/test-iconvme.c: Likewise.
79194         * tests/test-inttypes.c: Likewise.
79195         * tests/test-isnan.c: Likewise.
79196         * tests/test-isnanf.c: Likewise.
79197         * tests/test-isnanl-nolibm.c: Likewise.
79198         * tests/test-isnanl.c: Likewise.
79199         * tests/test-isnanl.h: Likewise.
79200         * tests/test-ldexpl.c: Likewise.
79201         * tests/test-linked_list.c: Likewise.
79202         * tests/test-linkedhash_list.c: Likewise.
79203         * tests/test-locale.c: Likewise.
79204         * tests/test-localename.c: Likewise.
79205         * tests/test-lock.c: Likewise.
79206         * tests/test-lseek.c: Likewise.
79207         * tests/test-malloca.c: Likewise.
79208         * tests/test-math.c: Likewise.
79209         * tests/test-mbscasecmp.c: Likewise.
79210         * tests/test-mbscasestr1.c: Likewise.
79211         * tests/test-mbscasestr2.c: Likewise.
79212         * tests/test-mbscasestr3.c: Likewise.
79213         * tests/test-mbscasestr4.c: Likewise.
79214         * tests/test-mbschr.c: Likewise.
79215         * tests/test-mbscspn.c: Likewise.
79216         * tests/test-mbsncasecmp.c: Likewise.
79217         * tests/test-mbspbrk.c: Likewise.
79218         * tests/test-mbspcasecmp.c: Likewise.
79219         * tests/test-mbsrchr.c: Likewise.
79220         * tests/test-mbsspn.c: Likewise.
79221         * tests/test-mbsstr1.c: Likewise.
79222         * tests/test-mbsstr2.c: Likewise.
79223         * tests/test-mbsstr3.c: Likewise.
79224         * tests/test-md5.c: Likewise.
79225         * tests/test-memmem.c: Likewise.
79226         * tests/test-netinet_in.c: Likewise.
79227         * tests/test-open.c: Likewise.
79228         * tests/test-printf-frexp.c: Likewise.
79229         * tests/test-printf-frexpl.c: Likewise.
79230         * tests/test-printf-posix.c: Likewise.
79231         * tests/test-printf-posix.h: Likewise.
79232         * tests/test-rbtree_list.c: Likewise.
79233         * tests/test-rbtree_oset.c: Likewise.
79234         * tests/test-rbtreehash_list.c: Likewise.
79235         * tests/test-read-file.c: Likewise.
79236         * tests/test-rijndael.c: Likewise.
79237         * tests/test-search.c: Likewise.
79238         * tests/test-signbit.c: Likewise.
79239         * tests/test-sleep.c: Likewise.
79240         * tests/test-snprintf-posix.c: Likewise.
79241         * tests/test-snprintf-posix.h: Likewise.
79242         * tests/test-snprintf.c: Likewise.
79243         * tests/test-sprintf-posix.c: Likewise.
79244         * tests/test-sprintf-posix.h: Likewise.
79245         * tests/test-stat-time.c: Likewise.
79246         * tests/test-stdbool.c: Likewise.
79247         * tests/test-stdint.c: Likewise.
79248         * tests/test-stdio.c: Likewise.
79249         * tests/test-stdlib.c: Likewise.
79250         * tests/test-stpncpy.c: Likewise.
79251         * tests/test-strcasestr.c: Likewise.
79252         * tests/test-striconv.c: Likewise.
79253         * tests/test-striconveh.c: Likewise.
79254         * tests/test-striconveha.c: Likewise.
79255         * tests/test-string.c: Likewise.
79256         * tests/test-sys_select.c: Likewise.
79257         * tests/test-sys_socket.c: Likewise.
79258         * tests/test-sys_stat.c: Likewise.
79259         * tests/test-sys_time.c: Likewise.
79260         * tests/test-sysexits.c: Likewise.
79261         * tests/test-time.c: Likewise.
79262         * tests/test-tls.c: Likewise.
79263         * tests/test-trunc.c: Likewise.
79264         * tests/test-truncf.c: Likewise.
79265         * tests/test-truncl.c: Likewise.
79266         * tests/test-unistd.c: Likewise.
79267         * tests/test-vasnprintf-posix.c: Likewise.
79268         * tests/test-vasnprintf-posix2.c: Likewise.
79269         * tests/test-vasnprintf.c: Likewise.
79270         * tests/test-vasprintf-posix.c: Likewise.
79271         * tests/test-vasprintf.c: Likewise.
79272         * tests/test-verify.c: Likewise.
79273         * tests/test-vfprintf-posix.c: Likewise.
79274         * tests/test-vprintf-posix.c: Likewise.
79275         * tests/test-vsnprintf-posix.c: Likewise.
79276         * tests/test-vsnprintf.c: Likewise.
79277         * tests/test-vsprintf-posix.c: Likewise.
79278         * tests/test-wchar.c: Likewise.
79279         * tests/test-wctype.c: Likewise.
79280         * tests/test-wcwidth.c: Likewise.
79281         * tests/test-xstrtol.c: Likewise.
79282         * tests/test-xvasprintf.c: Likewise.
79283         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
79284         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
79285         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
79286         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
79287         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
79288         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
79289         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
79290         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
79291         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
79292         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
79293         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
79294         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
79295         * tests/uniname/test-uninames.c: Likewise.
79296         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
79297         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
79298         * tests/unistdio/test-u16-printf1.h: Likewise.
79299         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
79300         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
79301         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
79302         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
79303         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
79304         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
79305         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
79306         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
79307         * tests/unistdio/test-u32-printf1.h: Likewise.
79308         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
79309         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
79310         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
79311         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
79312         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
79313         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
79314         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
79315         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
79316         * tests/unistdio/test-u8-printf1.h: Likewise.
79317         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
79318         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
79319         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
79320         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
79321         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
79322         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
79323         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
79324         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
79325         * tests/unistdio/test-ulc-printf1.h: Likewise.
79326         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
79327         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
79328         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
79329         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
79330         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
79331         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
79332         * tests/uniwidth/test-u16-strwidth.c: Likewise.
79333         * tests/uniwidth/test-u16-width.c: Likewise.
79334         * tests/uniwidth/test-u32-strwidth.c: Likewise.
79335         * tests/uniwidth/test-u32-width.c: Likewise.
79336         * tests/uniwidth/test-u8-strwidth.c: Likewise.
79337         * tests/uniwidth/test-u8-width.c: Likewise.
79338         * tests/uniwidth/test-uc_width.c: Likewise.
79339         * config/srclist-update: Likewise.
79340         (fixlicense): Update to GPLv3+.
79342         Change copyright notice from LGPLv2.1+ to LGPLv3+.
79343         * tests/test-tsearch.c: Change copyright notice.
79345         Change copyright notice from LGPLv2.0+ to LGPLv3+.
79346         * lib/c-strcaseeq.h: Change copyright notice.
79347         * lib/streq.h: Likewise.
79348         * lib/uniconv.h: Likewise.
79349         * lib/uniconv/u-conv-from-enc.h: Likewise.
79350         * lib/uniconv/u-conv-to-enc.h: Likewise.
79351         * lib/uniconv/u-strconv-from-enc.h: Likewise.
79352         * lib/uniconv/u-strconv-to-enc.h: Likewise.
79353         * lib/uniconv/u16-conv-from-enc.c: Likewise.
79354         * lib/uniconv/u16-conv-to-enc.c: Likewise.
79355         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
79356         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
79357         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
79358         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
79359         * lib/uniconv/u32-conv-from-enc.c: Likewise.
79360         * lib/uniconv/u32-conv-to-enc.c: Likewise.
79361         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
79362         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
79363         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
79364         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
79365         * lib/uniconv/u8-conv-from-enc.c: Likewise.
79366         * lib/uniconv/u8-conv-to-enc.c: Likewise.
79367         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
79368         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
79369         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
79370         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
79371         * lib/uniname.h: Likewise.
79372         * lib/uniname/uniname.c: Likewise.
79373         * lib/unistdio.h: Likewise.
79374         * lib/unistdio/u-asnprintf.h: Likewise.
79375         * lib/unistdio/u-asprintf.h: Likewise.
79376         * lib/unistdio/u-printf-args.c: Likewise.
79377         * lib/unistdio/u-printf-args.h: Likewise.
79378         * lib/unistdio/u-printf-parse.h: Likewise.
79379         * lib/unistdio/u-snprintf.h: Likewise.
79380         * lib/unistdio/u-sprintf.h: Likewise.
79381         * lib/unistdio/u-vasprintf.h: Likewise.
79382         * lib/unistdio/u-vsnprintf.h: Likewise.
79383         * lib/unistdio/u-vsprintf.h: Likewise.
79384         * lib/unistdio/u16-asnprintf.c: Likewise.
79385         * lib/unistdio/u16-asprintf.c: Likewise.
79386         * lib/unistdio/u16-printf-parse.c: Likewise.
79387         * lib/unistdio/u16-snprintf.c: Likewise.
79388         * lib/unistdio/u16-sprintf.c: Likewise.
79389         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
79390         * lib/unistdio/u16-u16-asprintf.c: Likewise.
79391         * lib/unistdio/u16-u16-snprintf.c: Likewise.
79392         * lib/unistdio/u16-u16-sprintf.c: Likewise.
79393         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
79394         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
79395         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
79396         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
79397         * lib/unistdio/u16-vasnprintf.c: Likewise.
79398         * lib/unistdio/u16-vasprintf.c: Likewise.
79399         * lib/unistdio/u16-vsnprintf.c: Likewise.
79400         * lib/unistdio/u16-vsprintf.c: Likewise.
79401         * lib/unistdio/u32-asnprintf.c: Likewise.
79402         * lib/unistdio/u32-asprintf.c: Likewise.
79403         * lib/unistdio/u32-printf-parse.c: Likewise.
79404         * lib/unistdio/u32-snprintf.c: Likewise.
79405         * lib/unistdio/u32-sprintf.c: Likewise.
79406         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
79407         * lib/unistdio/u32-u32-asprintf.c: Likewise.
79408         * lib/unistdio/u32-u32-snprintf.c: Likewise.
79409         * lib/unistdio/u32-u32-sprintf.c: Likewise.
79410         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
79411         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
79412         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
79413         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
79414         * lib/unistdio/u32-vasnprintf.c: Likewise.
79415         * lib/unistdio/u32-vasprintf.c: Likewise.
79416         * lib/unistdio/u32-vsnprintf.c: Likewise.
79417         * lib/unistdio/u32-vsprintf.c: Likewise.
79418         * lib/unistdio/u8-asnprintf.c: Likewise.
79419         * lib/unistdio/u8-asprintf.c: Likewise.
79420         * lib/unistdio/u8-printf-parse.c: Likewise.
79421         * lib/unistdio/u8-snprintf.c: Likewise.
79422         * lib/unistdio/u8-sprintf.c: Likewise.
79423         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
79424         * lib/unistdio/u8-u8-asprintf.c: Likewise.
79425         * lib/unistdio/u8-u8-snprintf.c: Likewise.
79426         * lib/unistdio/u8-u8-sprintf.c: Likewise.
79427         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
79428         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
79429         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
79430         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
79431         * lib/unistdio/u8-vasnprintf.c: Likewise.
79432         * lib/unistdio/u8-vasprintf.c: Likewise.
79433         * lib/unistdio/u8-vsnprintf.c: Likewise.
79434         * lib/unistdio/u8-vsprintf.c: Likewise.
79435         * lib/unistdio/ulc-asnprintf.c: Likewise.
79436         * lib/unistdio/ulc-asprintf.c: Likewise.
79437         * lib/unistdio/ulc-printf-parse.c: Likewise.
79438         * lib/unistdio/ulc-snprintf.c: Likewise.
79439         * lib/unistdio/ulc-sprintf.c: Likewise.
79440         * lib/unistdio/ulc-vasnprintf.c: Likewise.
79441         * lib/unistdio/ulc-vasprintf.c: Likewise.
79442         * lib/unistdio/ulc-vsnprintf.c: Likewise.
79443         * lib/unistdio/ulc-vsprintf.c: Likewise.
79444         * lib/unistr.h: Likewise.
79445         * lib/unistr/u-cpy-alloc.h: Likewise.
79446         * lib/unistr/u-cpy.h: Likewise.
79447         * lib/unistr/u-endswith.h: Likewise.
79448         * lib/unistr/u-move.h: Likewise.
79449         * lib/unistr/u-set.h: Likewise.
79450         * lib/unistr/u-startswith.h: Likewise.
79451         * lib/unistr/u-stpcpy.h: Likewise.
79452         * lib/unistr/u-stpncpy.h: Likewise.
79453         * lib/unistr/u-strcat.h: Likewise.
79454         * lib/unistr/u-strcpy.h: Likewise.
79455         * lib/unistr/u-strcspn.h: Likewise.
79456         * lib/unistr/u-strdup.h: Likewise.
79457         * lib/unistr/u-strlen.h: Likewise.
79458         * lib/unistr/u-strncat.h: Likewise.
79459         * lib/unistr/u-strncpy.h: Likewise.
79460         * lib/unistr/u-strnlen.h: Likewise.
79461         * lib/unistr/u-strpbrk.h: Likewise.
79462         * lib/unistr/u-strspn.h: Likewise.
79463         * lib/unistr/u-strstr.h: Likewise.
79464         * lib/unistr/u-strtok.h: Likewise.
79465         * lib/unistr/u16-check.c: Likewise.
79466         * lib/unistr/u16-chr.c: Likewise.
79467         * lib/unistr/u16-cmp.c: Likewise.
79468         * lib/unistr/u16-cpy-alloc.c: Likewise.
79469         * lib/unistr/u16-cpy.c: Likewise.
79470         * lib/unistr/u16-endswith.c: Likewise.
79471         * lib/unistr/u16-mblen.c: Likewise.
79472         * lib/unistr/u16-mbsnlen.c: Likewise.
79473         * lib/unistr/u16-mbtouc-aux.c: Likewise.
79474         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
79475         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
79476         * lib/unistr/u16-mbtouc.c: Likewise.
79477         * lib/unistr/u16-mbtoucr.c: Likewise.
79478         * lib/unistr/u16-move.c: Likewise.
79479         * lib/unistr/u16-next.c: Likewise.
79480         * lib/unistr/u16-prev.c: Likewise.
79481         * lib/unistr/u16-set.c: Likewise.
79482         * lib/unistr/u16-startswith.c: Likewise.
79483         * lib/unistr/u16-stpcpy.c: Likewise.
79484         * lib/unistr/u16-stpncpy.c: Likewise.
79485         * lib/unistr/u16-strcat.c: Likewise.
79486         * lib/unistr/u16-strchr.c: Likewise.
79487         * lib/unistr/u16-strcmp.c: Likewise.
79488         * lib/unistr/u16-strcpy.c: Likewise.
79489         * lib/unistr/u16-strcspn.c: Likewise.
79490         * lib/unistr/u16-strdup.c: Likewise.
79491         * lib/unistr/u16-strlen.c: Likewise.
79492         * lib/unistr/u16-strmblen.c: Likewise.
79493         * lib/unistr/u16-strmbtouc.c: Likewise.
79494         * lib/unistr/u16-strncat.c: Likewise.
79495         * lib/unistr/u16-strncmp.c: Likewise.
79496         * lib/unistr/u16-strncpy.c: Likewise.
79497         * lib/unistr/u16-strnlen.c: Likewise.
79498         * lib/unistr/u16-strpbrk.c: Likewise.
79499         * lib/unistr/u16-strrchr.c: Likewise.
79500         * lib/unistr/u16-strspn.c: Likewise.
79501         * lib/unistr/u16-strstr.c: Likewise.
79502         * lib/unistr/u16-strtok.c: Likewise.
79503         * lib/unistr/u16-to-u32.c: Likewise.
79504         * lib/unistr/u16-to-u8.c: Likewise.
79505         * lib/unistr/u16-uctomb-aux.c: Likewise.
79506         * lib/unistr/u16-uctomb.c: Likewise.
79507         * lib/unistr/u32-check.c: Likewise.
79508         * lib/unistr/u32-chr.c: Likewise.
79509         * lib/unistr/u32-cmp.c: Likewise.
79510         * lib/unistr/u32-cpy-alloc.c: Likewise.
79511         * lib/unistr/u32-cpy.c: Likewise.
79512         * lib/unistr/u32-endswith.c: Likewise.
79513         * lib/unistr/u32-mblen.c: Likewise.
79514         * lib/unistr/u32-mbsnlen.c: Likewise.
79515         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
79516         * lib/unistr/u32-mbtouc.c: Likewise.
79517         * lib/unistr/u32-mbtoucr.c: Likewise.
79518         * lib/unistr/u32-move.c: Likewise.
79519         * lib/unistr/u32-next.c: Likewise.
79520         * lib/unistr/u32-prev.c: Likewise.
79521         * lib/unistr/u32-set.c: Likewise.
79522         * lib/unistr/u32-startswith.c: Likewise.
79523         * lib/unistr/u32-stpcpy.c: Likewise.
79524         * lib/unistr/u32-stpncpy.c: Likewise.
79525         * lib/unistr/u32-strcat.c: Likewise.
79526         * lib/unistr/u32-strchr.c: Likewise.
79527         * lib/unistr/u32-strcmp.c: Likewise.
79528         * lib/unistr/u32-strcpy.c: Likewise.
79529         * lib/unistr/u32-strcspn.c: Likewise.
79530         * lib/unistr/u32-strdup.c: Likewise.
79531         * lib/unistr/u32-strlen.c: Likewise.
79532         * lib/unistr/u32-strmblen.c: Likewise.
79533         * lib/unistr/u32-strmbtouc.c: Likewise.
79534         * lib/unistr/u32-strncat.c: Likewise.
79535         * lib/unistr/u32-strncmp.c: Likewise.
79536         * lib/unistr/u32-strncpy.c: Likewise.
79537         * lib/unistr/u32-strnlen.c: Likewise.
79538         * lib/unistr/u32-strpbrk.c: Likewise.
79539         * lib/unistr/u32-strrchr.c: Likewise.
79540         * lib/unistr/u32-strspn.c: Likewise.
79541         * lib/unistr/u32-strstr.c: Likewise.
79542         * lib/unistr/u32-strtok.c: Likewise.
79543         * lib/unistr/u32-to-u16.c: Likewise.
79544         * lib/unistr/u32-to-u8.c: Likewise.
79545         * lib/unistr/u32-uctomb.c: Likewise.
79546         * lib/unistr/u8-check.c: Likewise.
79547         * lib/unistr/u8-chr.c: Likewise.
79548         * lib/unistr/u8-cmp.c: Likewise.
79549         * lib/unistr/u8-cpy-alloc.c: Likewise.
79550         * lib/unistr/u8-cpy.c: Likewise.
79551         * lib/unistr/u8-endswith.c: Likewise.
79552         * lib/unistr/u8-mblen.c: Likewise.
79553         * lib/unistr/u8-mbsnlen.c: Likewise.
79554         * lib/unistr/u8-mbtouc-aux.c: Likewise.
79555         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
79556         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
79557         * lib/unistr/u8-mbtouc.c: Likewise.
79558         * lib/unistr/u8-mbtoucr.c: Likewise.
79559         * lib/unistr/u8-move.c: Likewise.
79560         * lib/unistr/u8-next.c: Likewise.
79561         * lib/unistr/u8-prev.c: Likewise.
79562         * lib/unistr/u8-set.c: Likewise.
79563         * lib/unistr/u8-startswith.c: Likewise.
79564         * lib/unistr/u8-stpcpy.c: Likewise.
79565         * lib/unistr/u8-stpncpy.c: Likewise.
79566         * lib/unistr/u8-strcat.c: Likewise.
79567         * lib/unistr/u8-strchr.c: Likewise.
79568         * lib/unistr/u8-strcmp.c: Likewise.
79569         * lib/unistr/u8-strcpy.c: Likewise.
79570         * lib/unistr/u8-strcspn.c: Likewise.
79571         * lib/unistr/u8-strdup.c: Likewise.
79572         * lib/unistr/u8-strlen.c: Likewise.
79573         * lib/unistr/u8-strmblen.c: Likewise.
79574         * lib/unistr/u8-strmbtouc.c: Likewise.
79575         * lib/unistr/u8-strncat.c: Likewise.
79576         * lib/unistr/u8-strncmp.c: Likewise.
79577         * lib/unistr/u8-strncpy.c: Likewise.
79578         * lib/unistr/u8-strnlen.c: Likewise.
79579         * lib/unistr/u8-strpbrk.c: Likewise.
79580         * lib/unistr/u8-strrchr.c: Likewise.
79581         * lib/unistr/u8-strspn.c: Likewise.
79582         * lib/unistr/u8-strstr.c: Likewise.
79583         * lib/unistr/u8-strtok.c: Likewise.
79584         * lib/unistr/u8-to-u16.c: Likewise.
79585         * lib/unistr/u8-to-u32.c: Likewise.
79586         * lib/unistr/u8-uctomb-aux.c: Likewise.
79587         * lib/unistr/u8-uctomb.c: Likewise.
79588         * lib/unitypes.h: Likewise.
79589         * lib/uniwidth.h: Likewise.
79590         * lib/uniwidth/cjk.h: Likewise.
79591         * lib/uniwidth/u16-strwidth.c: Likewise.
79592         * lib/uniwidth/u16-width.c: Likewise.
79593         * lib/uniwidth/u32-strwidth.c: Likewise.
79594         * lib/uniwidth/u32-width.c: Likewise.
79595         * lib/uniwidth/u8-strwidth.c: Likewise.
79596         * lib/uniwidth/u8-width.c: Likewise.
79597         * lib/uniwidth/width.c: Likewise.
79599 2007-10-07  Bruno Haible  <bruno@clisp.org>
79601         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
79602         The file is still under LGPL (see modules/inttypes).
79604 2007-10-06  Bruno Haible  <bruno@clisp.org>
79606         * modules/trunc (Dependencies): Add 'extensions'.
79607         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
79608         Reported by Ben Pfaff <blp@gnu.org>.
79610 2007-10-06  Bruno Haible  <bruno@clisp.org>
79612         * modules/freopen-tests: New file.
79613         * tests/test-freopen.c: New file.
79615         * modules/fopen-tests: New file.
79616         * tests/test-fopen.c: New file.
79618         * modules/fopen: New file.
79619         * lib/fopen.c: New file.
79620         * m4/fopen.m4: New file.
79621         * modules/freopen: New file.
79622         * lib/freopen.c: New file.
79623         * m4/freopen.m4: New file.
79624         * lib/stdio.in.h (fopen, freopen): New declarations.
79625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
79626         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
79627         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
79628         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
79629         * doc/functions/fopen.texi: Mention the 'fopen' module.
79630         * doc/functions/freopen.texi: Mention the 'freopen' module.
79632 2007-10-06  Bruno Haible  <bruno@clisp.org>
79634         * modules/open-tests: New file.
79635         * tests/test-open.c: New file.
79637         * modules/open: New file.
79638         * lib/open.c: New file.
79639         * m4/open.m4: New file.
79640         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
79641         lib/open.c does.
79642         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
79643         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
79644         macros.
79645         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
79646         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
79647         REPLACE_OPEN.
79648         * doc/functions/open.texi: Mention the 'open' module.
79650 2007-10-04  Bruno Haible  <bruno@clisp.org>
79652         * modules/ceill-tests: New file.
79653         * tests/test-ceill.c: New file.
79655         * modules/ceill: New file.
79656         * lib/ceill.c: Replace entire file.
79657         * m4/ceill.m4: New file.
79658         * lib/math.in.h (ceill): Replace declaration.
79659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
79660         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
79661         * doc/functions/ceill.texi: Mention the 'ceill' module.
79662         * modules/mathl (Files): Remove lib/ceill.c.
79663         (Depends-on): Add ceill.
79665 2007-10-04  Bruno Haible  <bruno@clisp.org>
79667         * modules/ceilf-tests: New file.
79668         * tests/test-ceilf.c: New file.
79670         * modules/ceilf: New file.
79671         * lib/ceil.c: New file.
79672         * lib/ceilf.c: New file.
79673         * m4/ceilf.m4: New file.
79674         * lib/math.in.h (ceilf): New declaration.
79675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
79676         HAVE_DECL_CEILF.
79677         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
79678         HAVE_DECL_CEILF.
79679         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
79681 2007-10-04  Bruno Haible  <bruno@clisp.org>
79683         * modules/floorl-tests: New file.
79684         * tests/test-floorl.c: New file.
79686         * modules/floorl: New file.
79687         * lib/floorl.c: Replace entire file.
79688         * m4/floorl.m4: New file.
79689         * lib/math.in.h (floorl): Replace declaration.
79690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
79691         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
79692         * doc/functions/floorl.texi: Mention the 'floorl' module.
79693         * modules/mathl (Files): Remove lib/floorl.c.
79694         (Depends-on): Add floorl.
79696 2007-10-04  Bruno Haible  <bruno@clisp.org>
79698         * modules/floorf-tests: New file.
79699         * tests/test-floorf.c: New file.
79701         * modules/floorf: New file.
79702         * lib/floor.c: New file.
79703         * lib/floorf.c: New file.
79704         * m4/floorf.m4: New file.
79705         * lib/math.in.h (floorf): New declaration.
79706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
79707         HAVE_DECL_FLOORF.
79708         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
79709         HAVE_DECL_FLOORF.
79710         * doc/functions/floorf.texi: Mention the 'floorf' module.
79712 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
79713             Bruno Haible  <bruno@clisp.org>
79715         Advertise for the Git server instead of the CVS server.
79716         * doc/gnulib-intro.texi (Steady Development): Mention the Git
79717         repository instead of the CVS one.
79718         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
79719         about all VCS systems generically.
79720         * doc/gnulib.texi (Introduction): Capitalize `Git'.
79722 2007-10-04  Bruno Haible  <bruno@clisp.org>
79724         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
79725         means.
79726         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
79728 2007-10-04  Bruno Haible  <bruno@clisp.org>
79730         * modules/truncl-tests: New file.
79731         * tests/test-truncl.c: New file.
79733         * modules/truncl: New file.
79734         * lib/truncl.c: New file.
79735         * m4/truncl.m4: New file.
79736         * lib/math.in.h (truncl): New declaration.
79737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
79738         HAVE_DECL_TRUNCL.
79739         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
79740         HAVE_DECL_TRUNCL.
79741         * doc/functions/truncl.texi: Mention the 'truncl' module.
79743 2007-10-04  Bruno Haible  <bruno@clisp.org>
79745         * modules/truncf-tests: New file.
79746         * tests/test-truncf.c: New file.
79748         * modules/truncf: New file.
79749         * lib/trunc.c: Make paramerizable through USE_* macros.
79750         * lib/truncf.c: New file.
79751         * m4/truncf.m4: New file.
79752         * lib/math.in.h (truncf): New declaration.
79753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
79754         HAVE_DECL_TRUNCF.
79755         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
79756         HAVE_DECL_TRUNCF.
79757         * doc/functions/truncf.texi: Mention the 'truncf' module.
79759 2007-10-03  Bruno Haible  <bruno@clisp.org>
79761         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
79762         augmentation also for tests modules.
79763         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
79764         * modules/atexit-tests (Makefile.am): Likewise.
79765         * modules/binary-io-tests (Makefile.am): Likewise.
79766         * modules/c-strcase-tests (Makefile.am): Likewise.
79767         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
79768         * modules/canonicalize-tests (Makefile.am): Likewise.
79769         * modules/closein-tests (Makefile.am): Likewise.
79770         * modules/fprintf-posix-tests (Makefile.am): Likewise.
79771         * modules/freadahead-tests (Makefile.am): Likewise.
79772         * modules/fseek-tests (Makefile.am): Likewise.
79773         * modules/fseeko-tests (Makefile.am): Likewise.
79774         * modules/ftell-tests (Makefile.am): Likewise.
79775         * modules/ftello-tests (Makefile.am): Likewise.
79776         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
79777         * modules/isnanl-tests (Makefile.am): Likewise.
79778         * modules/lseek-tests (Makefile.am): Likewise.
79779         * modules/mbscasecmp-tests (Makefile.am): Likewise.
79780         * modules/mbscasestr-tests (Makefile.am): Likewise.
79781         * modules/mbschr-tests (Makefile.am): Likewise.
79782         * modules/mbscspn-tests (Makefile.am): Likewise.
79783         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
79784         * modules/mbspbrk-tests (Makefile.am): Likewise.
79785         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
79786         * modules/mbsrchr-tests (Makefile.am): Likewise.
79787         * modules/mbsspn-tests (Makefile.am): Likewise.
79788         * modules/mbsstr-tests (Makefile.am): Likewise.
79789         * modules/printf-posix-tests (Makefile.am): Likewise.
79790         * modules/snprintf-posix-tests (Makefile.am): Likewise.
79791         * modules/sprintf-posix-tests (Makefile.am): Likewise.
79792         * modules/tsearch-tests (Makefile.am): Likewise.
79793         * modules/uniname/uniname-tests (Makefile.am): Likewise.
79794         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
79795         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
79796         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
79797         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
79798         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
79799         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
79800         * modules/vprintf-posix-tests (Makefile.am): Likewise.
79801         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
79802         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
79803         * modules/xstrtoimax-tests (Makefile.am): Likewise.
79804         * modules/xstrtol-tests (Makefile.am): Likewise.
79805         * modules/xstrtoumax-tests (Makefile.am): Likewise.
79806         * modules/yesno-tests (Makefile.am): Likewise.
79808 2007-10-03  Bruno Haible  <bruno@clisp.org>
79810         * modules/trunc-tests: New file.
79811         * tests/test-trunc.c: New file.
79813         * modules/trunc: New file.
79814         * lib/trunc.c: New file.
79815         * m4/trunc.m4: New file.
79816         * lib/math.in.h (trunc): New declaration.
79817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
79818         HAVE_DECL_TRUNC.
79819         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
79820         HAVE_DECL_TRUNC.
79821         * doc/functions/trunc.texi: Mention the 'trunc' module.
79823 2007-10-03  Bruno Haible  <bruno@clisp.org>
79825         * tests/test-fpending.c: New file, mostly copied
79826         from coreutils/lib/t-fpending.c.
79827         * modules/fpending-tests: New file.
79829 2007-10-03  Bruno Haible  <bruno@clisp.org>
79831         Port the stdio extensions to QNX (untested).
79832         * lib/fseterr.c (fseterr): Add support for QNX.
79833         * lib/fbufmode.c (fbufmode): Likewise.
79834         * lib/freadable.c (freadable): Likewise.
79835         * lib/fwritable.c (fwritable): Likewise.
79836         * lib/freading.c (freading): Likewise.
79837         * lib/fwriting.c (fwriting): Likewise.
79838         * lib/freadahead.c (freadahed): Likewise.
79839         * lib/fpurge.c (fpurge): Likewise.
79840         * lib/fseeko.c (rpl_fseeko): Likewise.
79842 2007-10-03  Bruno Haible  <bruno@clisp.org>
79843             Jim Meyering  <jim@meyering.net>
79844             Eric Blake  <ebb9@byu.net>
79846         * doc/relocatable.texi: Use @command instead of @program.
79848 2007-10-02  Jim Meyering  <jim@meyering.net>
79850         Perform one more "_.h" -> ".in.h" substitution.
79851         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
79852         instead of unistd_.h here, too.
79854 2007-10-01  Bruno Haible  <bruno@clisp.org>
79856         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
79857         Needed for the alloca-opt module.
79859 2007-09-30  Bruno Haible  <bruno@clisp.org>
79861         * lib/alloca.in.h: Renamed from lib/alloca_.h.
79862         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
79863         alloca_.h.
79864         * lib/argz.in.h: Renamed from lib/argz_.h.
79865         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
79866         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
79867         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
79868         byteswap_.h.
79869         * lib/dirent.in.h: Renamed from lib/dirent_.h.
79870         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
79871         dirent_.h.
79872         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
79873         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
79874         fcntl_.h.
79875         * lib/float.in.h: Renamed from lib/float_.h.
79876         * modules/float (Files, Makefile.am): Use float.in.h instead of
79877         float_.h.
79878         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
79879         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
79880         fnmatch_.h.
79881         * lib/getopt.in.h: Renamed from lib/getopt_.h.
79882         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
79883         getopt_.h.
79884         * lib/glob.in.h: Renamed from lib/glob_.h.
79885         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
79886         * lib/iconv.in.h: Renamed from lib/iconv_.h.
79887         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
79888         iconv_.h.
79889         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
79890         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
79891         inttypes_.h.
79892         * lib/locale.in.h: Renamed from lib/locale_.h.
79893         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
79894         locale_.h.
79895         * lib/math.in.h: Renamed from lib/math_.h.
79896         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
79897         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
79898         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
79899         of netinet_in_.h. Add dependency.
79900         * lib/poll.in.h: Renamed from lib/poll_.h.
79901         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
79902         * lib/search.in.h: Renamed from lib/search_.h.
79903         * modules/search (Files, Makefile.am): Use search.in.h instead of
79904         search_.h.
79905         * lib/signal.in.h: Renamed from lib/signal_.h.
79906         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
79907         _signal.h.
79908         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
79909         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
79910         stdbool_.h.
79911         * lib/stdint.in.h: Renamed from lib/stdint_.h.
79912         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
79913         stdint_.h.
79914         * lib/stdio.in.h: Renamed from lib/stdio_.h.
79915         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
79916         stdio_.h.
79917         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
79918         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
79919         stdlib_.h.
79920         * lib/string.in.h: Renamed from lib/string_.h.
79921         * modules/string (Files, Makefile.am): Use string.in.h instead of
79922         string_.h.
79923         * doc/gnulib-tool.texi (Initial import): Update.
79924         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
79925         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
79926         of sys_select_.h. Add dependency.
79927         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
79928         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
79929         of sys_socket_.h.
79930         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
79931         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
79932         sys_stat_.h.
79933         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
79934         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
79935         sys_time_.h.
79936         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
79937         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
79938         sysexits_.h.
79939         * lib/time.in.h: Renamed from lib/time_.h.
79940         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
79941         * lib/unistd.in.h: Renamed from lib/unistd_.h.
79942         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
79943         unistd_.h.
79944         * lib/wchar.in.h: Renamed from lib/wchar_.h.
79945         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
79946         wchar_.h.
79947         * lib/wctype.in.h: Renamed from lib/wctype_.h.
79948         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
79949         wctype_.h.
79950         * build-aux/bootstrap (slurp): Update.
79951         * lib/.cppi-disable: Update.
79953 2007-09-30  Bruno Haible  <bruno@clisp.org>
79955         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
79956         Needed on BeOS.
79958 2007-09-30  Bruno Haible  <bruno@clisp.org>
79960         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
79962 2007-09-29  Bruno Haible  <bruno@clisp.org>
79964         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
79966 2007-09-29  Bruno Haible  <bruno@clisp.org>
79968         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
79969         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
79970         * build-aux/install-reloc: Compile also areadlink.c.
79971         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
79973 2007-09-29  Bruno Haible  <bruno@clisp.org>
79975         * gnulib-tool (func_emit_initmacro_done): Indentation.
79977 2007-09-29  Bruno Haible  <bruno@clisp.org>
79979         * README: Add CVS checkout update instructions.
79980         Info from Bob Proulx <bob@proulx.com>.
79982 2007-09-28  Eric Blake  <ebb9@byu.net>
79984         Provide move-if-change.
79985         * build-aux/move-if-change: New file, based on best practice
79986         rather than any canonical upstream location.
79988 2007-09-28  Jim Meyering  <jim@meyering.net>
79990         Fix canonicalize loop-detection corner case.
79991         Do not attempt to stat the symlink values stored via seen_triple.
79992         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
79993         on linux-2.6.18, (but not 2.6.22).
79994         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
79995         triple_compare.  The former compares dev,ino,filename, while the latter
79996         would actually stat dirname(filename) when dev and ino were equal.
79997         * lib/hash-triple.c: Install <string.h>.
79998         (STREQ): Define.
79999         (triple_compare_ino_str): New function.
80000         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
80002 2007-09-28  Eric Blake  <ebb9@byu.net>
80004         Enforce that AC_REPLACE_FUNCS files exist.
80005         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
80006         override check for typos.
80008         Fix test-closein on Solaris 10.
80009         * tests/test-closein.c (main): Don't assume stdin can be inherited
80010         closed on all systems.
80011         * tests/test-closein.sh: Likewise.
80012         Reported by Piotr Tarnowski.
80014 2007-09-28  Jim Meyering  <jim@meyering.net>
80016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
80018 2007-09-27  Jim Meyering  <jim@meyering.net>
80020         canonicalize: Avoid a false-positive cycle failure.
80021         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
80022         Sort.  Remove cycle-check.
80023         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
80024         not cycle-check.h.
80025         (seen_triple): New function.
80026         (canonicalize_filename_mode): Use it instead of cycle-check.
80027         * tests/test-canonicalize.c: Add a test for this bug.
80028         * tests/test-canonicalize.sh: Set up and run the test.
80030         New module, file-set, from coreutils.
80031         * modules/file-set: Define it.
80032         * lib/file-set.c, lib/file-set.h: Implement.
80034         New module, hash-triple, from coreutils.
80035         * modules/hash-triple: Define it.
80036         * lib/hash-triple.c, lib/hash-triple.h: Implement.
80038 2007-09-25  Eric Blake  <ebb9@byu.net>
80040         Fix strerror on Interix.
80041         * lib/string_.h (strerror): Declare replacement.
80042         * doc/functions/strerror.texi (strerror): Document the Interix
80043         shortcoming.
80044         * modules/string (Makefile.am): Support new hooks.
80045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
80046         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
80047         gl_FUNC_STRERROR_SEPARATE.
80048         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
80049         * lib/strerror.c (rpl_strerror): Provide replacement.
80050         * modules/strerror (Depends-on): Add string.
80051         (configure.ac): Detect use of module.
80052         * tests/test-strerror.c: New file.
80053         * modules/strerror-tests: New test module.
80054         * modules/argp (Depends-on): Add strerror.
80055         * modules/error (Depends-on): Likewise.
80056         Reported by Martin Koeppe.
80058 2007-09-24  Bruno Haible  <bruno@clisp.org>
80060         * README: Update git instructions.
80062 2007-09-24  Eric Blake  <ebb9@byu.net>
80064         Revert fpending breakage from 2007-09-08.
80065         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
80066         __fpending.c.
80068 2007-09-24  Jim Meyering  <jim@meyering.net>
80070         filenamecat.c: Add a test.
80071         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
80072         showing how the function works when DIR is the empty string.
80074 2007-09-21  Simon Josefsson  <simon@josefsson.org>
80076         * tests/test-canonicalize.sh: Turn on executable bit.
80078 2007-09-19  Eric Blake  <ebb9@byu.net>
80080         * README: Update CVS instructions.
80082 2007-09-18  Bruno Haible  <bruno@clisp.org>
80084         * modules/areadlink: New file.
80085         * lib/areadlink.h (areadlink): New declaration.
80086         * lib/areadlink.c: New file, based on lib/xreadlink.c.
80088 2007-09-17  Jim Meyering  <jim@meyering.net>
80090         * lib/savewd.c (ESTALE) [!defined]: Define.
80091         Reported to be required on Interix by Martin Koeppe.
80093 2007-09-17  Bruno Haible  <bruno@clisp.org>
80095         * gnulib-tool (func_version): Use $version.
80097 2007-09-16  Bruno Haible  <bruno@clisp.org>
80099         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
80100         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
80101         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
80102         Reported by Greg Schafer <gschafer@zip.com.au>.
80104 2007-09-15  Bruno Haible  <bruno@clisp.org>
80106         * gnulib-tool (sed): Try a little harder to make bash understand the
80107         alias.
80108         Reported by Bruce Korb <bruce.korb@gmail.com>.
80110 2007-09-13  Eric Blake  <ebb9@byu.net>
80112         * ChangeLog: Remove conflict markers.
80114 2007-09-13  Simon Josefsson  <simon@josefsson.org>
80116         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
80117         Reported by Bruno Haible <bruno@clisp.org>.
80119 2007-09-12  Bruno Haible  <bruno@clisp.org>
80121         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
80122         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
80123         is not defined.
80125 2007-09-12  Eric Blake  <ebb9@byu.net>
80127         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
80128         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
80129         Autoconf definition.
80130         * modules/euidaccess (Depends-on): Add extensions, for
80131         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
80132         * modules/fnmatch (Depends-on): Likewise.
80133         * modules/getaddrinfo (Depends-on): Likewise.
80134         * modules/getdelim (Depends-on): Likewise.
80135         * modules/getline (Depends-on): Likewise.
80136         * modules/getsubopt (Depends-on): Likewise.
80137         * modules/gettext (Depends-on): Likewise.
80138         * modules/group-member (Depends-on): Likewise.
80139         * modules/mbchar (Depends-on): Likewise.
80140         * modules/memmem (Depends-on): Likewise.
80141         * modules/mempcpy (Depends-on): Likewise.
80142         * modules/memrchr (Depends-on): Likewise.
80143         * modules/pagealign_alloc (Depends-on): Likewise.
80144         * modules/readutmp (Depends-on): Likewise.
80145         * modules/stpcpy (Depends-on): Likewise.
80146         * modules/stpncpy (Depends-on): Likewise.
80147         * modules/strchrnul (Depends-on): Likewise.
80148         * modules/strndup (Depends-on): Likewise.
80149         * modules/strsep (Depends-on): Likewise.
80150         * modules/strverscmp (Depends-on): Likewise.
80151         * modules/vasprintf (Depends-on): Likewise.
80152         * modules/wcwidth (Depends-on): Likewise.
80153         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
80154         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
80155         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
80156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
80157         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
80158         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80159         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
80160         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80161         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
80162         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
80163         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
80164         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
80165         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
80166         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
80167         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
80168         * m4/readutmp.m4 (gl_READUTMP): Likewise.
80169         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
80170         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
80171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
80172         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
80173         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
80174         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
80175         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
80176         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
80177         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
80178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
80179         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
80180         so that lock.m4 can be used in gettext without extensions module.
80182 2007-09-11  Bruno Haible  <bruno@clisp.org>
80184         * m4/isc-posix.m4: Remove file.
80185         Suggested by Eric Blake.
80187 2007-09-11  Eric Blake  <ebb9@byu.net>
80189         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
80191 2007-09-10  Bruno Haible  <bruno@clisp.org>
80193         * posix-modules: Fix typo in error message.
80194         Reported by Matt <mkraai@beckman.com>.
80196 2007-09-09  Bruno Haible  <bruno@clisp.org>
80198         * doc/functions/getdelim.texi: Update list of platforms lacking the
80199         function.
80200         * doc/functions/getline.texi: Likewise.
80202 2007-09-09  Jim Meyering  <jim@meyering.net>
80204         * lib/hash.c (hash_initialize): Detect calloc failure.
80205         Reported by Bruno Haible.
80207 2007-09-09  Bruno Haible  <bruno@clisp.org>
80209         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
80210         malloc or realloc fails.
80212 2007-09-09  Bruno Haible  <bruno@clisp.org>
80214         * modules/getcwd (Depends-on): Add malloc-posix.
80215         * modules/glob (Depends-on): Likewise.
80216         * modules/putenv (Depends-on): Likewise.
80217         * modules/strdup (Depends-on): Likewise.
80218         * modules/getdelim (Depends-on): Add realloc-posix.
80219         * modules/read-file (Depends-on): Likewise.
80221 2007-09-09  Bruno Haible  <bruno@clisp.org>
80223         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
80224         (gl_FUNC_MALLOC_POSIX): Require it.
80225         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
80226         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
80227         * modules/realloc (Files): Add m4/malloc.m4.
80228         * modules/calloc (Files): Likewise.
80230 2007-09-09  Bruno Haible  <bruno@clisp.org>
80232         * modules/malloc-posix: New file.
80233         * modules/malloc (Depends-on): Add malloc-posix.
80234         * lib/malloc.c: Include errno.h.
80235         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
80236         and a POSIX-compatible malloc into a single function. Set ENOMEM
80237         when returning NULL.
80238         * m4/malloc.m4: New file.
80239         * doc/functions/malloc.texi: Mention the malloc-posix module.
80240         * lib/stdlib_.h (malloc): New declaration.
80241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80242         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
80243         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
80244         and HAVE_MALLOC_POSIX.
80246 2007-09-09  Bruno Haible  <bruno@clisp.org>
80248         * modules/realloc-posix: New file.
80249         * modules/realloc (Depends-on): Add realloc-posix.
80250         * lib/realloc.c: Include errno.h.
80251         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
80252         and a POSIX-compatible realloc into a single function. Set ENOMEM
80253         when returning NULL.
80254         * m4/realloc.m4: New file.
80255         * doc/functions/realloc.texi: Mention the realloc-posix module.
80256         * lib/stdlib_.h (realloc): New declaration.
80257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80258         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
80259         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
80260         and HAVE_REALLOC_POSIX.
80262 2007-09-09  Bruno Haible  <bruno@clisp.org>
80264         * modules/calloc-posix: New file.
80265         * modules/calloc (Depends-on): Add calloc-posix.
80266         * lib/calloc.c: Include errno.h.
80267         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
80268         and a POSIX-compatible calloc into a single function. Set ENOMEM
80269         when returning NULL.
80270         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
80271         * doc/functions/calloc.texi: Mention the calloc-posix module.
80272         * lib/stdlib_.h (calloc): New declaration.
80273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80274         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
80275         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
80276         and HAVE_CALLOC_POSIX.
80278 2007-09-09  Bruno Haible  <bruno@clisp.org>
80280         Allow for modules to show an arbitrary notice.
80281         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
80282         * gnulib-tool: New option --extract-notice.
80283         (func_usage): Document it.
80284         (sed_extract_prog): Update.
80285         (func_get_notice): New function.
80286         (func_modules_notice): New function.
80287         (func_import, func_create_testdir): Invoke it.
80288         Suggested by Jim Meyering.
80290 2007-09-09  Bruno Haible  <bruno@clisp.org>
80292         * gnulib-tool: New options --verbose, --quiet.
80293         (func_usage): Document them.
80294         (verbose): New variable.
80295         (func_execute_command): New function.
80296         (func_import): Don't show the module list and the file list if
80297         $verbose < 0.
80298         (func_create_testdir): Likewise. Use func_execute_command.
80299         (func_create_megatestdir): Use func_execute_command.
80301 2007-09-08  Bruno Haible  <bruno@clisp.org>
80303         * gnulib-tool (func_import): Prefer rsync over wget when available,
80304         for fetching the PO files.
80306 2007-09-08  Bruno Haible  <bruno@clisp.org>
80308         * posix-modules: New file. Portions copied from gnulib-tool.
80309         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
80311 2007-09-08  Jim Meyering  <jim@meyering.net>
80313         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
80314         * lib/fpending.h: Rename from __fpending.h.
80315         * lib/fpending.c: Rename from __fpending.c.
80316         Include "fpending.h", not "__fpending.h".
80317         * lib/__fpending.h, lib/__fpending.c: Remove files.
80318         * modules/fpending (Files): Reflect new file names.
80319         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
80321 2007-09-08  Bruno Haible  <bruno@clisp.org>
80323         * m4/inttypes-h.m4: Remove stub file.
80325 2007-09-07  Simon Josefsson  <simon@josefsson.org>
80327         * doc/headers/stdint.texi: Discuss #include_next issue.
80329 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80331         * build-aux/bootstrap: Remove obsolete comment about wget --help.
80333 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80335         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
80336         in variable name.
80338 2007-09-03  Jim Meyering  <jim@meyering.net>
80340         New module: git-version-gen.
80341         * modules/git-version-gen: New file.
80343         Import changes from coreutils for bootstrap script.
80345         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
80347         bootstrap: uses rsync to download the .po files
80348         * build-aux/bootstrap (po_download_command_format): New global.
80349         (download_po_files): Use rsync.
80350         (update_po_files): Don't remove .po files after download,
80351         so future rsync runs can take advantage of the copies.
80353         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
80355         Solve the unnecessary-.po-file-regeneration problem once and for all.
80356         * build-aux/bootstrap (download_po_files): New function, renamed from
80357         get_translations.  Now, downloads, but doesn't update LINGUAS.
80358         (update_po_files): New function.
80360         bootstrap: Ignore more.
80361         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
80362         uniwidth to e.g., lib/.gitignore.
80363         (slurp): Handle the sys_stat_.h -> sys mapping, too.
80365         * build-aux/bootstrap: New setting: vc_ignore.
80366         (insert_sorted_if_absent): Create $file if absent.
80367         Adapt to new, possibly empty, list: $vc_ignore.
80369         bootstrap: generate more ignorable names
80370         * build-aux/bootstrap (slurp): When generating ignorable names,
80371         also map .sin to .sed, .gperf to .c, and .y to .c.
80373 2007-09-03  Jim Meyering  <jim@meyering.net>
80375         * build-aux/git-version-gen: New file, from coreutils.  For details, see
80376         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
80378 2007-09-02  Bruno Haible  <bruno@clisp.org>
80380         Fix mis-recognition of 'mcs' on QNX 6.
80381         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
80382         output contains the string "Mono".
80383         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
80384         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
80386 2007-09-01  Bruno Haible  <bruno@clisp.org>
80388         Fix collision between uniwidth/* and linebreak modules.
80389         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
80390         u32_width): Remove declarations.
80391         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
80392         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
80393         streq3, streq2, streq1, streq0): Remove functions.
80394         (STREQ): Remove macro.
80395         (is_cjk_encoding): Remove function.
80396         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
80397         (uc_width, u8_width, u16_width, u32_width): Remove functions.
80398         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
80399         * NEWS: Document the change.
80401 2007-09-01  Bruno Haible  <bruno@clisp.org>
80403         * lib/streq.h: Add double-inclusion guard.
80405 2007-09-01  Karl Berry  <karl@gnu.org>
80407         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
80409 2007-08-28  Jim Meyering  <jim@meyering.net>
80411         Rename mreadlink_with_size to areadlink_with_size.
80412         * NEWS: Document the change.
80413         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
80414         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
80415         * lib/mreadlink.h: Rename this to...
80416         * lib/areadlink.h: ...this.
80417         * modules/mreadlink-with-size: Rename this to...
80418         * modules/areadlink-with-size: ...this.
80419         * lib/canonicalize.c: Reflect the renaming.
80420         * modules/canonicalize: Likewise.
80422 2007-08-26  Bruno Haible  <bruno@clisp.org>
80424         * gnulib-tool (func_import): When deciding which files to remove,
80425         consider also dangling symbolic links.
80426         Reported by Eric Blake.
80428 2007-08-26  Bruno Haible  <bruno@clisp.org>
80430         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
80432 2007-08-23  Simon Josefsson  <simon@josefsson.org>
80434         * lib/readline.c: Don't include getline.h, the prototype is now
80435         found in stdio.h.
80437 2007-08-23  Jim Meyering  <jim@meyering.net>
80439         Getdelim touchup.
80440         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
80441         around the funlockfile call, since funlockfile never sets errno.
80442         Don't set errno upon failed realloc.
80444 2007-08-22  Eric Blake  <ebb9@byu.net>
80446         Getline touchups.
80447         * lib/getdelim.c (getdelim): Revert regression that required *n to
80448         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
80449         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
80450         getdelim, rather than whether implementation is missing.
80451         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
80452         * lib/stdio_.h (getline): Also declare if replacement is
80453         required.
80454         * doc/functions/getdelim.texi: New file.
80455         * doc/functions/getline.texi: Likewise.
80456         * doc/gnulib.texi (Function Substitutes): Add new files.
80457         Reported by Bruno Haible.
80459 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
80461         * users.txt: Add Guile.
80463 2007-08-22  Eric Blake  <ebb9@byu.net>
80465         * tests/test-getdelim.c (main): Use remove, not unlink.
80466         * tests/test-getline.c (main): Likewise.
80468         Move getline and getdelim into stdio.h, per POSIX 200x.
80469         * modules/getline (Files): Remove getline.h.
80470         (Depends-on): Add stdio.
80471         (configure.ac): Add module indicator.
80472         * modules/getdelim (Files): Remove getdelim.h.
80473         (Depends-on): Add stdio.
80474         (configure.ac): Add module indicator.
80475         * modules/stdio (Makefile.am): Work with new indicators.
80476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80477         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
80478         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80479         * lib/getdelim.h: Delete.
80480         * lib/getline.h: Delete.
80481         * lib/stdio_.h (getdelim, getline): Declare.
80482         * modules/getdelim-tests: New module.
80483         * modules/getline-tests: Likewise.
80484         * tests/test-getdelim.c: New file.
80485         * tests/test-getline.c: Likewise.
80486         * NEWS: Document the change.
80487         * lib/getline.c: Update choice of header.
80488         * lib/csharpcomp.c: Likewise.
80489         * lib/getpass.c: Likewise.
80490         * lib/javacomp.c: Likewise.
80491         * lib/javaversion.c: Likewise.
80492         * lib/yesno.c: Likewise.
80493         * lib/getdelim.c: Likewise.
80494         (getdelim): Set errno on failure, and avoid memory leak.
80496 2007-08-19  Bruno Haible  <bruno@clisp.org>
80498         * modules/closein (Depends-on): Add freadahead.
80499         * lib/closein.c: Include freadahead.h.
80500         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
80501         is zero.
80503 2007-08-19  Bruno Haible  <bruno@clisp.org>
80505         * modules/freadahead-tests: New file.
80506         * tests/test-freadahead.sh: New file.
80507         * tests/test-freadahead.c: New file.
80509         * modules/freadahead: New file.
80510         * lib/freadahead.h: New file.
80511         * lib/freadahead.c: New file.
80512         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
80513         fbufmode, fpurge, freadable, fwritable.
80515 2007-08-19  Eric Blake  <ebb9@byu.net>
80517         Test yesno in combination with closein.
80518         * lib/yesno.c (yesno): Document use of stdin.
80519         * modules/yesno-tests (Files): New module.
80520         * tests/test-yesno.c (main): New file.
80521         * tests/test-yesno.sh: Likewise.
80523 2007-08-19  Bruno Haible  <bruno@clisp.org>
80525         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
80526         * lib/fseeko.c (rpl_fseeko): Likewise.
80527         * lib/fseterr.c (fseterr): Likewise.
80529 2007-08-19  Bruno Haible  <bruno@clisp.org>
80531         * tests/test-lseek.c (main): Disable a test for BeOS.
80532         * doc/functions/lseek.texi: Document the BeOS bug.
80534 2007-08-19  Bruno Haible  <bruno@clisp.org>
80535             Eric Blake  <ebb9@byu.net>
80537         * lib/lseek.c: Include <sys/stat.h>.
80538         (rpl_lseek): Add workaround code also for Unix platforms.
80539         Needed for BeOS.
80540         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
80541         * doc/functions/lseek.texi: Document BeOS definiency.
80543 2007-08-18  Bruno Haible  <bruno@clisp.org>
80545         * modules/fstrcmp-tests: New file.
80546         * tests/test-fstrcmp.c: New file.
80548 2007-08-18  Bruno Haible  <bruno@clisp.org>
80550         * modules/fstrcmp: New file, from GNU gettext with modifications.
80551         * lib/fstrcmp.h: New file, from GNU gettext.
80552         * lib/fstrcmp.c: New file, from GNU gettext.
80553         * MODULES.html.sh (String handling): Add fstrcmp.
80555 2007-08-18  Bruno Haible  <bruno@clisp.org>
80557         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
80558         'bool'.
80559         (diag, compareseq): Remove const from the ctxt argument.
80560         (USE_HEURISTIC): Undefine at the end.
80562 2007-08-18  Jim Meyering  <jim@meyering.net>
80564         New file: lib/idcache.h
80565         * NEWS: Mention the addition.
80566         * modules/idcache (Files): Add lib/idcache.h
80567         * lib/idcache.c: Include "idcache.h".
80568         Don't include <sys/types.h>.
80569         Add a FIXME comment.
80570         Move file-scoped "static" declarations to the top.
80571         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
80573 2007-08-17  Bruno Haible  <bruno@clisp.org>
80574         and Paul Eggert  <eggert@cs.ucla.edu>
80576         * MODULES.html.sh: Add diffseq.
80577         * modules/diffseq: New file.
80578         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
80579         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
80581 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80583         Import changes from coreutils for bootstrap script.
80585         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
80587         * build-aux/bootstrap (slurp): Work even in environments where
80588         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
80589         current code does not slurp files whose names start with ".", and
80590         this looks like it might be a troublesome area.
80592         2007-07-11  Jim Meyering  <jim@meyering.net>
80594         If there's a GPL vN copyright comment, require that N == 3.
80596         2007-07-08  Jim Meyering  <jim@meyering.net>
80598         Run the coreutils-specific code only if tests/Makefile.am.in exists.
80599         * build-aux/bootstrap (mam_template): Move definition out of loop.
80601         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
80603         * build-aux/bootstrap (symlink_to_dir): Rename function from
80604         symlink_to_gnulib.  Add a directory parameter.  Update all
80605         callers.
80606         (cp_mark_as_generated): Also check for -- and link to -- files in
80607         gl/.
80609         2007-07-08  Jim Meyering  <jim@meyering.net>
80611         Adapt to deeper hierarchy in gnulib.
80612         * build-aux/bootstrap (symlink_to_dir): If the destination
80613         directory doesn't exist, create it. This is required at least for
80614         "lib/uniwidth/cjk.h".
80616         2007-05-15  Jim Meyering  <jim@meyering.net>
80618         * build-aux/bootstrap: Now that generated Makefile.am files
80619         are no longer under version control, they must be created at
80620         bootstrap time.
80622 2007-08-14  Ben Pfaff  <blp@gnu.org>
80624         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
80626 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80628         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
80629         given the changes below.
80630         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
80631         even on hosts that have padding bits beyond the supported 64.
80633 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80635         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
80636         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
80637         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
80638         depends on it.
80639         (xstrtol_error): Remove.
80640         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
80641         but with a different signature.
80642         (ATTRIBUTE_NORETURN, __attribute__): New macros.
80643         * lib/xstrtol-error.c: Include exitfail.h.
80644         (xstrtol_fatal): New function, with a different signature from the
80645         old xstrtol_error, so that the caller need not worry about passing
80646         in an exit status, or about storage management of the option argument.
80647         (xstrtol_error): Now a static function.  Redo signature to
80648         implement xstrtol_fatal.  Output the correct number of hyphens in
80649         front of the option so that the caller need not worry about
80650         storage management.
80651         (N_): New macro.
80652         (_): Remove; not used now.
80653         * modules/xstrtol: Depend on getopt.
80654         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
80655         of old STRTOL_FATAL_ERROR macro.
80656         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
80657         of test program.
80658         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
80659         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
80661 2007-08-08  Eric Blake  <ebb9@byu.net>
80663         * lib/xstrtol-error.c: Add missing include.
80665         Move xstrtol messages into gnulib domain, when --pobase is used.
80666         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
80667         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
80668         * modules/xstrtol (Files): Distribute new file.
80669         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
80670         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
80671         * tests/test-xstrtol.c: ...into new file.
80672         * tests/test-xstrtoul.c: Also test xstrtoul.
80673         * tests/test-xstrtoimax.c: Also test xstrtoimax.
80674         * tests/test-xstrtoumax.c: Also test xstrtoumax.
80675         * tests/test-xstrtol.sh: Drive the tests.
80676         * tests/test-xstrtoimax.sh: Likewise.
80677         * tests/test-xstrtoumax.sh: Likewise.
80678         * modules/xstrtol-tests: New module.
80679         * modules/xstrtoimax-tests: Likewise.
80680         * modules/xstrtoumax-tests: Likewise.
80682 2007-08-08  Jim Meyering  <jim@meyering.net>
80684         New function: mfile_name_concat.
80685         * lib/filenamecat.c (mfile_name_concat): New function, just like
80686         file_name_concat, but return NULL upon failure rather than exiting
80687         with a diagnostic.
80688         * lib/filenamecat.h: Declare it.
80690 2007-08-07  Bruno Haible  <bruno@clisp.org>
80692         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
80693         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
80694         warning from gcc.
80695         Reported by Eric Blake.
80697 2007-08-07  Simon Josefsson  <simon@josefsson.org>
80699         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
80700         * modules/crypto/arcfour (License): Likewise.
80701         * modules/crypto/des-tests (License): Likewise.
80702         * modules/crypto/gc-arctwo-tests (License): Likewise.
80703         * modules/crypto/gc-des-tests (License): Likewise.
80704         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
80705         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
80706         * modules/crypto/gc-md2-tests (License): Likewise.
80707         * modules/crypto/gc-md4-tests (License): Likewise.
80708         * modules/crypto/gc-md5-tests (License): Likewise.
80709         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
80710         * modules/crypto/gc-rijndael-tests (License): Likewise.
80711         * modules/crypto/gc-sha1-tests (License): Likewise.
80712         * modules/crypto/gc-tests (License): Likewise.
80713         * modules/crypto/hmac-md5 (License): Likewise.
80714         * modules/crypto/hmac-sha1 (License): Likewise.
80715         * modules/crypto/md2-tests (License): Likewise.
80716         * modules/crypto/md4-tests (License): Likewise.
80717         * modules/crypto/md5 (License): Likewise.
80718         * modules/crypto/rijndael (License): Likewise.
80719         * modules/crypto/sha1 (License): Likewise.
80720         * modules/memxor (License): Likewise.
80722 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80723         and Bruno Haible  <bruno@clisp.org>
80725         * NEWS: Describe interface changes to human, xstrtol.
80726         * lib/human.h: Include <xstrtol.h>.
80727         (human_options): Return enum strtol_error, not int.  Remove
80728         bool arg; take int * instead.
80729         * lib/human.c: Don't include "gettext.h".
80730         (_): Remove; no longer used.
80731         Don't include <xstrtol.h>, since human.h does it.
80732         (human_options): Adjust to abovementioned interface changes.
80733         Do not report error to stderr; that's now the caller's
80734         responsibility.
80735         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
80736         interface change.
80737         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
80738         Str, Argument_type_string.  All uses changed.  Put " argument"
80739         in diagnostics to make them clearer.  Change wording of suffix
80740         message for clarity.
80741         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
80742         Argument_type_string.
80743         (STRTOL_FATAL_WARN): Remove; no longer used.
80744         * modules/human (Depends-on): Remove gettext-h.
80746 2007-08-06  Simon Josefsson  <simon@josefsson.org>
80748         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
80750 2007-07-31  Bruno Haible  <bruno@clisp.org>
80752         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
80753         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
80754         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
80756 2007-07-31  Bruno Haible  <bruno@clisp.org>
80758         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
80759         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
80761 2007-07-30  Bruno Haible  <bruno@clisp.org>
80763         * modules/base64 (License): Use the synonymous term "LGPLv2+".
80764         * modules/c-ctype (License): Likewise.
80765         * modules/c-strcase (License): Likewise.
80766         * modules/check-version (License): Likewise.
80767         * modules/iconv (License): Likewise.
80768         * modules/iconv_open (License): Likewise.
80769         * modules/read-file (License): Likewise.
80770         * modules/striconv (License): Likewise.
80771         * modules/strverscmp (License): Likewise.
80772         * modules/vasprintf (License): Likewise.
80773         * modules/crypto/des (License): Likewise.
80774         * modules/crypto/gc (License): Likewise.
80775         * modules/crypto/gc-arcfour (License): Likewise.
80776         * modules/crypto/gc-arctwo (License): Likewise.
80777         * modules/crypto/gc-des (License): Likewise.
80778         * modules/crypto/gc-hmac-md5 (License): Likewise.
80779         * modules/crypto/gc-hmac-sha1 (License): Likewise.
80780         * modules/crypto/gc-md2 (License): Likewise.
80781         * modules/crypto/gc-md4 (License): Likewise.
80782         * modules/crypto/gc-md5 (License): Likewise.
80783         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
80784         * modules/crypto/gc-random (License): Likewise.
80785         * modules/crypto/gc-rijndael (License): Likewise.
80786         * modules/crypto/gc-sha1 (License): Likewise.
80787         * modules/crypto/md2 (License): Likewise.
80788         * modules/crypto/md4 (License): Likewise.
80790 2007-07-30  Jim Meyering  <jim@meyering.net>
80792         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
80793         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
80794         it has valid stat data.  This bug would cause du not to count the
80795         sizes of inaccessible directories.
80796         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
80797         in <http://bugzilla.redhat.com/250077>.
80799 2007-07-25  Peter O'Gorman  <peter@pogma.com>
80800             Bruno Haible  <bruno@clisp.org>
80802         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
80803         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
80804         #include_next, gives a diagnostic about it, but reports no error in
80805         the exit code.
80806         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
80808 2007-07-24  Ben Pfaff  <blp@gnu.org>
80810         Improve name: "count-one-bits" is better than "popcount".
80811         * MODULES.html.sh: Update name.
80812         * lib/popcount.h: Renamed lib/count-one-bits.h.
80813         (popcount): Renamed count_one_bits.
80814         (popcountl): Renamed count_one_bits_l.
80815         (popcountll): Renamed count_one_bits_ll.
80816         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
80817         * modules/popcount: Renamed module/count-one-bits.
80818         * modules/popcount-tests: Renamed module/count-one-bits-tests.
80819         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
80821 2007-07-23  Ben Pfaff  <blp@gnu.org>
80823         * lib/popcount.h (popcount32): Reduce size of constants, to allow
80824         better code generation, and add U to large constants to avoid
80825         warnings, in non-GCC case.
80826         Suggested by Bruno Haible.
80828 2007-07-23  Ben Pfaff  <blp@gnu.org>
80830         * lib/popcount.h: Use verify_true instead of if...abort.
80831         * modules/popcount: Depend on verify module.
80832         Suggested by Jim Meyering.
80834 2007-07-23  Bruno Haible  <bruno@clisp.org>
80836         * gnulib-tool (func_import): Create a .cvsignore file also when the
80837         directory is not yet in CVS but the toplevel directory is. When
80838         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
80839         Reported by Karl Berry.
80841 2007-07-22  Ben Pfaff  <blp@gnu.org>
80843         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
80844         case.
80845         Suggested by Eric Blake.
80847 2007-07-22  Ben Pfaff  <blp@gnu.org>
80849         New module: popcount.
80850         * MODULES.html.sh: Add popcount.
80851         * modules/popcount: New file.
80852         * modules/popcount-tests: New file.
80853         * tests/test-popcount.c: New file.
80854         * lib/popcount.h: New file.
80855         * m4/popcount.m4: New file.
80857 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80859         * build-aux/announce-gen: Update to GPLv3.
80861         * build-aux/config.guess: Update from config.
80863 2007-07-21  Bruno Haible  <bruno@clisp.org>
80865         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
80866         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
80868 2007-07-20  Jim Meyering  <jim@meyering.net>
80870         * check-module: Diagnose a self-dependency.
80872 2007-07-19  Bruno Haible  <bruno@clisp.org>
80874         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
80875         empty.
80876         Reported by Eric Blake.
80878 2007-07-18  Bruno Haible  <bruno@clisp.org>
80880         * gnulib-tool: New options --po-base, --po-domain.
80881         (func_usage): Document them.
80882         (pobase, po_domain): New variables.
80883         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
80884         DEFAULT_TEXT_DOMAIN.
80885         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
80886         (func_import): Consider pobase and po_domain. Create a po/ directory.
80887         (func_create_testdir): Set pobase and po_domain to empty.
80888         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
80889         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
80891 2007-07-18  Bruno Haible  <bruno@clisp.org>
80893         * gnulib-tool (func_get_automake_snippet): Synthesize also an
80894         EXTRA_DIST augmentation for files in build-aux/.
80896 2007-07-16  Bruno Haible  <bruno@clisp.org>
80898         * modules/lseek (License): Use the synonymous term "LGPLv2+".
80899         * modules/getdelim (License): Likewise.
80901 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80903         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
80904         * modules/d-type (License): Likewise.
80905         * modules/extensions (License): Likewise.
80906         * modules/fnmatch (License): Likewise.
80907         * modules/fseeko (License): Likewise.
80908         * modules/getaddrinfo (License): Likewise.
80909         * modules/getline (License): Likewise.
80910         * modules/getlogin_r (License): Likewise.
80911         * modules/getpass (License): Likewise.
80912         * modules/gettimeofday (License): Likewise.
80913         * modules/glob (License): Likewise.
80914         * modules/inet_ntop (License): Likewise.
80915         * modules/malloc (License): Likewise.
80916         * modules/malloca (License): Likewise.
80917         * modules/memmem (License): Likewise.
80918         * modules/mempcpy (License): Likewise.
80919         * modules/memset (License): Likewise.
80920         * modules/minmax (License): Likewise.
80921         * modules/mktime (License): Likewise.
80922         * modules/netinet_in (License): Likewise.
80923         * modules/pathmax (License): Likewise.
80924         * modules/poll (License): Likewise.
80925         * modules/regex (License): Likewise.
80926         * modules/snprintf (License): Likewise.
80927         * modules/stdbool (License): Likewise.
80928         * modules/stdint (License): Likewise.
80929         * modules/stdio (License): Likewise.
80930         * modules/strcase (License): Likewise.
80931         * modules/strcasestr (License): Likewise.
80932         * modules/strdup (License): Likewise.
80933         * modules/string (License): Likewise.
80934         * modules/strndup (License): Likewise.
80935         * modules/strnlen (License): Likewise.
80936         * modules/strpbrk (License): Likewise.
80937         * modules/strptime (License): Likewise.
80938         * modules/strsep (License): Likewise.
80939         * modules/sys_select (License): Likewise.
80940         * modules/sys_socket (License): Likewise.
80941         * modules/sys_stat (License): Likewise.
80942         * modules/sys_time (License): Likewise.
80943         * modules/time (License): Likewise.
80944         * modules/time_r (License): Likewise.
80945         * modules/timegm (License): Likewise.
80946         * modules/unistd (License): Likewise.
80947         * modules/vsnprintf (License): Likewise.
80948         * modules/wctype (License): Likewise.
80950 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80952         * modules/argz (License): LGPLv2+.
80954 2007-07-15  Karl Berry  <karl@gnu.org>
80956         * doc/gnulib.texi: revise node structure per new fdl.texi.
80958 2007-07-14  Bruno Haible  <bruno@clisp.org>
80960         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
80961         the output file.
80962         * lib/uniname/uninames.h: Regenerated.
80964 2007-07-14  Karl Berry  <karl@gnu.org>
80966         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
80967         omitting sectioning and index commands.
80969 2007-07-13  Bruno Haible  <bruno@clisp.org>
80971         New gnulib-tool option --more-symlinks.
80972         * gnulib-tool (func_usage): Document --more-symlinks.
80973         (do_copyrights): New variable.
80974         Recognize option --more-symlinks.
80975         (func_import): Don't add a copyright notice transform to
80976         sed_transform_lib_file if do_copyrights is empty.
80978 2007-07-13  Bruno Haible  <bruno@clisp.org>
80980         * lib/vasnprintf.c (decimal_point_char): Define also if
80981         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
80982         && !NEED_PRINTF_DIRECTIVE_A.
80983         Reported by Clemens Koller <clemens.koller@anagramm.de> via
80984         Gary V. Vaughan <gary@gnu.org>.
80986 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
80988         * lib/inttypes_.h: Undo previous change, since it was fixed
80989         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
80991 2007-07-13  Bruno Haible  <bruno@clisp.org>
80993         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
80994         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
80996 2007-07-13  Jim Meyering  <jim@meyering.net>
80998         df: Don't fail for Tru64's "file-on-file mount".
80999         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
81000         so we fall through and use statfs instead.  Details here:
81001         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
81002         Reported by Albert Chin.
81004 2007-07-13  Bruno Haible  <bruno@clisp.org>
81006         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
81007         * modules/configmake (License): Likewise.
81008         * modules/gettext (License): Likewise.
81009         * modules/gettext-h (License): Likewise.
81010         * modules/include_next (License): Likewise.
81011         * modules/link-warning (License): Likewise.
81012         * modules/localcharset (License): Likewise.
81013         * modules/localename (License): Likewise.
81014         * modules/lock (License): Likewise.
81015         * modules/relocatable-lib-lgpl (License): Likewise.
81016         * modules/size_max (License): Likewise.
81017         * modules/vasnprintf (License): Likewise.
81018         * modules/wchar (License): Likewise.
81019         * modules/xsize (License): Likewise.
81021 2007-07-13  Bruno Haible  <bruno@clisp.org>
81023         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
81024         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
81026 2007-07-12  Bruno Haible  <bruno@clisp.org>
81028         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
81029         in the modules files.
81031 2007-07-11  Karl Berry  <karl@gnu.org>
81033         * MODULES.html.sh (func_module): use
81034          sed -e '\|^'"${includefile}"'$|d'
81035          instead of /.../d, to avoid errors on $includefile's containing /.
81037 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81039         * gnulib-tool (func_import): Avoid duplication of --avoid
81040         statements
81041         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
81042         names to `_' in variable names.
81044 2007-07-10  Eric Blake  <ebb9@byu.net>
81046         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
81047         * NEWS: Document this change.
81049 2007-07-08  Bruno Haible  <bruno@clisp.org>
81051         Update to Unicode 5.0.
81052         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
81053         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
81054         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
81055         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
81056         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
81057         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
81058         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
81059         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
81060         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
81061         U+10A3F, U+1D242..U+1D244.
81062         (nonspacing_table_ind): Update.
81063         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
81064         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
81066 2007-07-08  Bruno Haible  <bruno@clisp.org>
81068         Update to Unicode 5.0.
81069         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
81070         code transform. Extend the name index field of unicode_name_to_code and
81071         unicode_code_to_name from 16 to 24 bits.
81072         * lib/uniname/uniname.c (unicode_character_name,
81073         unicode_name_character): Add the range 0x12xxx to the code transform.
81074         * lib/uniname/uninames.h: Regenerated.
81075         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
81077 2007-07-07  Bruno Haible  <bruno@clisp.org>
81079         * modules/wcwidth-tests: New file.
81080         * tests/test-wcwidth.c: New file.
81082         Work around MacOS X wcwidth() bug.
81083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
81084         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
81085         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
81086         original wcwidth in non-UTF-8 locales.
81087         * modules/wcwidth (Depends-on): Add localcharset, streq,
81088         uniwidth/width.
81089         * doc/functions/wcwidth.texi: Update.
81091 2007-07-07  Bruno Haible  <bruno@clisp.org>
81093         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
81094         (wcwidth): New declaration.
81095         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
81096         macros.
81097         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
81098         here. Prepare for creating <wchar.h> unconditionally.
81099         * modules/wchar (Depends-on): Add link-warning.
81100         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
81101         REPLACE_WCWIDTH, and GL_LINK_WARNING.
81102         * lib/wcwidth.h: Remove file.
81103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
81104         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
81105         * modules/wcwidth (Files): Remove lib/wcwidth.h.
81106         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
81107         (Include): Replace wcwidth.h with <wchar.h>.
81108         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
81109         * lib/mbchar.h: Don't include wcwidth.h.
81110         * lib/mbswidth.c: Likewise.
81111         * NEWS: Mention the change.
81113 2007-07-07  Bruno Haible  <bruno@clisp.org>
81115         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
81116         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
81117         definition with an external declaration.
81118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
81119         defined as a function. Remove AC_C_INLINE requirement.
81120         * modules/wcwidth (Files): Add lib/wcwidth.c.
81121         (Makefile.am): Remove redundant statement.
81123 2007-07-07  Bruno Haible  <bruno@clisp.org>
81125         * MODULES.html.sh (Unicode string functions): Add the new modules.
81127         * tests/uniwidth/test-u32-strwidth.c: New file.
81128         * modules/uniwidth/u32-strwidth-tests: New file.
81130         * lib/uniwidth/u32-strwidth.c: New file.
81131         * modules/uniwidth/u32-strwidth: New file.
81133         * tests/uniwidth/test-u16-strwidth.c: New file.
81134         * modules/uniwidth/u16-strwidth-tests: New file.
81136         * lib/uniwidth/u16-strwidth.c: New file.
81137         * modules/uniwidth/u16-strwidth: New file.
81139         * tests/uniwidth/test-u8-strwidth.c: New file.
81140         * modules/uniwidth/u8-strwidth-tests: New file.
81142         * lib/uniwidth/u8-strwidth.c: New file.
81143         * modules/uniwidth/u8-strwidth: New file.
81145         * tests/uniwidth/test-u32-width.c: New file.
81146         * modules/uniwidth/u32-width-tests: New file.
81148         * lib/uniwidth/u32-width.c: New file.
81149         * modules/uniwidth/u32-width: New file.
81151         * tests/uniwidth/test-u16-width.c: New file.
81152         * modules/uniwidth/u16-width-tests: New file.
81154         * lib/uniwidth/u16-width.c: New file.
81155         * modules/uniwidth/u16-width: New file.
81157         * tests/uniwidth/test-u8-width.c: New file.
81158         * modules/uniwidth/u8-width-tests: New file.
81160         * lib/uniwidth/u8-width.c: New file.
81161         * modules/uniwidth/u8-width: New file.
81163         * tests/uniwidth/test-uc_width.c: New file.
81164         * modules/uniwidth/width-tests: New file.
81166         * lib/uniwidth/width.c: New file, from GNU libiconv.
81167         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
81168         * modules/uniwidth/width: New file.
81170         * lib/uniwidth.h: New file, from GNU libiconv.
81171         * modules/uniwidth/base: New file.
81173 2007-07-07  Bruno Haible  <bruno@clisp.org>
81175         * lib/uniname.h: New file, from GNU gettext.
81176         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
81177         * lib/uniname/uninames.h: New file, from GNU gettext.
81178         * lib/uniname/uniname.c: New file, from GNU gettext.
81179         * tests/uniname/test-uninames.sh: New file.
81180         * tests/uniname/test-uninames.c: New file, from GNU gettext.
81181         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
81182         * modules/uniname/base: New file.
81183         * modules/uniname/uniname: New file.
81184         * modules/uniname/uniname-tests: New file.
81185         * MODULES.html.sh (Unicode string functions): Add the new modules.
81187 2007-07-06  Bruno Haible  <bruno@clisp.org>
81189         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
81191 2007-07-06  Bruno Haible  <bruno@clisp.org>
81193         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
81194         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
81195         includes <cygwin/sys_time.h> which includes <sys/select.h> which
81196         include <sys/time.h>.
81197         Reported by Eric Blake.
81199 2007-07-06  Eric Blake  <ebb9@byu.net>
81201         Fix testing canonicalize on cygwin.
81202         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
81203         Revert patch from 2007-06-19.
81204         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
81205         canonicalize module is also in use.
81206         * tests/test-canonicalize.c: New file.
81207         * tests/test-canonicalize.sh: Likewise.
81208         * modules/canonicalize-tests: Likewise.
81210 2007-07-06  Jim Meyering  <jim@meyering.net>
81212         * lib/getugroups.c (getugroups): Detect getgrent failure.
81213         Adjust comment to reflect reality: this function may return -1.
81215 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
81217         * build-aux/bootstrap (TP_URL,get_translations): Update to use
81218         the new TP address.
81219         (usage): Fix typo
81220         (gnulib_mk): New variable.
81222 2007-07-05  Jim Meyering  <jim@meyering.net>
81224         Don't let endgrent clobber errno, no matter how improbable.
81225         * lib/getugroups.c (getugroups): Save and restore errno around
81226         endgrent call.
81228         Close the group DB even when failing with 2^31 or more members.
81229         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
81231 2007-07-04  Jim Meyering  <jim@meyering.net>
81233         * lib/getugroups.h: New file.
81234         * lib/getugroups.c: Include "getugroups.h".
81235         Remove uses of "register" keyword.
81236         Move local variable, "cp", down into scope where used.
81237         Give "username" parameter the "const" attribute.
81238         * modules/getugroups (Files): Add lib/getugroups.h
81240 2007-07-04  Karl Berry  <karl@gnu.org>
81242         * MODULES.html.sh (func_all_modules): Complete rename of
81243         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
81245 2007-07-02  Bruno Haible  <bruno@clisp.org>
81247         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
81248         mode, when inttypes.h comes from gnulib.
81249         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
81251 2007-07-02  Simon Josefsson  <simon@josefsson.org>
81253         * NEWS: Mention lgpl module name change.
81255         * modules/lgpl-2.1: Renamed from lgpl.
81257         * NEWS: Mention gpl module name change.
81259         * modules/gpl-3.0: New file, based on gpl-2.0.
81261         * modules/gpl-2.0: Renamed from gpl.
81263         * modules/gpl: Fix filename, doc/gpl.texi is now found at
81264         doc/gpl-2.0.texi.
81266 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81268         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
81269         #define __STDC_LIMIT_MACROS temporarily while including
81270         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
81271         Problem reported by Joel E. Denny in
81272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
81274 2007-07-01  Bruno Haible  <bruno@clisp.org>
81276         * lib/unistdio.h: New file.
81277         * lib/unistdio/u-asnprintf.h: New file.
81278         * lib/unistdio/u-asprintf.h: New file.
81279         * lib/unistdio/u-printf-args.c: New file.
81280         * lib/unistdio/u-printf-args.h: New file.
81281         * lib/unistdio/u-printf-parse.h: New file.
81282         * lib/unistdio/u-snprintf.h: New file.
81283         * lib/unistdio/u-sprintf.h: New file.
81284         * lib/unistdio/u-vasprintf.h: New file.
81285         * lib/unistdio/u-vsnprintf.h: New file.
81286         * lib/unistdio/u-vsprintf.h: New file.
81287         * lib/unistdio/ulc-asnprintf.c: New file.
81288         * lib/unistdio/ulc-asprintf.c: New file.
81289         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
81290         * lib/unistdio/ulc-printf-parse.c: New file.
81291         * lib/unistdio/ulc-snprintf.c: New file.
81292         * lib/unistdio/ulc-sprintf.c: New file.
81293         * lib/unistdio/ulc-vasnprintf.c: New file.
81294         * lib/unistdio/ulc-vasprintf.c: New file.
81295         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
81296         * lib/unistdio/ulc-vsnprintf.c: New file.
81297         * lib/unistdio/ulc-vsprintf.c: New file.
81298         * lib/unistdio/u8-asnprintf.c: New file.
81299         * lib/unistdio/u8-asprintf.c: New file.
81300         * lib/unistdio/u8-printf-parse.c: New file.
81301         * lib/unistdio/u8-snprintf.c: New file.
81302         * lib/unistdio/u8-sprintf.c: New file.
81303         * lib/unistdio/u8-vasnprintf.c: New file.
81304         * lib/unistdio/u8-vasprintf.c: New file.
81305         * lib/unistdio/u8-vsnprintf.c: New file.
81306         * lib/unistdio/u8-vsprintf.c: New file.
81307         * lib/unistdio/u8-u8-asnprintf.c: New file.
81308         * lib/unistdio/u8-u8-asprintf.c: New file.
81309         * lib/unistdio/u8-u8-snprintf.c: New file.
81310         * lib/unistdio/u8-u8-sprintf.c: New file.
81311         * lib/unistdio/u8-u8-vasnprintf.c: New file.
81312         * lib/unistdio/u8-u8-vasprintf.c: New file.
81313         * lib/unistdio/u8-u8-vsnprintf.c: New file.
81314         * lib/unistdio/u8-u8-vsprintf.c: New file.
81315         * lib/unistdio/u16-asnprintf.c: New file.
81316         * lib/unistdio/u16-asprintf.c: New file.
81317         * lib/unistdio/u16-printf-parse.c: New file.
81318         * lib/unistdio/u16-snprintf.c: New file.
81319         * lib/unistdio/u16-sprintf.c: New file.
81320         * lib/unistdio/u16-vasnprintf.c: New file.
81321         * lib/unistdio/u16-vasprintf.c: New file.
81322         * lib/unistdio/u16-vsnprintf.c: New file.
81323         * lib/unistdio/u16-vsprintf.c: New file.
81324         * lib/unistdio/u16-u16-asnprintf.c: New file.
81325         * lib/unistdio/u16-u16-asprintf.c: New file.
81326         * lib/unistdio/u16-u16-snprintf.c: New file.
81327         * lib/unistdio/u16-u16-sprintf.c: New file.
81328         * lib/unistdio/u16-u16-vasnprintf.c: New file.
81329         * lib/unistdio/u16-u16-vasprintf.c: New file.
81330         * lib/unistdio/u16-u16-vsnprintf.c: New file.
81331         * lib/unistdio/u16-u16-vsprintf.c: New file.
81332         * lib/unistdio/u32-asnprintf.c: New file.
81333         * lib/unistdio/u32-asprintf.c: New file.
81334         * lib/unistdio/u32-printf-parse.c: New file.
81335         * lib/unistdio/u32-snprintf.c: New file.
81336         * lib/unistdio/u32-sprintf.c: New file.
81337         * lib/unistdio/u32-vasnprintf.c: New file.
81338         * lib/unistdio/u32-vasprintf.c: New file.
81339         * lib/unistdio/u32-vsnprintf.c: New file.
81340         * lib/unistdio/u32-vsprintf.c: New file.
81341         * lib/unistdio/u32-u32-asnprintf.c: New file.
81342         * lib/unistdio/u32-u32-asprintf.c: New file.
81343         * lib/unistdio/u32-u32-snprintf.c: New file.
81344         * lib/unistdio/u32-u32-sprintf.c: New file.
81345         * lib/unistdio/u32-u32-vasnprintf.c: New file.
81346         * lib/unistdio/u32-u32-vasprintf.c: New file.
81347         * lib/unistdio/u32-u32-vsnprintf.c: New file.
81348         * lib/unistdio/u32-u32-vsprintf.c: New file.
81349         * tests/unistdio/test-ulc-asnprintf1.c: New file.
81350         * tests/unistdio/test-ulc-asnprintf1.h: New file.
81351         * tests/unistdio/test-ulc-printf1.h: New file.
81352         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
81353         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
81354         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
81355         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
81356         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
81357         * tests/unistdio/test-ulc-vasprintf1.c: New file.
81358         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
81359         * tests/unistdio/test-ulc-vsprintf1.c: New file.
81360         * tests/unistdio/test-u8-asnprintf1.c: New file.
81361         * tests/unistdio/test-u8-asnprintf1.h: New file.
81362         * tests/unistdio/test-u8-printf1.h: New file.
81363         * tests/unistdio/test-u8-vasnprintf1.c: New file.
81364         * tests/unistdio/test-u8-vasnprintf2.c: New file.
81365         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
81366         * tests/unistdio/test-u8-vasnprintf3.c: New file.
81367         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
81368         * tests/unistdio/test-u8-vasprintf1.c: New file.
81369         * tests/unistdio/test-u8-vsnprintf1.c: New file.
81370         * tests/unistdio/test-u8-vsprintf1.c: New file.
81371         * tests/unistdio/test-u16-asnprintf1.c: New file.
81372         * tests/unistdio/test-u16-asnprintf1.h: New file.
81373         * tests/unistdio/test-u16-printf1.h: New file.
81374         * tests/unistdio/test-u16-vasnprintf1.c: New file.
81375         * tests/unistdio/test-u16-vasnprintf2.c: New file.
81376         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
81377         * tests/unistdio/test-u16-vasnprintf3.c: New file.
81378         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
81379         * tests/unistdio/test-u16-vasprintf1.c: New file.
81380         * tests/unistdio/test-u16-vsnprintf1.c: New file.
81381         * tests/unistdio/test-u16-vsprintf1.c: New file.
81382         * tests/unistdio/test-u32-asnprintf1.c: New file.
81383         * tests/unistdio/test-u32-asnprintf1.h: New file.
81384         * tests/unistdio/test-u32-printf1.h: New file.
81385         * tests/unistdio/test-u32-vasnprintf1.c: New file.
81386         * tests/unistdio/test-u32-vasnprintf2.c: New file.
81387         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
81388         * tests/unistdio/test-u32-vasnprintf3.c: New file.
81389         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
81390         * tests/unistdio/test-u32-vasprintf1.c: New file.
81391         * tests/unistdio/test-u32-vsnprintf1.c: New file.
81392         * tests/unistdio/test-u32-vsprintf1.c: New file.
81393         * modules/unistdio/base: New file.
81394         * modules/unistdio/u-printf-args: New file.
81395         * modules/unistdio/ulc-asnprintf: New file.
81396         * modules/unistdio/ulc-asprintf: New file.
81397         * modules/unistdio/ulc-fprintf: New file.
81398         * modules/unistdio/ulc-printf-parse: New file.
81399         * modules/unistdio/ulc-snprintf: New file.
81400         * modules/unistdio/ulc-sprintf: New file.
81401         * modules/unistdio/ulc-vasnprintf: New file.
81402         * modules/unistdio/ulc-vasprintf: New file.
81403         * modules/unistdio/ulc-vfprintf: New file.
81404         * modules/unistdio/ulc-vsnprintf: New file.
81405         * modules/unistdio/ulc-vsprintf: New file.
81406         * modules/unistdio/u8-asnprintf: New file.
81407         * modules/unistdio/u8-asprintf: New file.
81408         * modules/unistdio/u8-printf-parse: New file.
81409         * modules/unistdio/u8-snprintf: New file.
81410         * modules/unistdio/u8-sprintf: New file.
81411         * modules/unistdio/u8-vasnprintf: New file.
81412         * modules/unistdio/u8-vasprintf: New file.
81413         * modules/unistdio/u8-vsnprintf: New file.
81414         * modules/unistdio/u8-vsprintf: New file.
81415         * modules/unistdio/u8-u8-asnprintf: New file.
81416         * modules/unistdio/u8-u8-asprintf: New file.
81417         * modules/unistdio/u8-u8-snprintf: New file.
81418         * modules/unistdio/u8-u8-sprintf: New file.
81419         * modules/unistdio/u8-u8-vasnprintf: New file.
81420         * modules/unistdio/u8-u8-vasprintf: New file.
81421         * modules/unistdio/u8-u8-vsnprintf: New file.
81422         * modules/unistdio/u8-u8-vsprintf: New file.
81423         * modules/unistdio/u16-asnprintf: New file.
81424         * modules/unistdio/u16-asprintf: New file.
81425         * modules/unistdio/u16-printf-parse: New file.
81426         * modules/unistdio/u16-snprintf: New file.
81427         * modules/unistdio/u16-sprintf: New file.
81428         * modules/unistdio/u16-vasnprintf: New file.
81429         * modules/unistdio/u16-vasprintf: New file.
81430         * modules/unistdio/u16-vsnprintf: New file.
81431         * modules/unistdio/u16-vsprintf: New file.
81432         * modules/unistdio/u16-u16-asnprintf: New file.
81433         * modules/unistdio/u16-u16-asprintf: New file.
81434         * modules/unistdio/u16-u16-snprintf: New file.
81435         * modules/unistdio/u16-u16-sprintf: New file.
81436         * modules/unistdio/u16-u16-vasnprintf: New file.
81437         * modules/unistdio/u16-u16-vasprintf: New file.
81438         * modules/unistdio/u16-u16-vsnprintf: New file.
81439         * modules/unistdio/u16-u16-vsprintf: New file.
81440         * modules/unistdio/u32-asnprintf: New file.
81441         * modules/unistdio/u32-asprintf: New file.
81442         * modules/unistdio/u32-printf-parse: New file.
81443         * modules/unistdio/u32-snprintf: New file.
81444         * modules/unistdio/u32-sprintf: New file.
81445         * modules/unistdio/u32-vasnprintf: New file.
81446         * modules/unistdio/u32-vasprintf: New file.
81447         * modules/unistdio/u32-vsnprintf: New file.
81448         * modules/unistdio/u32-vsprintf: New file.
81449         * modules/unistdio/u32-u32-asnprintf: New file.
81450         * modules/unistdio/u32-u32-asprintf: New file.
81451         * modules/unistdio/u32-u32-snprintf: New file.
81452         * modules/unistdio/u32-u32-sprintf: New file.
81453         * modules/unistdio/u32-u32-vasnprintf: New file.
81454         * modules/unistdio/u32-u32-vasprintf: New file.
81455         * modules/unistdio/u32-u32-vsnprintf: New file.
81456         * modules/unistdio/u32-u32-vsprintf: New file.
81457         * modules/unistdio/ulc-asnprintf-tests: New file.
81458         * modules/unistdio/ulc-vasnprintf-tests: New file.
81459         * modules/unistdio/ulc-vasprintf-tests: New file.
81460         * modules/unistdio/ulc-vsnprintf-tests: New file.
81461         * modules/unistdio/ulc-vsprintf-tests: New file.
81462         * modules/unistdio/u8-asnprintf-tests: New file.
81463         * modules/unistdio/u8-vasnprintf-tests: New file.
81464         * modules/unistdio/u8-vasprintf-tests: New file.
81465         * modules/unistdio/u8-vsnprintf-tests: New file.
81466         * modules/unistdio/u8-vsprintf-tests: New file.
81467         * modules/unistdio/u16-asnprintf-tests: New file.
81468         * modules/unistdio/u16-vasnprintf-tests: New file.
81469         * modules/unistdio/u16-vasprintf-tests: New file.
81470         * modules/unistdio/u16-vsnprintf-tests: New file.
81471         * modules/unistdio/u16-vsprintf-tests: New file.
81472         * modules/unistdio/u32-asnprintf-tests: New file.
81473         * modules/unistdio/u32-vasnprintf-tests: New file.
81474         * modules/unistdio/u32-vasprintf-tests: New file.
81475         * modules/unistdio/u32-vsnprintf-tests: New file.
81476         * modules/unistdio/u32-vsprintf-tests: New file.
81477         * MODULES.html.sh (Unicode string functions): Add the new modules.
81479 2007-07-01  Bruno Haible  <bruno@clisp.org>
81481         * lib/sprintf.c (sprintf): Limit the available length estimation,
81482         to avoid address wraparound.
81483         * lib/vsprintf.c (vsprintf): Likewise.
81484         * modules/sprintf-posix (Dependencies): Add stdint.
81485         * modules/vsprintf-posix (Dependencies): Likewise.
81487 2007-07-01  Bruno Haible  <bruno@clisp.org>
81489         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
81490         Windows PATH as well. Conservative double-quoting. Comments.
81492 2007-07-01  Bruno Haible  <bruno@clisp.org>
81493             Eric Blake  <ebb9@byu.net>
81494             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81496         * gnulib-tool (self_abspathname): Fix algorithm to cope with
81497         empty components in $PATH, denoting '.'.
81499 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81501         * gnulib-tool: Fix indentation.
81502         (func_create_megatestdir): Likewise.
81503         Report by Bruno Haible.
81505 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81507         Sync from Automake.
81508         * build-aux/gnupload: Fix shell portability issues with for loops.
81509         Report by Karl Berry.
81511 2007-06-29  Simon Josefsson  <simon@josefsson.org>
81513         * build-aux/maint.mk (POURL): Use translationproject.org.
81515 2007-06-27  Simon Josefsson  <simon@josefsson.org>
81516             Bruno Haible  <bruno@clisp.org>
81518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
81519         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
81520         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
81521         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
81522         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
81524 2007-06-27  Bruno Haible  <bruno@clisp.org>
81526         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
81527         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
81529 2007-06-26  Karl Berry  <karl@gnu.org>
81531         * MODULES.html.sh: remove xreadlink-with-size.
81533 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81535         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
81536         method that I hope also handles the double-include problem noted
81537         by Bruno Haible in
81538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
81540 2007-06-23  Bruno Haible  <bruno@clisp.org>
81542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81543         Don't let the 'mostlyclean' target fail if the last subdirectory could
81544         not be removed.
81545         Reported by Karl Berry.
81547 2007-06-23  Bruno Haible  <bruno@clisp.org>
81549         * gnulib-tool (echo): Add a speedier workaround for ksh.
81550         * tests/test-echo.sh: Likewise.
81552 2007-06-23  Bruno Haible  <bruno@clisp.org>
81554         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
81555         * tests/test-echo.sh: Likewise.
81557 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81559         * gnulib-tool (IFS): Initialize early, so we don't set it to
81560         empty later.
81561         (self_abspathname): Rewrite algorithm to set it, reindent.
81562         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
81563         (func_create_megatestdir): Merge some sed scripts.
81565 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81567         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
81568         exposed by Sun Studio 11 cc on Solaris 8.
81570 2007-06-22  Bruno Haible  <bruno@clisp.org>
81572         * gnulib-tool (echo): Ensure the echo primitive does not interpret
81573         backslashes.
81574         * tests/test-echo.sh: New file.
81576 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81578         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
81579         simplify `sed_replace_build_aux' scripts, they are portable but
81580         echoing them with `echo' is not.
81581         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
81583 2007-06-21  Karl Berry  <karl@gnu.org>
81585         * config/srclist.txt: guess we can't handle the licenses via
81586         srclist at the moment.
81588 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81590         * MODULES.html.sh: Add include_next.
81591         * modules/include_next: New file.
81593 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
81596         INCLUDE_NEXT.
81597         (gl_CHECK_NEXT_HEADERS): New macro.
81598         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
81599         the obsolescent gl_ABSOLUTE_HEADER.
81600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
81601         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
81602         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
81603         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
81604         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
81605         * m4/math_h.m4 (gl_MATH_H): Likewise.
81606         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
81607         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
81608         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
81609         * m4/stdint.m4 (gl_STDINT_H): Likewise.
81610         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
81611         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
81612         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
81613         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
81614         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
81615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
81616         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
81617         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
81618         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
81619         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
81620         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81621         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
81622         * m4/inttypes.m4 (gl_INTTYPES_H): Define
81623         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
81624         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
81625         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
81626         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
81627         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
81628         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
81629         * lib/float_.h: Likewise.
81630         * lib/inttypes_.h: Likewise.
81631         * lib/math_.h: Likewise.
81632         * lib/search_.h: Likewise.
81633         * lib/signal_.h: Likewise.
81634         * lib/stdint_.h: Likewise.
81635         * lib/stdio_.h: Likewise.
81636         * lib/stdlib_.h: Likewise.
81637         * lib/string_.h: Likewise.
81638         * lib/sys_stat_.h: Likewise.
81639         * lib/sys_time_.h: Likewise.
81640         * lib/time_.h: Likewise.
81641         * lib/unistd_.h: Likewise.
81642         * lib/wchar_.h: Likewise.
81643         * lib/wctype_.h: Likewise.
81644         * lib/dirent_.h: Likewise.
81645         * lib/iconv_.h: Likewise.
81646         * lib/locale_.h: Likewise.
81647         * lib/netinet_in_.h: Likewise.
81648         * lib/sys_select_.h: Likewise.
81649         * lib/sys_socket_.h: Likewise.
81650         * lib/sysexits_.h: Likewise.
81651         * modules/fcntl (Depends-on): Depend on include_next, not
81652         absolute_header.
81653         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
81654         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
81655         * modules/fchdir: Likewise.
81656         * modules/float: Likewise.
81657         * modules/iconv_open: Likewise.
81658         * modules/inttypes: Likewise.
81659         * modules/locale: Likewise.
81660         * modules/math: Likewise.
81661         * modules/netinet_in: Likewise.
81662         * modules/search: Likewise.
81663         * modules/signal: Likewise.
81664         * modules/stdint: Likewise.
81665         * modules/stdio: Likewise.
81666         * modules/stdlib: Likewise.
81667         * modules/string: Likewise.
81668         * modules/sys_select: Likewise.
81669         * modules/sys_socket: Likewise.
81670         * modules/sys_stat: Likewise.
81671         * modules/sys_time: Likewise.
81672         * modules/sysexits: Likewise.
81673         * modules/time: Likewise.
81674         * modules/unistd: Likewise.
81675         * modules/wchar: Likewise.
81676         * modules/wctype: Likewise.
81677         * modules/sys_stat: Change maintainer to "all".
81678         * modules/unistd: Likewise.
81680 2007-06-20  Karl Berry  <karl@gnu.org>
81682         * config/srclist.txt: track www changes in license files.
81684 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
81686         * build-aux/bootstrap: Remove stray dot.
81687         Make sure build_aux settings are honored when linking
81688         gnulib_extra_files.
81690 2007-06-19  Eric Blake  <ebb9@byu.net>
81692         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
81693         Allow compilation on cygwin.
81695 2007-06-19  Jim Meyering  <jim@meyering.net>
81697         xreadlink-with-size: Remove module.  No longer used.
81698         Ex-callers now use xreadlink or mreadlink-with-size.
81699         * modules/xreadlink-with-size: Remove module.
81700         * lib/xreadlink-with-size.c: Remove file.
81701         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
81702         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
81703         just before the function definition *is* accurate.
81705         Eliminate one way canonicalize_filename_mode could exit.
81706         * lib/canonicalize.c (canonicalize_filename_mode):
81707         Use mreadlink_with_size, not xreadlink_with_size.
81709 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
81711         Detect porting problems to FreeBSD/arm, which has time_t wider than
81712         long int.  Original problem reported for GNU diff by Xin Li in
81713         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
81714         * modules/getdate (Depends-on): Add intprops, verify.
81715         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
81716         is an integer type no wider than long int.
81718 2007-06-18  Jim Meyering  <jim@meyering.net>
81720         New module: mreadlink-with-size.
81721         * MODULES.html.sh: Add mreadlink-with-size.
81722         * modules/mreadlink-with-size: New module
81723         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
81724         not xreadlink-with-size.
81725         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
81727 2007-06-16  Bruno Haible  <bruno@clisp.org>
81729         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
81730         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
81731         Reported by Gary V. Vaughan <gary@gnu.org>.
81733 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
81735         Revamp lchown so that it lives in unistd.h where it belongs.
81736         * lib/lchown.h: Remove.
81737         * lib/dirchownmod.c: Don't include lib/lchown.h.
81738         * lib/fchownat.c: Likewise.
81739         * lib/openat.c: Likewise.
81740         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
81741         does not follow symlinks.
81742         (EOPNOTSUPP): Define if not defined.
81743         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
81744         is defined to 0.
81745         (lchown): New decl.
81746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
81747         Do not check for lchown decl.
81748         Set REPLACE_LCHOWN.
81749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
81750         REPLACE_LCHOWN.
81751         * modules/chown: Make it clear it follows symlinks.
81752         * modules/lchown: Make it clear it doesn't follow symlinks.
81753         (Files): Remove lib/lchown.h
81754         (Depends-on): Add unistd.
81755         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
81756         (Include): Include <unistd.h>, not "lchown.h".
81757         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
81758         REPLACE_LCHOWN.
81760 2007-06-15  Jim Meyering  <jim@meyering.net>
81762         Change license (GPL to LGPL) of fsusage and dependents.
81763         * modules/fsusage (License): Change to LGPL.
81764         * modules/full-read (License): Likewise.
81765         * modules/full-write (License): Likewise.
81766         * modules/safe-read (License): Likewise.
81767         * modules/safe-write (License): Likewise.
81769 2007-06-14  Ben Pfaff  <blp@gnu.org>
81771         Missing part of allocsa -> malloca transition.
81772         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
81773         gl_MALLOCA.
81775 2007-06-12  Bruno Haible  <bruno@clisp.org>
81777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
81778         to ia64, x86_64, i386.
81779         Reported by Eric Blake.
81781 2007-06-12  Bruno Haible  <bruno@clisp.org>
81783         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
81784         cross-compiling to x86_64.
81786 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
81788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
81789         glitch reported by Ralf Wildenhues in
81790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
81792         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
81793         Vin Shelton.
81795 2007-06-11  Bruno Haible  <bruno@clisp.org>
81797         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
81798         replacement string.
81799         Reported by Eric Blake.
81801 2007-06-10  Bruno Haible  <bruno@clisp.org>
81803         Prepare vasnprintf code for use with Unicode strings.
81804         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
81805         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
81806         TYPE_U32_STRING.
81807         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
81808         a_u32_string variants.
81809         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
81810         * lib/printf-args.c: Don't include config.h and the specification
81811         header if PRINTF_FETCHARGS is already defined.
81812         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
81813         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
81814         TYPE_U16_STRING, TYPE_U32_STRING.
81815         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
81816         u16_directive, u16_directives, u32_directive, u32_directives): New
81817         types.
81818         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
81819         New declarations.
81820         * lib/printf-parse.c: Don't include config.h and the specification
81821         header if PRINTF_PARSE is already defined. Eliminate the set of
81822         parameters for WIDE_CHAR_VERSION; the user of this file must provide
81823         them now. Include c-ctype.h.
81824         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
81825         directive and CHAR_T_ONLY_ASCII.
81826         * lib/vasnprintf.c: Don't include config.h and the specification header
81827         if VASNPRINTF is already defined.
81828         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
81829         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
81830         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
81831         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
81832         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
81833         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
81834         code accordingly.
81835         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
81836         pad_ourselves also in this case, with the 'c' and 's' directives, and
81837         with a different notion of "width".
81838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
81840 2007-06-10  Bruno Haible  <bruno@clisp.org>
81842         * modules/unistr/u32-mbsnlen: New file.
81843         * lib/unistr/u32-mbsnlen.c: New file.
81845         * modules/unistr/u16-mbsnlen: New file.
81846         * lib/unistr/u16-mbsnlen.c: New file.
81848         * modules/unistr/u8-mbsnlen: New file.
81849         * lib/unistr/u8-mbsnlen.c: New file.
81851         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
81852         declarations.
81854 2007-06-10  Bruno Haible  <bruno@clisp.org>
81856         * lib/string_.h (mbsnlen): New declaration.
81857         * lib/mbsnlen.c: New file.
81858         * m4/mbsnlen.m4: New file.
81859         * modules/mbsnlen: New file.
81860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
81861         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
81862         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
81864 2007-06-10  Bruno Haible  <bruno@clisp.org>
81866         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
81868 2007-06-10  Bruno Haible  <bruno@clisp.org>
81870         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
81871         * lib/mbuiter.h: Likewise.
81873 2007-06-10  Bruno Haible  <bruno@clisp.org>
81875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
81876         declaration.
81878 2007-06-10  Karl Berry  <karl@gnu.org>
81880         * config/srclist.txt: remove gettext entries, Bruno prefers
81881         to update individually.
81883 2007-06-10  Bruno Haible  <bruno@clisp.org>
81885         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
81886         'maxlen'. Ensure only length + width bytes are allocated, not
81887         length + 1 + width.
81889 2007-06-09  Bruno Haible  <bruno@clisp.org>
81891         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
81892         (CHAR_T): Remove macro.
81893         (VASNPRINTF): Update.
81895 2007-06-09  Bruno Haible  <bruno@clisp.org>
81897         * MODULES.html.sh (Unicode string functions): Add the new modules.
81899         * modules/uniconv/u32-conv-to-enc: New file.
81900         * lib/uniconv/u32-conv-to-enc.c: New file.
81901         * modules/uniconv/u32-conv-to-enc-tests: New file.
81902         * tests/uniconv/test-u32-conv-to-enc.c: New file.
81904         * modules/uniconv/u16-conv-to-enc: New file.
81905         * lib/uniconv/u16-conv-to-enc.c: New file.
81906         * lib/uniconv/u-conv-to-enc.h: New file.
81907         * modules/uniconv/u16-conv-to-enc-tests: New file.
81908         * tests/uniconv/test-u16-conv-to-enc.c: New file.
81910         * modules/uniconv/u8-conv-to-enc: New file.
81911         * lib/uniconv/u8-conv-to-enc.c: New file.
81912         * modules/uniconv/u8-conv-to-enc-tests: New file.
81913         * tests/uniconv/test-u8-conv-to-enc.c: New file.
81915         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
81916         u32_conv_to_encoding): New declarations.
81918 2007-06-09  Bruno Haible  <bruno@clisp.org>
81920         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
81922 2007-06-09  Bruno Haible  <bruno@clisp.org>
81924         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
81925         * modules/malloca: Renamed from modules/allocsa, updated.
81926         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
81927         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
81928         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
81929         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
81930         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
81931         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
81932         * modules/xmalloca: Renamed from modules/xallocsa, updated.
81933         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
81934         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
81935         * modules/c-strcasestr (Depends-on): Update.
81936         * lib/c-strcasestr.c: Update.
81937         * modules/c-strstr (Depends-on): Update.
81938         * lib/c-strstr.c: Update.
81939         * modules/canonicalize-lgpl (Depends-on): Update.
81940         * lib/canonicalize-lgpl.c: Update.
81941         * modules/clean-temp (Depends-on): Update.
81942         * lib/clean-temp.c: Update.
81943         * modules/csharpcomp (Depends-on): Update.
81944         * lib/csharpcomp.c: Update.
81945         * modules/csharpexec (Depends-on): Update.
81946         * lib/csharpexec.c: Update.
81947         * modules/javacomp (Depends-on): Update.
81948         * lib/javacomp.c: Update.
81949         * modules/javaexec (Depends-on): Update.
81950         * lib/javaexec.c: Update.
81951         * modules/mbscasestr (Depends-on): Update.
81952         * lib/mbscasestr.c: Update.
81953         * modules/mbsstr (Depends-on): Update.
81954         * lib/mbsstr.c: Update.
81955         * modules/setenv (Depends-on): Update.
81956         * lib/setenv.c: Update.
81957         * modules/strcasestr (Depends-on): Update.
81958         * lib/strcasestr.c: Update.
81959         * modules/striconveha (Depends-on): Update.
81960         * lib/striconveha.c: Update.
81961         * modules/relocatable-prog-wrapper (Files): Update.
81962         * lib/relocwrapper.c: Update.
81963         * build-aux/install-reloc: Update.
81964         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
81966 2007-06-08  Bruno Haible  <bruno@clisp.org>
81968         Port to uClibc.
81969         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
81970         * lib/fpurge.c (fpurge): Likewise.
81971         * lib/freading.c (freading): Likewise.
81972         * lib/fseeko.c (rpl_fseeko): Likewise.
81973         * lib/fseterr.c (fseterr): Likewise.
81974         * lib/fwriting.c (fwriting): Likewise.
81975         * tests/test-fflush.c (main): Avoid a failure on uClibc.
81977 2007-06-08  Bruno Haible  <bruno@clisp.org>
81979         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
81980         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
81981         * modules/gettext (Files): Add m4/intlmacosx.m4.
81983 2007-06-07  Bruno Haible  <bruno@clisp.org>
81985         * modules/localename-tests: New file.
81986         * tests/test-localename.c: New file.
81988         New module 'localename'.
81989         * lib/localename.h: New file.
81990         * lib/localename.c: New file, from GNU gettext.
81991         * m4/localename.m4: New file.
81992         * modules/localename: New file.
81994 2007-06-07  Bruno Haible  <bruno@clisp.org>
81996         Work around the lack of <wchar.h> on some builds of uClibc.
81997         * doc/headers/wchar.texi: Update.
81998         * lib/wchar_.h: Include <wchar.h> only if it exists.
81999         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
82000         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
82001         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
82002         doesn't exist.
82003         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
82004         * modules/mbfile (Depends-on): Add wchar.
82005         * modules/mbiter (Depends-on): Likewise.
82006         * modules/mbuiter (Depends-on): Likewise.
82007         Reported by Simon Josefsson.
82009 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82011         Work around problem reported by Steven M. Schweda in
82012         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
82013         Tru64 5.1B with the Compaq compiler environment installed declares
82014         an 'isblank' function but does not define it in the C library.
82015         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
82016         * lib/regex_internal.h (isblank): Likewise.
82017         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
82018         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
82020 2007-06-05  Bruno Haible  <bruno@clisp.org>
82022         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
82023         ia64.
82024         * modules/printf-safe: New file.
82025         * modules/fprintf-posix (Depends-on): Add printf-safe.
82026         * modules/printf-posix (Depends-on): Likewise.
82027         * modules/snprintf-posix (Depends-on): Likewise.
82028         * modules/sprintf-posix (Depends-on): Likewise.
82029         * modules/vasnprintf-posix (Depends-on): Likewise.
82030         * modules/vasprintf-posix (Depends-on): Likewise.
82031         * modules/vfprintf-posix (Depends-on): Likewise.
82032         * modules/vprintf-posix (Depends-on): Likewise.
82033         * modules/vsnprintf-posix (Depends-on): Likewise.
82034         * modules/vsprintf-posix (Depends-on): Likewise.
82035         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
82036         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
82037         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
82038         "no" on i386, x86_64, ia64.
82039         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
82040         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82041         on i386, x86_64, ia64.
82042         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
82043         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82044         on i386, x86_64, ia64.
82045         * tests/test-vasnprintf-posix.c: Include float.h.
82046         (LDBL80_WORDS): New macro.
82047         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82048         on i386, x86_64, ia64.
82049         * tests/test-vasprintf-posix.c: Include float.h.
82050         (LDBL80_WORDS): New macro.
82051         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82052         on i386, x86_64, ia64.
82053         * tests/test-snprintf-posix.c: Include float.h.
82054         * tests/test-sprintf-posix.c: Likewise.
82055         * tests/test-vsnprintf-posix.c: Likewise.
82056         * tests/test-vsprintf-posix.c: Likewise.
82058 2007-06-05  Bruno Haible  <bruno@clisp.org>
82060         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
82061         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
82062         non-IEEE numbers on i386, x86_64, ia64.
82063         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
82064         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
82065         * tests/test-isnanl.h: Include float.h.
82066         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
82068 2007-06-05  Bruno Haible  <bruno@clisp.org>
82070         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
82071         also the %a / %A. Handle the %a / %A code before this extra handling.
82073 2007-06-05  Bruno Haible  <bruno@clisp.org>
82075         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
82076         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
82078 2007-06-05  Bruno Haible  <bruno@clisp.org>
82080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
82081         typo in variable name.
82083 2007-06-05  Eric Blake  <ebb9@byu.net>
82085         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
82086         Reported by Simon Josefsson.
82088 2007-06-04  Bruno Haible  <bruno@clisp.org>
82090         Avoid test failures on some PowerPC platforms.
82091         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
82092         Define differently for PowerPC.
82093         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
82094         Reported by Gary V. Vaughan <gary@gnu.org>.
82096 2007-06-02  Bruno Haible  <bruno@clisp.org>
82098         Fix test-stdint failure on FreeBSD/ia64.
82099         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
82100         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
82101         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
82102         * doc/headers/stdint.texi: Update.
82104 2007-06-01  Bruno Haible  <bruno@clisp.org>
82106         * tests/test-binary-io.c (main): Pass a third argument to open().
82107         Reported by Gary V. Vaughan <gary@gnu.org>.
82109 2007-06-01  Bruno Haible  <bruno@clisp.org>
82111         * doc/functions/frexpl.texi: Update for mingw.
82113 2007-06-01  Bruno Haible  <bruno@clisp.org>
82115         * tests/test-lseek.c (main): Disable test of errno for invalid third
82116         argument.
82117         * doc/functions/lseek.texi: Update.
82118         Reported by Gary V. Vaughan <gary@gnu.org>.
82120 2007-05-28  Bruno Haible  <bruno@clisp.org>
82122         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
82124 2007-05-31  Eric Blake  <ebb9@byu.net>
82126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
82127         cross compiling.
82129 2007-05-30  Eric Blake  <ebb9@byu.net>
82130         and Bruno Haible  <bruno@clisp.org>
82132         Work around mingw test failures exposed by m4-1.4.9b.
82133         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
82134         * tests/test-unistd.c: Disable uid_t and git_t tests for the
82135         moment.
82137 2007-05-30  Bruno Haible  <bruno@clisp.org>
82139         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
82140         assuming that they are closed. Needed on HP-UX 11.
82142 2007-05-29  Bruno Haible  <bruno@clisp.org>
82144         Fix a problem with #include_next.
82145         * lib/dirent_.h: Split the double-inclusion guard.
82146         * lib/fcntl_.h: Likewise.
82147         * lib/float_.h: Likewise.
82148         * lib/iconv_.h: Likewise.
82149         * lib/inttypes_.h: Likewise.
82150         * lib/locale_.h: Likewise.
82151         * lib/math_.h: Likewise.
82152         * lib/netinet_in_.h: Likewise.
82153         * lib/search_.h: Likewise.
82154         * lib/signal_.h: Likewise.
82155         * lib/stdint_.h: Likewise.
82156         * lib/stdio_.h: Likewise.
82157         * lib/stdlib_.h: Likewise.
82158         * lib/string_.h: Likewise.
82159         * lib/sys_select_.h: Likewise.
82160         * lib/sys_socket_.h: Likewise.
82161         * lib/sys_stat_.h: Likewise.
82162         * lib/sys_time_.h: Likewise.
82163         * lib/sysexits_.h: Likewise.
82164         * lib/time_.h: Likewise.
82165         * lib/unistd_.h: Likewise.
82166         * lib/wchar_.h: Likewise.
82167         * lib/wctype_.h: Likewise.
82169 2007-05-29  Bruno Haible  <bruno@clisp.org>
82171         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
82172         for the moment.
82174 2007-05-29  Bruno Haible  <bruno@clisp.org>
82176         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
82177         invocation.
82178         Reported by Eric Blake.
82180 2007-05-29  Bruno Haible  <bruno@clisp.org>
82182         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
82183         compiling case.
82185 2007-05-29  Eric Blake  <ebb9@byu.net>
82186             Bruno Haible  <bruno@clisp.org>
82188         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
82189         cross compiles.
82191 2007-05-28  Eric Blake  <ebb9@byu.net>
82193         * modules/closein-tests (test_closein_LDADD): Support test on
82194         cygwin with libtool.
82196 2007-05-28  Bruno Haible  <bruno@clisp.org>
82198         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
82199         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82200         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82201         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82202         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82203         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82204         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82205         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82206         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82208 2007-05-28  Eric Blake  <ebb9@byu.net>
82210         Unconditionally include <config.h> in unit tests.
82211         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
82212         * tests/test-allocsa.c, tests/test-arcfour.c,
82213         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
82214         tests/test-array_list.c, tests/test-array_oset.c,
82215         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
82216         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
82217         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
82218         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
82219         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
82220         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
82221         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
82222         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
82223         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
82224         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
82225         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
82226         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
82227         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
82228         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
82229         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
82230         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
82231         test-md5.c, test-memmem.c, test-printf-posix.c,
82232         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
82233         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
82234         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
82235         test-strcasestr.c, test-striconv.c, test-striconveh.c,
82236         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
82237         test-vasnprintf-posix2.c, test-vasnprintf.c,
82238         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
82239         test-vfprintf-posix.c, test-vprintf-posix.c,
82240         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
82241         test-xvasprintf.c: Likewise.
82243 2007-05-28  Bruno Haible  <bruno@clisp.org>
82245         * gnulib-tool (func_import): Remember the --with-tests command-line
82246         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
82247         Reported by Eric Blake.
82249 2007-05-28  Bruno Haible  <bruno@clisp.org>
82251         * modules/ftell-tests: New file.
82252         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
82253         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
82255         * lib/ftell.c: New file.
82256         * modules/ftell: New file.
82257         * m4/ftell.m4: New file.
82258         * doc/functions/ftell.texi: Update.
82259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
82260         REPLACE_FTELL.
82261         * lib/stdio_.h (rpl_ftell): New declaration.
82262         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
82263         REPLACE_FTELL.
82265 2007-05-28  Eric Blake  <ebb9@byu.net>
82267         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
82269 2007-05-28  Bruno Haible  <bruno@clisp.org>
82271         * modules/fseek-tests: New file.
82272         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
82273         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
82275         * lib/fseek.c: New file.
82276         * modules/fseek: New file.
82277         * m4/fseek.m4: New file.
82278         * doc/functions/fseek.texi: Update.
82279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
82280         REPLACE_FSEEK.
82281         * lib/stdio_.h (rpl_fseek): New declaration.
82282         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
82283         REPLACE_FSEEK.
82285 2007-05-28  Bruno Haible  <bruno@clisp.org>
82287         * lib/stdio_.h (fflush): More comments.
82289 2007-05-28  Bruno Haible  <bruno@clisp.org>
82291         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
82292         runtime test.
82294 2007-05-28  Eric Blake  <ebb9@byu.net>
82296         Improve lseek module.
82297         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
82298         * lib/unistd_.h (lseek): Scale back link warning message.
82299         * tests/test-lseek.c: Beef up test.
82300         * tests/test-lseek.sh: Exercise more facets of lseek.
82301         Reported by Bruno Haible.
82303 2007-05-28  Bruno Haible  <bruno@clisp.org>
82305         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
82306         to define.
82308 2007-05-27  Bruno Haible  <bruno@clisp.org>
82310         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
82312 2007-05-27  Bruno Haible  <bruno@clisp.org>
82314         * modules/openmp: New file.
82315         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
82316         Noah Misch.
82318 2007-05-26  Bruno Haible  <bruno@clisp.org>
82320         * modules/chdir-long (Depends-on): Add fchdir.
82321         * modules/chdir-safer (Depends-on): Likewise.
82322         * modules/fts (Depends-on): Likewise.
82323         * modules/fts-lgpl (Depends-on): Likewise.
82324         * modules/openat (Depends-on): Likewise.
82325         * modules/savewd (Depends-on): Likewise.
82327 2007-05-24  Eric Blake  <ebb9@byu.net>
82329         Fix lseek on mingw.
82330         * modules/lseek: New module.
82331         * m4/lseek.m4: New file.
82332         * lib/lseek.c: New file.
82333         * modules/lseek-tests: New file.
82334         * tests/test-lseek.c: New file.
82335         * tests/test-lseek.sh: New file.
82336         * MODULES.html.sh: Document lseek module.
82337         * modules/fflush (Depends-on): Add lseek, fseeko.
82338         * modules/fseeko (Depends-on): Likewise.
82339         * modules/ftello (Depends-on): Likewise.
82340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
82341         broken.
82342         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
82343         broken.
82344         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
82345         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
82346         * lib/ftello.c (rpl_ftello): Likewise.
82347         * tests/test-fseeko.c (main): Test this.
82348         * tests/test-fseeko.sh: Likewise.
82349         * tests/test-ftello.c (main): Likewise.
82350         * tests/test-ftello.sh: Likewise.
82351         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
82352         implies replacing fseek.
82353         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
82354         HAVE_FTELLO.
82355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
82356         * modules/unistd (Makefile.am): Likewise.
82357         * lib/unistd_.h (lseek): Declare a replacement.
82358         * doc/functions/lseek.texi (lseek): Document this fix.
82359         * doc/functions/fseek.texi (fseek): Likewise.
82360         * doc/functions/ftell.texi (ftell): Likewise.
82362 2007-05-24  Bruno Haible  <bruno@clisp.org>
82364         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
82365         in the printed representation of a NaN.
82366         * tests/test-vasprintf-posix.c (test_function): Likewise.
82367         * tests/test-snprintf-posix.h (test_function): Likewise.
82368         * tests/test-sprintf-posix.h (test_function): Likewise.
82369         Reported by Eric Blake.
82371 2007-05-23  Eric Blake  <ebb9@byu.net>
82373         Fix fseeko/ftello on cygwin 1.5.24.
82374         * doc/functions/fseeko.texi (fseeko): Document the fix.
82375         * doc/functions/ftello.texi (ftello): Document the fix.
82376         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
82377         * doc/functions/stdout.text (stdout): New file.
82378         * doc/functions/stderr.text (stderr): New file.
82379         * doc/gnulib.texi (Function Substitutes): Use new files.
82380         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
82381         prior to 1.7.0.
82382         * tests/test-ftello.c (main): Likewise for ftello.
82383         * tests/test-fseeko.sh: New file.
82384         * tests/test-ftello.sh: New file.
82385         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
82386         with seekable stdin.
82387         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
82388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
82389         (gl_REPLACE_FSEEKO): New macro.
82390         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
82391         * modules/fseeko (Files): Distribute fseeko.c.
82392         * modules/ftello (Files): Distribute ftello.c.
82393         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
82394         mode.
82395         * lib/ftello.c (rpl_ftello): New file.
82396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
82397         fseeko, ftello.
82398         (gl_STDIN_LARGE_OFFSET): New macro.
82399         * modules/stdio (Makefile.am): Perform the replacement.
82400         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
82402 2007-05-23  Bruno Haible  <bruno@clisp.org>
82404         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
82405         GNULIB_POSIXCHECK is defined.
82407 2007-05-21  Bruno Haible  <bruno@clisp.org>
82409         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
82410         Check also the output for NaN arguments. When cross-compiling, guess
82411         no on IRIX.
82412         * lib/vasnprintf.c: Update comments.
82413         * tests/test-vasnprintf-posix.c (strisnan): New function.
82414         (test_function): Use it.
82415         * tests/test-vasprintf-posix.c (strisnan): New function.
82416         (test_function): Use it.
82417         * tests/test-snprintf-posix.h (strisnan): New function.
82418         (test_function): Use it.
82419         * tests/test-sprintf-posix.h (strisnan): New function.
82420         (test_function): Use it.
82421         Reported by Eric Blake.
82423 2007-05-20  Bruno Haible  <bruno@clisp.org>
82425         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
82426         numbers that fails on BeOS.
82427         * doc/functions/frexpl.texi: Update.
82429 2007-05-20  Jim Meyering  <jim@meyering.net>
82431         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
82432         forced upon us by glibc-2.6.
82434 2007-05-20  Bruno Haible  <bruno@clisp.org>
82436         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
82437         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
82438         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
82439         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
82440         NEED_PRINTF_INFINITE.
82441         (is_infinitel): New function.
82442         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
82443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
82444         gl_PREREQ_VASNPRINTF_INFINITE.
82445         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
82446         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82447         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
82448         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
82449         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
82450         gl_PREREQ_VASNPRINTF_INFINITE.
82451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82458         * doc/functions/fprintf.texi: Update.
82459         * doc/functions/printf.texi: Update.
82460         * doc/functions/snprintf.texi: Update.
82461         * doc/functions/sprintf.texi: Update.
82462         * doc/functions/vfprintf.texi: Update.
82463         * doc/functions/vprintf.texi: Update.
82464         * doc/functions/vsnprintf.texi: Update.
82465         * doc/functions/vsprintf.texi: Update.
82467 2007-05-20  Bruno Haible  <bruno@clisp.org>
82469         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
82470         was not found in libc.
82471         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
82473 2007-05-20  Bruno Haible  <bruno@clisp.org>
82475         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
82476         printed as "-nan" instead of "nan".
82477         * tests/test-vasprintf-posix.c (test_function): Likewise.
82478         * tests/test-snprintf-posix.h (test_function): Likewise.
82479         * tests/test-sprintf-posix.h (test_function): Likewise.
82480         Needed for HP-UX 11.
82482 2007-05-20  Jim Meyering  <jim@meyering.net>
82484         Fix buggy test for the fchownat-deref bug.
82485         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
82486         symlink required for the run-test.  Without it, this test would
82487         always declare that fchownat doesn't work, and client code would
82488         unnecessarily use the replacement function with fixed libc.
82489         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
82490         Reported by Greg Schafer.
82492 2007-05-19  Bruno Haible  <bruno@clisp.org>
82494         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
82495         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
82496         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
82497         Needed for IRIX 6.5 and Solaris 2.5.1.
82499 2007-05-19  Bruno Haible  <bruno@clisp.org>
82501         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
82502         (test_function): Skip tests involving -0.0 on platforms where
82503         -0.0 = 0.0.
82504         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
82505         (test_function): Skip tests involving -0.0 on platforms where
82506         -0.0 = 0.0.
82507         * tests/test-snprintf-posix.h (have_minus_zero): New function.
82508         (test_function): Skip tests involving -0.0 on platforms where
82509         -0.0 = 0.0.
82510         * tests/test-sprintf-posix.h (have_minus_zero): New function.
82511         (test_function): Skip tests involving -0.0 on platforms where
82512         -0.0 = 0.0.
82513         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
82514         tests.
82515         * tests/test-printf-posix.h (test_function): Likewise.
82516         * tests/test-printf-posix.output: Remove all -0.0 related results.
82517         Needed for IRIX 6.5.
82519 2007-05-19  Bruno Haible  <bruno@clisp.org>
82521         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
82522         printed as "nan0x7fffffff" instead of "nan".
82523         * tests/test-vasprintf-posix.c (test_function): Likewise.
82524         * tests/test-snprintf-posix.h (test_function): Likewise.
82525         * tests/test-sprintf-posix.h (test_function): Likewise.
82526         * tests/test-fprintf-posix.h (NaN): Remove macro.
82527         (test_function): Remove all NaN related tests.
82528         * tests/test-printf-posix.h (NaN): Remove macro.
82529         (test_function): Remove all NaN related tests.
82530         * tests/test-printf-posix.output: Remove all NaN related results.
82531         Needed for IRIX 6.5.
82533 2007-05-19  Bruno Haible  <bruno@clisp.org>
82535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
82536         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
82538 2007-05-19  Bruno Haible  <bruno@clisp.org>
82540         * lib/float_.h: New file.
82541         * m4/float_h.m4: New file.
82542         * modules/float: New file.
82543         * modules/isnanl (Dependencies): Add float.
82544         * modules/isnanl-nolibm (Dependencies): Likewise.
82545         * modules/mathl (Dependencies): Likewise.
82546         * modules/printf-frexpl (Dependencies): Likewise.
82547         * modules/signbit (Dependencies): Likewise.
82548         * modules/vasnprintf (Dependencies): Likewise.
82549         * doc/headers/float.texi: Update.
82551 2007-05-19  Jim Meyering  <jim@meyering.net>
82553         * lib/utimens.c (gl_futimens): Rename from futimens,
82554         now that glibc-2.6 declares futimens.
82555         * lib/utimens.h: Likewise.
82557 2007-05-19  Bruno Haible  <bruno@clisp.org>
82559         Avoid test failures on mingw.
82560         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
82561         * tests/test-printf-posix.sh: Likewise.
82562         * tests/test-vfprintf-posix.sh: Likewise.
82563         * tests/test-vprintf-posix.sh: Likewise.
82565 2007-05-19  Bruno Haible  <bruno@clisp.org>
82567         Fix *printf result for NaN, Inf, -0.0 on mingw.
82568         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
82569         * lib/vasnprintf.c: Include math.h and isnan.h.
82570         (is_infinite_or_zero): New function.
82571         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
82572         values in the %f, %F, %e, %E, %g, %G directives.
82573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
82574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82575         gl_PRINTF_INFINITE and test its result. Invoke
82576         gl_PREREQ_VASNPRINTF_INFINITE.
82577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82578         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82581         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82582         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82583         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82584         * doc/functions/fprintf.texi: Update.
82585         * doc/functions/printf.texi: Update.
82586         * doc/functions/snprintf.texi: Update.
82587         * doc/functions/sprintf.texi: Update.
82588         * doc/functions/vfprintf.texi: Update.
82589         * doc/functions/vprintf.texi: Update.
82590         * doc/functions/vsnprintf.texi: Update.
82591         * doc/functions/vsprintf.texi: Update.
82593 2007-05-19  Bruno Haible  <bruno@clisp.org>
82595         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
82596         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
82597         Instead of multiplying with 10^k, set extra_zeroes to k.
82598         (scale10_round_long_double): Remove function.
82600 2007-05-18  Bruno Haible  <bruno@clisp.org>
82602         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
82603         introduced on 2007-05-06.
82605 2007-05-18  Bruno Haible  <bruno@clisp.org>
82607         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
82608         %g directives.
82609         * tests/test-vasprintf-posix.c (test_function): Likewise.
82610         * tests/test-snprintf-posix.h (test_function): Likewise.
82611         * tests/test-sprintf-posix.h (test_function): Likewise.
82613 2007-05-18  Bruno Haible  <bruno@clisp.org>
82615         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
82616         (strmatch): New function.
82617         (test_function): Test the %f directive on numbers of various exponents.
82618         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
82619         (strmatch): New function.
82620         (test_function): Test the %f directive on numbers of various exponents.
82621         * tests/test-snprintf-posix.h (strmatch): New function.
82622         (test_function): Test the %f directive on numbers of various exponents.
82623         * tests/test-sprintf-posix.h (strmatch): New function.
82624         (test_function): Test the %f directive on numbers of various exponents.
82625         * tests/test-snprintf-posix.c (SIZEOF): New macro.
82626         * tests/test-sprintf-posix.c (SIZEOF): New macro.
82627         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
82628         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
82630 2007-05-18  Bruno Haible  <bruno@clisp.org>
82632         Add support for 'long double' number output.
82633         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
82634         * lib/vasnprintf.c: Include math.h and float+.h.
82635         (mp_limb_t): New type.
82636         (GMP_LIMB_BITS): New macro.
82637         (mp_twolimb_t): New type.
82638         (GMP_TWOLIMB_BITS): New macro.
82639         (mpn_t): New type.
82640         (multiply, divide, convert_to_decimal, decode_long_double,
82641         scale10_round_long_double, scale10_round_decimal_long_double,
82642         floorlog10l): New functions.
82643         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
82644         for the %f, %F, %e, %E, %g, %G directives.
82645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
82646         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82647         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
82648         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
82649         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82650         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82656         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
82657         * modules/snprintf-posix (Depends-on): Likewise.
82658         * modules/sprintf-posix (Depends-on): Likewise.
82659         * modules/vasnprintf-posix (Depends-on): Likewise.
82660         * modules/vasprintf-posix (Depends-on): Likewise.
82661         * modules/vfprintf-posix (Depends-on): Likewise.
82662         * modules/vsnprintf-posix (Depends-on): Likewise.
82663         * modules/vsprintf-posix (Depends-on): Likewise.
82664         * modules/vasnprintf (Files): Add lib/float+.h.
82665         * doc/functions/fprintf.texi: Update.
82666         * doc/functions/printf.texi: Update.
82667         * doc/functions/snprintf.texi: Update.
82668         * doc/functions/sprintf.texi: Update.
82669         * doc/functions/vfprintf.texi: Update.
82670         * doc/functions/vprintf.texi: Update.
82671         * doc/functions/vsnprintf.texi: Update.
82672         * doc/functions/vsprintf.texi: Update.
82674 2007-05-18  Bruno Haible  <bruno@clisp.org>
82676         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
82678 2007-05-18  Bruno Haible  <bruno@clisp.org>
82680         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
82681         for printing 64-bit integers. Needed for mingw.
82683 2007-05-18  Bruno Haible  <bruno@clisp.org>
82685         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
82686         gl_FUNC_FREXPL_WORKS.
82687         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
82689 2007-05-18  Bruno Haible  <bruno@clisp.org>
82691         * modules/frexpl-nolibm-tests: New file.
82693         * modules/frexpl-nolibm: New file.
82694         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
82696 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82698         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
82699         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82700         GCC 4.2, which otherwise issues a lot of warnings.
82701         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
82702         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
82703         Likewise.
82704         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
82705         * modules/iconv_open (iconv.h): Likewise.
82706         * modules/locale (locale.h): Likewise.
82707         * modules/netinet_in (netinet/in.h): Likewise.
82708         * modules/sys_select (sys_select.h): Likewise.
82709         * modules/sys_socket (sys/socket.h): Likewise.
82710         * modules/sys_stat (sys/stat.h): Likewise.
82711         * modules/sysexits (sysexits.h): Likewise.
82712         * modules/unistd (unistd.h): Likewise.
82714 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82716         * modules/closein-tests (Makefile.am): Distribute
82717         `test-closein.sh'.
82719 2007-05-17  Bruno Haible  <bruno@clisp.org>
82721         * tests/test-printf-posix.output: Renamed from
82722         tests/test-fprintf-posix.out.
82723         * modules/fprintf-posix-tests: Update.
82724         * modules/printf-posix-tests: Update.
82725         * modules/vfprintf-posix-tests: Update.
82726         * modules/vprintf-posix-tests: Update.
82727         * tests/test-fprintf-posix.sh: Update.
82728         * tests/test-printf-posix.sh: Update.
82729         * tests/test-vfprintf-posix.sh: Update.
82730         * tests/test-vprintf-posix.sh: Update.
82731         Reported by Ralf Wildenhues.
82733 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82735         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
82736         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82737         GCC 4.2, which otherwise issues a lot of warnings.
82738         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
82739         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
82740         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
82741         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
82742         it should no longer be needed.
82743         * lib/string_.h: Likewise.
82744         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
82745         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
82746         * modules/inttypes (inttypes.h): Likewise.
82747         * modules/math (math.h): Likewise.
82748         * modules/search (search.h): Likewise.
82749         * modules/signal (signal.h): Likewise.
82750         * modules/stdint (stdint.h): Likewise.
82751         * modules/stdio (stdio.h): Likewise.
82752         * modules/stdlib (stdlib.h): Likewise.
82753         * modules/string (string.h): Likewise.
82754         * modules/sys_time (sys/time.h): Likewise.
82755         * modules/time (time.h): Likewise.
82756         * modules/wchar (wchar.h): Likewise.
82757         * modules/wctype (wtype.h): Likewise.
82759 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
82761         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
82763 2007-05-13  Bruno Haible  <bruno@clisp.org>
82765         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
82766         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82767         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
82768         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
82769         (gl_PREREQ_STRTOK_R): Don't require it here.
82771 2007-05-13  Bruno Haible  <bruno@clisp.org>
82773         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
82774         when used in C++ mode.
82776 2007-05-12  Bruno Haible  <bruno@clisp.org>
82778         * lib/linebuffer.h: Tweak doc.
82779         * lib/linebuffer.c: Likewise.
82781 2007-05-12  James Youngman  <jay@gnu.org>
82783         * lib/linebuffer.c (readlinebuffer_delim): New function,
82784         like readlinebuffer, but use a caller-specified delimiter.
82785         (readlinebuffer): Just call readlinebuffer_delim with '\n'
82786         as the delimiter.
82787         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
82789 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82791         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
82792         * modules/openat (Files): Remove openat-die.c.
82793         (Depends-on): Add openat-die.
82794         * modules/openat-die: New module.
82796 2007-05-06  Bruno Haible  <bruno@clisp.org>
82798         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
82799         Update with info about Cygwin.
82800         * doc/functions/fprintf.texi: Update.
82801         * doc/functions/printf.texi: Update.
82802         * doc/functions/snprintf.texi: Update.
82803         * doc/functions/sprintf.texi: Update.
82804         * doc/functions/vfprintf.texi: Update.
82805         * doc/functions/vprintf.texi: Update.
82806         * doc/functions/vsnprintf.texi: Update.
82807         * doc/functions/vsprintf.texi: Update.
82808         Reported by Eric Blake.
82810 2007-05-06  Bruno Haible  <bruno@clisp.org>
82812         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
82813         padding ourselves for the floating-point directives.
82814         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
82815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
82816         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82817         gl_PRINTF_FLAG_ZERO and test its result. Invoke
82818         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
82819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82820         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
82821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82826         * tests/test-snprintf-posix.h (test_function): Also check the width
82827         and some flags in the %f directive.
82828         * tests/test-sprintf-posix.h (test_function): Likewise.
82829         * tests/test-vasnprintf-posix.c (test_function): Likewise.
82830         * tests/test-vasprintf-posix.c (test_function): Likewise.
82831         * doc/functions/fprintf.texi: Update.
82832         * doc/functions/printf.texi: Update.
82833         * doc/functions/snprintf.texi: Update.
82834         * doc/functions/sprintf.texi: Update.
82835         * doc/functions/vfprintf.texi: Update.
82836         * doc/functions/vprintf.texi: Update.
82837         * doc/functions/vsnprintf.texi: Update.
82838         * doc/functions/vsprintf.texi: Update.
82840 2007-05-06  Bruno Haible  <bruno@clisp.org>
82842         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
82843         pass the ' flag character to sprintf or snprintf.
82844         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
82845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
82846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82847         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
82848         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
82849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82850         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
82851         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82855         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82856         * tests/test-snprintf-posix.h (test_function): Also check the grouping
82857         flag.
82858         * tests/test-sprintf-posix.h (test_function): Likewise.
82859         * tests/test-vasnprintf-posix.c (test_function): Likewise.
82860         * tests/test-vasprintf-posix.c (test_function): Likewise.
82861         * doc/functions/fprintf.texi: Update.
82862         * doc/functions/printf.texi: Update.
82863         * doc/functions/snprintf.texi: Update.
82864         * doc/functions/sprintf.texi: Update.
82865         * doc/functions/vfprintf.texi: Update.
82866         * doc/functions/vprintf.texi: Update.
82867         * doc/functions/vsnprintf.texi: Update.
82868         * doc/functions/vsprintf.texi: Update.
82870 2007-05-01  Bruno Haible  <bruno@clisp.org>
82872         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
82874 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
82876         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
82877         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
82879 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82881         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
82882         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
82883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
82885 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
82887         * lib/argp-help.c (struct hol_entry): New member `ord'.
82888         (HOL_ENTRY_PTRCMP): Use ord for comparison
82889         (hol_sort): Initialize ord.
82891 2007-05-01  Bruno Haible  <bruno@clisp.org>
82893         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
82894         Reported by Eric Blake.
82895         * doc/gnulib.texi (Function Substitutes): Update.
82897 2007-05-01  Bruno Haible  <bruno@clisp.org>
82899         * doc/functions.texi: Remove file, now redundant through
82900         doc/functions/*.texi.
82902 2007-05-01  Bruno Haible  <bruno@clisp.org>
82904         * modules/argp (Depends-on): Add sleep.
82906 2007-05-01  Bruno Haible  <bruno@clisp.org>
82908         * modules/sleep-tests: New file.
82909         * tests/test-sleep.c: New file.
82911         * modules/sleep: New file.
82912         * lib/sleep.c: New file.
82913         * m4/sleep.m4: New file.
82914         * lib/unistd_.h (sleep): New declaration.
82915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
82916         HAVE_SLEEP.
82917         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
82918         * doc/functions/sleep.texi: Document the sleep module.
82920 2007-05-01  Bruno Haible  <bruno@clisp.org>
82922         * lib/sigprocmask.h: Remove file.
82923         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
82924         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
82925         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
82926         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
82927         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
82928         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
82929         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
82930         HAVE_SIGSET_T as a shell variable.
82931         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
82932         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
82933         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
82934         (Depends-on): Add signal. Remove verify.
82935         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
82936         (Include): Mention <signal.h> instead of sigprocmask.h.
82937         * NEWS: Mention the change.
82938         * lib/fatal-signal.c: Don't include sigprocmask.h.
82940 2007-05-01  Bruno Haible  <bruno@clisp.org>
82942         * modules/signal: New file.
82943         * lib/signal_.h: New file.
82944         * m4/signal_h.m4: New file.
82946 2007-05-01  Bruno Haible  <bruno@clisp.org>
82948         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
82949         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
82950         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
82951         HAVE_WCTYPE_CTMP_BUG into wctype.h.
82953 2007-05-01  Bruno Haible  <bruno@clisp.org>
82955         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
82956         configure time.
82957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
82958         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
82959         * modules/sys_stat (Makefile.am): Substitute their values into
82960         sys/stat.h.
82962 2007-05-01  Bruno Haible  <bruno@clisp.org>
82964         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
82965         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
82966         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
82968 2007-05-01  Bruno Haible  <bruno@clisp.org>
82970         * doc/header/assert.texi: Undo last change: don't mention the gnulib
82971         'assert' module here.
82973 2007-05-01  Bruno Haible  <bruno@clisp.org>
82975         * doc/functions/*.texi: New files.
82976         * doc/functions/google-ranking.txt: New file.
82977         * doc/gnulib.texi (Function Substitutes): New chapter.
82978         (ctime, inet_ntoa): Remove sections.
82979         * doc/ctime.texi: Remove file.
82980         * doc/inet_ntoa.texi: Remove file.
82981         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
82982         dependencies.
82983         (%.info): New rule, specifying a --reference-limit.
82985 2007-05-01  Bruno Haible  <bruno@clisp.org>
82987         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
82989 2007-05-01  Bruno Haible  <bruno@clisp.org>
82991         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
82992         the portability of 'mkdir' to mingw systems.
82994 2007-05-01  Bruno Haible  <bruno@clisp.org>
82996         * doc/headers/google-ranking.txt: New file.
82998 2007-04-30  Eric Blake  <ebb9@byu.net>
83000         Prefer fseeko to fseek.
83001         * modules/getpass (Depends-on): Add fseeko.
83002         * lib/getpass.c (getpass): Use fseeko, not fseek.
83004 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
83006         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
83007         assumes the sorting is stable, while most qsort implementations
83008         are not.  Use argument addresses to ensure they never compare as
83009         equal.
83011         * tests/test-argp-2.sh (usage-indent test): Fix output
83012         (func_compare): Restore diff options
83013         * tests/test-argp.c: Restore #include "progname.h"
83015 2007-04-29  Bruno Haible  <bruno@clisp.org>
83017         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
83018         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83019         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
83020         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83021         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
83022         (configure.ac): Define CHECK_SNPRINTF_POSIX.
83023         (TESTS, check_PROGRAMS): Add test-snprintf.
83024         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
83025         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
83026         (TESTS, check_PROGRAMS): Add test-vsnprintf.
83027         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
83028         assertions that fail on HP-UX, OSF/1, or IRIX.
83029         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
83031 2007-04-29  Bruno Haible  <bruno@clisp.org>
83033         * MODULES.html.sh (posix_functions): Remove 'contents'.
83035 2007-04-29  Karl Berry  <karl@gnu.org>
83037         * config/srclist.txt (gendocs_template_min): new entry.
83039 2007-04-29  Bruno Haible  <bruno@clisp.org>
83041         Work around fpurge bug on BSD systems.
83042         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
83043         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
83044         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
83045         fpurge to rpl_fpurge if the system already has this function.
83046         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
83047         the case where the system already has this function. Correct invariants
83048         on BSD systems.
83049         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
83050         BSD systems.
83052 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
83054         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
83055         proposed by Sven Verdoolaege.
83057         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
83058         options.
83059         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
83060         (usage and help tests): Update
83062 2007-04-29  Bruno Haible  <bruno@clisp.org>
83064         * tests/test-fflush.c (main): Use a file of size 17, not 10.
83065         Print more information in case of failure. Disable a test on BeOS.
83067 2007-04-29  Bruno Haible  <bruno@clisp.org>
83069         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
83070         This helps debugging on systems on which no gdb is available.
83072 2007-04-29  Bruno Haible  <bruno@clisp.org>
83074         * lib/freading.h: Improve comments.
83075         * lib/fwriting.h: Likewise.
83076         * tests/test-freading.c (main): Don't check freading immediately after
83077         repositioning. Needed for glibc.
83079 2007-04-29  Bruno Haible  <bruno@clisp.org>
83081         * lib/freading.c (freading): Trivial simplification.
83083 2007-04-28  Bruno Haible  <bruno@clisp.org>
83085         * tests/test-fwriting.c (main): Also test the interaction between
83086         fflush and fwriting.
83087         * modules/fwriting-tests (Depends-on): Add fflush.
83089         * tests/test-freading.c (main): Also test the interaction between
83090         fflush and freading.
83091         * modules/freading-tests (Depends-on): Add fflush.
83093 2007-04-28  Bruno Haible  <bruno@clisp.org>
83095         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
83096         fseeko and ftello.
83097         Suggested by Eric Blake.
83099 2007-04-28  Jim Meyering  <jim@meyering.net>
83101         Avoid false-negative in gl_STDINT_H's C99 conformance test.
83102         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
83103         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
83105 2007-04-27  Eric Blake  <ebb9@byu.net>
83107         * doc/headers/assert.texi (assert.h): Document assert module use.
83109 2007-04-27  Bruno Haible  <bruno@clisp.org>
83111         * doc/headers/*.texi: New files.
83112         * doc/gnulib.texi (Header File Substitutes): New chapter.
83113         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
83114         dependencies.
83115         (standards.info ,standards.html, standards.dvi): Update dependencies.
83116         (mostlyclean, clean): New targets.
83118 2007-04-27  Bruno Haible  <bruno@clisp.org>
83120         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
83121         * modules/sysexits (Files, Makefile.am): Update.
83123         * lib/sys_socket_.h: Renamed from lib/socket_.h.
83124         * modules/sys_socket (Files, Makefile.am): Update.
83126         * lib/sys_stat_.h: Renamed from lib/stat_.h.
83127         * modules/sys_stat (Files, Makefile.am): Update.
83129 2007-04-27  Eric Blake  <ebb9@byu.net>
83131         * lib/freading.h: Improve comments.
83132         * lib/fwriting.h: Likewise.
83133         * lib/fflush.c: Likewise.
83135         Fix closein for mingw.
83136         * modules/closein-tests: Add tests for closein.
83137         * tests/test-closein.c: New file.
83138         * tests/test-closein.sh: Likewise.
83139         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
83140         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
83142 2007-04-27  Bruno Haible  <bruno@clisp.org>
83144         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
83145         version is < 6.
83146         * lib/math_.h [__DECC]: Likewise.
83147         * lib/stdio_.h [__DECC]: Likewise.
83148         * lib/stdlib_.h [__DECC]: Likewise.
83149         * lib/string_.h [__DECC]: Likewise.
83150         * lib/time_.h [__DECC]: Likewise.
83151         * lib/wchar_.h [__DECC]: Likewise.
83152         * lib/wctype_.h [__DECC]: Likewise.
83154 2007-04-27  Bruno Haible  <bruno@clisp.org>
83156         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
83158 2007-04-27  Bruno Haible  <bruno@clisp.org>
83160         * lib/fflush.c: Add comments.
83161         * modules/fpurge-tests (Depends-on): Add fflush.
83162         * modules/freadable-tests (Depends-on): Likewise.
83163         * modules/fwritable-tests (Depends-on): Likewise.
83165 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
83167         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
83168         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
83169         Report by Bruno Haible <bruno@clisp.org>.
83171 2007-04-26  Eric Blake  <ebb9@byu.net>
83173         Fix fflush on mingw.
83174         * modules/fflush (Depends-on): Add freading.
83175         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
83176         but unread data.
83178 2007-04-26  Eric Blake  <ebb9@byu.net>
83179         and Bruno Haible  <bruno@clisp.org>
83181         Implement freading and fwriting.
83182         * lib/freading.c: New file.
83183         * lib/freading.h: Likewise.
83184         * m4/freading.m4: Likewise.
83185         * modules/freading: Likewise.
83186         * modules/freading-tests: Likewise.
83187         * tests/test-freading.c: Likewise.
83188         * lib/fwriting.c: New file.
83189         * lib/fwriting.h: Likewise.
83190         * m4/fwriting.m4: Likewise.
83191         * modules/fwriting: Likewise.
83192         * modules/fwriting-tests: Likewise.
83193         * tests/test-fwriting.c: Likewise.
83194         * MODULES.html.sh (File stream based Input/Output): Mention them.
83196 2007-04-26  Bruno Haible  <bruno@clisp.org>
83198         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
83199         'long' when we assume it.
83200         Suggested by Eric Blake.
83202 2007-04-26  Bruno Haible  <bruno@clisp.org>
83204         Ensure fseeko, ftello are declared on glibc systems.
83205         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
83206         * modules/fseeko (configure.ac-early): Likewise.
83207         * modules/ftello (configure.ac-early): Likewise.
83208         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
83209         AC_FUNC_FSEEKO for this.
83210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
83211         (gl_CHECK_FSEEKO): Remove macro.
83213 2007-04-26  Bruno Haible  <bruno@clisp.org>
83215         * tests/test-fflush.c (main): Also check the ftell result after
83216         fflush and fseek/fseeko.
83217         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
83218         file descriptor position cache in the stream.
83219         * lib/fseeko.c (rpl_fseeko): Likewise.
83221 2007-04-26  Bruno Haible  <bruno@clisp.org>
83223         * modules/fflush-tests (Depends-on): Add fseeko.
83225 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
83226             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83228         * lib/argz_.h: ensure error_t definition is obtained in same
83229         mechanism system argz.h would have.
83230         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
83231         argz facilities are known bad.  Err on the side of caution if
83232         cross-compiling.
83234 2007-04-25  Eric Blake  <ebb9@byu.net>
83236         * lib/fpurge.c (includes): Use stdlib.h for free.
83237         * tests/test-fflush.c (main): Also test fflush-fseeko.
83239 2007-04-25  Bruno Haible  <bruno@clisp.org>
83241         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
83242         * lib/fseeko.c: New file.
83243         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
83244         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
83245         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
83246         gl_FUNC_FSEEKO.
83247         (gl_FUNC_FSEEKO): Invoke it.
83248         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
83249         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
83250         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
83252 2007-04-25  Bruno Haible  <bruno@clisp.org>
83254         * modules/fflush (Depends-on): Add ftello.
83256 2007-04-25  Bruno Haible  <bruno@clisp.org>
83258         * modules/ftello-tests: New file.
83259         * tests/test-ftello.c: New file.
83261         * modules/ftello: New file.
83262         * m4/ftello.m4: New file.
83263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
83264         HAVE_FTELLO.
83265         * lib/stdio_.h (ftello): New declaration.
83266         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
83267         HAVE_FTELLO.
83269 2007-04-25  Bruno Haible  <bruno@clisp.org>
83271         * modules/fseeko-tests: New file.
83272         * tests/test-fseeko.c: New file.
83274         * modules/fseeko: New file.
83275         * m4/fseeko.m4: New file.
83276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
83277         HAVE_FSEEKO.
83278         * lib/stdio_.h (fseeko): New declaration.
83279         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
83280         HAVE_FSEEKO.
83282 2007-04-25  Bruno Haible  <bruno@clisp.org>
83284         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
83286 2007-04-25  Bruno Haible  <bruno@clisp.org>
83288         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
83289         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
83290         * tests/test-unistd.c: Likewise.
83291         * tests/test-fcntl.c: Likewise.
83293 2007-04-23  Eric Blake  <ebb9@byu.net>
83295         * lib/fflush.c: Fix missing include.
83296         Reported by Bruno Haible.
83298 2007-04-23  Bruno Haible  <bruno@clisp.org>
83300         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
83301         Reported by Eric Blake.
83303 2007-04-23  Bruno Haible  <bruno@clisp.org>
83305         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
83307 2007-04-23  Bruno Haible  <bruno@clisp.org>
83309         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
83311 2007-04-23  Bruno Haible  <bruno@clisp.org>
83313         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
83314         Needed on HP-UX 11.
83316 2007-04-16  Eric Blake  <ebb9@byu.net>
83318         Make fflush rely on fpurge.
83319         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
83320         open coding all variants.
83321         * modules/fflush (Depends-on): Add fpurge and unistd.
83322         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
83323         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
83325         Fix --with-tests compilation on cygwin.
83326         * modules/argmatch-tests (Makefile.am): List gnulib library first
83327         in LDADD.
83328         * modules/argp-tests (Makefile.am): Likewise.
83329         * modules/array-list-tests (Makefile.am): Likewise.
83330         * modules/array-oset-tests (Makefile.am): Likewise.
83331         * modules/avltree-list-tests (Makefile.am): Likewise.
83332         * modules/avltree-oset-tests (Makefile.am): Likewise.
83333         * modules/avltreehash-list-tests (Makefile.am): Likewise.
83334         * modules/carray-list-tests (Makefile.am): Likewise.
83335         * modules/dirname-tests (Makefile.am): Likewise.
83336         * modules/frexp-tests (Makefile.am): Likewise.
83337         * modules/isnanl-tests (Makefile.am): Likewise.
83338         * modules/linked-list-tests (Makefile.am): Likewise.
83339         * modules/linkedhash-list-tests (Makefile.am): Likewise.
83340         * modules/lock-tests (Makefile.am): Likewise.
83341         * modules/rbtree-list-tests (Makefile.am): Likewise.
83342         * modules/rbtree-oset-tests (Makefile.am): Likewise.
83343         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
83344         * modules/tls-tests (Makefile.am): Likewise.
83345         * modules/tsearch-tests (Makefile.am): Likewise.
83346         * modules/xvasprintf-tests (Makefile.am): Likewise.
83348         Fix fpurge for cygwin.
83349         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
83350         value.
83351         * modules/fpurge-tests (Depends-on): Clean up trash.
83353 2007-04-16  Simon Josefsson  <simon@josefsson.org>
83355         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
83357         * m4/autobuild.m4: Re-indent.
83359 2007-04-13  Bruno Haible  <bruno@clisp.org>
83361         * modules/fpurge-tests: New file.
83362         * tests/test-fpurge.c: New file.
83364         * modules/fpurge: New file.
83365         * lib/fpurge.h: New file.
83366         * lib/fpurge.c: New file.
83367         * m4/fpurge.m4: New file.
83369 2007-04-13  Bruno Haible  <bruno@clisp.org>
83371         * modules/fbufmode-tests: New file.
83372         * tests/test-fbufmode.c: New file.
83374         * modules/fbufmode: New file.
83375         * lib/fbufmode.h: New file.
83376         * lib/fbufmode.c: New file.
83377         * m4/fbufmode.m4: New file.
83379 2007-04-13  Bruno Haible  <bruno@clisp.org>
83381         * modules/fwritable-tests: New file.
83382         * tests/test-fwritable.c: New file.
83384         * modules/fwritable: New file.
83385         * lib/fwritable.h: New file.
83386         * lib/fwritable.c: New file.
83387         * m4/fwritable.m4: New file.
83389 2007-04-13  Bruno Haible  <bruno@clisp.org>
83391         * modules/freadable-tests: New file.
83392         * tests/test-freadable.c: New file.
83394         * modules/freadable: New file.
83395         * lib/freadable.h: New file.
83396         * lib/freadable.c: New file.
83397         * m4/freadable.m4: New file.
83399 2007-04-13  Bruno Haible  <bruno@clisp.org>
83401         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
83402         MOSTLYCLEANFILES.
83404 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83406         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
83407         gzip bootstrap.conf to avoid dragging in i18n machinery.
83408         (gnulib_tool_option): Use it.
83410 2007-04-13  Bruno Haible  <bruno@clisp.org>
83412         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
83413         %F directives.
83414         * tests/test-vasprintf-posix.c (test_function): Likewise.
83415         * tests/test-snprintf-posix.h (test_function): Likewise.
83416         * tests/test-sprintf-posix.h (test_function): Likewise.
83417         * tests/test-fprintf-posix.h (test_function): Likewise.
83418         * tests/test-printf-posix.h (test_function): Likewise.
83419         * tests/test-fprintf-posix.out: Likewise.
83421 2007-04-13  Bruno Haible  <bruno@clisp.org>
83423         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
83424         * modules/tls-tests (configure.ac): Likewise.
83425         Reported by Arto C. Nirkko <anirkko@insel.ch>.
83427 2007-04-13  Bruno Haible  <bruno@clisp.org>
83429         * lib/tls.c (glthread_tls_get): Fix return type.
83430         Patch by Arto C. Nirkko <anirkko@insel.ch>.
83432 2007-04-12  Eric Blake  <ebb9@byu.net>
83434         * modules/gettime (Depends-on): Remove gettime.
83435         Reported by Dmitry V. Levin.
83437 2007-04-12  Bruno Haible  <bruno@clisp.org>
83439         * modules/fflush (Include): Mention <stdio.h>.
83440         * modules/strtoimax (Include): Mention <inttypes.h>.
83441         * modules/strtoumax (Include): Likewise.
83443 2007-04-12  Eric Blake  <ebb9@byu.net>
83445         * .cvsignore: New file.
83446         * .gitignore: Likewise.
83448 2007-04-12  Bruno Haible  <bruno@clisp.org>
83450         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
83451         not before, since $(LDADD) often contains libgnu.a.
83452         * modules/striconv-tests (test_striconv_LDADD): Likewise.
83453         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
83454         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
83455         Needed on Cygwin.
83457 2007-04-12  Eric Blake  <ebb9@byu.net>
83459         Work around glibc's failure to flush stdin on fclose.
83460         * lib/closein.c (close_stdin): Flush stdin before closing.
83462         Work around glibc's failure to reset seekable stdin on exit.
83463         * modules/closein: New module.
83464         * lib/closein.c: New file.
83465         * lib/closein.h: Likewise.
83466         * m4/closein.m4: Likewise.
83467         * MODULES.html.sh (File stream based Input/Output): Document it.
83469 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83471         * gnulib-tool: Rename generated 'autobuild' script to
83472         'do-autobuild' in --create-megatestdir output.
83474         * doc/gnulib.texi (Build robot for gnulib): Fix.
83476 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83478         * modules/sysexits (Depends-on): Add absolute-header.
83480 2007-04-12  Eric Blake  <ebb9@byu.net>
83482         No need to preserve errno on success.
83483         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
83484         Reported by Bruno Haible.
83486 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83488         * MODULES.html.sh (Support for maintaining and releasing
83489         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
83491 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83493         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
83495 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83497         * modules/autobuild: New module.
83499         * m4/autobuild.m4: New file.
83501 2007-04-11  Bruno Haible  <bruno@clisp.org>
83503         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
83504         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
83505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
83506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
83507         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83510         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
83514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
83517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
83520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
83523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
83526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83528         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
83529         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83530         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83531         Reported by Eric Blake.
83533 2007-04-11  Bruno Haible  <bruno@clisp.org>
83535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
83537 2007-04-10  Bruno Haible  <bruno@clisp.org>
83539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
83540         for NaN and Infinity. Needed on FreeBSD 6.1.
83541         * tests/test-vasnprintf-posix.c (test_function): Undo last change
83542         regarding results for "%010a" of Infinity and NaN.
83543         * tests/test-vasprintf-posix.c (test_function): Likewise.
83544         * tests/test-snprintf-posix.h (test_function): Likewise.
83545         * tests/test-sprintf-posix.h (test_function): Likewise.
83546         * tests/test-fprintf-posix.h (test_function): Likewise.
83547         * tests/test-printf-posix.h (test_function): Likewise.
83548         * tests/test-fprintf-posix.out: Likewise.
83550 2007-04-10  Bruno Haible  <bruno@clisp.org>
83552         * modules/locale-tests: New file.
83553         * tests/test-locale.c: New file.
83555         * modules/locale: New file.
83556         * lib/locale_.h: New file.
83557         * m4/locale_h.m4: New file.
83559 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
83560             Bruno Haible  <bruno@clisp.org>
83562         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
83563         be determined, test for availability of the copysignf, copysign,
83564         copysignl functions.
83565         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
83566         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
83567         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
83569 2007-04-09  Eric Blake  <ebb9@byu.net>
83571         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
83572         * modules/stdio (Makefile.am): Support fflush.
83573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83574         * modules/fflush: New file.
83575         * lib/fflush.c: Likewise.
83576         * m4/fflush.m4: Likewise.
83577         * modules/fflush-tests: New test.
83578         * tests/test-fflush.c: Likewise.
83579         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
83581 2007-04-06  Bruno Haible  <bruno@clisp.org>
83583         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
83584         (VASNPRINTF): Use signbit for faster determination whether to print a
83585         minus sign.
83586         * modules/vasnprintf (Files): Remove lib/float+.h.
83587         * modules/fprintf-posix (Depends-on): Add signbit.
83588         * modules/snprintf-posix (Depends-on): Likewise.
83589         * modules/sprintf-posix (Depends-on): Likewise.
83590         * modules/vasnprintf-posix (Depends-on): Likewise.
83591         * modules/vasprintf-posix (Depends-on): Likewise.
83592         * modules/vfprintf-posix (Depends-on): Likewise.
83593         * modules/vsnprintf-posix (Depends-on): Likewise.
83594         * modules/vsprintf-posix (Depends-on): Likewise.
83596 2007-04-06  Bruno Haible  <bruno@clisp.org>
83598         * tests/test-frexp.c (main): Test also the sign bit of zero results.
83599         * tests/test-frexpl.c (main): Likewise.
83600         * tests/test-ldexpl.c (main): Likewise.
83601         * modules/frexp-tests (Depends-on): Add signbit.
83602         * modules/frexpl-tests (Depdends-on): Likewise.
83603         * modules/ldexpl-tests (Depdends-on): Likewise.
83605 2007-04-06  Bruno Haible  <bruno@clisp.org>
83607         * modules/signbit-tests: New file.
83608         * tests/test-signbit.c: New file.
83610         * modules/signbit: New file.
83611         * lib/signbitf.c: New file.
83612         * lib/signbitd.c: New file.
83613         * lib/signbitl.c: New file.
83614         * m4/signbit.m4: New file.
83615         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
83616         (signbit): New macro.
83617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
83618         REPLACE_SIGNBIT.
83619         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
83620         REPLACE_FREXPL into math.h.
83622 2007-04-06  Bruno Haible  <bruno@clisp.org>
83624         * modules/isnanf-nolibm-tests: New file.
83625         * tests/test-isnanf.c: New file.
83627         * modules/isnanf-nolibm: New file.
83628         * lib/isnanf.h: New file.
83629         * lib/isnanf.c: New file.
83630         * lib/isnan.c: Consider the USE_FLOAT macro.
83631         * m4/isnanf.m4: New file.
83633 2007-04-06  Bruno Haible  <bruno@clisp.org>
83635         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
83636         (Link): New section.
83638         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
83640 2007-04-06  Bruno Haible  <bruno@clisp.org>
83642         Assume the 'long double' type.
83643         * m4/longdouble.m4: Remove file.
83644         * config/srclist.txt: Don't mention longdouble.m4.
83645         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
83646         * lib/float+.h: Likewise.
83647         * lib/frexp.c: Likewise.
83648         * lib/printf-args.h: Likewise.
83649         * lib/printf-args.c: Likewise.
83650         * lib/printf-frexp.c: Likewise.
83651         * lib/printf-parse.c: Likewise.
83652         * lib/vasnprintf.c: Likewise.
83653         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
83654         * m4/intl.m4: Likewise.
83655         * m4/isnanl.m4: Likewise.
83656         * m4/printf.m4: Likewise.
83657         * m4/printf-frexpl.m4: Likewise.
83658         * m4/vasnprintf.m4: Likewise.
83659         * modules/allocsa (Files): Remove m4/longdouble.m4.
83660         * modules/gettext (Files): Likewise.
83661         * modules/relocatable-prog-wrapper (Files): Likewise.
83662         * modules/vasnprintf (Files): Likewise.
83663         * modules/isnanl (Files): Likewise.
83664         (Include): Simplify.
83665         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
83666         (Include): Simplify.
83667         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
83668         (Include): Simplify.
83669         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
83670         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83671         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
83672         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83673         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83675         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
83676         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83677         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83678         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83679         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
83680         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83681         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
83682         * tests/test-isnanl.c: Likewise.
83683         * tests/test-snprintf-posix.h: Likewise.
83684         * tests/test-sprintf-posix.h: Likewise.
83685         * tests/test-vasnprintf-posix.c: Likewise.
83686         * tests/test-vasnprintf-posix2.c: Likewise.
83687         * tests/test-vasprintf-posix.c: Likewise.
83689 2007-04-06  Bruno Haible  <bruno@clisp.org>
83691         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
83692         * lib/math_.h [__DECC]: Include the overridden include file through
83693         #include_next, outside the double-inclusion guard.
83694         * lib/stdio_.h [__DECC]: Likewise.
83695         * lib/stdlib_.h [__DECC]: Likewise.
83696         * lib/string_.h [__DECC]: Likewise.
83697         * lib/time_.h [__DECC]: Likewise.
83698         * lib/wchar_.h [__DECC]: Likewise.
83699         * lib/wctype_.h [__DECC]: Likewise.
83700         * lib/inttypes_.h [__DECC]: Likewise.
83701         Reported by Albert Chin <china@thewrittenword.com> in
83702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
83704 2007-04-04  Eric Blake  <ebb9@byu.net>
83706         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
83707         1.5.x.
83709 2007-04-04  Bruno Haible  <bruno@clisp.org>
83711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
83712         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
83714 2007-04-04  Bruno Haible  <bruno@clisp.org>
83716         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
83717         results for "%010a" of Infinity and NaN.
83718         * tests/test-vasprintf-posix.c (test_function): Likewise.
83719         * tests/test-snprintf-posix.h (test_function): Likewise.
83720         * tests/test-sprintf-posix.h (test_function): Likewise.
83721         * tests/test-fprintf-posix.h (test_function): Remove these tests.
83722         * tests/test-printf-posix.h (test_function): Likewise.
83723         * tests/test-fprintf-posix.out: Update.
83724         Needed for FreeBSD 6.1.
83726 2007-04-04  Bruno Haible  <bruno@clisp.org>
83728         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
83729         directly used by the gnulib modules nor by gnulib-tool.
83731 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83733         * DEPENDENCIES: Give overall description of version dependency
83734         desirability.  Use more-typical names for apps.
83735         Add shell, coreutils, diffutils, grep, tar, gzip.
83737 2007-04-04  Simon Josefsson  <simon@josefsson.org>
83739         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
83741 2007-04-04  Karl Berry  <karl@gnu.org>
83743         * MODULES.html.sh (func_module): missing '.
83745 2007-04-03  Bruno Haible  <bruno@clisp.org>
83747         * modules/argmatch-tests (Makefile.am): New variable
83748         test_argmatch_LDADD.
83749         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
83750         * modules/array-list-tests (Makefile.am): New variable
83751         test_array_list_LDADD.
83752         * modules/array-oset-tests (Makefile.am): New variable
83753         test_array_oset_LDADD.
83754         * modules/avltree-list-tests (Makefile.am): New variable
83755         test_avltree_list_LDADD.
83756         * modules/avltree-oset-tests (Makefile.am): New variable
83757         test_avltree_oset_LDADD.
83758         * modules/avltreehash-list-tests (Makefile.am): New variable
83759         test_avltreehash_list_LDADD.
83760         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
83761         test_canonicalize_lgpl_LDADD.
83762         * modules/carray-list-tests (Makefile.am): New variable
83763         test_carray_list_LDADD.
83764         * modules/dirname-tests (Makefile.am): New variable
83765         test_dirname_LDADD.
83766         * modules/linked-list-tests (Makefile.am): New variable
83767         test_linked_list_LDADD.
83768         * modules/linkedhash-list-tests (Makefile.am): New variable
83769         test_linkedhash_list_LDADD.
83770         * modules/rbtree-list-tests (Makefile.am): New variable
83771         test_rbtree_list_LDADD.
83772         * modules/rbtree-oset-tests (Makefile.am): New variable
83773         test_rbtree_oset_LDADD.
83774         * modules/rbtreehash-list-tests (Makefile.am): New variable
83775         test_rbtreehash_list_LDADD.
83776         * modules/xvasprintf-tests (Makefile.am): New variable
83777         test_xvasprintf_LDADD.
83778         Reported by Eric Blake.
83780 2007-04-03  Eric Blake  <ebb9@byu.net>
83782         * DEPENDENCIES: Weaken m4 requirements.
83784 2007-04-03  Bruno Haible  <bruno@clisp.org>
83786         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
83787         * modules/isnanl-tests (configure.ac): Likewise.
83789 2007-04-03  Ben Pfaff  <blp@gnu.org>
83791         * modules/iconv_open: Add $(srcdir)/ to source directory
83792         references in Makefile fragments that call gperf, to fix VPATH
83793         builds.
83795 2007-04-03  Bruno Haible  <bruno@clisp.org>
83797         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
83798         * lib/ldexpl.c: Undo last change.
83800 2007-04-03  Bruno Haible  <bruno@clisp.org>
83802         * modules/printf-frexpl (Depends-on): Undo last change.
83803         (Files): Add m4/ldexpl.m4.
83805 2007-04-03  Bruno Haible  <bruno@clisp.org>
83807         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
83808         * modules/isnanl (Link): New section.
83810         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
83811         * modules/frexp (Link): New section.
83813         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
83814         * modules/frexpl (Link): New section.
83816         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
83817         * modules/ldexpl (Link): New section.
83819 2007-04-03  Bruno Haible  <bruno@clisp.org>
83821         * modules/TEMPLATE-EXTENDED: New file.
83822         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
83824 2007-04-03  Bruno Haible  <bruno@clisp.org>
83826         * DEPENDENCIES: New file.
83827         Suggested by Simon Josefsson.
83829 2007-04-03  Bruno Haible  <bruno@clisp.org>
83831         * doc/gnulib.texi: Escape @.
83833 2007-04-03  James Youngman  <jay@gnu.org>
83834         and Paul Eggert  <eggert@cs.ucla.edu>
83836         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
83837         birthtime on all systems that have birthtime, not just those which
83838         use st_birthtimensec rather than st_birthtim.  Putting zero in
83839         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
83840         that the birth time is not available for files on an NFS mount.
83842 2007-04-03  Simon Josefsson  <simon@josefsson.org>
83844         * modules/memxor: Move back from crypto/, suggested by Bruno.
83845         * modules/crypto/hmac-sha1: Fix memxor dependency.
83847         * modules/crypto/gc: Moved from ../.
83849 2007-04-02  Eric Blake  <ebb9@byu.net>
83851         * lib/ldexpl.c (includes): Avoid libm.
83853         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
83855 2007-04-02  Bruno Haible  <bruno@clisp.org>
83857         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
83858         on IRIX.
83860 2007-04-02  Bruno Haible  <bruno@clisp.org>
83862         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
83863         x86 or x86_64 platforms running MacOS X.
83864         Reported by Ryan Schmidt <@ryandesign.com>.
83866 2007-04-02  Bruno Haible  <bruno@clisp.org>
83868         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
83869         i386.
83871 2007-04-01  Simon Josefsson  <simon@josefsson.org>
83873         * modules/crypto/arcfour: Moved from ../.
83874         * modules/crypto/arcfour-tests: Moved from ../.
83875         * modules/crypto/arctwo: Moved from ../.
83876         * modules/crypto/arctwo-tests: Moved from ../.
83877         * modules/crypto/des: Moved from ../.
83878         * modules/crypto/des-tests: Moved from ../.
83879         * modules/crypto/gc-arcfour: Moved from ../.
83880         * modules/crypto/gc-arcfour-tests: Moved from ../.
83881         * modules/crypto/gc-arctwo: Moved from ../.
83882         * modules/crypto/gc-arctwo-tests: Moved from ../.
83883         * modules/crypto/gc-des: Moved from ../.
83884         * modules/crypto/gc-des-tests: Moved from ../.
83885         * modules/crypto/gc-hmac-md5: Moved from ../.
83886         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
83887         * modules/crypto/gc-hmac-sha1: Moved from ../.
83888         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
83889         * modules/crypto/gc-md2: Moved from ../.
83890         * modules/crypto/gc-md2-tests: Moved from ../.
83891         * modules/crypto/gc-md4: Moved from ../.
83892         * modules/crypto/gc-md4-tests: Moved from ../.
83893         * modules/crypto/gc-md5: Moved from ../.
83894         * modules/crypto/gc-md5-tests: Moved from ../.
83895         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
83896         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
83897         * modules/crypto/gc-random: Moved from ../.
83898         * modules/crypto/gc-rijndael: Moved from ../.
83899         * modules/crypto/gc-rijndael-tests: Moved from ../.
83900         * modules/crypto/gc-sha1: Moved from ../.
83901         * modules/crypto/gc-sha1-tests: Moved from ../.
83902         * modules/crypto/gc-tests: Moved from ../.
83903         * modules/crypto/hmac-md5: Moved from ../.
83904         * modules/crypto/hmac-md5-tests: Moved from ../.
83905         * modules/crypto/hmac-sha1: Moved from ../.
83906         * modules/crypto/hmac-sha1-tests: Moved from ../.
83907         * modules/crypto/md2: Moved from ../.
83908         * modules/crypto/md2-tests: Moved from ../.
83909         * modules/crypto/md4: Moved from ../.
83910         * modules/crypto/md4-tests: Moved from ../.
83911         * modules/crypto/md5: Moved from ../.
83912         * modules/crypto/md5-tests: Moved from ../.
83913         * modules/crypto/memxor: Moved from ../.
83914         * modules/crypto/rijndael: Moved from ../.
83915         * modules/crypto/rijndael-tests: Moved from ../.
83916         * modules/crypto/sha1: Moved from ../.
83918 2007-03-30  James Youngman  <jay@gnu.org>
83920         * tests/test-stat-time.c (prepare_test): use chmod() rather than
83921         rename() to change the ctime of a file (because ctime is unaffected
83922         by rename on jfs2 on AIX 5.1).
83923         (main): Start by doing cleanup, in case a previous run failed leaving
83924         test files behind.
83926 2007-03-31  Bruno Haible  <bruno@clisp.org>
83928         Support old proprietary implementations of iconv.
83929         * modules/iconv_open: New file.
83930         * lib/iconv_.h: New file.
83931         * m4/iconv_h.m4: New file.
83932         * lib/iconv_open.c: New file.
83933         * lib/iconv_open-aix.gperf: New file.
83934         * lib/iconv_open-hpux.gperf: New file.
83935         * lib/iconv_open-irix.gperf: New file.
83936         * lib/iconv_open-osf.gperf: New file.
83937         * m4/iconv_open.m4: New file.
83938         * modules/linebreak (Depends-on): Add iconv_open.
83939         * modules/striconv (Depends-on): Likewise.
83940         * modules/striconveh (Depends-on): Likewise.
83941         * modules/unicodeio (Depends-on): Likewise.
83942         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
83943         (iconv_t)(-1).
83944         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
83945         conversion if cd is (iconv_t)(-1).
83946         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
83947         is not possible.
83949 2007-03-31  Bruno Haible  <bruno@clisp.org>
83951         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
83952         work on Solaris either. Protect also second use of "autodetect_jp".
83954 2007-03-31  Bruno Haible  <bruno@clisp.org>
83956         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
83957         the function is not present.
83959 2007-03-31  Bruno Haible  <bruno@clisp.org>
83961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
83962         the function is not present.
83964 2007-03-31  Bruno Haible  <bruno@clisp.org>
83966         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
83967         a bug in HP-UX iconv_open().
83969 2007-03-31  Bruno Haible  <bruno@clisp.org>
83971         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
83972         (Mathematics <math.h>): New section, add fpieee.
83973         (Input/output <stdio.h>): Add fseterr.
83974         (Mathematics <math.h>): New section, add printf-frexp.
83975         (Container data structures): Add sublist.
83976         (Core language properties): Add fpucw, inline.
83977         (Functions for greatest-width integer types <inttypes.h>): Add
83978         imaxabs, imaxdiv, inttypes.
83979         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
83980         isnanl-nolibm, ldexp.
83981         (Mathematics <math.h>): New section, add printf-frexpl.
83982         (Support for systems lacking POSIX:2001): Add fprintf-posix,
83983         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
83984         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
83985         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
83986         (Unicode string functions): Add unistr/u*-mbtoucr.
83987         (Java): Add javacomp-script, javaexec-script.
83988         (C#): Add csharpcomp-script, csharpexec-script.
83989         (Support for building libraries and executables): Add havelib,
83990         relocatable-*.
83991         (Support for maintaining and releasing projects): Renamed from
83992         'Support for maintaining and release projects'. Add announce-gen.
83994 2007-03-31  Bruno Haible  <bruno@clisp.org>
83996         * README: Talk primarily about git.
83997         (git and CVS): Renamed from CVS.
83998         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
83999         gnulib is available through git.
84000         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
84002 2007-03-30  Bruno Haible  <bruno@clisp.org>
84004         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
84005         * lib/poll_.h: Likewise.
84006         * lib/stat_.h: Likewise.
84007         * lib/sys_time_.h: Likewise.
84008         * lib/sysexit_.h: Likewise.
84009         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
84010         * lib/stdbool_.h: Likewise.
84011         * lib/byteswap_.h: Add double-inclusion guard.
84013 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
84015         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
84017 2007-03-30  Karl Berry  <karl@gnu.org>
84019         * config/srclist-update: double space after USA in the license
84020         substitution, since that's how it's usually (?) written.
84022 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
84024         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
84025         reported by Bruno Haible.
84027 2007-03-29  Bruno Haible  <bruno@clisp.org>
84029         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
84030         a bug in AIX iconv().
84032 2007-03-29  Bruno Haible  <bruno@clisp.org>
84034         * modules/ldexpl-tests: New file.
84035         * tests/test-ldexpl.c: New file.
84037 2007-03-29  Bruno Haible  <bruno@clisp.org>
84039         * lib/ldexpl.c: Include fpucw.h.
84040         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
84041         multiplication.
84042         * modules/ldexpl (Depends-on): Add fpucw.
84044 2007-03-29  Bruno Haible  <bruno@clisp.org>
84046         * modules/ldexpl: New file.
84047         * m4/ldexpl.m4: New file.
84048         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
84049         set.
84050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
84051         REPLACE_LDEXPL.
84052         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
84053         REPLACE_LDEXPL.
84054         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
84055         gl_FUNC_LDEXPL_WORKS.
84056         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
84057         * modules/mathl (Files): Remove lib/ldexpl.c.
84058         (Depends-on): Add ldexpl.
84060 2007-03-29  Bruno Haible  <bruno@clisp.org>
84062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
84064 2007-03-29  Bruno Haible  <bruno@clisp.org>
84066         * tests/test-striconveh.c (main): Don't assume that a direct conversion
84067         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
84068         and possibly also HP-UX.
84069         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
84070         work on AIX, IRIX, HP-UX, OSF/1.
84071         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
84072         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
84073         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
84074         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
84075         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
84076         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
84078 2007-03-29  Bruno Haible  <bruno@clisp.org>
84080         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
84082 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
84084         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
84085         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
84087 2007-03-29  Eric Blake  <ebb9@byu.net>
84089         * lib/acl-internal.h: Remove redundant include.
84090         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
84091         Cygwin when a file is locked.
84093 2007-03-29  Bruno Haible  <bruno@clisp.org>
84095         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
84096         file.
84097         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
84099 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
84101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
84102         try to remove a parent directory if the child couldn't be removed
84103         (except for the first rmdir, which could fail because the child
84104         doesn't exist).  Problem reported by Jeff Blaine in
84105         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
84107 2007-03-28  Bruno Haible  <bruno@clisp.org>
84109         * lib/striconveh.c (utf8conv_carefully): New function.
84110         (mem_cd_iconveh_internal): Invoke it.
84112 2007-03-28  Bruno Haible  <bruno@clisp.org>
84114         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
84115         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
84116         input.
84117         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
84118         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
84119         unistr/u8-uctomb.
84121 2007-03-28  Bruno Haible  <bruno@clisp.org>
84123         * modules/unistr/u8-mbtoucr: New file.
84124         * lib/unistr/u8-mbtoucr.c: New file.
84125         * modules/unistr/u16-mbtoucr: New file.
84126         * lib/unistr/u16-mbtoucr.c: New file.
84127         * modules/unistr/u16-mbtoucr: New file.
84128         * lib/unistr/u16-mbtoucr.c: New file.
84129         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
84131 2007-03-27  Simon Josefsson  <simon@josefsson.org>
84132             Bruno Haible  <bruno@clisp.org>
84134         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
84135         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
84136         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
84138         * m4/stdio_h.m4: Add stubs for vasprintf too.
84140         * modules/stdio: Support vasprintf in sed command.
84142         * modules/vasprintf: Depend on stdio for prototypes.  Remove
84143         vasprintf.h.  Add stdio module indicator.
84145         * lib/stdio_.h: Declare asprintf and vasprintf, based on
84146         vasprintf.h.
84148         * lib/vasprintf.h: File removed.
84150         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
84151         * lib/vasprintf.c: Ditto.
84152         * lib/xvasprintf.c: Ditto.
84153         * tests/test-vasprintf-posix.c: Ditto.
84154         * tests/test-vasprintf.c: Ditto.
84156 2007-03-27  Bruno Haible  <bruno@clisp.org>
84158         Make vasnprintf multithread-safe.
84159         * lib/vasnprintf.c (decimal_point_char): New function.
84160         (VASNPRINTF): Use it.
84161         Suggested by Simon Josefsson.
84163 2007-03-27  Eric Blake  <ebb9@byu.net>
84165         Support sub-second birthtime on cygwin.
84166         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
84167         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
84168         (get_stat_birthtime): Also work with st_birthtim.
84170 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
84172         * lib/stat-time.h (USE_BIRTHTIME): Remove.
84173         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
84174         (get_stat_birthtime_ns): Do not try to use "spare" fields.
84175         (get_stat_birthtime_ns): Simplify compile-time tests.
84176         (get_stat_birthtime): Change the API to look like
84177         get_stat_mtime etc., except return a negative tv_nsec on error.
84178         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
84179         Don't check for "spare" fields.
84180         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
84181         or for struct stat.st_birthtime, as these tests aren't used.
84182         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
84184 2007-03-27  Bruno Haible  <bruno@clisp.org>
84186         * lib/stat-time.h: Include <sys/stat.h>.
84188 2007-03-27  James Youngman  <jay@gnu.org>
84190         * lib/stat-time.h (get_stat_birthtime): New function for
84191           retrieving st_birthtime as provided by UFS2 (hence *BSD).
84192         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
84193           and its variants.
84194         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
84195         * modules/stat-time-test: New file.
84196         * tests/test-stat-time.c: New test, devised by Bruno Haible.
84198 2007-03-26  Bruno Haible  <bruno@clisp.org>
84200         Better support of signalling NaNs.
84201         * lib/atanl.c: Include isnanl.h.
84202         (atanl): Perform test for NaN at the beginning of the function and
84203         through a call to isnanl.
84204         * lib/cosl.c: Include isnanl.h.
84205         (cosl): Perform test for NaN at the beginning of the function and
84206         through a call to isnanl.
84207         * lib/ldexpl.c: Include isnanl.h.
84208         (ldexpl): Perform test for NaN through a call to isnanl.
84209         * lib/logl.c: Include isnanl.h.
84210         (logl): Perform test for NaN at the beginning of the function and
84211         through a call to isnanl.
84212         * lib/sinl.c: Include isnanl.h.
84213         (sinl): Perform test for NaN at the beginning of the function and
84214         through a call to isnanl.
84215         * lib/sqrtl.c: Include isnanl.h.
84216         (sqrtl): Perform test for NaN at the beginning of the function and
84217         through a call to isnanl.
84218         * lib/tanl.c: Include isnanl.h.
84219         (tanl): Perform test for NaN at the beginning of the function and
84220         through a call to isnanl.
84221         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
84222         * modules/mathl (Depends-on): Add isnanl.
84224 2007-03-26  Eric Blake  <ebb9@byu.net>
84226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
84227         regression in logic sense of previous patch.
84229 2007-03-26  Bruno Haible  <bruno@clisp.org>
84231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
84232         unportable shell command "if ! ...".
84233         Reported by Ralf Wildenhues.
84235 2007-03-25  Bruno Haible  <bruno@clisp.org>
84237         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
84238         <sysexits.h> file, and only add EX_CONFIG.
84239         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
84240         absolute file name and whether it is sufficient. Substitute also
84241         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
84242         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
84243         ABSOLUTE_SYSEXITS_H into sysexits.h.
84245 2007-03-25  Bruno Haible  <bruno@clisp.org>
84247         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
84248         hints is NULL.
84250 2007-03-25  Bruno Haible  <bruno@clisp.org>
84252         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
84253         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
84255 2007-03-25  Bruno Haible  <bruno@clisp.org>
84257         * lib/vasnprintf.c: Include langinfo.h.
84258         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
84259         multithread-safe.
84260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
84261         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
84262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
84268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84269         Reported by Simon Josefsson.
84271 2007-03-25  Bruno Haible  <bruno@clisp.org>
84273         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
84274         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
84275         * modules/vasnprintf (Depends-on): Add stdint.
84277 2007-03-25  Bruno Haible  <bruno@clisp.org>
84279         * modules/fpieee: New file.
84280         * m4/fpieee.m4: New file.
84281         * modules/isnan-nolibm (Depends-on): Add fpieee.
84282         * modules/isnanl-nolibm (Depends-on): Add fpieee.
84283         * modules/isnanl (Depends-on): Add fpieee.
84285 2007-03-25  Bruno Haible  <bruno@clisp.org>
84287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
84289 2007-03-25  Bruno Haible  <bruno@clisp.org>
84291         Avoid test failures on IRIX 6.5.
84292         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
84293         (main): Use it.
84294         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
84295         macros.
84296         (main): Use them.
84298 2007-03-25  Bruno Haible  <bruno@clisp.org>
84300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
84301         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
84302         exists but doesn't work.
84303         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
84304         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
84305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
84306         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
84307         math.h.
84309 2007-03-25  Bruno Haible  <bruno@clisp.org>
84311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
84312         returns inf. Needed on IRIX 6.5.
84314 2007-03-25  Bruno Haible  <bruno@clisp.org>
84316         * tests/test-frexpl.c: Include isnanl-nolibm.h.
84317         (main): Use isnanl instead of x != x idiom.
84318         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
84320         * tests/test-frexp.c: Include isnan.h.
84321         (main): Use isnan instead of x != x idiom.
84322         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
84324 2007-03-25  Bruno Haible  <bruno@clisp.org>
84326         * tests/test-frexp.c (NaN): New function/macro.
84327         (main): Use it instead of 0.0 / 0.0.
84328         * tests/test-isnan.c (NaN): New function/macro.
84329         (main): Use it instead of 0.0 / 0.0.
84330         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
84331         (test_function): Use it instead of 0.0 / 0.0.
84332         * tests/test-vasprintf-posix.c (NaN): New function/macro.
84333         (test_function): Use it instead of 0.0 / 0.0.
84334         * tests/test-snprintf-posix.h (NaN): New function/macro.
84335         (test_function): Use it instead of 0.0 / 0.0.
84336         * tests/test-sprintf-posix.h (NaN): New function/macro.
84337         (test_function): Use it instead of 0.0 / 0.0.
84338         * tests/test-fprintf-posix.h (NaN): New function/macro.
84339         (test_function): Use it instead of 0.0 / 0.0.
84340         * tests/test-printf-posix.h (NaN): New function/macro.
84341         (test_function): Use it instead of 0.0 / 0.0.
84343         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
84345 2007-03-25  Bruno Haible  <bruno@clisp.org>
84347         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
84349 2007-03-25  Bruno Haible  <bruno@clisp.org>
84351         * lib/regexec.c (merge_state_with_log): Make static.
84353 2007-03-25  Bruno Haible  <bruno@clisp.org>
84355         * lib/trigl.c (kernel_rem_pio2): Make static.
84357 2007-03-25  Bruno Haible  <bruno@clisp.org>
84359         * lib/sincosl.c (sincosl_table): Make static.
84361 2007-03-25  Bruno Haible  <bruno@clisp.org>
84363         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
84364         if the compiler does not support C99.
84366 2007-03-25  Bruno Haible  <bruno@clisp.org>
84368         * modules/time (Makefile.am): Ensure all rule action lines start with a
84369         tab.
84371 2007-03-24  Bruno Haible  <bruno@clisp.org>
84373         * modules/tsearch-tests: New file.
84374         * tests/test-tsearch.sh: New file.
84375         * tests/test-tsearch.c: New file, mostly copied from glibc.
84377         * modules/search-tests: New file.
84378         * tests/test-search.c: New file.
84380         * modules/search: New file.
84381         * lib/search_.h: New file, incorporating lib/tsearch.h.
84382         * m4/search_h.m4: New file.
84383         * lib/tsearch.h: Remove file.
84384         * lib/tsearch.c: Include search.h instead of tsearch.h.
84385         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
84386         HAVE_TSEARCH.
84387         * modules/tsearch (Files): Remove lib/tsearch.h.
84388         (Depends-on): Add search.
84389         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
84390         (Include): Change tsearch.h into search.h.
84392 2007-03-24  Bruno Haible  <bruno@clisp.org>
84394         * modules/fpucw: New file.
84395         * lib/fpucw.h: New file.
84396         * lib/frexp.c: Include fpucw.h.
84397         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
84398         (FUNC): Use them.
84399         * lib/printf-frexp.c: Include fpucw.h.
84400         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
84401         (FUNC): Use them.
84402         * lib/vasnprintf.c: Include fpucw.h.
84403         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
84404         'long double' calculations.
84405         * tests/test-frexpl.c: Include fpucw.h.
84406         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
84407         * tests/test-printf-frexpl.c: Include fpucw.h.
84408         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
84409         * modules/frexpl (Depends-on): Add fpucw.
84410         * modules/printf-frexpl (Depends-on): Likewise.
84411         * modules/fprintf-posix (Depends-on): Likewise.
84412         * modules/snprintf-posix (Depends-on): Likewise.
84413         * modules/sprintf-posix (Depends-on): Likewise.
84414         * modules/vasnprintf-posix (Depends-on): Likewise.
84415         * modules/vasprintf-posix (Depends-on): Likewise.
84416         * modules/vfprintf-posix (Depends-on): Likewise.
84417         * modules/vsnprintf-posix (Depends-on): Likewise.
84418         * modules/vsprintf-posix (Depends-on): Likewise.
84419         * modules/frexpl-tests (Depends-on): Likewise.
84420         * modules/printf-frexpl-tests (Depends-on): Likewise.
84422 2007-03-24  Bruno Haible  <bruno@clisp.org>
84424         * lib/float+.h: New file.
84425         * lib/isnan.c: Include float+.h.
84426         (SIZE): New macro.
84427         (FUNC): Compare only SIZE bytes of the value.
84428         * lib/vasnprintf.c: Include float+.h.
84429         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
84430         SIZEOF_LDBL or SIZEOF_DBL bytes.
84431         * modules/isnan-nolibm (Files): Add lib/float+.h.
84432         * modules/isnanl-nolibm (Files): Add lib/float+.h.
84433         * modules/isnanl (Files): Add lib/float+.h.
84434         * modules/vasnprintf (Files): Add lib/float+.h.
84436 2007-03-24  Bruno Haible  <bruno@clisp.org>
84438         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
84439         include isnanl-nolibm.h.
84441 2007-03-24  Bruno Haible  <bruno@clisp.org>
84443         * tests/test-read-file.c (main): Don't produce spurious output for
84444         expected situations. Make the test fail if it encountered unexpected
84445         results.
84447 2007-03-24  Bruno Haible  <bruno@clisp.org>
84449         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
84450         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
84452 2007-03-24  Bruno Haible  <bruno@clisp.org>
84454         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
84456 2007-03-24  Bruno Haible  <bruno@clisp.org>
84458         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
84459         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
84461         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
84462         * modules/utf8-ucs4: Turn into a symbolic link to module
84463         unistr/u8-mbtouc.
84465         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
84466         utf8-ucs4-unsafe.
84467         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
84468         unistr/u8-mbtouc-unsafe.
84470         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
84471         * modules/utf16-ucs4: Turn into a symbolic link to module
84472         unistr/u16-mbtouc.
84474         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
84475         utf16-ucs4-unsafe.
84476         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
84477         unistr/u16-mbtouc-unsafe.
84479         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
84480         * modules/ucs4-utf8: Turn into a symbolic link to module
84481         unistr/u8-ubtomb.
84483         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
84484         * modules/ucs4-utf16: Turn into a symbolic link to module
84485         unistr/u16-ubtomb.
84487 2007-03-24  Bruno Haible  <bruno@clisp.org>
84489         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
84490         Enable the function only if HAVE_INLINE.
84491         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
84492         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
84493         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
84494         Enable the function only if HAVE_INLINE.
84495         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
84496         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
84497         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
84498         Enable the function only if HAVE_INLINE.
84499         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
84500         Enable the function only if HAVE_INLINE.
84501         * modules/utf8-ucs4: Update.
84502         * modules/utf8-ucs4-unsafe: Update.
84503         * modules/utf16-ucs4: Update.
84504         * modules/utf16-ucs4-unsafe: Update.
84505         * modules/ucs4-utf8: Update.
84506         * modules/ucs4-utf16: Update.
84508 2007-03-24  Bruno Haible  <bruno@clisp.org>
84510         * lib/utf8-ucs4.h: Remove file.
84511         * lib/utf8-ucs4-unsafe.h: Remove file.
84512         * lib/utf16-ucs4.h: Remove file.
84513         * lib/utf16-ucs4-unsafe.h: Remove file.
84514         * lib/ucs4-utf8.h: Remove file.
84515         * lib/ucs4-utf16.h: Remove file.
84516         * lib/unistr.h: Include their previous contents.
84517         * m4/utf-ucs4.m4: Remove file.
84518         * m4/ucs4-utf.m4: Remove file.
84519         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
84520         (Depends-on): Add unistr/base.
84521         (configure.ac): Remove gl_UTF_UCS4.
84522         (Makefile.am): Update.
84523         (Include): Change to unistr.h.
84524         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
84525         (Depends-on): Add unistr/base.
84526         (configure.ac): Remove gl_UTF_UCS4.
84527         (Makefile.am): Update.
84528         (Include): Change to unistr.h.
84529         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
84530         (Depends-on): Add unistr/base.
84531         (configure.ac): Remove gl_UTF_UCS4.
84532         (Makefile.am): Update.
84533         (Include): Change to unistr.h.
84534         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
84535         (Depends-on): Add unistr/base.
84536         (configure.ac): Remove gl_UTF_UCS4.
84537         (Makefile.am): Update.
84538         (Include): Change to unistr.h.
84539         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
84540         (Depends-on): Add unistr/base.
84541         (configure.ac): Remove gl_UCS4_UTF.
84542         (Makefile.am): Update.
84543         (Include): Change to unistr.h.
84544         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
84545         (Depends-on): Add unistr/base.
84546         (configure.ac): Remove gl_UCS4_UTF.
84547         (Makefile.am): Update.
84548         (Include): Change to unistr.h.
84549         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
84550         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
84551         utf8-ucs4-unsafe.h.
84552         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
84553         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
84554         utf16-ucs4-unsafe.h.
84555         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
84556         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
84557         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
84558         * lib/unistr/u8-strchr.c: Likewise.
84559         * lib/unistr/u8-strrchr.c: Likewise.
84560         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
84561         * lib/unistr/u16-strchr.c: Likewise.
84562         * lib/unistr/u16-strrchr.c: Likewise.
84563         * lib/striconveh.c: Update.
84564         * lib/linebreak.c: Update.
84566 2007-03-24  Bruno Haible  <bruno@clisp.org>
84568         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
84569         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
84571 2007-03-22  Bruno Haible  <bruno@clisp.org>
84573         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
84575 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84577         * MODULES.html.sh (File system functions): New module write-any-file.
84578         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
84579         * m4/write-any-file.m4: New files.
84581 2007-03-23  Eric Blake  <ebb9@byu.net>
84583         * gnulib-tool: Rearrange space-tab sequences, since some editors
84584         like to eat them.
84586 2007-03-23  Eric Blake  <ebb9@byu.net>
84588         * lib/version-etc.c (version_etc_va): Update license wording to
84589         be more concise.  Recommended by Richard Stallman.
84591 2007-03-22  Bruno Haible  <bruno@clisp.org>
84593         * lib/poll.c (MSG_PEEK): New fallback definition.
84595 2007-03-22  Bruno Haible  <bruno@clisp.org>
84597         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
84598         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
84599         (main): Update.
84600         Fixes a compilation error on BeOS.
84602 2007-03-22  Bruno Haible  <bruno@clisp.org>
84604         * modules/frexpl-tests: New file.
84605         * tests/test-frexpl.c: New file.
84607         * modules/frexpl: New file.
84608         * m4/frexpl.m4: New file.
84609         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
84610         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
84611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
84612         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
84613         (Depends-on): Add frexpl. Remove isnanl-nolibm.
84614         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
84616 2007-03-22  Bruno Haible  <bruno@clisp.org>
84618         * lib/frexpl.c: Share code with lib/frexp.c.
84619         * modules/mathl (Files): Add lib/frexp.c.
84620         (Depends-on): Add isnanl-nolibm.
84622 2007-03-22  Bruno Haible  <bruno@clisp.org>
84624         * modules/printf-frexp (Files): Add m4/frexp.m4.
84625         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
84626         only if the found frexp function actually works.
84628 2007-03-22  Bruno Haible  <bruno@clisp.org>
84630         * lib/frexp.c: Remove older implementation that uses divisions.
84632 2007-03-21  Bruno Haible  <bruno@clisp.org>
84634         * modules/frexp-tests: New file.
84635         * tests/test-frexp.c: New file.
84637         * modules/frexp: New file.
84638         * lib/frexp.c: New file.
84639         * m4/frexp.m4: New file.
84640         * lib/math_.h (frexp): New declaration.
84641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
84642         REPLACE_FREXP.
84643         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
84645 2007-03-21  Bruno Haible  <bruno@clisp.org>
84647         * modules/isnanl-tests: New file.
84648         * tests/test-isnanl.c: New file.
84650         * modules/isnanl: New file.
84651         * lib/isnanl.h: New file.
84652         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
84653         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
84654         gl_FUNC_ISNANL_WORKS.
84655         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
84656         New macros.
84658 2007-03-21  Bruno Haible  <bruno@clisp.org>
84660         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
84661         lib/isnanl.h.
84662         (Include): Update.
84663         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
84664         * lib/vasnprintf.c: Update.
84665         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
84666         tests/test-isnanl.h, remove tests/test-isnanl.c.
84667         (Makefile.am): Update.
84668         * tests/test-isnanl-nolibm.c: New file.
84669         * tests/test-isnanl.h: New file.
84670         * tests/test-isnanl.c: Remove file.
84672 2007-03-21  Jim Meyering  <jim@meyering.net>
84674         When trying to open ".", treat ESTALE like EACCES.
84675         * lib/savewd.c (savewd_save): Resort to forking not just upon
84676         failure with EACCES, but also when errno is ESTALE.
84678 2007-03-20  Bruno Haible  <bruno@clisp.org>
84680         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
84681         Needed on AIX 5.1. Reported by Matthew Woehlke.
84683 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84685         Suggestions by Bruno Haible:
84686         * lib/acl-internal.h: Include "gettext.h" rather than rolling
84687         our own.
84688         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
84689         * modules/acl (Depends-on): Add gettext.
84691 2007-03-19  Bruno Haible  <bruno@clisp.org>
84693         * modules/iconvme: Remove file.
84694         * lib/iconvme.h: Remove file.
84695         * lib/iconvme.c: Remove file.
84696         * m4/iconvme.m4: Remove file.
84698 2007-03-19  Bruno Haible  <bruno@clisp.org>
84700         * doc/relocatable-maint.texi: Break long shell script line.
84701         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84703 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84705         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
84706         handle file_has_acl.
84707         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
84708         * lib/acl.c: Move header inclusions and related macro defns into
84709         lib/acl-internal.h.
84710         (S_ISLNK): Remove defn, since that's now done for us.
84711         (file_has_acl): Move to lib/file-has-acl.c.
84712         Call acl_trivial if available.  This is the crucial part of the fix.
84713         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
84714         shared within the library.  Rewrite a bit, partly to make it compatible
84715         with the GNU coding style.
84716         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
84717         Remove unnecessary double-quotes.
84718         Don't test for acl_to_text; the build will catch that.
84719         Replace acl_entries if it doesn't exist and it is needed.
84720         Check for -lsec and acl_trivial (as used on Solaris 10).
84721         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
84722         lib/file-has-acl.c.
84723         (Depends-on): Add sys_stat, for S_ISLNK.
84725 2007-03-19  Ben Pfaff  <blp@gnu.org>
84727         * doc/gnulib.texi: Fix typos.
84728         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84730 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84732         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
84733         If size is zero here, buf must be zero.
84735 2007-03-19  Simon Josefsson  <simon@josefsson.org>
84737         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
84738         <bruno@clisp.org>.
84740 2007-03-18  Bruno Haible  <bruno@clisp.org>
84742         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
84743         Suggested by Eric Blake.
84745 2007-03-18  Ben Pfaff  <blp@gnu.org>
84747         * doc/relocatable.texi: Recommend using as prefix a directory
84748         that does not exist and will never be created.  Based on
84749         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
84750         and others.
84752 2007-03-17  Bruno Haible  <bruno@clisp.org>
84754         * lib/fchownat.c: Include lchown.h.
84756 2007-03-17  Bruno Haible  <bruno@clisp.org>
84758         Fix endless loop when the given allocated size was > INT_MAX.
84759         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
84760         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
84761         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
84762         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
84763         * lib/sprintf.c (sprintf): Likewise.
84765 2007-03-17  Bruno Haible  <bruno@clisp.org>
84767         * tests/test-argp-2.sh (func_compare): Output a context diff.
84769 2007-03-17  Bruno Haible  <bruno@clisp.org>
84771         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
84772         locale's decimal-point character.
84774 2007-03-17  Bruno Haible  <bruno@clisp.org>
84776         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
84777         before comparing it. Needed because on some platforms (e.g. x86) a
84778         'long double' occupies less bytes than sizeof (long double).
84780 2007-03-17  Bruno Haible  <bruno@clisp.org>
84782         * tests/test-crc.c (main): Make printf statements 64-bit clean.
84783         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
84784         * tests/test-getaddrinfo.c (simple): Likewise.
84785         * tests/test-read-file.c (main): Likewise.
84787 2007-03-17  Bruno Haible  <bruno@clisp.org>
84789         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
84791 2007-03-17  Bruno Haible  <bruno@clisp.org>
84793         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
84794         unused variable.
84796 2007-03-17  Bruno Haible  <bruno@clisp.org>
84798         * tests/test-c-strcasecmp.c: Include c-strcase.h.
84799         * tests/test-c-strncasecmp.c: Likewise.
84801 2007-03-17  Bruno Haible  <bruno@clisp.org>
84803         * modules/stdlib (Depends-on): Add unistd.
84804         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
84805         Needed for MacOS X 10.3.
84807 2007-03-17  Bruno Haible  <bruno@clisp.org>
84809         * lib/unistr/u-strdup.h: Include <stdlib.h>.
84811 2007-03-17  Bruno Haible  <bruno@clisp.org>
84813         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
84815 2007-03-17  Bruno Haible  <bruno@clisp.org>
84817         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
84818         to reflect files copied from gnulib (with or without modifications).
84819         Suggested by Jim Meyering.
84821 2007-03-17  Eric Blake  <ebb9@byu.net>
84823         * NEWS: Document stdlib change from 2007-02-18.
84825 2007-03-17  Jim Meyering  <jim@meyering.net>
84827         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
84828         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
84829         someone uses a name containing shell meta-characters.
84830         Reported by Alfred M. Szmidt.
84832         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
84834 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
84836         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
84837         and copy gettext configuration files only if configure.ac contains
84838         a use of AM_GNU_GETTEXT_VERSION.
84840 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
84842         * build-aux/bootstrap (gnulib_name): New variable.
84843         (gnulib_tool_options): Use it.
84845 2007-03-13  Simon Josefsson  <simon@josefsson.org>
84847         * tests/test-des.c: Use new namespace.
84849 2007-03-15  Bruno Haible  <bruno@clisp.org>
84851         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
84852         Reported by James Youngman <jay@gnu.org>.
84854 2007-03-15  Bruno Haible  <bruno@clisp.org>
84856         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
84857         declared prototype. Needed with cc on OSF/1 5.1.
84859 2007-03-15  Bruno Haible  <bruno@clisp.org>
84861         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
84862         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
84863         (struct gl_list_implementation): Add dispose_fn argument to the
84864         'create_empty', 'create' methods.
84865         (struct gl_list_impl_base): Add field 'dispose_fn'.
84866         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
84867         argument.
84868         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
84869         dispose_fn argument.
84870         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
84871         dispose_fn on the dropped values.
84872         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
84873         dispose_fn argument.
84874         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
84875         dropped values.
84876         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
84877         (gl_tree_remove_node): Call dispose_fn on the dropped value.
84878         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
84879         (gl_tree_remove_node): Call dispose_fn on the dropped value.
84880         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
84881         argument.
84882         (gl_tree_list_free): Call dispose_fn on the dropped values.
84883         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
84884         the dropped values.
84885         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
84886         Add dispose_fn argument.
84887         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
84888         Call dispose_fn on the dropped values.
84889         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
84890         Add dispose_fn argument.
84891         (gl_sublist_create): Initialize the 'dispose_fn' field.
84892         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
84893         * tests/test-array_list.c (main): Update.
84894         * tests/test-carray_list.c (main): Update.
84895         * tests/test-avltree_list.c (main): Update.
84896         * tests/test-rbtree_list.c (main): Update.
84897         * tests/test-avltreehash_list.c (main): Update.
84898         * tests/test-rbtreehash_list.c (main): Update.
84899         * tests/test-linked_list.c (main): Update.
84900         * tests/test-linkedhash_list.c (main): Update.
84901         * tests/test-array_oset.c (main): Update.
84903 2007-03-15  Bruno Haible  <bruno@clisp.org>
84905         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
84906         (gl_oset_create_empty): Add dispose_fn argument.
84907         (struct gl_oset_implementation): Add dispose_fn argument to
84908         'create_empty' method.
84909         (struct gl_oset_impl_base): Add dispose_fn field.
84910         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
84911         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
84912         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
84913         values.
84914         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
84915         (gl_tree_oset_free): Call dispose_fn on the dropped values.
84916         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
84917         dropped value.
84918         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
84919         dropped value.
84920         * tests/test-array_oset.c (main): Update.
84921         * tests/test-avltree_oset.c (main): Update.
84922         * tests/test-rbtree_oset.c (main): Update.
84923         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
84925 2007-03-13  Bruno Haible  <bruno@clisp.org>
84927         * tests/test-stdbool.c (i): Update after last patch.
84929 2007-03-12  Bruno Haible  <bruno@clisp.org>
84931         * lib/quotearg.c: Include <wctype.h> early, before the definition of
84932         the iswprint macro. Needed on Solaris 2.5.1.
84934 2007-03-12  Bruno Haible  <bruno@clisp.org>
84936         * tests/test-printf-frexp.c (main): Declare x as volatile.
84938 2007-03-12  Simon Josefsson  <simon@josefsson.org>
84940         * doc/gnulib.texi (Build robot for gnulib): New section.
84942 2007-03-12  Jim Meyering  <jim@meyering.net>
84944         * build-aux/bootstrap: New file.
84945         * build-aux/bootstrap.conf: New file, from coreutils.
84947 2007-03-11  Bruno Haible  <bruno@clisp.org>
84949         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
84951 2007-03-12  Simon Josefsson  <simon@josefsson.org>
84953         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
84954         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
84955         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
84957 2007-03-11  Bruno Haible  <bruno@clisp.org>
84959         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
84960         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
84962 2007-03-11  Bruno Haible  <bruno@clisp.org>
84964         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
84965         formula. Needed for SunPRO C 5.0.
84967 2007-03-11  Bruno Haible  <bruno@clisp.org>
84969         * modules/long-options (Depends-on): Add getopt.
84971 2007-03-11  Bruno Haible  <bruno@clisp.org>
84973         * modules/modechange (Depends-on): Add stdbool.
84975 2007-03-11  Bruno Haible  <bruno@clisp.org>
84977         * modules/i-ring (Depends-on): Add stdbool.
84979 2007-03-11  Bruno Haible  <bruno@clisp.org>
84981         * modules/gc-des (Depends-on): Add stdbool.
84983 2007-03-11  Bruno Haible  <bruno@clisp.org>
84985         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
84987 2007-03-11  Bruno Haible  <bruno@clisp.org>
84989         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
84991 2007-03-11  Bruno Haible  <bruno@clisp.org>
84993         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
84995 2007-03-11  Bruno Haible  <bruno@clisp.org>
84997         * lib/vasnprintf.c (sprintf): Undefine.
84999 2007-03-11  Bruno Haible  <bruno@clisp.org>
85001         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
85002         initializers in SunPRO C and Compaq C compilers.
85004 2007-03-11  Bruno Haible  <bruno@clisp.org>
85006         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
85007         decrementing code ANSI C compliant.
85009 2007-03-11  Bruno Haible  <bruno@clisp.org>
85011         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
85012         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
85014 2007-03-11  Bruno Haible  <bruno@clisp.org>
85016         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
85017         <stdbool.h> substitute doesn't pass.
85019 2007-03-11  Bruno Haible  <bruno@clisp.org>
85021         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
85023 2007-03-11  Bruno Haible  <bruno@clisp.org>
85025         * gnulib-tool (func_create_megatestdir): Create also an autobuild
85026         script, for submission to autobuild.josefsson.org.
85028 2007-03-10  Bruno Haible  <bruno@clisp.org>
85030         * modules/canonicalize-lgpl-tests: New file.
85031         * tests/test-canonicalize-lgpl.sh: New file.
85032         * tests/test-canonicalize-lgpl.c: New file.
85034         * modules/c-strcase-tests: New file.
85035         * tests/test-c-strcase.sh: New file.
85036         * tests/test-c-strcasecmp.c: New file.
85037         * tests/test-c-strncasecmp.c: New file.
85039         * modules/atexit-tests: New file.
85040         * tests/test-atexit.sh: New file.
85041         * tests/test-atexit.c: New file.
85043 2007-03-10  Bruno Haible  <bruno@clisp.org>
85045         * tests/test-binary-io.sh: Use temporary filenames that are not so
85046         likely to clash with those of other tests (in a parallel make).
85047         * tests/test-binary-io.c: Likewise.
85049 2007-03-10  Bruno Haible  <bruno@clisp.org>
85051         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
85052         fallback; use #error instead.
85053         Suggested by Simon Josefsson.
85055 2007-03-10  Bruno Haible  <bruno@clisp.org>
85057         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
85058         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
85059         first and the last.
85061 2007-03-10  Bruno Haible  <bruno@clisp.org>
85063         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
85065 2007-03-10  Bruno Haible  <bruno@clisp.org>
85067         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
85068         "make distcheck".
85069         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
85070         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
85071         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
85073 2007-03-10  Bruno Haible  <bruno@clisp.org>
85075         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
85076         variable.
85077         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
85078         variable.
85080 2007-03-09  Eric Blake  <ebb9@byu.net>
85081         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
85083         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
85084         types are not being provided by gnulib.
85085         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
85086         types are supported.
85088 2007-03-10  Bruno Haible  <bruno@clisp.org>
85090         * lib/stdio_.h (__attribute__): New macro.
85091         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
85092         vsprintf): Specify __attribute__ __format__ for GCC.
85093         Suggested by Eric Blake.
85095 2007-03-09  Bruno Haible  <bruno@clisp.org>
85097         * modules/printf-posix-tests: New file.
85098         * tests/test-printf-posix.sh: New file.
85099         * tests/test-printf-posix.c: New file.
85101         * modules/printf-posix: New file.
85102         * lib/printf.c: New file.
85103         * m4/printf-posix-rpl.m4: New file.
85104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
85105         REPLACE_PRINTF.
85106         * lib/stdio_.h (printf): New declaration.
85107         (format, __format__, ____printf____, ____scanf____, ____strftime____,
85108         ____strfmon____): New macros.
85109         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
85110         REPLACE_PRINTF.
85112 2007-03-09  Bruno Haible  <bruno@clisp.org>
85114         * tests/test-vasnprintf-posix2.sh: New file.
85115         * tests/test-vasnprintf-posix2.c: New file.
85116         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
85117         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85118         (Makefile.am): Activate test-vasnprintf-posix2.sh.
85120         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
85121         a locale dependent decimal point, rather than always '.'.
85123 2007-03-09  Eric Blake  <ebb9@byu.net>
85125         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
85126         spite of platforms like Tandem/NSK that define it to -1.
85128 2007-03-08  Bruno Haible  <bruno@clisp.org>
85130         * modules/vprintf-posix-tests: New file.
85131         * tests/test-vprintf-posix.sh: New file.
85132         * tests/test-vprintf-posix.c: New file.
85133         * tests/test-printf-posix.h: New file.
85135         * modules/vprintf-posix: New file.
85136         * lib/vprintf.c: New file.
85137         * m4/vprintf-posix.m4: New file.
85138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
85139         REPLACE_VPRINTF.
85140         * lib/stdio_.h (vprintf): New declaration.
85141         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
85142         REPLACE_VPRINTF.
85144 2007-03-08  Bruno Haible  <bruno@clisp.org>
85146         * modules/fprintf-posix-tests: New file.
85147         * tests/test-fprintf-posix.sh: New file.
85148         * tests/test-fprintf-posix.c: New file.
85150         * modules/fprintf-posix: New file.
85151         * lib/fprintf.c: New file.
85152         * m4/fprintf-posix.m4: New file.
85153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
85154         REPLACE_FPRINTF.
85155         * lib/stdio_.h (fprintf): New declaration.
85156         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
85157         REPLACE_FPRINTF.
85159 2007-03-08  Bruno Haible  <bruno@clisp.org>
85161         * modules/vfprintf-posix-tests: New file.
85162         * tests/test-vfprintf-posix.sh: New file.
85163         * tests/test-vfprintf-posix.c: New file.
85164         * tests/test-fprintf-posix.h: New file.
85165         * tests/test-fprintf-posix.out: New file.
85167         * modules/vfprintf-posix: New file.
85168         * lib/vfprintf.c: New file.
85169         * m4/vfprintf-posix.m4: New file.
85170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
85171         REPLACE_VFPRINTF.
85172         * lib/stdio_.h (vfprintf): New declaration.
85173         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
85174         REPLACE_VFPRINTF.
85176 2007-03-08  Bruno Haible  <bruno@clisp.org>
85178         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
85180 2007-03-08  Bruno Haible  <bruno@clisp.org>
85182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
85183         instead of 'expr' invocations.
85184         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85185         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85186         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85189         Suggested by Paul Eggert.
85191 2007-03-08  Bruno Haible  <bruno@clisp.org>
85193         * modules/fseterr-tests: New file.
85194         * tests/test-fseterr.c: New file.
85196         * modules/fseterr: New file.
85197         * lib/fseterr.h: New file.
85198         * lib/fseterr.c: New file.
85200 2007-03-08  Bruno Haible  <bruno@clisp.org>
85202         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
85203         * lib/getopt_.h: Likewise.
85204         * lib/mbswidth.h: Likewise.
85205         * lib/setenv.h: Likewise.
85206         * lib/vasnprintf.h: Likewise.
85207         * lib/vasprintf.h: Likewise.
85208         * lib/verror.h: Likewise.
85209         * lib/xsetenv.h: Likewise.
85210         * lib/xvasprintf.h: Likewise.
85212 2007-03-08  Jim Meyering  <jim@meyering.net>
85214         * users.txt: Add parted.
85216         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
85218 2007-03-07  Bruno Haible  <bruno@clisp.org>
85220         * m4/printf.m4: Make the shell script snippets copy&pastable.
85222 2007-03-02  Bruno Haible  <bruno@clisp.org>
85224         * lib/netinet_in_.h: New file.
85225         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
85226         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
85227         * modules/netinet_in (Files): Add lib/netinet_in_.h.
85228         (Depends-on): Add absolute-header.
85229         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
85230         into netinet/in.h.
85232 2007-03-03  Bruno Haible  <bruno@clisp.org>
85234         * lib/sys_select_.h: New file.
85235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
85236         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
85237         * modules/sys_select (Files): Add lib/sys_select_.h.
85238         (Depends-on): Add absolute-header.
85239         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
85240         into sys/select.h.
85242 2007-03-02  Bruno Haible  <bruno@clisp.org>
85244         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
85245         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
85246         values.
85247         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
85248         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
85249         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
85250         * modules/sys_socket (Depends-on): Add absolute-header.
85251         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
85252         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
85253         (Include): Remove requirement of inclusion of <sys/types.h>.
85255 2007-03-02  Bruno Haible  <bruno@clisp.org>
85257         * lib/byteswap_.h (bswap_32): Fix formula.
85259 2007-03-06  Bruno Haible  <bruno@clisp.org>
85261         * modules/sprintf-posix-tests: New file.
85262         * tests/test-sprintf-posix.c: New file.
85264         * modules/sprintf-posix: New file.
85265         * lib/sprintf.c: New file.
85266         * m4/sprintf-posix.m4: New file.
85267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
85268         REPLACE_SPRINTF.
85269         * lib/stdio_.h (sprintf): New declaration.
85270         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
85271         REPLACE_SPRINTF.
85273 2007-03-06  Bruno Haible  <bruno@clisp.org>
85275         * modules/vsprintf-posix-tests: New file.
85276         * tests/test-vsprintf-posix.c: New file.
85277         * tests/test-sprintf-posix.h: New file.
85279         * modules/vsprintf-posix: New file.
85280         * lib/vsprintf.c: New file.
85281         * m4/vsprintf-posix.m4: New file.
85282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
85283         REPLACE_VSPRINTF.
85284         * lib/stdio_.h (vsprintf): New declaration.
85285         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
85286         REPLACE_VSPRINTF.
85288 2007-03-06  Bruno Haible  <bruno@clisp.org>
85290         * modules/vsnprintf (Depend-on): Remove minmax.
85292 2007-03-06  Bruno Haible  <bruno@clisp.org>
85294         * modules/snprintf-posix-tests: New file.
85295         * tests/test-snprintf-posix.c: New file.
85297         * modules/snprintf-posix: New file.
85298         * m4/snprintf-posix.m4: New file.
85299         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
85300         gl_FUNC_SNPRINTF.
85301         (gl_FUNC_SNPRINTF): Invoke it.
85302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
85303         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
85304         is set.
85305         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
85307 2007-03-06  Bruno Haible  <bruno@clisp.org>
85309         * modules/vsnprintf-posix-tests: New file.
85310         * tests/test-vsnprintf-posix.c: New file.
85311         * tests/test-snprintf-posix.h: New file.
85313         * modules/vsnprintf-posix: New file.
85314         * m4/vsnprintf-posix.m4: New file.
85315         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
85316         gl_FUNC_VSNPRINTF.
85317         (gl_FUNC_VSNPRINTF): Invoke it.
85318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
85319         * lib/stdio_.h (vsnprintf): Define as a replacement if
85320         REPLACE_VSNPRINTF is set.
85321         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
85323 2007-03-06  Bruno Haible  <bruno@clisp.org>
85325         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
85326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
85328 2007-03-06  Bruno Haible  <bruno@clisp.org>
85330         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
85331         (asinl): Declare also if HAVE_DECL_ASINL is set.
85332         (atanl): Declare also if HAVE_DECL_ATANL is set.
85333         (ceill): Declare also if HAVE_DECL_CEILL is set.
85334         (cosl): Declare also if HAVE_DECL_COSL is set.
85335         (expl): Declare also if HAVE_DECL_EXPL is set.
85336         (floorl): Declare also if HAVE_DECL_FLOORL is set.
85337         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
85338         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
85339         (logl): Declare also if HAVE_DECL_LOGL is set.
85340         (sinl): Declare also if HAVE_DECL_SINL is set.
85341         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
85342         (tanl): Declare also if HAVE_DECL_TANL is set.
85343         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
85344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
85345         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
85346         declaration of frexpl, ldexpl.
85347         * modules/printf-frexpl (Depends-on): Add math.
85348         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
85350 2007-03-05  Bruno Haible  <bruno@clisp.org>
85352         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
85353         frexpl and ldexpl are declared.
85354         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
85356 2007-03-05  Bruno Haible  <bruno@clisp.org>
85358         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
85359         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
85361 2007-03-05  Bruno Haible  <bruno@clisp.org>
85363         * lib/stdio_.h: Include <stddef.h>.
85365 2007-03-05  Bruno Haible  <bruno@clisp.org>
85367         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
85369 2007-03-05  Bruno Haible  <bruno@clisp.org>
85371         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
85372         NetBSD 4, from Ralf Wildenhues.
85374 2007-03-04  Bruno Haible  <bruno@clisp.org>
85376         * lib/vasprintf.h: Update #if logic for the case when the functions
85377         exist but are overridden.
85379 2007-03-04  Bruno Haible  <bruno@clisp.org>
85381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
85382         implementations: glibc-2.4 and MacOS X 10.3.
85383         * tests/test-vasnprintf-posix.c (test_function): Test also the case
85384         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
85385         * tests/test-vasprintf-posix.c (test_function): Likewise.
85387 2007-03-04  Bruno Haible  <bruno@clisp.org>
85389         * modules/vasprintf-posix-tests: New file.
85390         * tests/test-vasprintf-posix.c: New file.
85392         * modules/vasprintf-posix: New file.
85393         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
85394         defined.
85395         * m4/vasprintf-posix.m4: New file.
85396         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
85397         gl_FUNC_VASPRINTF.
85398         (gl_FUNC_VASPRINTF): Invoke it.
85399         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
85400         here.
85401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
85403 2007-03-04  Bruno Haible  <bruno@clisp.org>
85405         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
85406         REPLACE_GETTIMEOFDAY.
85407         * modules/sys_time (Makefile.am): Likewise.
85408         * m4/sys_time_h.m4: Likewise.
85409         * m4/gettimeofday.m4: Likewise.
85411 2007-03-04  Bruno Haible  <bruno@clisp.org>
85413         * modules/vasnprintf-posix-tests: New file.
85414         * tests/test-vasnprintf-posix.c: New file.
85416         * modules/vasnprintf-posix: New file.
85417         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
85418         printf-frexpl.h.
85419         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
85420         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
85421         REPLACE_VASNPRINTF is defined.
85422         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
85423         gl_FUNC_VASNPRINTF.
85424         (gl_FUNC_VASNPRINTF): Invoke it.
85425         * m4/vasnprintf-posix.m4: New file.
85426         * m4/printf.m4: New file.
85428 2007-03-04  Bruno Haible  <bruno@clisp.org>
85430         Compile progreloc.c only if --enable-relocatable is specified.
85431         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
85432         if --enable-relocatable was specified.
85433         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
85434         lib_SOURCES.
85436 2007-03-04  Jim Meyering  <jim@meyering.net>
85438         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
85439         Use it consistently, rather than enumerating errno constants.
85441 2007-03-04  Bruno Haible  <bruno@clisp.org>
85443         * modules/xvasprintf-tests: New file.
85444         * tests/test-xvasprintf.c: New file.
85446         * modules/vasprintf-tests: New file.
85447         * tests/test-vasprintf.c: New file.
85449         * modules/vasnprintf-tests: New file.
85450         * tests/test-vasnprintf.c: New file.
85452         * modules/vsnprintf-tests: New file.
85453         * tests/test-vsnprintf.c: New file.
85455         * modules/snprintf-tests: New file.
85456         * tests/test-snprintf.c: New file.
85458 2007-03-04  Bruno Haible  <bruno@clisp.org>
85460         Compile relocatable.c only if --enable-relocatable is specified.
85461         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
85462         gl_RELOCATABLE_LIBRARY.
85463         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
85464         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
85465         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
85466         gl_RELOCATABLE_LIBRARY.
85467         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
85468         (Makefile.am): Remove lib_SOURCES.
85469         * modules/relocatable-lib-lgpl (configure.ac): Invoke
85470         gl_RELOCATABLE_LIBRARY.
85471         (Makefile.am): Remove lib_SOURCES.
85472         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
85473         always.
85474         * modules/relocatable-prog-wrapper (configure.ac): Invoke
85475         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
85477 2007-03-04  Bruno Haible  <bruno@clisp.org>
85479         * modules/argmatch-tests: New file.
85480         * tests/test-argmatch.c: New file.
85482         * tests/test-allocsa.c (main): Halve the number of loop runs.
85484         * modules/alloca-opt-tests: New file.
85485         * tests/test-alloca-opt.c: New file.
85487 2007-03-04  Jim Meyering  <jim@meyering.net>
85489         Work around difference between Linux ACLs and Solaris 10 ZFS.
85490         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
85491         for EINVAL.
85493 2007-03-03  Bruno Haible  <bruno@clisp.org>
85495         * modules/relocatable-prog (Depends-on): Add back progreloc's
85496         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
85498 2007-03-03  Bruno Haible  <bruno@clisp.org>
85500         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
85501         * modules/relocatable-lib: New file.
85503 2007-03-03  Bruno Haible  <bruno@clisp.org>
85505         * modules/relocatable-prog: Renamed from modules/relocatable.
85506         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
85508 2007-03-03  Bruno Haible  <bruno@clisp.org>
85510         * modules/relocatable-script (Files): Add doc/relocatable.texi,
85511         m4/relocatable-lib.m4.
85512         (Depends-on): Remove 'relocatable'.
85513         (configure.ac): Add gl_RELOCATABLE_NOP.
85515 2007-03-03  Bruno Haible  <bruno@clisp.org>
85517         * modules/relocatable-prog-wrapper: New file.
85518         * modules/relocatable (Depends-on): Add it. Remove all other
85519         dependencies except progname.
85520         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
85522         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
85523         (gl_FUNC_STRERROR): Nop.
85524         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
85526         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
85527         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
85529         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
85530         (gl_FUNC_READLINK): Update.
85532         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
85534 2007-03-03  Bruno Haible  <bruno@clisp.org>
85536         * lib/xreadlink.c: Include <unistd.h> unconditionally.
85537         * modules/xreadlink (Depends-on): Add unistd.
85538         * modules/xreadlink-with-size (Depends-on): Likewise.
85540 2007-03-03  Bruno Haible  <bruno@clisp.org>
85542         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
85543         extracted from gt_FUNC_SETENV.
85544         (gt_FUNC_SETENV): Remove macro.
85545         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
85546         remove gt_FUNC_SETENV.
85548 2007-03-03  Bruno Haible  <bruno@clisp.org>
85550         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
85551         ENABLE_RELOCATABLE here.
85552         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
85554 2007-03-03  Bruno Haible  <bruno@clisp.org>
85556         * modules/rbtreehash-list-tests (Depends-on): Add progname.
85557         * tests/test-rbtreehash_list.c: Include progname.h.
85558         (main): Call set_program_name.
85560         * modules/rbtree-oset-tests (Depends-on): Add progname.
85561         * tests/test-rbtree_oset.c: Include progname.h.
85562         (main): Call set_program_name.
85564         * modules/rbtree-list-tests (Depends-on): Add progname.
85565         * tests/test-rbtree_list.c: Include progname.h.
85566         (main): Call set_program_name.
85568         * modules/linked-list-tests (Depends-on): Add progname.
85569         * tests/test-linked_list.c: Include progname.h.
85570         (main): Call set_program_name.
85572 2007-03-03  Bruno Haible  <bruno@clisp.org>
85574         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
85575         All uses of __restrict changed to _Restrict_.
85576         * lib/glob_.h (__restrict): Remove macro.
85578 2007-03-02  Bruno Haible  <bruno@clisp.org>
85580         * modules/gettext (configure.ac): Require gettext infrastructure
85581         from version 0.16.1.
85583 2007-03-02  Bruno Haible  <bruno@clisp.org>
85585         * modules/linkedhash-list-tests (Depends-on): Add progname.
85586         * tests/test-linkedhash_list.c: Include progname.h.
85587         (main): Call set_program_name.
85589         * modules/carray-list-tests (Depends-on): Add progname.
85590         * tests/test-carray_list.c: Include progname.h.
85591         (main): Call set_program_name.
85593         * modules/avltreehash-list-tests (Depends-on): Add progname.
85594         * tests/test-avltreehash_list.c: Include progname.h.
85595         (main): Call set_program_name.
85597         * modules/avltree-oset-tests (Depends-on): Add progname.
85598         * tests/test-avltree_oset.c: Include progname.h.
85599         (main): Call set_program_name.
85601         * modules/avltree-list-tests (Depends-on): Add progname.
85602         * tests/test-avltree_list.c: Include progname.h.
85603         (main): Call set_program_name.
85605         * modules/array-oset-tests (Depends-on): Add progname.
85606         * tests/test-array_oset.c: Include progname.h.
85607         (main): Call set_program_name.
85609         * modules/array-list-tests (Depends-on): Add progname.
85610         * tests/test-array_list.c: Include progname.h.
85611         (main): Call set_program_name.
85613         * modules/argp-tests (Depends-on): Add progname.
85614         * tests/test-argp.c: Include argp.h first. Include progname.h.
85615         (main): Call set_program_name.
85617 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
85619         * doc/gnulib-tool.texi (Initial import): Reword description of
85620         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
85621         limited effect even if defined after the first system include.
85623 2007-03-01  Bruno Haible  <bruno@clisp.org>
85625         * build-aux/config.libpath: Update to libtool-1.5.22.
85626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85628 2007-03-01  Bruno Haible  <bruno@clisp.org>
85630         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
85631         foo_CFLAGS.
85632         Reported by Ralf Wildenhues.
85634 2007-03-01  Bruno Haible  <bruno@clisp.org>
85636         * build-aux/install-reloc: Remove object files left over by some
85637         compilers.
85638         Reported by Ralf Wildenhues.
85640 2007-03-01  Bruno Haible  <bruno@clisp.org>
85642         * build-aux/install-reloc: Break long lines.
85644 2007-03-01  Bruno Haible  <bruno@clisp.org>
85646         * doc/relocatable.texi: Document that it may not work on OpenBSD.
85647         Reported by Ralf Wildenhues.
85649 2007-03-01  Bruno Haible  <bruno@clisp.org>
85651         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
85652         include ordering constraints.
85654 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85656         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
85657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
85658         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
85659         as another example.
85660         * lib/time_.h: Fix misspelling.
85661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
85662         Require gl_HEADER_TIME_H_DEFAULTS.
85663         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
85664         * m4/time_r.m4 (gl_TIME_R): Likewise.
85665         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
85667 2007-03-01  Bruno Haible  <bruno@clisp.org>
85669         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
85670         * m4/utimens.m4 (gl_UTIMENS): Likewise.
85672 2007-03-01  Jim Meyering  <jim@meyering.net>
85674         * modules/xreadlink (Maintainer): Add my name.
85675         * modules/xreadlink-with-size (Depends-on): Alphabetize.
85677 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
85678             Bruno Haible  <bruno@clisp.org>
85680         * build-aux/install-reloc: Compile also c-ctype.c.
85681         * build-aux/relocatable.sh.in: New file.
85682         * doc/relocatable.texi: New file.
85683         * doc/relocatable-maint.texi: New file.
85684         * doc/gnulib.texi: Include relocatable-maint.texi.
85685         * lib/progreloc.c: Include unistd.h unconditionally.
85686         * lib/relocwrapper.c: Include unistd.h unconditionally.
85687         Include c-ctype.h.
85688         (add_dotbin): Use c_tolower.
85689         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
85690         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
85691         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
85692         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
85693         to m4/relocatable-lib.m4.
85694         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
85695         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
85696         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
85697         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
85698         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
85699         * modules/relocatable: New file.
85700         * modules/relocatable-lib: New file.
85701         * modules/relocatable-script: New file.
85703 2007-02-28  Bruno Haible  <bruno@clisp.org>
85705         Import --enable-relocatable infrastructure.
85706         * build-aux/config.libpath: New file, from GNU gettext.
85707         * build-aux/install-reloc: New file, from GNU gettext.
85708         * build-aux/reloc-ldflags: New file, from GNU gettext.
85709         * lib/relocatable.h: New file, from GNU gettext.
85710         * lib/relocatable.c: New file, from GNU gettext.
85711         * lib/relocwrapper.c: New file, from GNU gettext.
85712         * m4/relocatable.m4: New file, from GNU gettext.
85714 2007-02-28  Bruno Haible  <bruno@clisp.org>
85716         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
85718         * modules/xreadlink: New file, from GNU gettext with modifications.
85719         * lib/xreadlink.c: New file, from GNU gettext.
85720         * lib/xreadlink.h: Add comments.
85721         (xreadlink): New declaration.
85723         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
85724         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
85725         lib/xreadlink-with-size.c.
85726         (configure.ac): Remove gl_XREADLINK invocation.
85727         (Makefile.am): Augment lib_SOURCES.
85728         * m4/xreadlink.m4: Remove file.
85729         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
85730         (xreadlink_with_size): Renamed from xreadink.
85731         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
85732         * modules/canonicalize (Depends-on): Replace xreadlink with
85733         xreadlink-with-size.
85734         * lib/canonicalize.c (canonicalize_filename_mode): Update.
85736 2007-02-25  Jim Meyering  <jim@meyering.net>
85738         * build-aux/announce-gen: When complaining about excess arguments,
85739         list them.
85741 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85743         * README: Document signed integer overflow situation more
85744         accurately.
85746 2007-02-25  Bruno Haible  <bruno@clisp.org>
85748         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
85749         'a' or 'A' conversion.
85751 2007-02-25  Bruno Haible  <bruno@clisp.org>
85753         * modules/filename: Renamed from modules/pathname.
85754         (Files): Replace lib/pathname.h with lib/filename.h. Replace
85755         lib/concatpath.c with lib/concat-filename.c.
85756         (Makefile.am): Update.
85757         (Include): Replace pathname.h with filename.h.
85758         * lib/filename.h: Renamed from lib/pathname.h.
85759         (concatenated_filename): Renamed from concatenated_pathname.
85760         * lib/concat-filename.c: Renamed from lib/concatpath.c.
85761         (concatenated_filename): Renamed from concatenated_pathname.
85762         * lib/findprog.c: Include filename.h instead of pathname.h.
85763         (find_in_path): Update.
85764         * lib/javacomp.c: Include filename.h instead of pathname.h.
85765         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
85766         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
85767         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
85768         is_oldgcj_14_13_usable, is_javac_usable): Update.
85769         * lib/javaexec.c: Include filename.h instead of pathname.h.
85770         (execute_java_class): Update.
85771         * modules/findprog: Update.
85772         * modules/javacomp: Update.
85773         * modules/javaexec: Update.
85774         * MODULES.html.sh (File system functions): Add 'filename', remove
85775         'pathname'.
85777 2007-02-25  Bruno Haible  <bruno@clisp.org>
85779         * modules/printf-frexpl-tests: New file.
85780         * tests/test-printf-frexpl.c: New file.
85782         * modules/printf-frexpl: New file.
85783         * lib/printf-frexpl.h: New file.
85784         * lib/printf-frexpl.c: New file.
85785         * m4/printf-frexpl.m4: New file.
85787 2007-02-25  Bruno Haible  <bruno@clisp.org>
85789         * modules/printf-frexp-tests: New file.
85790         * tests/test-printf-frexp.c: New file.
85792         * modules/printf-frexp: New file.
85793         * lib/printf-frexp.h: New file.
85794         * lib/printf-frexp.c: New file.
85795         * m4/printf-frexp.m4: New file.
85797 2007-02-25  Bruno Haible  <bruno@clisp.org>
85799         Assume automake >= 1.10 for the tests.
85800         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
85801         * modules/arctwo-tests: Likewise.
85802         * modules/argp-tests: Likewise.
85803         * modules/avltree-list-tests: Likewise.
85804         * modules/avltree-oset-tests: Likewise.
85805         * modules/avltreehash-list-tests: Likewise.
85806         * modules/carray-list-tests: Likewise.
85807         * modules/crc-tests: Likewise.
85808         * modules/des-tests: Likewise.
85809         * modules/gc-arcfour-tests: Likewise.
85810         * modules/gc-arctwo-tests: Likewise.
85811         * modules/gc-des-tests: Likewise.
85812         * modules/gc-hmac-md5-tests: Likewise.
85813         * modules/gc-hmac-sha1-tests: Likewise.
85814         * modules/gc-md2-tests: Likewise.
85815         * modules/gc-md4-tests: Likewise.
85816         * modules/gc-md5-tests: Likewise.
85817         * modules/gc-pbkdf2-sha1-tests: Likewise.
85818         * modules/gc-rijndael-tests: Likewise.
85819         * modules/gc-sha1-tests: Likewise.
85820         * modules/gc-tests: Likewise.
85821         * modules/getaddrinfo-tests: Likewise.
85822         * modules/hmac-md5-tests: Likewise.
85823         * modules/hmac-sha1-tests: Likewise.
85824         * modules/linked-list-tests: Likewise.
85825         * modules/linkedhash-list-tests: Likewise.
85826         * modules/lock-tests: Likewise.
85827         * modules/md2-tests: Likewise.
85828         * modules/md4-tests: Likewise.
85829         * modules/md5-tests: Likewise.
85830         * modules/rbtree-list-tests: Likewise.
85831         * modules/rbtree-oset-tests: Likewise.
85832         * modules/rbtreehash-list-tests: Likewise.
85833         * modules/read-file-tests: Likewise.
85834         * modules/rijndael-tests: Likewise.
85835         * modules/stdint-tests: Likewise.
85836         * modules/tls-tests: Likewise.
85838 2007-02-24  Bruno Haible  <bruno@clisp.org>
85840         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
85841         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
85842         function; instead check whether isnan with a double argument links.
85843         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
85844         function; instead check whether isnan with a 'long double' argument
85845         links.
85846         Reported by Eric Blake <ebb9@byu.net>.
85848 2007-02-24  Bruno Haible  <bruno@clisp.org>
85850         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
85851         defined.
85852         * lib/isnanl.c: Remove all code. Just include isnan.c.
85853         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
85855 2007-02-25  Jim Meyering  <jim@meyering.net>
85857         Avoid conflicting types for 'unsetenv' on FreeBSD.
85858         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
85859         conflicting with FreeBSD's (5.0 and 6.1) function declaration
85860         in stdlib.h.
85862 2007-02-24  Bruno Haible  <bruno@clisp.org>
85864         * modules/isnanl-nolibm-tests: New file.
85865         * tests/test-isnanl.c: New file.
85867         * modules/isnanl-nolibm: New file.
85868         * lib/isnanl.h: New file.
85869         * lib/isnanl.c: New file.
85870         * m4/isnanl.m4: New file.
85872 2007-02-24  Bruno Haible  <bruno@clisp.org>
85874         * modules/isnan-nolibm-tests: New file.
85875         * tests/test-isnan.c: New file.
85877         * modules/isnan-nolibm: New file.
85878         * lib/isnan.h: New file.
85879         * lib/isnan.c: New file.
85880         * m4/isnan.m4: New file.
85882 2007-02-24  Bruno Haible  <bruno@clisp.org>
85884         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
85885         assume that an exponent fits in 20 bits.
85887 2007-02-24  Jim Meyering  <jim@meyering.net>
85889         * m4/regex.m4: Update the description of the configure-time option,
85890         --without-included-regex, to state accurately what the defaults are,
85891         and perhaps to give people an idea why using this option is risky.
85893 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
85895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
85896         loops on small arguments.  This attempts to avoid the problem
85897         Bruno Haible reported for AIX 4.3.2 in
85898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
85900 2007-02-23  Bruno Haible  <bruno@clisp.org>
85902         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
85903         Needed for help2man.
85905 2007-02-23  Karl Berry  <karl@gnu.org>
85907         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
85908         exists, foo.h should be cvs-ignored, not committed.
85910 2007-02-23  Eric Blake  <ebb9@byu.net>
85912         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
85913         * lib/stat-time.h (includes): Likewise.
85914         * lib/utimecmp.c (includes): Likewise.
85915         * lib/utimens.h (includes): Likewise.
85916         * lib/getdate.y (includes): Also include "timespec.h" for use
85917         internal to the module.
85918         * modules/utimens (Depends-on): Revert yesterday's patch.
85919         * modules/nanosleep (Depends-on): Add missing dependency.
85921 2007-02-22  Bruno Haible  <bruno@clisp.org>
85923         * lib/glob.c: Don't include getlogin_r.h.
85925 2007-02-22  Jim Meyering  <jim@meyering.net>
85927         * modules/utimens (Depends-on): Add timespec, required for
85928         utimens.h's inclusion of timespec.h.
85930 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
85932         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
85933         long unreadable paths in GNU/Linux.  Problem reported by Andreas
85934         Schwab in
85935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
85936         I'll try to think of a better way to fix the Solaris problem.
85938         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
85939         like glibc; on Solaris 10, it fails with errno == EINVAL.
85940         POSIX says the behavior is unspecified if the first argument is NULL,
85941         so play it safe and never pass NULL to the system getcwd.
85943 2007-02-21  Jim Meyering  <jim@meyering.net>
85945         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
85946         of gettimeofday.  It would conflict with the one now always
85947         provided via sys_time_.h.  Reported by Matthew Woehlke, as
85948         an IRIX 6.5 build failure.
85950 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
85952         Minor fixups to port to Solaris 10 with Sun C 5.8.
85953         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
85954         * modules/getcwd (Depends-on): Add dirfd.
85955         * lib/putenv.c (putenv): #undef it.
85956         (rpl_putenv): New decl.
85957         (malloc, free): Include <stdlib.h> rather than prototyping separately.
85959 2007-02-20  Bruno Haible  <bruno@clisp.org>
85961         * modules/stdio-tests: New file.
85962         * tests/test-stdio.c: New file.
85964         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
85965         (Depends-on): Add stdio.
85966         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
85967         (Include): Use <stdio.h> instead of vsnprintf.h.
85968         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
85969         HAVE_DECL_VSNPRINTF.
85970         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
85972         * modules/snprintf (Files): Remove lib/snprintf.h.
85973         (Depends-on): Add stdio.
85974         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
85975         (Include): Use <stdio.h> instead of snprintf.h.
85976         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
85977         HAVE_DECL_SNPRINTF.
85978         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
85979         * lib/getaddrinfo.c: Likewise.
85981         * modules/stdio: New file.
85982         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
85983         * lib/snprintf.h: Remove file.
85984         * lib/vsnprintf.h: Remove file.
85985         * lib/.cppi-disable: Remove snprintf.h.
85986         * m4/stdio_h.m4: New file.
85987         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
85989 2007-02-20  Jim Meyering  <jim@meyering.net>
85991         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
85992         used by e.g., mingw.  From Bruno Haible.
85994 2007-02-19  Bruno Haible  <bruno@clisp.org>
85996         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
85997         warnings.
85998         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86000 2007-02-19  Bruno Haible  <bruno@clisp.org>
86002         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
86003         from mingw users.
86005 2007-02-19  Bruno Haible  <bruno@clisp.org>
86007         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
86008         warnings.
86009         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
86011 2007-02-19  Jim Meyering  <jim@meyering.net>
86013         Don't use FD after a successful "fdopendir (fd)".
86014         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
86015         Reset it by calling dirfd on the just-obtained DIR*.
86017         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
86018         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
86020 2007-02-18  Bruno Haible  <bruno@clisp.org>
86022         * lib/readlink.c: Include <unistd.h>.
86023         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
86024         HAVE_READLINK.
86025         * modules/readlink (Depends-on): Add unistd.
86026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86027         (Include): Add <unistd.h>.
86029         * lib/getlogin_r.h: Remove file.
86030         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
86031         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
86032         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
86033         HAVE_DECL_GETLOGIN_R.
86034         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
86035         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86036         (Include): Use <unistd.h> instead of getlogin_r.h.
86038         * lib/getcwd.h: Remove file.
86039         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
86040         * lib/xgetcwd.c: Likewise.
86041         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
86042         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
86043         * modules/getcwd (Files): Remove lib/getcwd.h.
86044         (Depends-on): Add unistd.
86045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86046         (Include): Use <unistd.h> instad of getcwd.h.
86048         * lib/ftruncate.c: Include <unistd.h> first.
86049         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
86050         Set HAVE_FTRUNCATE.
86051         * modules/ftruncate (Depends-on): Add unistd.
86052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86054         * lib/fchdir.c: Include <unistd.h> first.
86055         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
86056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
86057         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
86058         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86059         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
86061         * lib/dup2.c: Include <unistd.h> first.
86062         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
86063         HAVE_DUP2.
86064         * modules/dup2 (Depends-on): Add unistd.
86065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86067         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
86068         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
86069         REPLACE_CHOWN. Don't define chown as a macro here.
86070         * modules/chown (Depends-on): Add unistd.
86071         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86073         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
86074         Add definition for GL_LINK_WARNING.
86075         (chown, dup2): New declarations.
86076         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
86077         link warning.
86078         (ftruncate): New declaration.
86079         (getcwd): New declaration, taken from old getcwd.h.
86080         (getlogin_r): New declaration, taken from old getlogin_r.h.
86081         (readlink): New declaration.
86082         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
86083         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
86084         (gl_PREREQ_UNISTD): Remove macro.
86085         (gl_UNISTD_MODULE_INDICATOR): New macro.
86086         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
86087         many new variables. Don't set UNISTD_H.
86088         * modules/unistd (Description): Change.
86089         (Depends-on): Add link-warning.
86090         (configure.ac): Update.
86091         (Makefile.am): Create unistd.h always. Substitute many new variables
86092         into it.
86094 2007-02-18  Bruno Haible  <bruno@clisp.org>
86096         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
86097         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
86098         HAVE_GETSUBOPT.
86099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
86100         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
86101         * lib/getsubopt.h: Remove file.
86102         * modules/getsubopt (Files): Remove lib/getsubopt.h.
86103         (Depends-on): Add stdlib.
86104         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86105         (Includes): Use <stdlib.h> instead of getsubopt.h.
86106         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
86107         Set HAVE_GETSUBOPT.
86108         * lib/getsubopt.c: Don't include getsubopt.h.
86110 2007-02-18  Bruno Haible  <bruno@clisp.org>
86112         * modules/fchdir (Depends-on): Add dup2.
86114 2007-02-18  Bruno Haible  <bruno@clisp.org>
86116         * lib/stdlib_.h: Handle glibc's special invocation convention
86117         specially.
86119 2007-02-18  Bruno Haible  <bruno@clisp.org>
86121         * modules/stdlib-tests: New file.
86122         * tests/test-stdlib.c: New file.
86124         * modules/mkstemp (Files): Remove lib/mkstemp.h.
86125         (Depends-on): Add stdlib.
86126         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86127         (Includes): Use <stdlib.h> instead of mkstemp.h.
86128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
86129         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
86130         * lib/mkstemp.c: Don't include mkstemp.h.
86131         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
86132         * lib/stdlib--.h: Don't include mkstemp.h.
86134         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
86135         (Depends-on): Add stdlib.
86136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86137         (Includes): Use <stdlib.h> instead of mkdtemp.h.
86138         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
86139         HAVE_MKDTEMP.
86140         * lib/mkdtemp.c: Don't include mkdtemp.h.
86141         * lib/clean-temp.c: Don't include mkdtemp.h.
86143         * modules/exit (Files): Remove lib/exit.h.
86144         (Depends-on): Add stdlib.
86145         (Makefile.am): Remove lib_SOURCES.
86146         (Include): Use <stdlib.h> instead of exit.h.
86147         * lib/argmatch.c: Don't include exit.h.
86148         * lib/execute.c: Likewise.
86149         * lib/pagealign_alloc.c: Likewise.
86150         * lib/pipe.c: Likewise.
86151         * lib/wait-process.c: Likewise.
86152         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
86153         * lib/exitfail.c: Likewise.
86154         * lib/savewd.c: Likewise.
86155         * lib/xsetenv.c: Likewise.
86157         * modules/stdlib: New file.
86158         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
86159         and extra comments about mkstemp().
86160         * lib/exit.h: Remove file.
86161         * lib/mkdtemp.h: Remove file.
86162         * lib/mkstemp.h: Remove file.
86163         * m4/stdlib_h.m4: New file.
86164         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
86166 2007-02-18  Bruno Haible  <bruno@clisp.org>
86168         * modules/math-tests: New file.
86169         * tests/test-math.c: New file.
86171         * modules/math: New file.
86172         * modules/mathl (Files): Remove lib/mathl.h.
86173         (Depends-on): Add math.
86174         (Makefile.am): Don't mention mathl.h.
86175         (Include): Use <math.h> instead of mathl.h.
86176         * lib/math_.h: New file.
86177         * lib/mathl.h: Remove file.
86178         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
86179         mathl.h.
86180         * lib/asinl.c: Likewise.
86181         * lib/atanl.c: Likewise.
86182         * lib/ceill.c: Likewise.
86183         * lib/cosl.c: Likewise.
86184         * lib/expl.c: Likewise.
86185         * lib/floorl.c: Likewise.
86186         * lib/frexpl.c: Likewise.
86187         * lib/ldexpl.c: Likewise.
86188         * lib/logl.c: Likewise.
86189         * lib/sincosl.c: Likewise.
86190         * lib/sinl.c: Likewise.
86191         * lib/sqrtl.c: Likewise.
86192         * lib/tanl.c: Likewise.
86193         * lib/trigl.c: Likewise.
86194         * m4/math_h.m4: New file.
86195         * MODULES.html.sh (Mathematics): Add math.
86197 2007-02-17  Bruno Haible  <bruno@clisp.org>
86199         * modules/wctype-tests: New file.
86200         * tests/test-wctype.c: New file.
86202         * modules/wchar-tests: New file.
86203         * tests/test-wchar.c: New file.
86205         * modules/unistd-tests: New file.
86206         * tests/test-unistd.c: New file.
86208         * modules/time-tests: New file.
86209         * tests/test-time.c: New file.
86211         * modules/sysexits-tests: New file.
86212         * tests/test-sysexits.c: New file.
86214         * modules/sys_time-tests: New file.
86215         * tests/test-sys_time.c: New file.
86217         * modules/sys_stat-tests: New file.
86218         * tests/test-sys_stat.c: New file.
86220         * modules/sys_socket-tests: New file.
86221         * tests/test-sys_socket.c: New file.
86223         * modules/sys_select-tests: New file.
86224         * tests/test-sys_select.c: New file.
86226         * modules/string-tests: New file.
86227         * tests/test-string.c: New file.
86229         * modules/stdbool-tests: New file.
86230         * tests/test-stdbool.c: New file.
86232         * modules/netinet_in-tests: New file.
86233         * tests/test-netinet_in.c: New file.
86235         * modules/inttypes-tests: New file.
86236         * tests/test-inttypes.c: New file.
86238         * modules/fcntl-tests: New file.
86239         * tests/test-fcntl.c: New file.
86241         * modules/byteswap-tests: New file.
86242         * tests/test-byteswap.c: New file.
86244         * modules/arpa_inet-tests: New file.
86245         * tests/test-arpa_inet.c: New file.
86247 2007-02-17  Bruno Haible  <bruno@clisp.org>
86249         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
86250         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
86251         if the corresponding module is not enabled. Emit link warnings if
86252         the function is used nevertheless.
86253         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
86254         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
86255         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
86256         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
86257         * modules/inttypes (Depends-on): Add link-warning.
86258         (Makefile.am): Copy the contents of build-aux/link-warning.h into
86259         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
86260         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
86261         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
86262         * modules/imaxdiv (configure.ac): Likewise.
86263         * modules/strtoimax (configure.ac): Likewise.
86264         * modules/strtoumax (configure.ac): Likewise.
86266 2007-02-17  Bruno Haible  <bruno@clisp.org>
86268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
86269         gl_STRING_MODULE_INDICATOR_DEFAULTS.
86270         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
86271         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
86273 2007-02-17  Bruno Haible  <bruno@clisp.org>
86275         * modules/link-warning: New file.
86276         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
86277         * lib/string_.h (GL_LINK_WARNING): Remove definition.
86278         * modules/string (Depends-on): Add link-warning.
86279         (Makefile.am): Copy the contents of build-aux/link-warning.h into
86280         string.h.
86281         * MODULES.html.sh (Support for building libraries and executables): Add
86282         link-warning.
86284 2007-02-17  Bruno Haible  <bruno@clisp.org>
86286         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
86287         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
86288         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
86289         long lines.
86291 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
86292             Bruno Haible  <bruno@clisp.org>
86294         * modules/tmpfile: New file.
86295         * lib/tmpfile.c: New file.
86296         * m4/tmpfile.m4: New file.
86297         * MODULES.html.sh (func_all_modules): New section "Input/output".
86299 2007-02-15  Bruno Haible  <bruno@clisp.org>
86301         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
86302         (supports_delete_on_close): New function.
86303         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
86305 2007-02-14  Bruno Haible  <bruno@clisp.org>
86307         * modules/mbspcasecmp-tests: New file.
86308         * tests/test-mbspcasecmp.sh: New file.
86309         * tests/test-mbspcasecmp.c: New file.
86311         New module mbspcasecmp.
86312         * modules/mbspcasecmp: New file.
86313         * lib/mbspcasecmp.c: New file.
86314         * lib/string_.h (strncasecmp): Change warning message.
86315         (mbspcasecmp): New declaration.
86316         * m4/mbspcasecmp.m4: New file.
86317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86318         GNULIB_MBSPCASECMP.
86319         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
86320         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
86322 2007-02-14  Bruno Haible  <bruno@clisp.org>
86324         * modules/mbsncasecmp-tests: New file.
86325         * tests/test-mbsncasecmp.sh: New file.
86326         * tests/test-mbsncasecmp.c: New file.
86328         New module mbsncasecmp.
86329         * modules/mbsncasecmp: New file.
86330         * lib/mbsncasecmp.c: New file.
86331         * lib/string_.h (mbsncasecmp): New declaration.
86332         * m4/mbsncasecmp.m4: New file.
86333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86334         GNULIB_MBSNCASECMP.
86335         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
86336         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
86338 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
86340         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
86341         Verify that it doesn't overlap with our flags.
86342         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
86343         do not have the desired effect in multibyte locales; instead, use
86344         mbscasecmp.
86345         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
86346         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
86347         we don't require GNU fnmatch ourselves (if our users require it, they
86348         should do so explicitly).
86350         Fix regex code so it doesn't rely on strcasecmp.
86351         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
86352         Otherwise, include gnulib's langinfo.h.
86353         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
86354         undesirable behavior in non-C locales.  Instead, rely on localecharset.
86355         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
86356         * modules/regex (FILES): Remove m4/codeset.m4.
86357         (Depends-on): Add localcharset.  Remove strcase.
86359 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86361         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
86362         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
86364 2007-02-13  Bruno Haible  <bruno@clisp.org>
86366         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
86367         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86369 2007-02-12  Bruno Haible  <bruno@clisp.org>
86371         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
86372         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
86373         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
86374         time warning rather than a link error.
86376 2007-02-12  Bruno Haible  <bruno@clisp.org>
86378         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
86379         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
86380         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86382 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
86384         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
86385         args, not 2.
86387 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
86389         New module 'time', so that apps can include <time.h> as per
86390         POSIX and GNU instead of separate include files like time_r.h
86391         and timegm.h.  This implementation tries out a simpler approach
86392         for replacing decls in standard include files (as compared to
86393         the string module), somewhat as an experiment.
86395         * config/srclist.txt: Comment out mktime.c for now.
86396         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
86397         since it doesn't apply any more.  Use generic wording instead.
86398         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
86399         'time'.
86400         * lib/time_.h, m4/time_h.m4, modules/time: New files.
86401         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
86402         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
86403         Don't include <sys/types.h>; no longer needed since we assume C89.
86404         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
86405         * lib/strftime.c: Likewise.
86406         * lib/time_r.c: Likewise.
86407         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
86408         * lib/nanosleep.c: Include <time.h> first, to check interface.
86409         * lib/strptime.c: Likewise.
86410         * lib/time_r.c: Likewise.
86411         * lib/timegm.c: Likewise.
86412         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
86413         needed.
86414         * lib/timegm.c: Don't include timegm.h; no longer needed.
86415         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
86416         time.h now handles any problems in that area.
86417         (struct timespec, nanosleep): Remove; time.h now arranges for these.
86418         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
86419         that time.h defines struct timespec.
86420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
86421         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
86422         handles that.
86423         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
86424         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
86425         needed.  Set REPLACE_LOCALTIME.
86426         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
86427         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
86428         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
86429         nanosleep; time_h.m4 now does that.  Don't require
86430         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
86431         module handles this now.
86432         * modules/getdate (Depends-on): Remove timespec.  Add time.
86433         * modules/nanosleep (Depends-on): Likewise.
86434         * modules/stat-time (Depends-on): Likewise.
86435         * modules/nanosleep (Include): Include time.h, not timespec.h.
86436         * modules/strptime (Files): Remove lib/strptime.h.
86437         (Depends-on): Add extensions, time.
86438         (Include): Include time.h, not strptime.h.
86439         * modules/time_r (Files): Remove lib/time_r.h.
86440         (Depends-on): Add time.
86441         (Include): Include time.h, not time_r.h.
86442         * modules/timegm: Likewise.
86443         * modules/timespec (Description): Now does timespec-related decls
86444         of our own, instead of struct timespec itself.
86445         (Depends-on): Add time; remove extensions.
86446         (Maintainer): Add self.
86447         * modules/utimecmp (Depends-on): Add time; remove timespec.
86448         * modules/utimens (Depends-on): Likewise.
86449         * modules/xnanosleep (Depends-on): Likewise.
86451 2007-02-11  Bruno Haible  <bruno@clisp.org>
86453         * lib/c-strstr.c: Include allocsa.h.
86454         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86455         * lib/c-strcasestr.c: Include allocsa.h.
86456         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86457         * lib/strcasestr.c: Include allocsa.h.
86458         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86459         * lib/mbsstr.c: Include allocsa.h.
86460         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
86461         allocsa/freesa instead of malloc/free.
86462         * lib/mbscasestr.c: Include allocsa.h.
86463         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
86464         allocsa/freesa instead of malloc/free.
86465         * modules/c-strstr (Depends-on): Add allocsa.
86466         * modules/c-strcasestr (Depends-on): Likewise.
86467         * modules/strcasestr (Depends-on): Likewise.
86468         * modules/mbsstr (Depends-on): Likewise.
86469         * modules/mbscasestr (Depends-on): Likewise.
86471 2007-02-11  Bruno Haible  <bruno@clisp.org>
86473         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
86475         * modules/mbsspn-tests: New file.
86476         * tests/test-mbsspn.sh: New file.
86477         * tests/test-mbsspn.c: New file.
86479 2007-02-11  Bruno Haible  <bruno@clisp.org>
86481         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
86483         * modules/mbspbrk-tests: New file.
86484         * tests/test-mbspbrk.sh: New file.
86485         * tests/test-mbspbrk.c: New file.
86487 2007-02-11  Bruno Haible  <bruno@clisp.org>
86489         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
86490         unneeded cast.
86492         * modules/mbscspn-tests: New file.
86493         * tests/test-mbscspn.sh: New file.
86494         * tests/test-mbscspn.c: New file.
86496 2007-02-11  Bruno Haible  <bruno@clisp.org>
86498         * modules/mbscasecmp-tests: New file.
86499         * tests/test-mbscasecmp.sh: New file.
86500         * tests/test-mbscasecmp.c: New file.
86502 2007-02-11  Bruno Haible  <bruno@clisp.org>
86504         Ensure O(n) worst-case complexity of mbscasestr.
86505         * lib/mbscasestr.c: Include stdbool.h.
86506         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
86507         functions.
86508         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
86509         the bookkeeping indicates that it's worth it.
86510         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
86512         * modules/mbscasestr-tests: New file.
86513         * tests/test-mbscasestr1.c: New file.
86514         * tests/test-mbscasestr2.sh: New file.
86515         * tests/test-mbscasestr2.c: New file.
86516         * tests/test-mbscasestr3.sh: New file.
86517         * tests/test-mbscasestr3.c: New file.
86518         * tests/test-mbscasestr4.sh: New file.
86519         * tests/test-mbscasestr4.c: New file.
86520         * m4/locale-tr.m4: New file.
86522 2007-02-11  Bruno Haible  <bruno@clisp.org>
86524         Ensure O(n) worst-case complexity of mbsstr.
86525         * lib/mbsstr.c: Include stdbool.h.
86526         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
86527         functions.
86528         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
86529         bookkeeping indicates that it's worth it.
86530         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
86532         * modules/mbsstr-tests: New file.
86533         * tests/test-mbsstr1.c: New file.
86534         * tests/test-mbsstr2.sh: New file.
86535         * tests/test-mbsstr2.c: New file.
86536         * tests/test-mbsstr3.sh: New file.
86537         * tests/test-mbsstr3.c: New file.
86538         * m4/locale-fr.m4: New file.
86540 2007-02-11  Bruno Haible  <bruno@clisp.org>
86542         * lib/mbsrchr.c (mbsrchr): Fix bug.
86544         * modules/mbsrchr-tests: New file.
86545         * tests/test-mbsrchr.sh: New file.
86546         * tests/test-mbsrchr.c: New file.
86548 2007-02-11  Bruno Haible  <bruno@clisp.org>
86550         * lib/mbschr.c (mbschr): Fix bug.
86552         * modules/mbschr-tests: New file.
86553         * tests/test-mbschr.sh: New file.
86554         * tests/test-mbschr.c: New file.
86555         * m4/locale-zh.m4: New file.
86557 2007-02-11  Bruno Haible  <bruno@clisp.org>
86559         Support for copying multibyte string iterators.
86560         * lib/mbiter.h: Include <string.h>.
86561         (mbiter_multi_copy): New function.
86562         (mbi_copy): New macro.
86563         * lib/mbuiter.h: Include <string.h>.
86564         (mbuiter_multi_copy): New function.
86565         (mbui_copy): New macro.
86567 2007-02-11  Bruno Haible  <bruno@clisp.org>
86569         New module mbslen.
86570         * modules/mbslen: New file.
86571         * lib/mbslen.c: New file.
86572         * lib/string_.h (mbslen): New declaration.
86573         * m4/mbslen.m4: New file.
86574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86575         GNULIB_MBSLEN.
86576         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
86577         * MODULES.html.sh (Internationalization functions): Add mbslen.
86579 2007-02-11  Bruno Haible  <bruno@clisp.org>
86581         Ensure O(n) worst-case complexity of strcasestr substitute.
86582         * lib/strcasestr.c: Include stdbool.h.
86583         (knuth_morris_pratt): New function.
86584         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
86585         bookkeeping indicates that it's worth it.
86586         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
86588         * modules/strcasestr-tests: New file.
86589         * tests/test-strcasestr.c: New file.
86591 2007-02-11  Bruno Haible  <bruno@clisp.org>
86593         Ensure O(n) worst-case complexity of c_strcasestr.
86594         * lib/c-strcasestr.c: Include stdbool.h, string.h.
86595         (knuth_morris_pratt): New function.
86596         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
86597         the bookkeeping indicates that it's worth it.
86598         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
86600         * modules/c-strcasestr-tests: New file.
86601         * tests/test-c-strcasestr.c: New file.
86603 2007-02-11  Bruno Haible  <bruno@clisp.org>
86605         Ensure O(n) worst-case complexity of c_strstr.
86606         * lib/c-strstr.c: Include stdbool.h, string.h.
86607         (knuth_morris_pratt): New function.
86608         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
86609         bookkeeping indicates that it's worth it.
86610         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
86612         * lib/c-strstr.c: Complete rewrite for maintainability.
86614         * modules/c-strstr-tests: New file.
86615         * tests/test-c-strstr.c: New file.
86617 2007-02-11  Bruno Haible  <bruno@clisp.org>
86619         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
86620         5.2.1 and earlier, whereby \055 was treated just like the range
86621         delimiter '-'.
86622         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86624 2007-02-08  Bruno Haible  <bruno@clisp.org>
86626         * modules/regex (Depends-on): Add stdbool.
86627         Reported by Dalibor Topic <robilad@kaffe.org>.
86629 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
86631         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
86632         Prefer returning from main to exiting from it.
86633         Remove unnecessary parens after sizeof.
86635 2007-02-05  Bruno Haible  <bruno@clisp.org>
86637         New module mbssep.
86638         * modules/mbssep: New file.
86639         * lib/mbssep.c: New file.
86640         * lib/string_.h (strsep): Add a conditional link warning.
86641         (mbssep): New declaration.
86642         * m4/mbssep.m4: New file.
86643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86644         GNULIB_MBSSEP.
86645         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
86646         * MODULES.html.sh (Internationalization functions): Add mbssep.
86648 2007-02-05  Bruno Haible  <bruno@clisp.org>
86650         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
86651         Optimize search in case of 1 delimiter.
86653 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
86655         * lib/acl.h: Include sys/types.h before sys/acl.h.
86657 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
86659         Merge upstream fix for glibc bugzilla #3957:
86661         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
86663         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
86664         bit for RE_HAT_LISTS_NOT_NEWLINE.
86665         (build_charclass_op): Remove bogus comment.
86667 2007-02-05  Simon Josefsson  <simon@josefsson.org>
86669         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
86671 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
86673         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
86674         * lib/memmem.c [!defined _LIBC]: Include config.h.
86676 2007-02-04  Bruno Haible  <bruno@clisp.org>
86678         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
86679         warning message.
86681 2007-02-04  Bruno Haible  <bruno@clisp.org>
86683         New module mbstok_r.
86684         * modules/mbstok_r: New file.
86685         * lib/mbstok_r.c: New file.
86686         * lib/string_.h (strtok_r): Change argument names to match the
86687         comments. Add a conditional link warning.
86688         (mbstok_r): New declaration.
86689         * m4/mbstok_r.m4: New file.
86690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86691         GNULIB_MBSTOK_R.
86692         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
86693         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
86695 2007-02-04  Bruno Haible  <bruno@clisp.org>
86697         New module mbsspn.
86698         * modules/mbsspn: New file.
86699         * lib/mbsspn.c: New file.
86700         * lib/string_.h (strspn): Add a conditional link warning.
86701         (mbsspn): New declaration.
86702         * m4/mbsspn.m4: New file.
86703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86704         GNULIB_MBSSPN.
86705         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
86706         * MODULES.html.sh (Internationalization functions): Add mbsspn.
86708 2007-02-04  Bruno Haible  <bruno@clisp.org>
86710         New module mbspbrk.
86711         * modules/mbspbrk: New file.
86712         * lib/mbspbrk.c: New file.
86713         * lib/string_.h (strpbrk): Add a conditional link warning.
86714         (mbspbrk): New declaration.
86715         * m4/mbspbrk.m4: New file.
86716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86717         GNULIB_MBSPBRK.
86718         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
86719         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
86721 2007-02-04  Bruno Haible  <bruno@clisp.org>
86723         New module mbscspn.
86724         * modules/mbscspn: New file.
86725         * lib/mbscspn.c: New file.
86726         * lib/string_.h (strcspn): Add a conditional link warning.
86727         (mbscspn): New declaration.
86728         * m4/mbscspn.m4: New file.
86729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86730         GNULIB_MBSCSPN.
86731         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
86732         * MODULES.html.sh (Internationalization functions): Add mbscspn.
86734 2007-02-04  Bruno Haible  <bruno@clisp.org>
86736         New module mbscasestr, reduced goal of strcasestr.
86737         * modules/mbscasestr: New file.
86738         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
86739         (mbscasestr): Renamed from strcasestr.
86740         * lib/strcasestr.c: Don't include mbuiter.h.
86741         (strcasestr): Remove support for multibyte locales.
86742         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
86743         Change the conditional link warning.
86744         (mbscasestr): New declaration.
86745         * m4/mbscasestr.m4: New file.
86746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
86747         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
86748         REPLACE_STRCASESTR.
86749         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
86750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86751         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86752         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
86753         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
86754         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86755         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
86756         (Depends-on): Remove mbuiter.
86757         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
86759 2007-02-04  Bruno Haible  <bruno@clisp.org>
86761         Simplify handling of strncasecmp.
86762         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
86763         the conditional link warning.
86764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86765         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
86766         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
86767         * modules/strcase (configure.ac): Don't invoke
86768         gl_STRING_MODULE_INDICATOR.
86769         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
86771 2007-02-04  Bruno Haible  <bruno@clisp.org>
86773         New module mbscasecmp, reduced goal of strcasecmp.
86774         * modules/mbscasecmp: New file.
86775         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
86776         (mbscasecmp): Renamed from strcasecmp.
86777         * lib/strcasecmp.c: Don't include mbuiter.h.
86778         (strcasecmp): Remove support for multibyte locales.
86779         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
86780         Change the conditional link warning.
86781         (mbscasecmp): New declaration.
86782         * m4/mbscasecmp.m4: New file.
86783         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
86784         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
86785         REPLACE_STRCASECMP.
86786         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
86787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86788         GNULIB_MBSCASECMP.
86789         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
86790         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
86791         * modules/strcase (Files): Remove m4/mbrtowc.m4.
86792         (Depends-on): Remove mbuiter.
86793         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
86795 2007-02-04  Bruno Haible  <bruno@clisp.org>
86797         New module mbsstr. Remove module strstr.
86798         * modules/mbsstr: New file.
86799         * modules/strstr: Remove file.
86800         * lib/mbsstr.c: Renamed from lib/strstr.c.
86801         (mbsstr): Renamed from strstr.
86802         * lib/string_.h (strstr): Remove declaration. Change the conditional
86803         link warning.
86804         (mbsstr): New declaration.
86805         * m4/mbsstr.m4: New file.
86806         * m4/strstr.m4: Remove file.
86807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
86808         REPLACE_STRSTR.
86809         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
86810         Don't initialize GNULIB_STRSTR.
86811         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
86812         substitute GNULIB_STRSTR and REPLACE_STRSTR.
86813         * MODULES.html.sh (Internationalization functions): Add mbsstr.
86814         (Support for systems lacking ANSI C 89): Remove strstr.
86816 2007-02-04  Bruno Haible  <bruno@clisp.org>
86818         New module mbsrchr.
86819         * modules/mbsrchr: New file.
86820         * lib/mbsrchr.c: New file.
86821         * lib/string_.h (strrchr): Add a conditional link warning.
86822         (mbsrchr): New declaration.
86823         * m4/mbsrchr.m4: New file.
86824         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86825         GNULIB_MBSRCHR.
86826         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
86827         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
86829 2007-02-04  Bruno Haible  <bruno@clisp.org>
86831         New module mbschr.
86832         * modules/mbschr: New file.
86833         * lib/mbschr.c: New file.
86834         * lib/string_.h (strchr): Add a conditional link warning.
86835         (mbschr): New declaration.
86836         * m4/mbschr.m4: New file.
86837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86838         GNULIB_MBSCHR.
86839         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
86840         * MODULES.html.sh (Internationalization functions): Add mbschr.
86842 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
86844         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
86846         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
86848 2007-02-04  Bruno Haible  <bruno@clisp.org>
86850         New module description section 'configure.ac-early'.
86851         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
86852         (func_get_autoconf_early_snippet): New function.
86853         (func_import, func_create_testdir): Use it. Remove special cases for
86854         modules 'extensions' and 'lock'.
86855         * modules/extensions (configure.ac-early): Require
86856         gl_USE_SYSTEM_EXTENSIONS.
86857         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
86859 2007-02-04  Bruno Haible  <bruno@clisp.org>
86861         Make use of gcj-4.3's -fsource and -ftarget option.
86862         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
86863         and if so try the options -fsource and -ftarget.
86864         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
86865         source_version, ftarget_option, target_version arguments.
86866         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
86867         (is_envjavac_oldgcj_14_14_usable): Renamed from
86868         is_envjavac_gcj_14_14_usable.
86869         (is_envjavac_oldgcj_14_13_usable): Renamed from
86870         is_envjavac_gcj_14_13_usable.
86871         (is_gcj_present): Update.
86872         (is_gcj_43, is_gcj43_usable): New functions.
86873         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
86874         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
86875         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
86876         try the options -fsource and -ftarget.
86878 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86880         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
86881         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
86882         larger value.
86884 2007-02-03  Jim Meyering  <jim@meyering.net>
86886         Give tools a better chance to allocate space for very large buffers.
86887         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
86889         Make pwd and readlink work also when run with an unreadable parent dir
86890         on systems with openat support.
86891         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
86892         provided getcwd function, even when we have openat support.
86893         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
86895 2007-02-02  Bruno Haible  <bruno@clisp.org>
86897         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
86898         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
86899         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
86900         portability problems if one of these functions is only used on specific
86901         platforms.
86902         Reported by Paul Eggert.
86904 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
86906         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
86907         is causing more trouble than it's curing.
86908         * lib/regex_internal.h (__mempcpy): Remove.
86909         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
86910         (and make the code a tad smaller to boot).
86911         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
86913 2007-02-02  Jim Meyering  <jim@meyering.net>
86915         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
86916         section, not in the Makefile.am: one.
86918 2007-02-02  Eric Blake  <ebb9@byu.net>
86920         * lib/strchrnul.c: Always include config.h first.
86922         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
86923         gnulib strstr is not necessary here.
86925 2007-02-02  Simon Josefsson  <simon@josefsson.org>
86927         * m4/socklen.m4: Fix typo.
86929 2007-02-02  Eric Blake  <ebb9@byu.net>
86931         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
86932         * modules/netinet_in (Makefile.am): Likewise.
86934 2007-02-01  Bruno Haible  <bruno@clisp.org>
86936         * lib/string_.h (GL_LINK_WARNING): New macro.
86937         (strcasecmp, strstr, strcasestr): If provided by the system,
86938         conditionally define as a macro that leads to a warning instead of to
86939         an error.
86940         (strncasecmp): Conditionally define as a macro that leads to a warning.
86942 2007-02-01  Karl Berry  <karl@gnu.org>
86944         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
86946 2007-02-01  Bruno Haible  <bruno@clisp.org>
86948         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
86949         renamings.
86951 2007-02-01  Eric Blake  <ebb9@byu.net>
86953         * modules/regex (Depends-on): Revert dependence on mempcpy.
86954         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
86955         module's definition of mempcpy.
86956         Reported by Paul Eggert.
86958 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86960         * lib/string_.h: If the gnulib module XYZ is not present, undefine
86961         the symbol XYZ before redefining it.  This fixes a problem with
86962         programs that don't use XYZ, when compiled on systems that define
86963         XYZ to something else.
86965 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
86967         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
86968         occurs when "mkdir -m foo" creates a setgid directory that is (1)
86969         writeable to group or other and (2) is intended to have a special
86970         mode bit that is set or cleared.  In such a case, the directory
86971         should be neither group- nor other-writeable until the special
86972         mode bits are right.
86974 2007-01-31  Eric Blake  <ebb9@byu.net>
86976         * modules/mountlist (Depends-on): Add strstr.
86978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
86979         bug.
86980         * modules/string (Makefile.am): Remove redundant replacement.
86981         * modules/regex (Depends-on): Add mempcpy.
86983 2007-01-31  Bruno Haible  <bruno@clisp.org>
86985         New module description field 'Link'.
86986         * gnulib-tool (func_usage): Document --extract-link-directive.
86987         (sed_extract_prog): Recognize 'Link' directive.
86988         (func_get_link_directive): New function.
86989         (func_import): Show summary of link directives.
86990         Handle --extract-link-directive option.
86991         * modules/acl (Link): New section.
86992         * modules/clock-time (Link): New section.
86993         * modules/euidaccess (Link): New section.
86994         * modules/gettext (Link): New section.
86995         * modules/iconv (Link): New section.
86996         * modules/lock (Link): New section.
86997         * modules/nanosleep (Link): New section.
86998         * modules/readline (Link): New section.
87000 2007-01-27  Bruno Haible  <bruno@clisp.org>
87002         Enforce the use of gnulib modules for unportable <string.h> functions.
87003         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
87004         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
87005         (gl_HEADER_STRING_H_BODY): Require it.
87006         * lib/string_.h: If the gnulib module XYZ is not present, redefine
87007         the symbol XYZ to one that gives a link error.
87008         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
87009         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
87010         * modules/mempcpy (configure.ac): Likewise.
87011         * modules/memrchr (configure.ac): Likewise.
87012         * modules/stpcpy (configure.ac): Likewise.
87013         * modules/stpncpy (configure.ac): Likewise.
87014         * modules/strcase (configure.ac): Likewise.
87015         * modules/strcasestr (configure.ac): Likewise.
87016         * modules/strchrnul (configure.ac): Likewise.
87017         * modules/strdup (configure.ac): Likewise.
87018         * modules/strndup (configure.ac): Likewise.
87019         * modules/strnlen (configure.ac): Likewise.
87020         * modules/strpbrk (configure.ac): Likewise.
87021         * modules/strsep (configure.ac): Likewise.
87022         * modules/strstr (configure.ac): Likewise.
87023         * modules/strtok_r (configure.ac): Likewise.
87025 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
87027         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
87029 2007-01-30  Jim Meyering  <jim@meyering.net>
87031         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
87033 2007-01-29  Bruno Haible  <bruno@clisp.org>
87035         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
87036         * lib/execute.c: Likewise.
87037         * lib/pipe.c: Likewise.
87038         * lib/printf-args.h: Likewise.
87039         * lib/printf-args.c: Likewise.
87040         * lib/printf-parse.c: Likewise.
87041         * lib/vasnprintf.c: Likewise.
87043 2007-01-29  Eric Blake  <ebb9@byu.net>
87045         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
87046         declaration.
87048 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
87050         * lib/strptime.h (strptime): Use 'restrict' for args where
87051         POSIX requires this.
87052         * lib/strptime.c (strptime): Likewise.
87053         Change license notice from LGPL to GPL, since gnulib-tool will
87054         change this as needed.
87055         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
87056         defined.
87057         Include "strptime.h" first, to check interface.
87058         Do not #undef _LIBC and _NL_CURRENT.
87059         Do not include <stdlib.h>; no longer needed.
87060         Include "time_r.h" and declare ptime_locale_status
87061         only if _LIBC is not defined.
87062         (__P): Remove unused macro.
87063         (match_string): Bring back glibc version, but use it only if _LIBC
87064         is defined.
87065         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
87066         Remove unnecessary assertion and abort() call.
87067         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
87068         * m4/strptime.m4: Fix serial number comment.
87069         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
87070         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
87071         (Depends-on): Add time_r.
87073 2007-01-29  Bruno Haible  <bruno@clisp.org>
87075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87076         strptime.
87077         * modules/strptime (Depends-on): Add stdbool.
87078         * lib/strptime.h: Include <time.h> always. Add comments.
87080 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87082         * modules/strptime: New file.
87083         * lib/strptime.h: New file.
87084         * lib/strptime.c: New file.
87085         * m4/strptime.m4: New file.
87087 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87089         * MODULES.html.sh: New module mpsort.
87090         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
87092         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
87093         a circularity problem with HP-UX ia64 reported by Bob Proulx in
87094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
87095         All uses changed.
87096         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
87097         All uses changed.
87098         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
87099         to _Restrict_.
87100         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
87101         the parameter matches the prototype.
87103 2007-01-28  Jim Meyering  <jim@meyering.net>
87105         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
87106         sys/time.h here, reverting that part of the previous patch:
87107         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
87109 2007-01-28  Bruno Haible  <bruno@clisp.org>
87111         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
87112         value of $(SYS_TIME_H).
87113         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
87114         remove it conditionally, too. [added by Jim Meyering]
87115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
87116         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
87117         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
87118         GETTIMEOFDAY_REPLACEMENT to 1.
87120 2007-01-28  Bruno Haible  <bruno@clisp.org>
87122         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
87123         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
87124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
87125         Set UNISTD_H instead of UNISTD_H2.
87126         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
87128 2007-01-28  Bruno Haible  <bruno@clisp.org>
87130         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
87131         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
87133 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87135         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
87136         (func_create_testdir): Ensure C locale for `grep' and `tr'
87137         character ranges.
87138         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
87139         ACLOCAL_AMFLAGS parsing state machine.
87141 2007-01-27  Bruno Haible  <bruno@clisp.org>
87143         * modules/unistr/base: Update.
87145 2007-01-27  Bruno Haible  <bruno@clisp.org>
87147         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
87148         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
87149         * modules/unistr/u32-mbtouc-unsafe: Renamed from
87150         modules/unistr/u32-mbtouc.
87151         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
87152         * lib/unistr.h: Update.
87153         * lib/linebreak.c: Update.
87154         * modules/unistr/u32-mbtouc: Renamed from
87155         modules/unistr/u32-mbtouc-safe.
87156         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
87157         * lib/unistr.h: Update.
87158         * lib/unistr/u32-to-u8.c: Update.
87159         * lib/unistr/u32-to-u16.c: Update.
87161 2007-01-27  Bruno Haible  <bruno@clisp.org>
87163         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
87164         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
87165         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
87166         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
87167         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
87168         * modules/unistr/u16-mbtouc-unsafe: Renamed from
87169         modules/unistr/u16-mbtouc.
87170         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
87171         * lib/unistr.h: Update.
87172         * lib/linebreak.c: Update.
87173         * modules/linebreak: Update.
87174         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
87175         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
87176         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
87177         * modules/unistr/u16-mbtouc: Renamed from
87178         modules/unistr/u16-mbtouc-safe.
87179         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
87180         * lib/unistr.h: Update.
87181         * lib/unistr/u16-to-u8.c: Update.
87182         * modules/unistr/u16-to-u8: Update.
87183         * lib/unistr/u16-to-u32.c: Update.
87184         * modules/unistr/u16-to-u32: Update.
87186 2007-01-27  Bruno Haible  <bruno@clisp.org>
87188         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
87189         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
87190         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
87191         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
87192         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
87193         * modules/unistr/u8-mbtouc-unsafe: Renamed from
87194         modules/unistr/u8-mbtouc.
87195         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
87196         * lib/unistr.h: Update.
87197         * lib/striconveh.c: Update.
87198         * modules/striconveh: Update.
87199         * lib/linebreak.c: Update.
87200         * modules/linebreak: Update.
87201         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
87202         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
87203         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
87204         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
87205         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
87206         * lib/unistr.h: Update.
87207         * lib/striconveh.c: Update.
87208         * modules/striconveh: Update.
87209         * lib/unistr/u8-to-u16.c: Update.
87210         * modules/unistr/u8-to-u16: Update.
87211         * lib/unistr/u8-to-u32.c: Update.
87212         * modules/unistr/u8-to-u32: Update.
87214 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87216         Sync from Libtool.
87217         * lib/argz.c: Do not include strings.h nor memory.h, include
87218         string.h unconditionally.  Patch by Simon Josefsson.
87220 2007-01-27  Bruno Haible  <bruno@clisp.org>
87222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
87223         from gl_HEADER_STRING_H_BODY.
87224         (gl_HEADER_STRING_H_BODY): Require it.
87225         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
87226         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
87227         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
87228         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
87229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
87230         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
87231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
87232         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
87233         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
87234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
87235         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
87236         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
87237         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
87238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
87239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
87241 2007-01-27  Bruno Haible  <bruno@clisp.org>
87243         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
87244         check_PROGRAMS into noinst_PROGRAMS.
87245         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
87246         check_PROGRAMS in this case.
87247         (func_import): Set for_test to false.
87248         (func_create_testdir): Set for_test to true.
87250 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87251             Bruno Haible  <bruno@clisp.org>
87253         * modules/strcasestr (Files): Remove lib/strcasestr.h.
87254         (Depends-on): Add string.
87255         (Includes): Use <string.h> instead of strcasestr.h.
87256         * modules/string (Makefile.am): Also substitute the value of
87257         REPLACE_STRCASESTR.
87258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
87259         assume strcasestr is declared in <string.h> not <strings.h>. Also
87260         set REPLACE_STRCASESTR.
87261         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
87262         REPLACE_STRCASESTR.
87263         * lib/strcasestr.h: Remove file.
87264         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
87265         * lib/string_.h (strcasestr): New declaration.
87267 2007-01-27  Bruno Haible  <bruno@clisp.org>
87269         * lib/string_.h: Use 'extern'.
87271 2007-01-27  Jim Meyering  <jim@meyering.net>
87273         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
87274         of set-but-not-used local, "q".
87276         * lib/mempcpy.c: Include <config.h> before <string.h>.
87277         This fixes a compilation error on HP-UX, due to the system's
87278         "restrict"-using mempcpy prototype.
87280 2007-01-26  Bruno Haible  <bruno@clisp.org>
87282         Small optimization.
87283         * lib/javacomp.c: Include c-strstr.h.
87284          (is_envjavac_gcj): Use c_strstr instead of strstr.
87285         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
87287 2007-01-26  Bruno Haible  <bruno@clisp.org>
87289         * MODULES.html.sh (Unicode string functions): Add the new modules.
87291         * modules/uniconv/u32-strconv-to-locale: New file.
87292         * lib/uniconv/u32-strconv-to-locale.c: New file.
87294         * modules/uniconv/u16-strconv-to-locale: New file.
87295         * lib/uniconv/u16-strconv-to-locale.c: New file.
87297         * modules/uniconv/u8-strconv-to-locale: New file.
87298         * lib/uniconv/u8-strconv-to-locale.c: New file.
87300         * modules/uniconv/u32-strconv-from-locale: New file.
87301         * lib/uniconv/u32-strconv-from-locale.c: New file.
87303         * modules/uniconv/u16-strconv-from-locale: New file.
87304         * lib/uniconv/u16-strconv-from-locale.c: New file.
87306         * modules/uniconv/u8-strconv-from-locale: New file.
87307         * lib/uniconv/u8-strconv-from-locale.c: New file.
87309         * modules/uniconv/u32-strconv-to-enc: New file.
87310         * lib/uniconv/u32-strconv-to-enc.c: New file.
87311         * modules/uniconv/u32-strconv-to-enc-tests: New file.
87312         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
87314         * modules/uniconv/u16-strconv-to-enc: New file.
87315         * lib/uniconv/u16-strconv-to-enc.c: New file.
87316         * lib/uniconv/u-strconv-to-enc.h: New file.
87317         * modules/uniconv/u16-strconv-to-enc-tests: New file.
87318         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
87320         * modules/uniconv/u8-strconv-to-enc: New file.
87321         * lib/uniconv/u8-strconv-to-enc.c: New file.
87322         * modules/uniconv/u8-strconv-to-enc-tests: New file.
87323         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
87325         * modules/uniconv/u32-strconv-from-enc: New file.
87326         * lib/uniconv/u32-strconv-from-enc.c: New file.
87327         * modules/uniconv/u32-strconv-from-enc-tests: New file.
87328         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
87330         * modules/uniconv/u16-strconv-from-enc: New file.
87331         * lib/uniconv/u16-strconv-from-enc.c: New file.
87332         * modules/uniconv/u16-strconv-from-enc-tests: New file.
87333         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
87335         * modules/uniconv/u8-strconv-from-enc: New file.
87336         * lib/uniconv/u8-strconv-from-enc.c: New file.
87337         * lib/uniconv/u-strconv-from-enc.h: New file.
87338         * modules/uniconv/u8-strconv-from-enc-tests: New file.
87339         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
87341         * modules/uniconv/u32-conv-from-enc: New file.
87342         * lib/uniconv/u32-conv-from-enc.c: New file.
87343         * modules/uniconv/u32-conv-from-enc-tests: New file.
87344         * tests/uniconv/test-u32-conv-from-enc.c: New file.
87346         * modules/uniconv/u16-conv-from-enc: New file.
87347         * lib/uniconv/u16-conv-from-enc.c: New file.
87348         * lib/uniconv/u-conv-from-enc.h: New file.
87349         * modules/uniconv/u16-conv-from-enc-tests: New file.
87350         * tests/uniconv/test-u16-conv-from-enc.c: New file.
87352         * modules/uniconv/u8-conv-from-enc: New file.
87353         * lib/uniconv/u8-conv-from-enc.c: New file.
87354         * modules/uniconv/u8-conv-from-enc-tests: New file.
87355         * tests/uniconv/test-u8-conv-from-enc.c: New file.
87357         * modules/uniconv/base: New file.
87358         * lib/uniconv.h: New file.
87360 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
87362         * doc/gnulib-tool.texi (Initial import): Update to match current
87363         behavior with strdup module.
87364         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
87365         * lib/memmem.h: Remove; all uses removed.  This is now done
87366         by <string.h>.
87367         * lib/mempcpy.h: Likewise.
87368         * lib/memrchr.h: Likewise.
87369         * lib/stpcpy.h: Likewise.
87370         * lib/stpncpy.h: Likewise.
87371         * lib/strcase.h: Likewise.
87372         * lib/strchrnul.h: Likewise.
87373         * lib/strdup.h: Likewise.
87374         * lib/strndup.h: Likewise.
87375         * lib/strnlen.h: Likewise.
87376         * lib/strpbrk.h: Likewise.
87377         * lib/strsep.h: Likewise.
87378         * lib/strstr.h: Likewise.
87379         * lib/strtok_r.h: Likewise.
87380         * lib/string_.h: New file.
87381         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
87382         Rely on <string.h> instead.
87383         * lib/canon-host.c: Likewise.
87384         * lib/chdir-long.c: Likewise.
87385         * lib/concatpath.c: Likewise.
87386         * lib/exclude.c: Likewise.
87387         * lib/fchdir.c: Likewise.
87388         * lib/getaddrinfo.c: Likewise.
87389         * lib/getcwd.c: Likewise.
87390         * lib/getsubopt.c: Likewise.
87391         * lib/glob.c: Likewise.
87392         * lib/hard-locale.c: Likewise.
87393         * lib/iconvme.c: Likewise.
87394         * lib/javacomp.c: Likewise.
87395         * lib/mempcpy.c: Likewise.
87396         * lib/memrchr.c: Likewise.
87397         * lib/regex_internal.h: Likewise.
87398         * lib/stpncpy.c: Likewise.
87399         * lib/strcasecmp.c: Likewise.
87400         * lib/strchrnul.c: Likewise.
87401         * lib/strdup.c: Likewise.
87402         * lib/striconv.c: Likewise.
87403         * lib/striconveh.c: Likewise.
87404         * lib/striconveha.c: Likewise.
87405         * lib/strncasecmp.c: Likewise.
87406         * lib/strndup.c: Likewise.
87407         * lib/strnlen.c: Likewise.
87408         * lib/strsep.c: Likewise.
87409         * lib/strstr.c: Likewise.
87410         * lib/strtok_r.c: Likewise.
87411         * lib/userspec.c: Likewise.
87412         * lib/w32spawn.h: Likewise.
87413         * lib/xstrndup.c: Likewise.
87414         * lib/mountlist.c (strstr): Remove decl.
87415         * m4/string_h.m4: New file.
87416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
87417         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
87418         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
87419         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
87420         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
87421         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
87422         Set REPLACE_STRCASECMP if necessary.
87423         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
87424         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
87425         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
87426         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
87427         HAVE_DECL_STRDUP if necessary.
87428         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
87429         since gl_FUNC_STRNDUP does that now.
87430         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
87431         Check for decl here...
87432         (gl_PREREQ_STRNLEN): ... not here.
87433         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
87434         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
87435         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
87436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
87437         necessary.
87438         * modules/string: New file.
87439         * modules/memmem (Files): Remove special-purpose include file.
87440         (Depends-on): Add string.
87441         (Include): Include <string.h>, not the removed file.
87442         * modules/mempcpy: Likewise.
87443         * modules/memrchr: Likewise.
87444         * modules/stpcpy: Likewise.
87445         * modules/stpncpy: Likewise.
87446         * modules/strcase: Likewise.
87447         * modules/strchrnul: Likewise.
87448         * modules/strdup: Likewise.
87449         * modules/strndup: Likewise.
87450         * modules/strnlen: Likewise.
87451         * modules/strpbrk: Likewise.
87452         * modules/strsep: Likewise.
87453         * modules/strstr: Likewise.
87454         * modules/strtok_r: Likewise.
87455         * tests/test-dirname.c: Don't include "strdup.h", since
87456         <string.h> now suffices.
87457         * tests/test-memmem.c: Don't include "memmem.h", since
87458         <string.h> now suffices.
87460 2007-01-25  Bruno Haible  <bruno@clisp.org>
87462         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
87463         *resultp is 0.
87465         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
87466         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
87467         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
87468         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
87470         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
87471         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
87472         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
87473         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
87474         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
87475         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
87477 2007-01-24  Bruno Haible  <bruno@clisp.org>
87479         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
87480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
87481         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
87482         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
87483         gl_FUNC_FTS_CORE.
87484         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
87485         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
87486         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87487         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
87488         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
87489         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
87490         gl_FUNC_FCHOWNAT.
87491         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
87492         gl_FUNC_STRFTIME.
87493         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
87494         Reported by Ralf Wildenhues.
87496 2007-01-24  Bruno Haible  <bruno@clisp.org>
87498         Drop AC_REQUIRE calls that are redundant with the module dependencies.
87499         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
87500         gl_GETADDRINFO.
87501         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
87502         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
87503         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
87505 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
87507         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
87508         Don't use 'exit'; just return from 'main'.
87509         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
87511         * lib/fnmatch_.h: Readjust white space and comments to match
87512         glibc, to avoid spurious diffs.
87514 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87516         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
87517         2004-12-01 change by Jakub Jelinek, since this code won't compile
87518         if !LIBC.  Problem reported by Bob Proulx.
87520 2007-01-23  Bruno Haible  <bruno@clisp.org>
87522         * lib/striconveh.c: Include c-strcaseeq.h.
87523         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
87524         * modules/striconveh (Depends-on): Add c-strcaseeq.
87526 2007-01-23  Bruno Haible  <bruno@clisp.org>
87528         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
87530         * modules/c-strcaseeq: New file.
87531         * lib/c-strcaseeq.h: New file.
87533         * modules/streq: New file.
87534         * lib/streq.h: New file.
87536 2007-01-23  Bruno Haible  <bruno@clisp.org>
87538         * modules/striconveha-tests: New file.
87539         * tests/test-striconveha.c: New file.
87541         * lib/striconveha.h: Include <stdbool.h>.
87542         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
87543         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
87544         (mem_iconveha_notranslit): Renamed from mem_iconveha.
87545         (mem_iconveha): New function.
87546         (str_iconveha_notranslit): Renamed from str_iconveha.
87547         (str_iconveha): New function.
87548         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
87549         c-strcase.
87551 2007-01-23  Bruno Haible  <bruno@clisp.org>
87553         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
87554         encodings without forgiving before trying any encoding with handler.
87555         (str_iconveha): Try all encodings without forgiving before trying any
87556         encoding with handler.
87558 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87560         Import the following changes from libc.
87562         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
87564         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
87566         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87568         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
87569         normal_bracket label.
87571         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
87573         [BZ #361]
87574         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
87575         to normal_bracket after fetching the next character.
87577 2007-01-22  Bruno Haible  <bruno@clisp.org>
87579         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
87580         argument.
87581         * lib/striconveh.c (iconv_carefully_1): New function.
87582         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
87583         argument.
87584         (str_cd_iconveh): Update.
87585         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
87586         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
87587         * tests/test-striconveh.c (MAGIC): New macro.
87588         (new_offsets): New function.
87589         (main): Test call with and without offsets.
87591 2007-01-22  Bruno Haible  <bruno@clisp.org>
87593         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
87594         * modules/sys_select (Makefile.am): Likewise.
87595         * modules/sys_socket (Makefile.am): Likewise.
87596         * modules/sys_time (Makefile.am): Likewise.
87598 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
87600         * modules/gettimeofday (License): Change from GPL to LGPL, since
87601         gettimeofday is a library function.
87603 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87605         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
87607 2007-01-21  Bruno Haible  <bruno@clisp.org>
87609         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
87611 2007-01-21  Bruno Haible  <bruno@clisp.org>
87613         * modules/striconveha: New file.
87614         * lib/striconveha.h: New file.
87615         * lib/striconveha.c: New file.
87616         * MODULES.html.sh (Internationalization functions): Add striconveha.
87617         * lib/striconv.c (str_iconv): Optimize the case of an empty input
87618         string.
87619         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
87621 2007-01-21  Bruno Haible  <bruno@clisp.org>
87623         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
87624         * lib/striconveh.c (str_iconveh): Likewise.
87626 2007-01-21  Bruno Haible  <bruno@clisp.org>
87628         * lib/striconveh.h (mem_iconveh): New declaration.
87629         * lib/striconveh.c (mem_iconveh): New function.
87630         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
87632 2007-01-21  Bruno Haible  <bruno@clisp.org>
87634         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
87636         * lib/striconveh.h (mem_cd_iconveh): Change specification.
87637         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
87638         original result buffer.
87639         (str_cd_iconveh): Update.
87640         * tests/test-striconveh.c (main): Update.
87642         * lib/striconv.h (mem_cd_iconv): Change specification.
87643         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
87644         result buffer.
87645         (str_cd_iconv): Update.
87646         * tests/test-striconv.c (main): Update.
87648 2007-01-21  Bruno Haible  <bruno@clisp.org>
87650         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
87652 2007-01-20  Jim Meyering  <jim@meyering.net>
87654         * lib/userspec.c (parse_with_separator): If a user or group string
87655         starts with "+", skip the corresponding name-to-ID look-up, since
87656         such a look-up must fail: user and group names may not include "+".
87658 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87660         * lib/poll.c: Include sys/time.h and time.h unconditionally,
87661         since we now assume the sys_time module.
87662         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
87663         check for sys/time.h; no longer needed.
87664         * modules/poll (Depends-on): Depend on sys_time.
87666 2007-01-18  Bruno Haible  <bruno@clisp.org>
87668         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
87669         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87671         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
87672         gettimeofday.
87674         * tests/test-gettimeofday.c: Include <time.h>.
87675         (dummy): Remove variable.
87677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
87678         gl_HEADER_SYS_TIME_H.
87679         (gl_HEADER_SYS_TIME_H): New macro.
87681         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
87682         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87683         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
87684         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
87685         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87686         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
87687         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
87688         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87689         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
87690         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
87691         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87693         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
87694         last change; it caused a compilation error when cross-compiling to
87695         Cygwin.
87697 2007-01-18  Jim Meyering  <jim@meyering.net>
87699         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
87700         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
87701         than the race-prone "test -d sys || mkdir sys".
87702         (configure.ac): Use AC_PROG_MKDIR_P.
87703         * modules/sys_select: Likewise.
87704         * modules/sys_socket: Likewise.
87705         * modules/sys_time: Likewise.
87707 2007-01-18  Eric Blake  <ebb9@byu.net>
87709         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
87710         replace gettimeofday.
87711         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
87712         name, to avoid infinite recursion.
87714 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
87716         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
87717         module sys_time.
87718         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
87719         assume timespec.h defines struct timeval.
87720         * lib/settime.c: Likewise.
87721         * lib/utimens.c: Likewise.
87722         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
87723         since we now assume the gettimeofday module.
87724         * lib/tempname.c (__gen_tempname): Likewise.
87725         * lib/gettimeofday.h: Remove.
87726         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
87727         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
87728         Include <time.h>, for 'time()'.
87729         (localtime_buffer_addr): Also use this workaround if
87730         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
87731         to simplify the uses.  All uses changed.
87732         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
87733         that #undef is inside {}, and 'const' follows type name consistently.
87734         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
87735         (gettimeofday): Do not use the maximum possible value for
87736         tv->tv_usec, since that might break usages other than ls.c.
87737         Instead, we'll leave ls.c alone.  This undoes today's patch
87738         by Bruno.  Add a compile-time warning for 1s-clock resolution;
87739         we've never observed the problem but might as well keep the
87740         canary.
87741         * lib/nanosleep.c: Include timespec.h first, for interface check.
87742         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
87743         now assume the sys_time module.
87744         * lib/tempname.c: Likewise.
87745         * lib/timespec.h: Likewise.
87746         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
87747         needed.
87748         * lib/strftime.c: Likewise.
87749         * lib/timespec.h: Likewise.
87750         * lib/posixtm.c: Include posixtm.h first, for interface check.
87751         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
87752         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
87753         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
87754         * lib/sys_time_.h: New file.
87755         * lib/timespec.h (struct timespec): Use long int, not long.
87756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
87757         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
87758         Remove obsolescent call to AC_HEADER_TIME.
87759         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
87760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
87761         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87762         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
87763         Likewise.
87764         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
87765         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
87766         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
87767         into the sys_time module.  Check for gettimeofday just once.
87768         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
87769         for gettimeofday signature to just check the signature.  Merely
87770         compile it, since linking doesn't test signature.  Improve test for
87771         whether gettimeofday.o is actually needed.
87772         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
87773         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
87774         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
87775         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87776         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
87777         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
87778         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
87779         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
87780         than worrying about sys/time.h.
87781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
87782         Don't bother worrying about TIME_WITH_SYS_TIME.
87783         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
87784         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
87785         * m4/sys_time_h.m4: New file.
87786         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
87787         Don't include sys/time.h.  Return from main rather than exiting.
87788         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
87789         all uses changed.
87790         * modules/gethrxtime (Depends-on): Add sys_time.
87791         * modules/gettime (Depends-on): Likewise.
87792         * modules/gettimeofday (Depends-on): Likewise.
87793         * modules/nanosleep (Depends-on): Likewise.
87794         * modules/settime (Depends-on): Likewise.
87795         * modules/tempname (Depends-on): Likewise.
87796         * modules/utimens (Depends-on): Likewise.
87797         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
87798         (Include): Change back to <sys/time.h>.
87799         (Maintainer): Add self.
87800         * modules/sys_time: New file.
87801         * modules/tempname (Depends-on): Add gettimeofday.
87802         * tests/test-gettimeofday.c: Include <sys/time.h>
87803         rather than gettimeofday.h.
87805 2007-01-17  Bruno Haible  <bruno@clisp.org>
87807         * gnulib-tool (func_get_license): Revert last patch. Instead, let
87808         the license default to GPL.
87809         (func_create_testdir): Don't complain if a module is LGPL and its
87810         tests module depends on GPLed modules.
87812 2007-01-17  Bruno Haible  <bruno@clisp.org>
87814         * lib/gettimeofday.c (gettimeofday): Add code for the case
87815         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
87816         maximum possible value for tv->tv_usec, rather than the minimum one.
87818 2005-10-08  Martin Lambers  <marlam@marlam.de>
87819 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
87820 2007-01-16  Bruno Haible  <bruno@clisp.org>
87822         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
87823         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
87824         gl_FUNC_GETTIMEOFDAY.
87825         (Include): Add gettimeofday.h.
87826         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
87827         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
87828         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
87829         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
87830         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
87831         * lib/gettimeofday.h: New file.
87832         * lib/gettimeofday.c: Include <sys/timeb.h>.
87833         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
87834         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87835         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
87836         fall back on time().
87838         * tests/test-gettimeofday.c: New file.
87839         * modules/gettimeofday-tests: New file.
87841 2007-01-16  Eric Blake  <ebb9@byu.net>
87843         * modules/fnmatch (Depends-on): Depend on wchar.
87844         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
87845         * m4/fnmatch.m4: Likewise.
87846         * modules/mbchar (Makefile.am): Assume <wchar.h>.
87847         * m4/mbchar.m4: Likewise.
87848         * modules/mbswidth (Depends-on): Depend on wchar.
87849         * lib/mbswidth.c: Assume <wchar.h>.
87850         * m4/mbswidth.m4: Likewise.
87851         * modules/quotearg (Depends-on): Depend on wchar.
87852         * lib/quotearg.c: Assume <wchar.h>.
87853         * m4/quotearg.m4: Likewise.
87854         * modules/regex (Depends-on): Depend on wchar.
87855         * lib/regex_internal.h: Assume <wchar.h>.
87856         * m4/regex.m4: Likewise.
87857         * modules/stdint (Depends-on): Depend on wchar.
87858         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
87859         * m4/stdint.m4: Likewise.
87860         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
87861         * modules/strftime (Depends-on): Depend on wchar.
87862         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
87863         * modules/strtol (Depends-on): Depend on wchar.
87864         * lib/strtol.c: Assume <wchar.h>.
87865         * modules/wcwidth (Depends-on): Depend on wchar.
87866         * lib/wcwidth.h: Assume <wchar.h>.
87867         * m4/wcwidth.m4: Likewise.
87869 2007-01-16  Bruno Haible  <bruno@clisp.org>
87871         * modules/csharpexec-script: New, created from...
87872         * modules/csharpexec: ... this.
87874 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
87876         * modules/javaexec-script: New, created from...
87877         * modules/javaexec: ... this.
87879 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87881         * modules/poll (Dependencies): Add sys_select.
87883 2007-01-15  Jim Meyering  <jim@meyering.net>
87885         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
87886         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
87887         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
87888         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
87890 2007-01-15  Bruno Haible  <bruno@clisp.org>
87892         * modules/striconveh: New file.
87893         * lib/striconveh.h: New file.
87894         * lib/striconveh.c: New file.
87895         * MODULES.html.sh (Internationalization functions): Add striconveh.
87897         * modules/striconveh-tests: New file.
87898         * tests/test-striconveh.c: New file.
87900 2007-01-15  Bruno Haible  <bruno@clisp.org>
87902         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
87903         not from GNU libiconv or GNU libc.
87905 2007-01-15  Bruno Haible  <bruno@clisp.org>
87907         * doc/gnulib-intro.texi (Copyright): Explain the different license
87908         terms for module descriptions, autoconf macros, tests, documentation.
87910 2007-01-14  Bruno Haible  <bruno@clisp.org>
87912         * modules/striconv-tests: New file.
87913         * tests/test-striconv.c: New file.
87915 2007-01-14  Bruno Haible  <bruno@clisp.org>
87917         * modules/iconv-tests: New file.
87918         * tests/test-iconv.c: New file.
87920 2007-01-14  Bruno Haible  <bruno@clisp.org>
87922         * gnulib-tool (func_get_license): For test modules, use the license of
87923         the main module.
87925 2007-01-14  Bruno Haible  <bruno@clisp.org>
87927         * modules/iconv (Include): Clarify that <iconv.h> can only be included
87928         if iconv is found to exist.
87930 2007-01-14  Bruno Haible  <bruno@clisp.org>
87932         * modules/c-ctype-tests: New file.
87933         * tests/test-c-ctype.c: New file.
87935 2007-01-14  Bruno Haible  <bruno@clisp.org>
87937         * modules/binary-io-tests: New file.
87938         * tests/test-binary-io.sh: New file.
87939         * tests/test-binary-io.c: New file.
87941 2007-01-14  Bruno Haible  <bruno@clisp.org>
87943         * modules/array-oset-tests: New file.
87944         * tests/test-array_oset.c: New file.
87946 2007-01-14  Bruno Haible  <bruno@clisp.org>
87948         * modules/array-list-tests: New file.
87949         * tests/test-array_list.c: New file.
87951 2007-01-14  Bruno Haible  <bruno@clisp.org>
87953         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
87954         and make.
87955         Reported by Simon Josefsson in
87956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
87958 2007-01-14  Bruno Haible  <bruno@clisp.org>
87960         * modules/allocsa-tests: New file.
87961         * tests/test-allocsa.c: New file.
87963 2007-01-14  Bruno Haible  <bruno@clisp.org>
87965         * modules/fchdir (Depends-on): Add absolute-header.
87966         * modules/unistd (Depends-on): Likewise.
87968 2006-12-30  Bruno Haible  <bruno@clisp.org>
87970         * modules/fchdir: New file.
87971         * modules/unistd (Files): Add lib/unistd_.h.
87972         (Makefile.am): Generate unistd.h from unistd_.h.
87973         * lib/fchdir.c: New file.
87974         * lib/dirent_.h: New file.
87975         * lib/unistd_.h: New file.
87976         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
87977         * m4/fchdir.m4: New file.
87978         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
87979         (gl_HEADER_UNISTD): Invoke it.
87980         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
87981         function.
87982         * lib/backupfile.c (opendir, closedir): Undefine.
87983         * lib/chown.c (open, close): Undefine.
87984         * lib/clean-temp.c (open, close): Undefine.
87985         * lib/copy-file.c (open, close): Undefine.
87986         * lib/execute.c (open, close): Undefine.
87987         * lib/fsusage.c (open, close): Undefine.
87988         * lib/gc-gnulib.c (open, close): Undefine.
87989         * lib/getcwd.c (opendir, closedir): Undefine.
87990         * lib/glob.c (opendir, closedir): Undefine.
87991         * lib/javacomp.c (open, close): Undefine.
87992         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
87993         * lib/openat-proc.c (open, close): Undefine.
87994         * lib/pagealign_alloc.c (open, close): Undefine.
87995         * lib/pipe.c (open, close): Undefine.
87996         * lib/progreloc.c (open, close): Undefine.
87997         * lib/savedir.c (opendir, closedir): Undefine.
87998         * lib/utime.c (open, close): Undefine.
87999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
88001 2007-01-10  Bruno Haible  <bruno@clisp.org>
88003         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
88005 2007-01-12  Eric Blake  <ebb9@byu.net>
88007         Provide a robust <wchar.h>.  Further simplifications are now
88008         possible in other modules, but not included here.
88009         * modules/wchar: New module.
88010         * m4/wchar.m4: New file.
88011         * lib/wchar_.h: Likewise.
88012         * modules/mbchar (Depends-on): Depend on wchar, as the first use
88013         of the new module.
88014         * MODULES.html.sh (Extended multibyte and wide character utilities):
88015         New section.
88017 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
88019         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
88020         to a reasonable default for memory allocation.
88021         (xreadlink): Don't allocate a huge buffer, to work around a buggy
88022         file system that reports garbage st_size values for symlinks.
88023         Problem reported by Liyang Hu.
88025 2007-01-11  Simon Josefsson  <simon@josefsson.org>
88027         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
88028         Emacs .#* auto-save files).
88030 2007-01-11  Bruno Haible  <bruno@clisp.org>
88032         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
88033         directory.
88035 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
88037         Use @...@ consistently in lib/wctype_.h.
88038         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
88039         on it being set to 1 or 0.
88040         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
88041         go back to AC_SUBSTing it.
88042         * modules/wctype (Makefile.am): Undo previous change.
88044 2007-01-10  Eric Blake  <ebb9@byu.net>
88046         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
88047         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
88048         * modules/wctype (Makefile.am): Likewise.
88049         Reported by Chris McGuire.
88051 2007-01-10  Jim Meyering  <jim@meyering.net>
88053         fts.c: a small readability/maintainability improvement
88054         * lib/fts.c (fts_read): Make this code slightly more readable and
88055         maintainable by hoisting the "sp->fts_cur = p" assignments to
88056         immediately follow the statements that set P.  Derived from
88057         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
88059 2007-01-10  Eric Blake  <ebb9@byu.net>
88061         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
88062         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
88063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
88064         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88065         Reported by Chris McGuire.
88067 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88069         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
88070         in sed script.
88072 2007-01-09  Bruno Haible  <bruno@clisp.org>
88074         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
88075         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
88076         variables.
88077         (func_module): Use them.
88079 2007-01-09  Bruno Haible  <bruno@clisp.org>
88081         * modules/unistr/base: New file.
88082         * lib/unistr.h: New file.
88084         * modules/unistr/u8-to-u16: New file.
88085         * lib/unistr/u8-to-u16.c: New file.
88087         * modules/unistr/u8-to-u32: New file.
88088         * lib/unistr/u8-to-u32.c: New file.
88090         * modules/unistr/u16-to-u8: New file.
88091         * lib/unistr/u16-to-u8.c: New file.
88093         * modules/unistr/u16-to-u32: New file.
88094         * lib/unistr/u16-to-u32.c: New file.
88096         * modules/unistr/u32-to-u8: New file.
88097         * lib/unistr/u32-to-u8.c: New file.
88099         * modules/unistr/u32-to-u16: New file.
88100         * lib/unistr/u32-to-u16.c: New file.
88102         * modules/unistr/u8-check: New file.
88103         * modules/unistr/u16-check: New file.
88104         * modules/unistr/u32-check: New file.
88105         * lib/unistr/u8-check.c: New file.
88106         * lib/unistr/u16-check.c: New file.
88107         * lib/unistr/u32-check.c: New file.
88109         * modules/unistr/u8-chr: New file.
88110         * modules/unistr/u16-chr: New file.
88111         * modules/unistr/u32-chr: New file.
88112         * lib/unistr/u8-chr.c: New file.
88113         * lib/unistr/u16-chr.c: New file.
88114         * lib/unistr/u32-chr.c: New file.
88116         * modules/unistr/u8-cmp: New file.
88117         * modules/unistr/u16-cmp: New file.
88118         * modules/unistr/u32-cmp: New file.
88119         * lib/unistr/u8-cmp.c: New file.
88120         * lib/unistr/u16-cmp.c: New file.
88121         * lib/unistr/u32-cmp.c: New file.
88123         * modules/unistr/u8-cpy: New file.
88124         * modules/unistr/u16-cpy: New file.
88125         * modules/unistr/u32-cpy: New file.
88126         * lib/unistr/u8-cpy.c: New file.
88127         * lib/unistr/u16-cpy.c: New file.
88128         * lib/unistr/u32-cpy.c: New file.
88129         * lib/unistr/u-cpy.h: New file.
88131         * modules/unistr/u8-cpy-alloc: New file.
88132         * modules/unistr/u16-cpy-alloc: New file.
88133         * modules/unistr/u32-cpy-alloc: New file.
88134         * lib/unistr/u8-cpy-alloc.c: New file.
88135         * lib/unistr/u16-cpy-alloc.c: New file.
88136         * lib/unistr/u32-cpy-alloc.c: New file.
88137         * lib/unistr/u-cpy-alloc.h: New file.
88139         * modules/unistr/u8-endswith: New file.
88140         * modules/unistr/u16-endswith: New file.
88141         * modules/unistr/u32-endswith: New file.
88142         * lib/unistr/u8-endswith.c: New file.
88143         * lib/unistr/u16-endswith.c: New file.
88144         * lib/unistr/u32-endswith.c: New file.
88145         * lib/unistr/u-endswith.h: New file.
88147         * modules/unistr/u8-mblen: New file.
88148         * modules/unistr/u16-mblen: New file.
88149         * modules/unistr/u32-mblen: New file.
88150         * lib/unistr/u8-mblen.c: New file.
88151         * lib/unistr/u16-mblen.c: New file.
88152         * lib/unistr/u32-mblen.c: New file.
88154         * modules/unistr/u8-mbtouc: New file.
88155         * modules/unistr/u16-mbtouc: New file.
88156         * modules/unistr/u32-mbtouc: New file.
88157         * lib/unistr/u8-mbtouc.c: New file.
88158         * lib/unistr/u16-mbtouc.c: New file.
88159         * lib/unistr/u32-mbtouc.c: New file.
88161         * modules/unistr/u8-mbtouc-safe: New file.
88162         * modules/unistr/u16-mbtouc-safe: New file.
88163         * modules/unistr/u32-mbtouc-safe: New file.
88164         * lib/unistr/u8-mbtouc-safe.c: New file.
88165         * lib/unistr/u16-mbtouc-safe.c: New file.
88166         * lib/unistr/u32-mbtouc-safe.c: New file.
88168         * modules/unistr/u8-move: New file.
88169         * modules/unistr/u16-move: New file.
88170         * modules/unistr/u32-move: New file.
88171         * lib/unistr/u8-move.c: New file.
88172         * lib/unistr/u16-move.c: New file.
88173         * lib/unistr/u32-move.c: New file.
88174         * lib/unistr/u-move.h: New file.
88176         * modules/unistr/u8-next: New file.
88177         * modules/unistr/u16-next: New file.
88178         * modules/unistr/u32-next: New file.
88179         * lib/unistr/u8-next.c: New file.
88180         * lib/unistr/u16-next.c: New file.
88181         * lib/unistr/u32-next.c: New file.
88183         * modules/unistr/u8-prev: New file.
88184         * modules/unistr/u16-prev: New file.
88185         * modules/unistr/u32-prev: New file.
88186         * lib/unistr/u8-prev.c: New file.
88187         * lib/unistr/u16-prev.c: New file.
88188         * lib/unistr/u32-prev.c: New file.
88190         * modules/unistr/u8-set: New file.
88191         * modules/unistr/u16-set: New file.
88192         * modules/unistr/u32-set: New file.
88193         * lib/unistr/u8-set.c: New file.
88194         * lib/unistr/u16-set.c: New file.
88195         * lib/unistr/u32-set.c: New file.
88196         * lib/unistr/u-set.h: New file.
88198         * modules/unistr/u8-startswith: New file.
88199         * modules/unistr/u16-startswith: New file.
88200         * modules/unistr/u32-startswith: New file.
88201         * lib/unistr/u8-startswith.c: New file.
88202         * lib/unistr/u16-startswith.c: New file.
88203         * lib/unistr/u32-startswith.c: New file.
88204         * lib/unistr/u-startswith.h: New file.
88206         * modules/unistr/u8-stpcpy: New file.
88207         * modules/unistr/u16-stpcpy: New file.
88208         * modules/unistr/u32-stpcpy: New file.
88209         * lib/unistr/u8-stpcpy.c: New file.
88210         * lib/unistr/u16-stpcpy.c: New file.
88211         * lib/unistr/u32-stpcpy.c: New file.
88212         * lib/unistr/u-stpcpy.h: New file.
88214         * modules/unistr/u8-stpncpy: New file.
88215         * modules/unistr/u16-stpncpy: New file.
88216         * modules/unistr/u32-stpncpy: New file.
88217         * lib/unistr/u8-stpncpy.c: New file.
88218         * lib/unistr/u16-stpncpy.c: New file.
88219         * lib/unistr/u32-stpncpy.c: New file.
88220         * lib/unistr/u-stpncpy.h: New file.
88222         * modules/unistr/u8-strcat: New file.
88223         * modules/unistr/u16-strcat: New file.
88224         * modules/unistr/u32-strcat: New file.
88225         * lib/unistr/u8-strcat.c: New file.
88226         * lib/unistr/u16-strcat.c: New file.
88227         * lib/unistr/u32-strcat.c: New file.
88228         * lib/unistr/u-strcat.h: New file.
88230         * modules/unistr/u8-strchr: New file.
88231         * modules/unistr/u16-strchr: New file.
88232         * modules/unistr/u32-strchr: New file.
88233         * lib/unistr/u8-strchr.c: New file.
88234         * lib/unistr/u16-strchr.c: New file.
88235         * lib/unistr/u32-strchr.c: New file.
88237         * modules/unistr/u8-strcmp: New file.
88238         * modules/unistr/u16-strcmp: New file.
88239         * modules/unistr/u32-strcmp: New file.
88240         * lib/unistr/u8-strcmp.c: New file.
88241         * lib/unistr/u16-strcmp.c: New file.
88242         * lib/unistr/u32-strcmp.c: New file.
88244         * modules/unistr/u8-strcpy: New file.
88245         * modules/unistr/u16-strcpy: New file.
88246         * modules/unistr/u32-strcpy: New file.
88247         * lib/unistr/u8-strcpy.c: New file.
88248         * lib/unistr/u16-strcpy.c: New file.
88249         * lib/unistr/u32-strcpy.c: New file.
88250         * lib/unistr/u-strcpy.h: New file.
88252         * modules/unistr/u8-strcspn: New file.
88253         * modules/unistr/u16-strcspn: New file.
88254         * modules/unistr/u32-strcspn: New file.
88255         * lib/unistr/u8-strcspn.c: New file.
88256         * lib/unistr/u16-strcspn.c: New file.
88257         * lib/unistr/u32-strcspn.c: New file.
88258         * lib/unistr/u-strcspn.h: New file.
88260         * modules/unistr/u8-strdup: New file.
88261         * modules/unistr/u16-strdup: New file.
88262         * modules/unistr/u32-strdup: New file.
88263         * lib/unistr/u8-strdup.c: New file.
88264         * lib/unistr/u16-strdup.c: New file.
88265         * lib/unistr/u32-strdup.c: New file.
88266         * lib/unistr/u-strdup.h: New file.
88268         * modules/unistr/u8-strlen: New file.
88269         * modules/unistr/u16-strlen: New file.
88270         * modules/unistr/u32-strlen: New file.
88271         * lib/unistr/u8-strlen.c: New file.
88272         * lib/unistr/u16-strlen.c: New file.
88273         * lib/unistr/u32-strlen.c: New file.
88274         * lib/unistr/u-strlen.h: New file.
88276         * modules/unistr/u8-strmblen: New file.
88277         * modules/unistr/u16-strmblen: New file.
88278         * modules/unistr/u32-strmblen: New file.
88279         * lib/unistr/u8-strmblen.c: New file.
88280         * lib/unistr/u16-strmblen.c: New file.
88281         * lib/unistr/u32-strmblen.c: New file.
88283         * modules/unistr/u8-strmbtouc: New file.
88284         * modules/unistr/u16-strmbtouc: New file.
88285         * modules/unistr/u32-strmbtouc: New file.
88286         * lib/unistr/u8-strmbtouc.c: New file.
88287         * lib/unistr/u16-strmbtouc.c: New file.
88288         * lib/unistr/u32-strmbtouc.c: New file.
88290         * modules/unistr/u8-strncat: New file.
88291         * modules/unistr/u16-strncat: New file.
88292         * modules/unistr/u32-strncat: New file.
88293         * lib/unistr/u8-strncat.c: New file.
88294         * lib/unistr/u16-strncat.c: New file.
88295         * lib/unistr/u32-strncat.c: New file.
88296         * lib/unistr/u-strncat.h: New file.
88298         * modules/unistr/u8-strncmp: New file.
88299         * modules/unistr/u16-strncmp: New file.
88300         * modules/unistr/u32-strncmp: New file.
88301         * lib/unistr/u8-strncmp.c: New file.
88302         * lib/unistr/u16-strncmp.c: New file.
88303         * lib/unistr/u32-strncmp.c: New file.
88305         * modules/unistr/u8-strncpy: New file.
88306         * modules/unistr/u16-strncpy: New file.
88307         * modules/unistr/u32-strncpy: New file.
88308         * lib/unistr/u8-strncpy.c: New file.
88309         * lib/unistr/u16-strncpy.c: New file.
88310         * lib/unistr/u32-strncpy.c: New file.
88311         * lib/unistr/u-strncpy.h: New file.
88313         * modules/unistr/u8-strnlen: New file.
88314         * modules/unistr/u16-strnlen: New file.
88315         * modules/unistr/u32-strnlen: New file.
88316         * lib/unistr/u8-strnlen.c: New file.
88317         * lib/unistr/u16-strnlen.c: New file.
88318         * lib/unistr/u32-strnlen.c: New file.
88319         * lib/unistr/u-strnlen.h: New file.
88321         * modules/unistr/u8-strpbrk: New file.
88322         * modules/unistr/u16-strpbrk: New file.
88323         * modules/unistr/u32-strpbrk: New file.
88324         * lib/unistr/u8-strpbrk.c: New file.
88325         * lib/unistr/u16-strpbrk.c: New file.
88326         * lib/unistr/u32-strpbrk.c: New file.
88327         * lib/unistr/u-strpbrk.h: New file.
88329         * modules/unistr/u8-strrchr: New file.
88330         * modules/unistr/u16-strrchr: New file.
88331         * modules/unistr/u32-strrchr: New file.
88332         * lib/unistr/u8-strrchr.c: New file.
88333         * lib/unistr/u16-strrchr.c: New file.
88334         * lib/unistr/u32-strrchr.c: New file.
88336         * modules/unistr/u8-strspn: New file.
88337         * modules/unistr/u16-strspn: New file.
88338         * modules/unistr/u32-strspn: New file.
88339         * lib/unistr/u8-strspn.c: New file.
88340         * lib/unistr/u16-strspn.c: New file.
88341         * lib/unistr/u32-strspn.c: New file.
88342         * lib/unistr/u-strspn.h: New file.
88344         * modules/unistr/u8-strstr: New file.
88345         * modules/unistr/u16-strstr: New file.
88346         * modules/unistr/u32-strstr: New file.
88347         * lib/unistr/u8-strstr.c: New file.
88348         * lib/unistr/u16-strstr.c: New file.
88349         * lib/unistr/u32-strstr.c: New file.
88350         * lib/unistr/u-strstr.h: New file.
88352         * modules/unistr/u8-strtok: New file.
88353         * modules/unistr/u16-strtok: New file.
88354         * modules/unistr/u32-strtok: New file.
88355         * lib/unistr/u8-strtok.c: New file.
88356         * lib/unistr/u16-strtok.c: New file.
88357         * lib/unistr/u32-strtok.c: New file.
88358         * lib/unistr/u-strtok.h: New file.
88360         * modules/unistr/u8-uctomb: New file.
88361         * modules/unistr/u16-uctomb: New file.
88362         * modules/unistr/u32-uctomb: New file.
88363         * lib/unistr/u8-uctomb.c: New file.
88364         * lib/unistr/u16-uctomb.c: New file.
88365         * lib/unistr/u32-uctomb.c: New file.
88367         * MODULES.html.sh (Unicode string functions): Add the new modules.
88369 2007-01-08  Bruno Haible  <bruno@clisp.org>
88371         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
88372         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
88373         subdirectories.
88375 2007-01-08  Karl Berry  <karl@gnu.org>
88377         * doc/error.texi: mention that main() fns must set program_name
88378         when progname is used.
88380 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
88382         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
88383         WCTYPE_H is empty, for the benefit of builds from non-distclean
88384         directories.  Problem reported by Eric Blake in
88385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
88387 2007-01-08  Bruno Haible  <bruno@clisp.org>
88389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
88390         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
88391         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
88392         PROVIDE_CANONICALIZE_FILENAME_MODE.
88393         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
88395 2007-01-08  Bruno Haible  <bruno@clisp.org>
88397         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
88398         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
88399         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
88400         * lib/fts.c: Likewise.
88401         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
88403 2006-12-25  Bruno Haible  <bruno@clisp.org>
88405         * modules/utf8-ucs4-safe: New file.
88406         * lib/utf8-ucs4-safe.h: New file.
88407         * lib/unistr/utf8-ucs4-safe.c: New file.
88409         * modules/utf16-ucs4-safe: New file.
88410         * lib/utf16-ucs4-safe.h: New file.
88411         * lib/unistr/utf16-ucs4-safe.c: New file.
88413         * MODULES.html.sh (Unicode string functions): Add the new modules.
88415 2007-01-08  Bruno Haible  <bruno@clisp.org>
88417         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
88418         (Depends-on): Add unitypes.
88419         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
88420         (u8_mbtouc_aux): Move out to separate file.
88421         (u8_mbtouc): Use ucs4_t, uint8_t types.
88422         * lib/unistr/utf8-ucs4.c: New file.
88424         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
88425         (Depends-on): Add unitypes.
88426         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
88427         (u16_mbtouc_aux): Move out to separate file.
88428         (u16_mbtouc): Use ucs4_t, uint16_t types.
88429         * lib/unistr/utf16-ucs4.c: New file.
88431         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
88432         (Depends-on): Add unitypes.
88433         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
88434         (u8_uctomb_aux): Move out to separate file.
88435         (u8_uctomb): Use ucs4_t, uint8_t types.
88436         * lib/unistr/ucs4-utf8.c: New file.
88438         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
88439         (Depends-on): Add unitypes.
88440         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
88441         (u16_uctomb_aux): Move out to separate file.
88442         (u16_uctomb): Use ucs4_t, uint16_t types.
88443         * lib/unistr/ucs4-utf16.c: New file.
88445 2006-12-25  Bruno Haible  <bruno@clisp.org>
88447         * modules/unitypes: New file.
88448         * lib/unitypes.h: New file.
88449         * MODULES.html.sh (func_all_modules): New section "Unicode string
88450         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
88451         this section. Add unitypes.
88453 2007-01-08  Bruno Haible  <bruno@clisp.org>
88455         Avoid variable names that conflict with those from libtool.
88456         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
88457         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
88458         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
88459         library_names_spec to acl_library_names_spec, hardcode_* to
88460         acl_hardcode_*.
88461         Reported by Ralf Wildenhues.
88463 2007-01-08  Bruno Haible  <bruno@clisp.org>
88465         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
88466         definition.
88467         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
88468         definition.
88469         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
88470         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
88471         definition.
88472         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
88473         definition.
88474         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
88475         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
88476         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
88477         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
88478         definition.
88479         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
88480         definition.
88481         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
88482         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
88483         GC_USE_<algorithm>.
88484         * lib/gc-libgcrypt.c: Likewise.
88485         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
88486         * modules/gc-arctwo (configure.ac): Likewise.
88487         * modules/gc-des (configure.ac): Likewise.
88488         * modules/gc-hmac-md5 (configure.ac): Likewise.
88489         * modules/gc-hmac-sha1 (configure.ac): Likewise.
88490         * modules/gc-md2 (configure.ac): Likewise.
88491         * modules/gc-md4 (configure.ac): Likewise.
88492         * modules/gc-md5 (configure.ac): Likewise.
88493         * modules/gc-random (configure.ac): Likewise.
88494         * modules/gc-rijndael (configure.ac): Likewise.
88495         * modules/gc-sha1 (configure.ac): Likewise.
88497 2007-01-08  Bruno Haible  <bruno@clisp.org>
88499         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
88500         macro definition.
88501         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
88502         definition.
88503         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
88504         definition.
88505         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
88506         * modules/fcntl-safer (configure.ac): Likewise.
88507         * modules/fopen-safer (configure.ac): Likewise.
88508         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
88509         GNULIB_FWRITEERROR macro definition.
88511 2007-01-08  Bruno Haible  <bruno@clisp.org>
88513         * m4/gnulib-common.m4: New file.
88514         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
88515         (func_get_filelist): Add m4/gnulib-common.m4.
88517 2007-01-08  Bruno Haible  <bruno@clisp.org>
88519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
88520         command.
88522 2007-01-08  Jim Meyering  <jim@meyering.net>
88524         Use a more robust test for a "can't happen" condition.
88525         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
88526         narrowed the st_size value.  Presuming the "can't happen" condition
88527         is true, that narrowing could conceivably convert an invalid st_size
88528         value into a valid one.  Instead, use a change based on Matthew
88529         Woehlke's original patch.
88531         Slight readability improvement: use an assert-like macro
88532         in place of literal "abort ()" uses.
88533         * lib/fts.c (fts_assert): Define.
88534         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
88535         Use this macro instead of a bare 'abort'.
88537 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
88539         Don't worry about using IRIX 5.3's wctype.h broken definitions;
88540         simply work around them.
88541         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
88542         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
88543         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
88544         declaring.
88545         Don't bother to define as macros, since the standard doesn't require it.
88546         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
88547         longer worry about IRIX 5.3.
88548         (HAVE_WCTYPE_CTMP_BUG): Remove.
88550 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88552         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
88553         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
88554         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
88555         Problems reported by Georg Schwarz for IRIX 5.3.
88557         * gnulib-tool (autoconf_minversion): Take the maximum version number
88558         found, not the minimum.  Problem reported by James Youngman.
88560 2007-01-03  Karl Berry  <karl@gnu.org>
88562         * doc/error.texi: new file, explaining interaction with progname.
88563         * doc/gnulib.texi: include it.  Update copyright.
88565 2007-01-03  Simon Josefsson  <simon@josefsson.org>
88567         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
88568         AC_CANONICAL_HOST, to improve autobuild outputs.
88570 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
88571             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
88573         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
88574         sockets, server sockets, and other file descriptors.  Count errors
88575         to compute the return value.  Reorder the code a bit to be easier
88576         to follow.  Don't set event bits that were not requested (except
88577         POLLERR and POLLHUP).
88579 2007-01-01  Bruno Haible  <bruno@clisp.org>
88581         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
88583 2007-01-03  Jim Meyering  <jim@meyering.net>
88585         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
88587 2007-01-02  Bruno Haible  <bruno@clisp.org>
88589         * modules/settime (Include): Require timespec.h.
88590         * modules/nanosleep (Include): Likewise.
88592 2007-01-01  Bruno Haible  <bruno@clisp.org>
88594         * gnulib-tool (func_emit_copyright_notice): Bump year.
88595         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
88597 2007-01-01  Bruno Haible  <bruno@clisp.org>
88599         Improve support for OpenBSD.
88600         * build-aux/config.rpath (libname_spec): Export.
88601         (library_names_spec): New variable. Export.
88602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
88603         library_names_spec from the config.rpath output. Locate shared library
88604         through the name pattern in library_names_spec.
88606 2007-01-01  Eric Blake  <ebb9@byu.net>
88608         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
88610 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
88612         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
88613         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
88614         assume the C locale, and avoid an "eval" that could cause trouble.
88615         Problem with SORT reported by Bob Proulx.
88617         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
88618         Define.  Trivial patch from Henning Nielsen Lund, originally
88619         sent to bug-grep@gnu.org today.
88621 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
88623         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
88624         struct stat.  Problem reported by Henning Nielsen Lund.
88625         * lib/acl.c: Include acl.h first, to check interface.  Don't
88626         bother to include sys/types.h and sys/stat.h again.
88628 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88630         Import the following change from libc; problem reported by
88631         Sven Verdoolaege.
88633         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
88635         [BZ #1373]
88636         * lib/argp.h: Remove __NTH for __argp_usage inline function.
88638 2006-12-28  Jim Meyering  <jim@meyering.net>
88640         * build-aux/announce-gen: Do not assume that the package
88641         builds any of tar.gz, tar.bz2, and .xdelta files.
88642         Suggestion from Simon Josefsson.
88644 2006-12-28  Simon Josefsson  <simon@josefsson.org>
88646         * modules/announce-gen: New file.
88648 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
88650         * lib/mbchar.h: Just include <wctype.h>; the wctype module
88651         handles its gotchas now.
88652         * lib/mbswidth.c: Likewise.
88653         * lib/wcwidth.h: Likewise.
88654         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
88655         and iswcntrl; the wctype module does this stuff now.
88656         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
88658         * modules/mbchar (Depends-on): Add wctype.
88659         * modules/mbswidth (Depends-on): Likewise.
88660         * modules/wcwidth (Depends-on): Likewise.
88662 2006-12-27  Eric Blake  <ebb9@byu.net>
88664         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
88665         module uses more than what <wctype.h> is required to provide.
88667 2006-12-26  Eric Blake  <ebb9@byu.net>
88669         * gnulib-tool (sed_extract_prog): Avoid space-tab.
88671 2006-12-26  Eric Blake  <ebb9@byu.net>
88673         * modules/absolute-header: New module.
88674         * modules/fcntl (Depends-on): Depend on it.
88675         * modules/inttypes (Depends-on): Likewise.
88676         * modules/stdint (Depends-on): Likewise.
88677         * modules/sys_stat (Depends-on): Likewise.
88678         * modules/wctype (Depends-on): Likewise.
88679         * MODULES.html.sh (Support for building libraries and
88680         executables): Document it.
88682 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
88684         * gnulib-tool (SED): Remove, undoing previous change.
88685         The problem was that it broke coreutils on Solaris, because
88686         "sed --posix" leaked into a makefile.
88687         (sed): New alias, if 'alias' and GNU sed.
88689 2006-12-24  Jim Meyering  <jim@meyering.net>
88691         Work around an fchownat bug in glibc-2.4:
88692         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
88693         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
88694         in spite of the -P option.
88695         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
88696         New macros.
88697         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
88698         * modules/openat (Files): Add lib/fchownat.c.
88699         * lib/openat.c (fchownat): Don't define here.  Move to...
88700         * lib/fchownat.c: ...this new file.
88702 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88704         Fix bug reported by Bruno Haible in
88705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
88706         where quotearg.c didn't compile on Mac OS X 10.2 because it
88707         lacks <wchar.h> and wint_t.
88708         * lib/wctype_.h (__wctype_wint_t): New type.
88709         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
88710         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
88711         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
88712         Arg is now of type __wctype_wint_t, not wint_t.
88713         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
88714         substitute HAVE_WINT_T.
88715         * modules/wctype (Files): Add m4/wint_t.m4.
88716         (wctype.h): Substitute HAVE_WINT_T.
88718 2006-12-23  Bruno Haible  <bruno@clisp.org>
88720         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
88722 2006-12-23  Bruno Haible  <bruno@clisp.org>
88724         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
88725         S_ISLNK.
88726         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
88727         mingw.
88729 2006-12-22  Bruno Haible  <bruno@clisp.org>
88731         * lib/copy-file.c: Include acl.h.
88732         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
88733         Close the file descriptors only after being done with copy_acl.
88734         * modules/copy-file (Depends-on): Add acl.
88736 2006-12-22  Bruno Haible  <bruno@clisp.org>
88738         * gnulib-tool (SED): New variable.
88739         Use $SED instead of sed everywhere.
88741 2006-12-22  Bruno Haible  <bruno@clisp.org>
88743         * modules/no-c++: New file.
88744         * m4/no-c++.m4: New file.
88745         * MODULES.html.sh (Support for building libraries and executables):
88746         Add no-c++.
88748 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
88750         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
88751         Include <limits.h>, and use its INT_MAX to rewrite the
88752         j loop so that it does not overflow 'int'.  Problem reported by
88753         Ralf Wildenhues in
88754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
88755         Play it safe by shifting left by 1 rather than multiplying by 2,
88756         as GCC is less likely to optimize this away when the value
88757         is signed (when it assumes overflow leads to undefined behavior).
88758         Also, don't assume time_t uses two's complement.
88760 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
88762         * MODULES.html.sh: New module wctype.
88763         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
88764         * lib/fnmatch.c: Don't bother to include <wchar.h> before
88765         <wctype.h>, since the new wctype module should fix this.
88766         * lib/quotearg.c: Include <wctype.h> unconditionally, since
88767         the wctype module should arrange for it.
88768         * lib/regex_internal.h: Likewise.
88769         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
88770         since the wctype module should handle this now.
88771         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
88772         * modules/fnmatch (Depends-on): Add wctype.
88773         * modules/quotearg (Depends-on): Likewise.
88774         * modules/regex (Depends-on): Likewise.
88776 2006-12-19  Bruno Haible  <bruno@clisp.org>
88778         * lib/strdup.h [C++]: Wrap definitions in extern "C".
88779         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
88781 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88783         * modules/savewd (Depends-on): Fix dependency on fcntl.
88785 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88787         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
88788         conforms to C99, rather than relying on the user's environment
88789         setting of STDINT_H.
88791 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88792         and Eric Blake  <ebb9@byu.net>
88794         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
88795         This is more consistent with the other defines here.
88796         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
88797         Port to z/OS.  Problem reported by Paul Gilmartin.
88798         Change local vars to use gl_ prefix rather than ac_.
88799         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
88800         with other defines.
88801         * modules/double-slash-root: New module.
88802         * modules/dirname (Files): Remove m4/double-slash-root.m4.
88803         (Depends-on): Add double-slash-root.
88804         * MODULES.html.sh (File system functions): Mention new module.
88806 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
88808         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
88809         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
88810         This is for the benefit of gzip, which doesn't do i18n.
88812 2006-12-12  Jim Meyering  <jim@meyering.net>
88814         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
88815         Reported by Andreas Schwab <schwab@suse.de>.
88817 2006-12-12  Bruno Haible  <bruno@clisp.org>
88819         Merge these changes.
88820         2006-09-05  Bruno Haible  <bruno@clisp.org>
88821         * lib/iconvme.c (iconv_string): No need to save and restore errno when
88822         iconv_alloc succeeded.
88823         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
88824         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
88825         test for " && dest " at the end - dest is always != NULL there. Call
88826         iconv with 4xNULL arguments initially, to reset the state. Call iconv
88827         with 2xNULL arguments, also to flush the state storage. Handle the
88828         IRIX iconv behaviour. Realloc the final result, to throw away unused
88829         memory.
88831 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
88833         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
88834         and fchmodat unconditionally, since glibc 2.4 has them.
88835         Problem reported by Arkadiusz Miskiewicz.
88837 2006-12-10  Bruno Haible  <bruno@clisp.org>
88839         * gnulib-tool (func_import): Show the include files only for those
88840         modules that are copied and specified.
88841         Reported by Karl Berry.
88843 2006-12-08  Jim Meyering  <jim@meyering.net>
88845         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
88846         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
88848         * build-aux/announce-gen: Add two new options, both optional:
88849         --bootstrap-tools=TOOL_LIST
88850               a comma-separated list of tools, e.g.,
88851               autoconf,automake,bison,gnulib
88852         --gnulib-snapshot-date=DATE
88853               if gnulib is in the bootstrap tool list,
88854               then report this as the snapshot date.
88855               If not specified, use the current date/time.
88856               If you specify a date here, be sure it's UTC.
88858 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88860         * tests/test-argp-2.sh: Fix test to match actual output.
88861         (func_compare): Fix sed script to be portable.
88863 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
88865         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
88866         workaround for this case.  It is not autoconfigured now; offhand
88867         it's hard to see how to autoconfigure it.
88869 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
88871         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
88872         a directory that is about to be chowned.  Such a directory's
88873         initial file permissions should permit the owner only and this
88874         should not be changed until after the chown, since the group and
88875         other bits would be incorrect if they granted permission before
88876         the chown.
88878         Fix porting problem for iswctype reported by Georg Schwarz in:
88879         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
88880         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
88881         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
88882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
88883         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
88885 2006-12-03  Jim Meyering  <jim@meyering.net>
88887         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
88888         p->fts_statp may not yet be defined.
88889         (fts_read): Instead, set it in the caller, once p->fts_statp is
88890         sure to be defined, and corresponds to a top-level directory.
88891         This bug made du -x fail.  Here's the coreutils test case:
88892         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
88893         Reported by Mike Frysinger.
88895 2006-12-01  Jim Meyering  <jim@meyering.net>
88897         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
88898         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
88899         Reported by Simon Josefsson.
88901 2006-11-30  Jim Meyering  <jim@meyering.net>
88903         * m4/warning.m4: Use the all-permissive copyright notice
88904         recommended by RMS (rather than LGPL).
88905         * m4/vararrays.m4: Likewise.
88906         * m4/flexmember.m4: Likewise.
88908 2006-11-29  Bruno Haible  <bruno@clisp.org>
88910         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
88911         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
88912         using +=.
88913         Reported by Simon Josefsson <simon@josefsson.org>.
88915 2006-11-28  James Youngman  <jay@gnu.org>
88917         * README: Advise users that they might find the bug-gnulib@gnu.org
88918         and autotools-announce@gnu.org mailing lists useful.
88920 2006-11-28  Bruno Haible  <bruno@clisp.org>
88922         * m4/ptrdiff_max.m4: Remove file.
88924 2006-11-21  Bruno Haible  <bruno@clisp.org>
88926         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
88927         _AC_COMPUTE_INT.
88928         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88929         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
88930         _AC_COMPUTE_INT.
88931         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88932         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
88933         _AC_COMPUTE_INT.
88934         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88936 2006-11-28  Jim Meyering  <jim@meyering.net>
88938         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
88939         warning from "gcc -Wshadow" about shadowing the builtin.
88941 2006-11-27  Bruno Haible  <bruno@clisp.org>
88943         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
88944         _AC_COMPUTE_INT.
88945         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88947 2006-11-27  Bruno Haible  <bruno@clisp.org>
88948             Paul Eggert  <eggert@cs.ucla.edu>
88950         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
88952 2006-11-26  Bruno Haible  <bruno@clisp.org>
88954         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
88955         noinst_LTLIBRARIES.
88957 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88958             Bruno Haible  <bruno@clisp.org>
88960         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
88961         if compiling with "gcc -ansi".
88963 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88965         Fix some incompatibilities with gcc -ansi -pedantic.
88966         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
88967         if compiling pedantically with GCC, unless it's C99 or later.
88968         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
88969         it mishandles gcc -ansi -pedantic as well.
88970         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
88971         if gcc -pedantic.
88972         * lib/regexec.c (check_node_accept_bytes): Don't use auto
88973         initializers for struct if -pedantic, unless it's C99 or later.
88975 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
88977         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
88978         Don't close an fd more than once. Identical atimes indicate
88979         success, not failure.
88981 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
88983         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
88985 2006-11-23  Jim Meyering  <jim@meyering.net>
88987         * build-aux/announce-gen: New file.  From coreutils.
88989 2006-11-22  Jim Meyering  <jim@meyering.net>
88991         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
88992         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
88993         (fts_read): Use a temporary to narrow the overused st_size member
88994         before using it in a switch statement.  Reported by Matthew Woehlke.
88996         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
88997         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
88999 2006-11-20  Bruno Haible  <bruno@clisp.org>
89001         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
89002         changequote instead of pairs of brackets.
89003         Reported by Andreas Schwab <schwab@suse.de>.
89005 2006-11-21  Jim Meyering  <jim@meyering.net>
89007         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
89008         so as to remain compatible with older compilers.
89009         Patch from Michael Deutschmann.
89011 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89013         * MODULES.html.sh (File system functions): Add openat.
89015         * lib/openat.h (rpl_fstatat): New macro, if
89016         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
89017         (fstatat): Define to rpl_fstatat under the same conditions,
89018         unless COMPILING_FSTATAT.
89019         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
89020         seems to have the bug.
89021         * lib/fstatat.c: New file.
89022         * modules/openat (Files): Add it.
89024 2006-11-20  Bruno Haible  <bruno@clisp.org>
89026         * Makefile: New file.
89028 2006-11-20  Jim Meyering  <jim@meyering.net>
89030         The beginnings of syntax-related checks for gnulib.
89031         * lib/Makefile: New file.
89032         * lib/t-idcache: New script.  Ensure that the two halves of
89033         idcache.c stay in sync.
89035         * lib/idcache.c: Adjust comments in user- and group- portions to
89036         be more accurate, and to be consistent with one another.
89038 2006-11-20  Jim Meyering  <jim@meyering.net>
89040         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
89041         continue using the flexible array member (thus, this module performs
89042         half as many malloc calls), with the addition that...
89043         (getgroup, getuser): Consistently record a non-match via an empty
89044         "name" string, and map an empty string match to a NULL return value.
89045         * modules/idcache (Depends-on): Re-add flexmember.
89047         * lib/idcache.c (getuser): Remove all uses of the register keyword.
89048         (getuidbyname, getgroup, getgidbyname): Likewise.
89050         Use cleaner syntax: NULL rather than 0.
89051         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
89053 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89055         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
89056         It mishandled the case where the group was missing.
89057         Problem reported by Greg Schafer.
89058         * modules/idcache: Likewise.
89060 2006-11-18  Jim Meyering  <jim@meyering.net>
89062         * check-module (%exempt_header): Add exception for some
89063         conditionally-included headers.
89065         * modules/i-ring (Depends-on): Add verify.
89066         (License): Change to LGPL.
89068 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89070         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
89071         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
89072         and inttostr.h.  Use snprintf rather than uinttostr, so that
89073         LGPLed code doesn't depend on GPLed.
89075 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89077         * modules/inline (License): Change from GPL to LGPL.
89079 2006-11-17  Jim Meyering  <jim@meyering.net>
89081         * modules/d-type (License): Switch to LGPL.
89083 2006-11-15  Bruno Haible  <bruno@clisp.org>
89085         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
89087 2006-11-15  Eric Blake  <ebb9@byu.net>
89089         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
89090         the module dependency.
89092 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89093             Bruno Haible  <bruno@clisp.org>
89095         * gnulib-tool (func_create_testdir): Add license consistency check.
89097 2006-11-15  Eric Blake  <ebb9@byu.net>
89099         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
89100         random "(cached)" in configure output.
89102 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89104         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
89105         test for conforming inttypes.h is both announced and cached.
89107         * MODULES.html.sh (seen_modules, seen_files): New variables.
89108         (func_module): Rewrite to use a few less gnulib-tool and sed
89109         invocations.  Avoid a couple of quadratic algorithms for ...
89110         (missed_modules, missed_files): ... these, with ...
89111         (func_append, func_tmpdir): ... these new functions, from
89112         gnulib-tool.  Analogously, install traps for cleanup.
89114         * tests/test-gc.c (main): Remove unused variables.
89115         * tests/test-read-file.c: Include stdlib.h, for 'free'.
89117 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
89119         * modules/inttostr (License): Change to LGPL.
89121 2006-11-14  Eric Blake  <ebb9@byu.net>
89123         * modules/tempname (License): Change to LGPL.
89125 2006-11-14  Eric Blake  <ebb9@byu.net>
89127         * doc/functions.texi (Function Portability): *printf functions on
89128         Cygwin now understand all POSIX size specifiers.
89130 2006-11-14  Bruno Haible  <bruno@clisp.org>
89132         * modules/c-ctype (License): Change to LGPL.
89134 2006-11-12  Bruno Haible  <bruno@clisp.org>
89136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
89137         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
89138         for GNOME libraries, for which the include files are installed in
89139         subdirectories of $prefix/include.
89141 2006-11-12  Bruno Haible  <bruno@clisp.org>
89143         * m4/lib-link.m4: Require at least autoconf-2.54.
89144         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
89145         name to underscores for the --with option.
89147 2006-11-13  Bruno Haible  <bruno@clisp.org>
89149         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
89150         the tests directory.
89151         Reported by Ralf Wildenhues.
89153 2006-11-13  Bruno Haible  <bruno@clisp.org>
89155         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
89156         (func_emit_initmacro_end): Undo the override here.
89157         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
89158         Works around the famous automake error in coreutils.
89160 2006-11-13  Eric Blake  <ebb9@byu.net>
89162         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
89163         element, not its node.
89165 2006-11-12  Bruno Haible  <bruno@clisp.org>
89167         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
89168         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
89170 2006-11-12  Bruno Haible  <bruno@clisp.org>
89172         * gnulib-tool: New option --local-symlink.
89173         (func_usage): Document it.
89174         (lsymbolic): New variable.
89175         (func_import, func_create_testdir): If --symlink was not specified,
89176         test whether --local-symlink was specified and the file comes from
89177         the local_gnulib_dir.
89179 2006-11-12  Bruno Haible  <bruno@clisp.org>
89181         * gnulib-tool (func_ln): New function.
89182         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
89184 2006-11-12  Bruno Haible  <bruno@clisp.org>
89186         Finish support for source files in subdirectories.
89187         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
89188         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
89189         AUTOMAKE_OPTIONS.
89190         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
89192 2006-11-12  Bruno Haible  <bruno@clisp.org>
89194         * gnulib-tool (func_get_automake_snippet): Synthesize also an
89195         EXTRA_lib_SOURCES augmentation.
89196         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
89198 2006-11-12  Jim Meyering  <jim@meyering.net>
89200         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
89201         file descriptors.  This also averts a failure on systems with
89202         native openat support when a traversed directory lacks "x" access.
89203         * lib/fts_.h: Include "i-ring.h"
89204         (struct FTS) [fts_fd_ring]: New member.
89205         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
89206         (FCHDIR): Add parentheses.
89207         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
89208         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
89209         When descending, rather than simply closing the previous
89210         fts_cwd_fd value, push that file descriptor onto the ring.
89211         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
89212         (fts_open): Initialize the new fd_ring member.
89213         (fts_close): Clear the ring.
89214         (fts_safe_changedir): When possible, use our new fd_ring to skip
89215         the diropen and fstat and dev/ino comparison that would normally
89216         accompany a virtual `chdir ("..")'.
89218         * modules/fts (Depends-on): Add i-ring.
89219         * modules/i-ring: New module.
89220         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
89221         * m4/i-ring.m4: New file.
89223 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89225         * gnulib-tool (func_create_testdir): Fix replacement of
89226         `build-aux' in configure.ac.  Run autotools in gltests
89227         subdirectory.
89228         (func_create_testdir, func_create_megatestdir, test): There is
89229         no need for '--force' in most autotool invocations in a new
89230         tree.  Actually fail the whole test if any of the tools, or the
89231         configure or make stages fail.
89233         Sync from Automake.
89234         * build-aux/gnupload: Revert last change.  Add pointer to upload
89235         instructions of the GNU Maintenance Instructions.
89236         Suggestion by Karl Berry.
89238 2006-11-10  Jim Meyering  <jim@meyering.net>
89240         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
89242 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89244         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
89245         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
89246         (bind_textdomain_codeset) [! ENABLE_NLS]:
89247         Evaluate all the arguments.  That way, callers get compatible behavior
89248         if the arguments have side effects.  Also, it avoids some GCC
89249         diagnostics in some cases; Joel E. Denny reported problems when Bison
89250         was configured with --enable-gcc-warnigs.
89252 2006-11-10  Jim Meyering  <jim@meyering.net>
89254         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
89255         relevant options in CFLAGS (like -O, -fno-inline) are taken into
89256         account.
89258 2006-11-10  Jim Meyering  <jim@meyering.net>
89260         * modules/inline: New file/module.
89261         * modules/xalloc (Files): Remove m4/inline.m4.
89262         (Depends-on): Add inline, instead.
89263         * modules/oset: Likewise.
89264         * modules/list: Likewise.
89266 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89268         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
89269         Problem reported by Matthew Woehlke.
89271 2006-11-09  Bruno Haible  <bruno@clisp.org>
89273         * lib/tempname.c (gen_tempname): Remove variant that invokes
89274         __gen_tempname.
89275         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
89276         __gen_tempname.
89278 2006-11-08  Bruno Haible  <bruno@clisp.org>
89280         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
89281         to 'yes' instead of 'cross-compiling'.
89283 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
89285         * lib/quotearg.h (quotearg_free): New decl.
89286         * lib/quotearg.c (quotearg_free): New function.
89287         (slot0, nslots, slotvec0, slotvec):
89288         Now file-scope so that quotearg_free can get at them.
89290 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89292         Sync from Automake.
89293         * build-aux/gnupload: Add missing 'gnu' to example URL.
89294         Report by Karl Berry.
89296 2006-11-08  Bruno Haible  <bruno@clisp.org>
89298         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
89299         Suggested by Paul Eggert.
89301 2006-11-08  Jim Meyering  <jim@meyering.net>
89303         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
89304         It's already included if !_LIBC.
89305         (fts_safe_changedir): Add a comment.
89307 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
89309         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
89310         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
89311         Matthew Woehlke.
89313         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
89314         definitions up, to avoid colliding with change below.
89315         (static_inline) [HAVE_INLINE]: New macro.
89316         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
89317         Provide extern decls when !HAVE_INLINE.  Do not define unless
89318         static_inline is defined, either by us or by xmalloc.c.  Use
89319         static_inline rather than static inline.
89320         (XCALLOC): Optimize sizeof(T) = 1 case.
89321         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
89323 2006-11-07  Bruno Haible  <bruno@clisp.org>
89325         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
89326         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
89327         AC_C_INLINE.
89328         * modules/xalloc (Files): Add m4/inline.m4.
89330 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89332         * README: Fix typo.
89333         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
89334         (Miscellanous Notes): ...from this.
89336 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
89338         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
89339         Mention that offsetof should be used instead of sizeof.
89340         From Bruno Haible.
89342 2006-11-07  Bruno Haible  <bruno@clisp.org>
89344         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
89346 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
89348         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
89349         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
89350         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
89351         (gl_tree_add_before, gl_tree_add_after):
89352         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
89353         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
89354         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
89355         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
89356         (gl_linked_add_after, gl_linked_add_at): Likewise.
89357         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
89358         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
89359         (gl_tree_add_before, gl_tree_add_after): Likewise.
89360         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
89361         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
89362         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
89364 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89366         * lib/gl_oset.h: Use C comment style, not C++ comment style.
89368 2006-11-06  Bruno Haible  <bruno@clisp.org>
89370         * m4/inline.m4: New file.
89371         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
89372         * modules/list (Files): Add m4/inline.m4.
89373         * modules/oset (Files): Likewise.
89375 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
89377         * lib/idcache.c: Include <stddef.h>, for offsetof.
89378         (struct userid.name): Change from char * to a flexible array member.
89379         All uses changed.
89380         * modules/idcache (Depends-on): Add flexmember.
89382         * MODULES.html.sh (Core language properties): New module flexmember.
89383         * modules/flexmember, m4/flexmember.m4: New files.
89385         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
89386         inline functions that are identical with the old xnmalloc_inline,
89387         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
89388         that we can avoid some unnecessary integer multiplications and
89389         divisions in the common case where the element size is known at
89390         compile time.
89391         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
89392         needed.
89393         (xnboundedmalloc): Remove.
89394         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
89395         arguments, for consistency with rest of this header.
89396         (xcharalloc): Rewrite using XNMALLOC.
89397         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
89398         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
89399         versions have been moved to lib/xalloc.h and renamed to be the
89400         non-*_inline versions.
89401         (xmalloc, xrealloc): Implement without reference to the xnmalloc
89402         and xnrealloc functions, since those functions are now inline and
89403         now call us.
89404         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
89405         renaming described above.
89406         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
89407         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
89408         captures the dependency in AC_C_INLINE.
89410         New module canonicalize-lgpl, proposed by Charles Wilson in
89411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
89412         with a few small changes afterwards.
89413         * MODULES.html.sh (File system functions): New module
89414         canonicalize-lgpl.
89415         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
89416         and canonicalize_file_name.
89417         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
89418         * modules/canonicalize-lgpl: New files.
89420 2006-11-05  Bruno Haible  <bruno@clisp.org>
89422         * gnulib-tool (func_import, func_create_testdir): Create directories
89423         also for files in subdirectories of lib/.
89425 2006-11-05  Bruno Haible  <bruno@clisp.org>
89427         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
89428         ANSI C compliant.
89430 2006-11-03  Bruno Haible  <bruno@clisp.org>
89432         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
89433         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
89434         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
89435         (xnboundedmalloc): New inline function.
89436         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
89437         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
89438         xmalloc.
89439         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
89440         xmalloc.
89441         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
89442         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
89443         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
89444         xmalloc.
89445         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
89446         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
89447         xmalloc.
89448         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
89449         gl_tree_add_after): Use XMALLOC instead of xmalloc.
89450         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
89451         xmalloc.
89452         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
89453         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
89454         gl_tree_add_after): Use XMALLOC instead of xmalloc.
89455         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
89456         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
89457         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
89458         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
89460 2006-11-03  Bruno Haible  <bruno@clisp.org>
89462         * lib/c-ctype.h [C++]: Define functions without name mangling.
89463         * lib/fwriteerror.h [C++]: Likewise.
89464         * lib/gcd.h [C++]: Likewise.
89465         * lib/linebreak.h [C++]: Likewise.
89467 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89469         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
89470         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
89471         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
89472         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
89473         Check for functions and headers just once.
89474         Check for declaration of canonicalize_file_name.
89475         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
89477 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
89479         * gnulib-tool (func_import): Fix typo in actioncmd.
89481 2006-11-02  Bruno Haible  <bruno@clisp.org>
89483         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
89484         newline sequence in the Makefile.am snippet as a space, like "make"
89485         does.
89486         Reported by Roger Persson <perrog@gmail.com>.
89488 2006-11-01  Bruno Haible  <bruno@clisp.org>
89490         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
89491         already declared in <string.h>.
89492         * lib/strcase.h (strncasecmp): Don't declare it if yes.
89494 2006-11-01  Bruno Haible  <bruno@clisp.org>
89496         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
89497         * lib/strcase.h: Include <string.h>.
89498         (strcasecmp): Define to rpl_strcasecmp here.
89500 2006-11-01  Bruno Haible  <bruno@clisp.org>
89502         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
89504 2006-11-01  Eric Blake  <ebb9@byu.net>
89506         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
89508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
89510 2006-10-29  Bruno Haible  <bruno@clisp.org>
89512         Make it compile in C++ mode.
89513         * lib/full-write.c (full_rw): Add a cast.
89515 2006-11-01  Bruno Haible  <bruno@clisp.org>
89517         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
89518         be POSIX compliant.
89519         Reported by Roger Persson <perrog@gmail.com>.
89521 2006-11-01  Eric Blake  <ebb9@byu.net>
89523         * lib/getopt_.h: Fix comments.
89525 2006-10-31  Eric Blake  <ebb9@byu.net>
89527         * modules/tmpdir (Depends-on): Add sys_stat.
89528         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
89529         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
89530         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
89531         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
89532         tempname.
89534 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
89536         Avoid some C++ diagnostics reported by Bruno Haible.
89537         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
89538         xmalloc.
89539         (quotearg_alloc): Use xcharalloc rather than xmalloc.
89540         (struct slotvec): Move to top level.
89541         (quotearg_n_options): Rewrite to avoid xmalloc.
89542         * lib/xalloc.h (xcharalloc): New function.
89543         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
89544         [defined __cplusplus]: Add function template that provides result
89545         type propagation.  This part of the change is from Bruno Haible.
89547 2006-10-29  Bruno Haible  <bruno@clisp.org>
89549         Make it compile in C++ mode.
89550         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
89551         * lib/strnlen1.c (strnlen1): Cast memchr result.
89552         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
89553         * lib/clean-temp.c (string_equals, string_hash): Add casts.
89554         (create_temp_dir): Rename local variable 'template'.
89555         (compile_csharp_using_sscli): Add cast.
89556         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
89557         * lib/findprog.c (find_in_path): Likewise.
89558         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
89559         * lib/wait-process.c (register_slave_subprocess): Likewise.
89561 2006-10-22  Bruno Haible  <bruno@clisp.org>
89563         * modules/tsearch: New file.
89564         * lib/tsearch.h: New file.
89565         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
89566         * m4/tsearch.m4: New file.
89567         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
89569 2006-10-29  Eric Blake  <ebb9@byu.net>
89571         * lib/arcfour.c: Assume config.h.
89572         * lib/arctwo.c: Likewise.
89573         * lib/base64.c: Likewise.
89574         * lib/check-version.c: Likewise.
89575         * lib/crc.c: Likewise.
89576         * lib/des.c: Likewise.
89577         * lib/gc-gnulib.c: Likewise.
89578         * lib/gc-libgcrypt.c: Likewise.
89579         * lib/gc-pbkdf2-sha1.c: Likewise.
89580         * lib/getaddrinfo.c: Likewise.
89581         * lib/getdelim.c: Likewise.
89582         * lib/getline.c: Likewise.
89583         * lib/hmac-md5.c: Likewise.
89584         * lib/hmac-sha1.c: Likewise.
89585         * lib/iconvme.c: Likewise.
89586         * lib/md2.c: Likewise.
89587         * lib/md4.c: Likewise.
89588         * lib/memxor.c: Likewise.
89589         * lib/read-file.c: Likewise.
89590         * lib/readline.c: Likewise.
89591         * lib/rijndael-alg-fst.c: Likewise.
89592         * lib/rijndael-api-fst.c: Likewise.
89593         * lib/xgetdomainname.c: Likewise.
89595 2006-10-28  Eric Blake  <ebb9@byu.net>
89597         * lib/xstrndup.c: Assume config.h.
89599 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
89601         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
89602         stat-macros.h is now for our own macros, whereas stat_h is for
89603         macros in the <sys/stat.h> name space.
89604         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
89605         (STAT_MACROS_H): Remove.
89606         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
89607         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
89608         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
89609         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
89610         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
89611         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
89612         Move these macros to ...
89613         * lib/stat_.h: here.  Don't include stat-macros.h.
89614         * lib/canonicalize.c: Don't include stat-macros.h.
89615         * lib/chown.c: Likewise.
89616         * lib/euidaccess.c: Likewise.
89617         * lib/file-type.c: Likewise.
89618         * lib/filemode.c: Likewise.
89619         * lib/glob.c: Likewise.
89620         * lib/isapipe.c: Likewise.
89621         * lib/lchown.c: Likewise.
89622         * lib/lstat.c: Likewise.
89623         * lib/mkdir-p.c: Likewise.
89624         * lib/rmdir.c: Likewise.
89625         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
89626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
89627         unless mkdir isn't declared, to speed up 'configure'.
89628         Always create sys/stat.h, since it's unlikely any real sys/stat.h
89629         would define all the S_* symbols.
89630         * modules/canonicalize (Depends-on):
89631         Depend on sys_stat, not stat-macros.
89632         * modules/chown: Likewise.
89633         * modules/euidaccess: Likewise.
89634         * modules/filemode: Likewise.
89635         * modules/file-type: Likewise.
89636         * modules/glob: Likewise.
89637         * modules/isapipe: Likewise.
89638         * modules/lchown: Likewise.
89639         * modules/lstat: Likewise.
89640         * modules/mkancesdirs: Likewise.
89641         * modules/rmdir: Likewise.
89642         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
89643         * modules/modechange: Likewise.
89644         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
89645         (configure.ac): Remove gl_STAT_MACROS.
89646         * modules/sys_stat (Depends-on): Remove stat-macros.
89648 2006-10-27  Bruno Haible  <bruno@clisp.org>
89650         * m4/signed.m4: Remove file.
89651         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
89652         invocation.
89653         * modules/vasnprintf (Files): Remove m4/signed.m4.
89655 2006-10-27  Bruno Haible  <bruno@clisp.org>
89657         Update to GNU gettext 0.16.
89658         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
89659         m4/inttypes-h.m4, m4/signed.m4.
89660         * m4/gettext.m4: Update to GNU gettext 0.16.
89661         * m4/intl.m4: New file, from GNU gettext.
89662         * m4/intldir.m4: New file, from GNU gettext.
89663         * config/srclist.txt: Update
89665 2006-10-27  Eric Blake  <ebb9@byu.net>
89667         * MODULES.html.sh: Document tempname.
89668         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
89669         dependencies.
89670         (Files): Move lib/tempname.c...
89671         * modules/tempname: ...to this new module.
89672         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
89673         (gl_PREREQ_TEMPNAME): Move...
89674         * m4/tempname.m4: ...to this new file.
89675         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
89676         * modules/sys_stat (Depends-on): Add stat-macros.
89677         * lib/stat_.h (includes): Pick up stat macros.
89678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
89679         if stat macros are broken.
89680         * lib/tempname.c (includes): No need to include "stat-macros.h".
89681         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
89682         (direxists, __path_search) [!_LIBC]: Don't compile these in
89683         gnulib; the tmpdir module covers that.
89684         * lib/tempname.h: New file.
89686 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
89688         * COPYING: Explain how gnulib-tool converts licence headers.
89689         Almost all wording by Eric Blake.
89691 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
89693         * lib/mbchar.h (is_basic_table): Make read-only.
89694         * lib/mbchar.c (is_basic_table): Likewise.
89695         Reported by John Darrington.
89697 2006-10-25  Bruno Haible  <bruno@clisp.org>
89699         * lib/progname.h (set_program_name): Undefine before defining.
89701 2006-10-25  Bruno Haible  <bruno@clisp.org>
89703         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
89704         false for non-gcc C++ compilers.
89705         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
89707 2006-10-24  Bruno Haible  <bruno@clisp.org>
89709         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
89710         iconv implementations like Irix iconv.
89712 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89714         * modules/vararrays: New file.
89715         * m4/vararrays.m4: New file, taken from diffutils.
89716         * MODULES.html.sh: New module vararrays.
89718 2006-10-24  Karl Berry  <karl@gnu.org>
89720         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
89721         Don't call GNU Unix.
89723 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89725         * users.txt: Add Libtool.
89727         Sync from Libtool:
89729         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89731         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
89732         to gnulib's policy of including config.h unconditionally.
89734 2006-10-24  Bruno Haible  <bruno@clisp.org>
89736         * modules/wcwidth (Files): Add m4/wint_t.m4.
89737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
89738         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
89740 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89742         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
89743         to pacify GCC with some -W flags enabled.  Problem reported by
89744         Bruno Haible.
89746 2006-10-24  Jim Meyering  <jim@meyering.net>
89748         * MODULES.html.sh: Remove uinttostr.  It's not a module.
89749         Reported by Karl Berry.
89751 2006-10-23  Bruno Haible  <bruno@clisp.org>
89753         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
89755 2006-10-24  Bruno Haible  <bruno@clisp.org>
89757         * lib/gl_list.h: Use C comment style, not C++ comment style.
89759 2006-10-23  Eric Blake  <ebb9@byu.net>
89761         * lib/getaddrinfo.c (includes): Add missing include.
89763 2006-10-23  Bruno Haible  <bruno@clisp.org>
89764             Paul Eggert  <eggert@cs.ucla.edu>
89766         Ability to rename obstack_free.
89767         * lib/obstack.h (__obstack_free): New macro. Declare instead of
89768         obstack_free.
89769         (obstack_free): Invoke the __obstack_free macro.
89770         * lib/obstack.c (obstack_free): Use __obstack_free macro.
89772 2006-10-23  Bruno Haible  <bruno@clisp.org>
89773             Paul Eggert  <eggert@cs.ucla.edu>
89775         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
89776         __argc, __argv from the declaration. (They are defined as macros on
89777         mingw.)
89779 2006-10-22  Bruno Haible  <bruno@clisp.org>
89781         * doc/gnulib-intro.texi: New file.
89782         * doc/gnulib.texi: Include it.
89784 2006-10-21  Bruno Haible  <bruno@clisp.org>
89786         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
89787         "Introduction", "Miscellanous Notes", "Particular Modules".
89789 2006-10-21  Bruno Haible  <bruno@clisp.org>
89791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89792         Change mostlyclean-local rule to avoid sh syntax error from bash
89793         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
89795 2006-10-23  Jim Meyering  <jim@meyering.net>
89797         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
89798         in place of snprintf.
89800         * modules/inttostr (Files): Add lib/uinttostr.c.
89801         * lib/uinttostr.c (inttostr): New file/function.
89802         * lib/inttostr.h (uinttostr): Declare.
89803         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
89804         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
89805         Add uinttostr.
89806         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
89808 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
89810         * lib/canonicalize.c (ELOOP): Define if not already defined.
89811         Problem reported by Bruno Haible in
89812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
89814 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
89816         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
89817         Problem reported by Perry Smith and Ville Laurikari.
89819         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
89820         uses.
89822 2006-10-19  Bruno Haible  <bruno@clisp.org>
89824         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
89825         for mingw.
89827 2006-10-19  Bruno Haible  <bruno@clisp.org>
89829         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
89830         Needed for mingw.
89832 2006-10-19  Bruno Haible  <bruno@clisp.org>
89834         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
89836 2006-10-19  Bruno Haible  <bruno@clisp.org>
89838         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
89839         it.
89841 2006-10-19  Bruno Haible  <bruno@clisp.org>
89843         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
89844         invocation.
89846 2006-10-19  Bruno Haible  <bruno@clisp.org>
89848         * gnulib-tool (func_create_testdir): Don't include ftruncate and
89849         mountlist by default.
89851 2006-10-16  Bruno Haible  <bruno@clisp.org>
89853         * lib/c-strstr.c: Include c-strstr.h.
89855 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
89857         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
89858         in a slash.
89860 2006-10-18  Bruno Haible  <bruno@clisp.org>
89862         * lib/lock.h [C++]: Wrap definitions in extern "C".
89864 2006-10-18  Bruno Haible  <bruno@clisp.org>
89866         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
89867         gl_LIBOBJS list.
89869 2006-10-18  Bruno Haible  <bruno@clisp.org>
89871         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
89873 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
89875         * lib/xstrtol.h: Include gettext.h.
89876         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
89877         Problem reported by Eric Blake.
89878         * modules/xstrtol (Depends-on): Add gettext-h.
89880 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
89882         * lib/strftime.c (advance): New macro.
89883         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
89884         incomplete type, so you can't add 0 to it.  Problem and patch
89885         reported by Eelco Dolstra for dietlibc.
89887 2006-10-18  Jim Meyering  <jim@meyering.net>
89889         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
89890         type for a local, and rename it: s/up/user_proc/.
89892 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
89894         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
89895         READ_UTMP_USER_PROCESS.
89896         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
89898 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89900         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
89901         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
89903 2006-10-17  Eric Blake  <ebb9@byu.net>
89905         * lib/sigprocmask.c (sigprocmask): Fix typo.
89907         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
89909         * modules/clean-temp (Makefile.am): Don't add to make output...
89910         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
89911         config.h.
89913 2006-10-17  Bruno Haible  <bruno@clisp.org>
89915         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
89916         differently if DEFAULT_TEXT_DOMAIN is set.
89918 2006-10-16  Bruno Haible  <bruno@clisp.org>
89920         * lib/clean-temp.c: Include fwriteerror.h.
89922 2006-10-16  Bruno Haible  <bruno@clisp.org>
89924         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
89926 2006-10-16  Bruno Haible  <bruno@clisp.org>
89928         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
89929         * lib/sigprocmask.h: Include <sys/types.h>.
89930         (sigset_t): Use the system's definition if present.
89932 2006-10-17  Eric Blake  <ebb9@byu.net>
89934         * lib/xvasprintf.c (includes): Assume config.h.
89935         * lib/xasprintf.c (includes): Likewise.
89937 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89939         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
89940         at least as wide as intmax_t.
89942 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
89944         (Imported from Automake.)
89945         * build-aux/gnupload: Update to version 1.1 of directive file.
89947 2006-10-16  Eric Blake  <ebb9@byu.net>
89949         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
89950         match Automake 1.10a.
89952 2006-10-14  Bruno Haible  <bruno@clisp.org>
89954         * modules/sigprocmask: New file.
89955         * lib/sigprocmask.h: New file.
89956         * lib/sigprocmask.c: New file.
89957         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
89958         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
89959         request sigprocmask.o.
89960         (gl_PREREQ_SIGPROCMASK): New macro.
89961         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
89962         (Depends-on): Add sigprocmask.
89963         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
89964         gt_SIGNALBLOCKING. Test for 'raise' only once.
89965         * lib/fatal-signal.c: Include sigprocmask.h.
89966         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
89967         unblock_fatal_signals): Define always.
89968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89969         sigprocmask.
89971 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
89973         Sync from Automake.
89974         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
89975         which incorrectly sets the mode of an existing destination
89976         directory.  In some cases the unpatched install-sh could do the
89977         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
89978         system.  We hope this is rare in practice, but it's clearly worth
89979         fixing.  Problem reported by Alex Unleashed in
89980         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
89981         Also, don't bother to check for -m bugs unless we're using -m;
89982         suggested by Stepan Kasal.
89984 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89986         Sync from Automake.
89987         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
89988         `-c' flag, so they appear at the same position as in %FASTDEP%
89989         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
89990         which ignores unknown options only after the first non-option.
89991         Bug report against M4 by Nelson H. F. Beebe.
89993 2006-10-13  Jim Meyering  <jim@meyering.net>
89995         Fix a bug in yesterday's change.
89996         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
89997         p->fts_statp->st_dev would be used uninitialized.
89998         Ensures that we always call fts_stat on the very first entry.
89999         Miklos Szeredi reported that find -xdev stopped working.
90001 2006-10-12  Bruno Haible  <bruno@clisp.org>
90003         * gnulib-tool (func_get_automake_snippet): Append an automatically
90004         computed EXTRA_DIST augmentation.
90005         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
90006         * modules/alloca-opt (Makefile.am): Likewise.
90007         * modules/allocsa (Makefile.am): Likewise.
90008         * modules/arcfour (Makefile.am): Likewise.
90009         * modules/arctwo (Makefile.am): Likewise.
90010         * modules/argmatch (Makefile.am): Likewise.
90011         * modules/argz (Makefile.am): Likewise.
90012         * modules/atexit (Makefile.am): Likewise.
90013         * modules/backupfile (Makefile.am): Likewise.
90014         * modules/byteswap (Makefile.am): Likewise.
90015         * modules/c-strtod (Makefile.am): Likewise.
90016         * modules/c-strtold (Makefile.am): Likewise.
90017         * modules/calloc (Makefile.am): Likewise.
90018         * modules/canon-host (Makefile.am): Likewise.
90019         * modules/canonicalize (Makefile.am): Likewise.
90020         * modules/chdir-long (Makefile.am): Likewise.
90021         * modules/chdir-safer (Makefile.am): Likewise.
90022         * modules/check-version (Makefile.am): Likewise.
90023         * modules/chown (Makefile.am): Likewise.
90024         * modules/cloexec (Makefile.am): Likewise.
90025         * modules/close-stream (Makefile.am): Likewise.
90026         * modules/closeout (Makefile.am): Likewise.
90027         * modules/crc (Makefile.am): Likewise.
90028         * modules/csharpexec (Makefile.am): Likewise.
90029         * modules/cycle-check (Makefile.am): Likewise.
90030         * modules/des (Makefile.am): Likewise.
90031         * modules/dev-ino (Makefile.am): Likewise.
90032         * modules/dirfd (Makefile.am): Likewise.
90033         * modules/dirname (Makefile.am): Likewise.
90034         * modules/dup2 (Makefile.am): Likewise.
90035         * modules/eealloc (Makefile.am): Likewise.
90036         * modules/error (Makefile.am): Likewise.
90037         * modules/euidaccess (Makefile.am): Likewise.
90038         * modules/exclude (Makefile.am): Likewise.
90039         * modules/exitfail (Makefile.am): Likewise.
90040         * modules/fcntl-safer (Makefile.am): Likewise.
90041         * modules/fcntl (Makefile.am): Likewise.
90042         * modules/file-type (Makefile.am): Likewise.
90043         * modules/fileblocks (Makefile.am): Likewise.
90044         * modules/filemode (Makefile.am): Likewise.
90045         * modules/filenamecat (Makefile.am): Likewise.
90046         * modules/fnmatch (Makefile.am): Likewise.
90047         * modules/fopen-safer (Makefile.am): Likewise.
90048         * modules/fpending (Makefile.am): Likewise.
90049         * modules/fprintftime (Makefile.am): Likewise.
90050         * modules/free (Makefile.am): Likewise.
90051         * modules/fsusage (Makefile.am): Likewise.
90052         * modules/ftruncate (Makefile.am): Likewise.
90053         * modules/fts (Makefile.am): Likewise.
90054         * modules/gc-arcfour (Makefile.am): Likewise.
90055         * modules/gc-des (Makefile.am): Likewise.
90056         * modules/gc-hmac-md5 (Makefile.am): Likewise.
90057         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
90058         * modules/gc-md4 (Makefile.am): Likewise.
90059         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
90060         * modules/gc-sha1 (Makefile.am): Likewise.
90061         * modules/gc (Makefile.am): Likewise.
90062         * modules/getaddrinfo (Makefile.am): Likewise.
90063         * modules/getcwd (Makefile.am): Likewise.
90064         * modules/getdelim (Makefile.am): Likewise.
90065         * modules/getdomainname (Makefile.am): Likewise.
90066         * modules/getgroups (Makefile.am): Likewise.
90067         * modules/gethostname (Makefile.am): Likewise.
90068         * modules/gethrxtime (Makefile.am): Likewise.
90069         * modules/getline (Makefile.am): Likewise.
90070         * modules/getloadavg (Makefile.am): Likewise.
90071         * modules/getlogin_r (Makefile.am): Likewise.
90072         * modules/getndelim2 (Makefile.am): Likewise.
90073         * modules/getopt (Makefile.am): Likewise.
90074         * modules/getpagesize (Makefile.am): Likewise.
90075         * modules/getpass-gnu (Makefile.am): Likewise.
90076         * modules/getpass (Makefile.am): Likewise.
90077         * modules/getsubopt (Makefile.am): Likewise.
90078         * modules/gettime (Makefile.am): Likewise.
90079         * modules/gettimeofday (Makefile.am): Likewise.
90080         * modules/getugroups (Makefile.am): Likewise.
90081         * modules/getusershell (Makefile.am): Likewise.
90082         * modules/glob (Makefile.am): Likewise.
90083         * modules/group-member (Makefile.am): Likewise.
90084         * modules/hard-locale (Makefile.am): Likewise.
90085         * modules/hash (Makefile.am): Likewise.
90086         * modules/hmac-md5 (Makefile.am): Likewise.
90087         * modules/hmac-sha1 (Makefile.am): Likewise.
90088         * modules/human (Makefile.am): Likewise.
90089         * modules/idcache (Makefile.am): Likewise.
90090         * modules/imaxabs (Makefile.am): Likewise.
90091         * modules/imaxdiv (Makefile.am): Likewise.
90092         * modules/inet_ntop (Makefile.am): Likewise.
90093         * modules/inet_pton (Makefile.am): Likewise.
90094         * modules/intprops (Makefile.am): Likewise.
90095         * modules/inttostr (Makefile.am): Likewise.
90096         * modules/inttypes (Makefile.am): Likewise.
90097         * modules/isapipe (Makefile.am): Likewise.
90098         * modules/javaversion (Makefile.am): Likewise.
90099         * modules/lchmod (Makefile.am): Likewise.
90100         * modules/lchown (Makefile.am): Likewise.
90101         * modules/localcharset (Makefile.am): Likewise.
90102         * modules/long-options (Makefile.am): Likewise.
90103         * modules/lstat (Makefile.am): Likewise.
90104         * modules/malloc (Makefile.am): Likewise.
90105         * modules/mathl (Makefile.am): Likewise.
90106         * modules/mbchar (Makefile.am): Likewise.
90107         * modules/md2 (Makefile.am): Likewise.
90108         * modules/md4 (Makefile.am): Likewise.
90109         * modules/md5 (Makefile.am): Likewise.
90110         * modules/memcasecmp (Makefile.am): Likewise.
90111         * modules/memchr (Makefile.am): Likewise.
90112         * modules/memcmp (Makefile.am): Likewise.
90113         * modules/memcoll (Makefile.am): Likewise.
90114         * modules/memcpy (Makefile.am): Likewise.
90115         * modules/memmem (Makefile.am): Likewise.
90116         * modules/memmove (Makefile.am): Likewise.
90117         * modules/mempcpy (Makefile.am): Likewise.
90118         * modules/memrchr (Makefile.am): Likewise.
90119         * modules/memset (Makefile.am): Likewise.
90120         * modules/memxor (Makefile.am): Likewise.
90121         * modules/mkancesdirs (Makefile.am): Likewise.
90122         * modules/mkdir-p (Makefile.am): Likewise.
90123         * modules/mkdir (Makefile.am): Likewise.
90124         * modules/mkdtemp (Makefile.am): Likewise.
90125         * modules/mkstemp (Makefile.am): Likewise.
90126         * modules/mktime (Makefile.am): Likewise.
90127         * modules/modechange (Makefile.am): Likewise.
90128         * modules/mountlist (Makefile.am): Likewise.
90129         * modules/nanosleep (Makefile.am): Likewise.
90130         * modules/obstack (Makefile.am): Likewise.
90131         * modules/openat (Makefile.am): Likewise.
90132         * modules/pagealign_alloc (Makefile.am): Likewise.
90133         * modules/pathmax (Makefile.am): Likewise.
90134         * modules/physmem (Makefile.am): Likewise.
90135         * modules/poll (Makefile.am): Likewise.
90136         * modules/posixtm (Makefile.am): Likewise.
90137         * modules/posixver (Makefile.am): Likewise.
90138         * modules/putenv (Makefile.am): Likewise.
90139         * modules/quote (Makefile.am): Likewise.
90140         * modules/quotearg (Makefile.am): Likewise.
90141         * modules/raise (Makefile.am): Likewise.
90142         * modules/read-file (Makefile.am): Likewise.
90143         * modules/readline (Makefile.am): Likewise.
90144         * modules/readlink (Makefile.am): Likewise.
90145         * modules/readtokens (Makefile.am): Likewise.
90146         * modules/readutmp (Makefile.am): Likewise.
90147         * modules/realloc (Makefile.am): Likewise.
90148         * modules/regex (Makefile.am): Likewise.
90149         * modules/rename-dest-slash (Makefile.am): Likewise.
90150         * modules/rename (Makefile.am): Likewise.
90151         * modules/rijndael (Makefile.am): Likewise.
90152         * modules/rmdir (Makefile.am): Likewise.
90153         * modules/rpmatch (Makefile.am): Likewise.
90154         * modules/safe-read (Makefile.am): Likewise.
90155         * modules/safe-write (Makefile.am): Likewise.
90156         * modules/same-inode (Makefile.am): Likewise.
90157         * modules/same (Makefile.am): Likewise.
90158         * modules/save-cwd (Makefile.am): Likewise.
90159         * modules/savedir (Makefile.am): Likewise.
90160         * modules/setenv (Makefile.am): Likewise.
90161         * modules/settime (Makefile.am): Likewise.
90162         * modules/sha1 (Makefile.am): Likewise.
90163         * modules/sig2str (Makefile.am): Likewise.
90164         * modules/snprintf (Makefile.am): Likewise.
90165         * modules/stat-macros (Makefile.am): Likewise.
90166         * modules/stat-time (Makefile.am): Likewise.
90167         * modules/stdbool (Makefile.am): Likewise.
90168         * modules/stdint (Makefile.am): Likewise.
90169         * modules/stdlib-safer (Makefile.am): Likewise.
90170         * modules/stpcpy (Makefile.am): Likewise.
90171         * modules/stpncpy (Makefile.am): Likewise.
90172         * modules/strcase (Makefile.am): Likewise.
90173         * modules/strcasestr (Makefile.am): Likewise.
90174         * modules/strchrnul (Makefile.am): Likewise.
90175         * modules/strcspn (Makefile.am): Likewise.
90176         * modules/strdup (Makefile.am): Likewise.
90177         * modules/strerror (Makefile.am): Likewise.
90178         * modules/strftime (Makefile.am): Likewise.
90179         * modules/strndup (Makefile.am): Likewise.
90180         * modules/strnlen (Makefile.am): Likewise.
90181         * modules/strpbrk (Makefile.am): Likewise.
90182         * modules/strsep (Makefile.am): Likewise.
90183         * modules/strstr (Makefile.am): Likewise.
90184         * modules/strtod (Makefile.am): Likewise.
90185         * modules/strtoimax (Makefile.am): Likewise.
90186         * modules/strtok_r (Makefile.am): Likewise.
90187         * modules/strtol (Makefile.am): Likewise.
90188         * modules/strtoll (Makefile.am): Likewise.
90189         * modules/strtoul (Makefile.am): Likewise.
90190         * modules/strtoull (Makefile.am): Likewise.
90191         * modules/strtoumax (Makefile.am): Likewise.
90192         * modules/strverscmp (Makefile.am): Likewise.
90193         * modules/sys_socket (Makefile.am): Likewise.
90194         * modules/sys_stat (Makefile.am): Likewise.
90195         * modules/sysexits (Makefile.am): Likewise.
90196         * modules/time_r (Makefile.am): Likewise.
90197         * modules/timegm (Makefile.am): Likewise.
90198         * modules/timespec (Makefile.am): Likewise.
90199         * modules/tmpfile-safer (Makefile.am): Likewise.
90200         * modules/trim (Makefile.am): Likewise.
90201         * modules/unistd-safer (Makefile.am): Likewise.
90202         * modules/unlinkdir (Makefile.am): Likewise.
90203         * modules/unlocked-io (Makefile.am): Likewise.
90204         * modules/userspec (Makefile.am): Likewise.
90205         * modules/utime (Makefile.am): Likewise.
90206         * modules/utimecmp (Makefile.am): Likewise.
90207         * modules/utimens (Makefile.am): Likewise.
90208         * modules/vasnprintf (Makefile.am): Likewise.
90209         * modules/vasprintf (Makefile.am): Likewise.
90210         * modules/vsnprintf (Makefile.am): Likewise.
90211         * modules/xalloc (Makefile.am): Likewise.
90212         * modules/xgetcwd (Makefile.am): Likewise.
90213         * modules/xnanosleep (Makefile.am): Likewise.
90214         * modules/xreadlink (Makefile.am): Likewise.
90215         * modules/xstrtod (Makefile.am): Likewise.
90216         * modules/xstrtol (Makefile.am): Likewise.
90217         * modules/xstrtold (Makefile.am): Likewise.
90218         * modules/yesno (Makefile.am): Likewise.
90219         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
90221 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
90223         * modules/error (Makefile.am): Distribute files through
90224         EXTRA_DIST, not lib_SOURCES.
90226 2006-10-12  Eric Blake  <ebb9@byu.net>
90228         * modules/error (Makefile.am): Distribute files in /lib.
90229         * modules/obstack (Makefile.am): Likewise.
90231 2006-10-12  Bruno Haible  <bruno@clisp.org>
90233         * modules/acl (Makefile.am): Distribute all files in lib/ through
90234         EXTRA_DIST.
90235         * modules/arcfour (Makefile.am): Likewise.
90236         * modules/arctwo (Makefile.am): Likewise.
90237         * modules/argmatch (Makefile.am): Likewise.
90238         * modules/argz (Makefile.am): Likewise.
90239         * modules/atexit (Makefile.am): Likewise.
90240         * modules/backupfile (Makefile.am): Likewise.
90241         * modules/c-strtod (Makefile.am): Likewise.
90242         * modules/c-strtold (Makefile.am): Likewise.
90243         * modules/calloc (Makefile.am): Likewise.
90244         * modules/canon-host (Makefile.am): Likewise.
90245         * modules/canonicalize (Makefile.am): Likewise.
90246         * modules/chdir-long (Makefile.am): Likewise.
90247         * modules/chdir-safer (Makefile.am): Likewise.
90248         * modules/check-version (Makefile.am): Likewise.
90249         * modules/chown (Makefile.am): Likewise.
90250         * modules/cloexec (Makefile.am): Likewise.
90251         * modules/close-stream (Makefile.am): Likewise.
90252         * modules/closeout (Makefile.am): Likewise.
90253         * modules/crc (Makefile.am): Likewise.
90254         * modules/cycle-check (Makefile.am): Likewise.
90255         * modules/des (Makefile.am): Likewise.
90256         * modules/dirfd (Makefile.am): Likewise.
90257         * modules/dirname (Makefile.am): Likewise.
90258         * modules/dup2 (Makefile.am): Likewise.
90259         * modules/euidaccess (Makefile.am): Likewise.
90260         * modules/exclude (Makefile.am): Likewise.
90261         * modules/exitfail (Makefile.am): Likewise.
90262         * modules/fcntl-safer (Makefile.am): Likewise.
90263         * modules/file-type (Makefile.am): Likewise.
90264         * modules/fileblocks (Makefile.am): Likewise.
90265         * modules/filemode (Makefile.am): Likewise.
90266         * modules/filenamecat (Makefile.am): Likewise.
90267         * modules/fnmatch (Makefile.am): Likewise.
90268         * modules/fopen-safer (Makefile.am): Likewise.
90269         * modules/fpending (Makefile.am): Likewise.
90270         * modules/fprintftime (Makefile.am): Likewise.
90271         * modules/free (Makefile.am): Likewise.
90272         * modules/fsusage (Makefile.am): Likewise.
90273         * modules/ftruncate (Makefile.am): Likewise.
90274         * modules/fts (Makefile.am): Likewise.
90275         * modules/gc (Makefile.am): Likewise.
90276         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
90277         * modules/getaddrinfo (Makefile.am): Likewise.
90278         * modules/getcwd (Makefile.am): Likewise.
90279         * modules/getdelim (Makefile.am): Likewise.
90280         * modules/getdomainname (Makefile.am): Likewise.
90281         * modules/getgroups (Makefile.am): Likewise.
90282         * modules/gethostname (Makefile.am): Likewise.
90283         * modules/gethrxtime (Makefile.am): Likewise.
90284         * modules/getline (Makefile.am): Likewise.
90285         * modules/getloadavg (Makefile.am): Likewise.
90286         * modules/getlogin_r (Makefile.am): Likewise.
90287         * modules/getopt (Makefile.am): Likewise.
90288         * modules/getpass (Makefile.am): Likewise.
90289         * modules/getpass-gnu (Makefile.am): Likewise.
90290         * modules/getsubopt (Makefile.am): Likewise.
90291         * modules/gettime (Makefile.am): Likewise.
90292         * modules/gettimeofday (Makefile.am): Likewise.
90293         * modules/getugroups (Makefile.am): Likewise.
90294         * modules/getusershell (Makefile.am): Likewise.
90295         * modules/glob (Makefile.am): Likewise.
90296         * modules/group-member (Makefile.am): Likewise.
90297         * modules/hard-locale (Makefile.am): Likewise.
90298         * modules/hash (Makefile.am): Likewise.
90299         * modules/hmac-md5 (Makefile.am): Likewise.
90300         * modules/hmac-sha1 (Makefile.am): Likewise.
90301         * modules/human (Makefile.am): Likewise.
90302         * modules/idcache (Makefile.am): Likewise.
90303         * modules/imaxabs (Makefile.am): Likewise.
90304         * modules/imaxdiv (Makefile.am): Likewise.
90305         * modules/inet_ntop (Makefile.am): Likewise.
90306         * modules/inet_pton (Makefile.am): Likewise.
90307         * modules/inttostr (Makefile.am): Likewise.
90308         * modules/isapipe (Makefile.am): Likewise.
90309         * modules/lchown (Makefile.am): Likewise.
90310         * modules/long-options (Makefile.am): Likewise.
90311         * modules/lstat (Makefile.am): Likewise.
90312         * modules/malloc (Makefile.am): Likewise.
90313         * modules/mathl (Makefile.am): Likewise.
90314         * modules/mbchar (Makefile.am): Likewise.
90315         * modules/md2 (Makefile.am): Likewise.
90316         * modules/md4 (Makefile.am): Likewise.
90317         * modules/md5 (Makefile.am): Likewise.
90318         * modules/memcasecmp (Makefile.am): Likewise.
90319         * modules/memchr (Makefile.am): Likewise.
90320         * modules/memcmp (Makefile.am): Likewise.
90321         * modules/memcoll (Makefile.am): Likewise.
90322         * modules/memcpy (Makefile.am): Likewise.
90323         * modules/memmem (Makefile.am): Likewise.
90324         * modules/memmove (Makefile.am): Likewise.
90325         * modules/mempcpy (Makefile.am): Likewise.
90326         * modules/memrchr (Makefile.am): Likewise.
90327         * modules/memset (Makefile.am): Likewise.
90328         * modules/memxor (Makefile.am): Likewise.
90329         * modules/mkancesdirs (Makefile.am): Likewise.
90330         * modules/mkdir (Makefile.am): Likewise.
90331         * modules/mkdir-p (Makefile.am): Likewise.
90332         * modules/mkdtemp (Makefile.am): Likewise.
90333         * modules/mkstemp (Makefile.am): Likewise.
90334         * modules/mktime (Makefile.am): Likewise.
90335         * modules/modechange (Makefile.am): Likewise.
90336         * modules/mountlist (Makefile.am): Likewise.
90337         * modules/nanosleep (Makefile.am): Likewise.
90338         * modules/openat (Makefile.am): Likewise.
90339         * modules/pagealign_alloc (Makefile.am): Likewise.
90340         * modules/physmem (Makefile.am): Likewise.
90341         * modules/poll (Makefile.am): Likewise.
90342         * modules/posixtm (Makefile.am): Likewise.
90343         * modules/posixver (Makefile.am): Likewise.
90344         * modules/putenv (Makefile.am): Likewise.
90345         * modules/quote (Makefile.am): Likewise.
90346         * modules/quotearg (Makefile.am): Likewise.
90347         * modules/raise (Makefile.am): Likewise.
90348         * modules/read-file (Makefile.am): Likewise.
90349         * modules/readline (Makefile.am): Likewise.
90350         * modules/readlink (Makefile.am): Likewise.
90351         * modules/readtokens (Makefile.am): Likewise.
90352         * modules/readutmp (Makefile.am): Likewise.
90353         * modules/realloc (Makefile.am): Likewise.
90354         * modules/regex (Makefile.am): Likewise.
90355         * modules/rename (Makefile.am): Likewise.
90356         * modules/rename-dest-slash (Makefile.am): Likewise.
90357         * modules/rijndael (Makefile.am): Likewise.
90358         * modules/rmdir (Makefile.am): Likewise.
90359         * modules/rpmatch (Makefile.am): Likewise.
90360         * modules/safe-read (Makefile.am): Likewise.
90361         * modules/safe-write (Makefile.am): Likewise.
90362         * modules/same (Makefile.am): Likewise.
90363         * modules/save-cwd (Makefile.am): Likewise.
90364         * modules/savedir (Makefile.am): Likewise.
90365         * modules/setenv (Makefile.am): Likewise.
90366         * modules/settime (Makefile.am): Likewise.
90367         * modules/sha1 (Makefile.am): Likewise.
90368         * modules/sig2str (Makefile.am): Likewise.
90369         * modules/snprintf (Makefile.am): Likewise.
90370         * modules/stdlib-safer (Makefile.am): Likewise.
90371         * modules/stpcpy (Makefile.am): Likewise.
90372         * modules/stpncpy (Makefile.am): Likewise.
90373         * modules/strcase (Makefile.am): Likewise.
90374         * modules/strcasestr (Makefile.am): Likewise.
90375         * modules/strchrnul (Makefile.am): Likewise.
90376         * modules/strcspn (Makefile.am): Likewise.
90377         * modules/strdup (Makefile.am): Likewise.
90378         * modules/strerror (Makefile.am): Likewise.
90379         * modules/strftime (Makefile.am): Likewise.
90380         * modules/strndup (Makefile.am): Likewise.
90381         * modules/strnlen (Makefile.am): Likewise.
90382         * modules/strpbrk (Makefile.am): Likewise.
90383         * modules/strsep (Makefile.am): Likewise.
90384         * modules/strstr (Makefile.am): Likewise.
90385         * modules/strtod (Makefile.am): Likewise.
90386         * modules/strtoimax (Makefile.am): Likewise.
90387         * modules/strtok_r (Makefile.am): Likewise.
90388         * modules/strtol (Makefile.am): Likewise.
90389         * modules/strtoll (Makefile.am): Likewise.
90390         * modules/strtoul (Makefile.am): Likewise.
90391         * modules/strtoull (Makefile.am): Likewise.
90392         * modules/strtoumax (Makefile.am): Likewise.
90393         * modules/strverscmp (Makefile.am): Likewise.
90394         * modules/time_r (Makefile.am): Likewise.
90395         * modules/timegm (Makefile.am): Likewise.
90396         * modules/tmpfile-safer (Makefile.am): Likewise.
90397         * modules/unistd-safer (Makefile.am): Likewise.
90398         * modules/unlinkdir (Makefile.am): Likewise.
90399         * modules/userspec (Makefile.am): Likewise.
90400         * modules/utime (Makefile.am): Likewise.
90401         * modules/utimecmp (Makefile.am): Likewise.
90402         * modules/utimens (Makefile.am): Likewise.
90403         * modules/vasnprintf (Makefile.am): Likewise.
90404         * modules/vasprintf (Makefile.am): Likewise.
90405         * modules/vsnprintf (Makefile.am): Likewise.
90406         * modules/xalloc (Makefile.am): Likewise.
90407         * modules/xgetcwd (Makefile.am): Likewise.
90408         * modules/xnanosleep (Makefile.am): Likewise.
90409         * modules/xreadlink (Makefile.am): Likewise.
90410         * modules/xstrtod (Makefile.am): Likewise.
90411         * modules/xstrtol (Makefile.am): Likewise.
90412         * modules/xstrtold (Makefile.am): Likewise.
90413         * modules/yesno (Makefile.am): Likewise.
90415 2006-10-12  Jim Meyering  <jim@meyering.net>
90417         * m4/getloadavg.m4: Revert the change below.
90419         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
90420         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
90421         fail with a symlink, which is what coreutils' ./bootstrap now
90422         creates by default.
90424 2006-10-12  Bruno Haible  <bruno@clisp.org>
90426         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
90427         mingw.
90428         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
90429         MSVC and mingw explicitly.
90431 2006-10-11  Simon Josefsson  <jas@extundo.com>
90432             Bruno Haible  <bruno@clisp.org>
90434         Add support for multiple gnulib-tool invocations in the scope of a
90435         single configure.ac file.
90436         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
90437         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
90438         with the same contents as the _LIBADD variable.
90439         (func_emit_initmacro_start, func_emit_initmacro_end,
90440         func_emit_initmacro_done): New functions.
90441         (func_import, func_create_testdir): Invoke them. Allow the identifiers
90442         gl_LIBOBJS and gl_LTLIBOBJS.
90444 2006-10-11  Bruno Haible  <bruno@clisp.org>
90446         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
90447         (func_create_testdir): Don't create po/Makefile.am, don't invoke
90448         autoreconf. Instead, invoke autopoint explicitly but move back the
90449         *.m4 files from gnulib.
90451 2006-10-11  Bruno Haible  <bruno@clisp.org>
90453         * gnulib-tool (func_usage): Make module names after --create-testdir
90454         optional.
90455         (func_create_testdir): If no module was specified, use nearly all
90456         modules.
90458 2006-10-12  Jim Meyering  <jim@meyering.net>
90460         Big performance improvement for fts-based tools that use FTS_NOSTAT.
90461         Avoid spurious inode-mismatch problems on non-POSIX file systems.
90462         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
90463         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
90464         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
90465         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
90466         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
90467         (fts_set_stat_required): New function.
90468         (fts_open): Defer the calls to fts_stat, if possible or requested.
90469         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
90470         into fts_stat itself.
90471         (fts_read): Perform any required (deferred) fts_stat call.
90472         (fts_build): Likewise, for the directory we're about to open and read.
90473         In the readdir loop, carefully decide whether each entry will require
90474         an eventual call to fts_stat, using dirent.d_type info if available.
90475         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
90476         a command line argument into this function.  Update all callers.
90477         Map a return value of FTS_DOT to FTS_D for a command line argument.
90478         * modules/fts (Depends-on): Add d-type.  Alphabetize.
90479         Thanks to Miklos Szeredi for his tenacity and for the initial
90480         bug report about "find" failing on a FUSE-based file system.
90482         * lib/fts.c (fts_open): Use consistent indentation.
90484 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
90486         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
90487         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
90488         reported by Jim Meyering.  All uses of cache variables renamed
90489         to match Autoconf's.
90490         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
90491         the other one.
90493         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
90494         Fix misspelling in diagnostic.
90496 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90498         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
90499         defined.  Problem reported by Matthew Woehlke.
90501         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
90502         Add support for Tandem NonStop R series.
90503         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
90504         Use new macro.
90506         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
90507         (has_trailing_slash): Omit size arg; all callers changed.
90508         Omit 'inline', since it doesn't help performance and we'd
90509         need to configure it.
90510         Don't count //, ///, etc. as having a trailing slash.
90511         As a side effect, this removes a C99ism reported by Matthew Woehlke.
90512         (rpl_rename_dest_slash): On failure, use rename's errno rather
90513         than (in some cases) an incorrect or junk errno.
90514         Simplify code by removing need to compute length; this does
90515         cause it to make two passes instead of one over the file name,
90516         but it's worth it.
90518         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
90519         change, since Autoconf's version may no longer be appropriate now
90520         that we are using CVS Autoconf's version.  Add support for Tandem.
90522 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90523             Bruno Haible  <bruno@clisp.org>
90525         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
90526         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
90527         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
90528         gl_AC_TYPE_LONG_LONG.
90530         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
90531         instead of HAVE_LONG_LONG.
90532         * lib/printf-args.c (printf_fetchargs): Likewise.
90533         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
90534         * lib/vasnprintf.c (VASNPRINTF): Likewise.
90535         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
90536         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
90537         gl_AC_TYPE_LONG_LONG.
90539 2006-10-11  Bruno Haible  <bruno@clisp.org>
90541         * m4/longlong.m4: Add comments.
90542         * m4/ulonglong.m4: Likewise.
90544 2006-10-10  Bruno Haible  <bruno@clisp.org>
90546         Make it possible to #define stpcpy, strdup to aliases.
90547         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
90548         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
90550 2006-10-10  Bruno Haible  <bruno@clisp.org>
90552         Make it possible to #define gcd to an alias.
90553         * lib/gcd.c: Include config.h.
90555 2006-10-10  Bruno Haible  <bruno@clisp.org>
90557         Make it possible to #define c_isascii to an alias.
90558         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
90559         defined. Undefine the macros before defining them, to avoid gcc
90560         warnings.
90561         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
90562         define NO_C_CTYPE_MACROS early.
90564 2006-10-10  Bruno Haible  <bruno@clisp.org>
90566         Make it possible to #define set_program_name to an alias.
90567         * lib/progname.c: Don't undefine set_program_name; instead, undefine
90568         ENABLE_RELOCATABLE early.
90570 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90572         Port to Tandem NSK OSS, which has 64-bit signed int but at most
90573         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
90574         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
90575         More generally, don't assume that 64-bit signed int is available
90576         if unsigned int is, and vice versa.
90577         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
90578         unsigned symbols, not on their signed counterparts.
90579         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
90580         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
90581         (UINT64_C, UINTMAX_C):
90582         Likewise.
90583         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
90584         unsigned counterparts.
90585         (Have_long_long, Unsigned): New macros.
90586         (Int): Renamed from INT.
90587         (strtoimax): Use the new macros.
90588         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
90589         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
90590         * modules/inttypes (inttypes.h): Substitute
90591         HAVE_UNSIGNED_LONG_LONG_INT.
90592         * modules/stdint (stdint.h): Likewise.
90593         (Files): Add m4/ulonglong.m4.
90595 2006-10-10  Bruno Haible  <bruno@clisp.org>
90597         Fix a gcc -Wshadow warning.
90598         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
90599         to 'bucket'.
90600         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
90601         gl_linked_indexof_from_to): Likewise.
90602         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
90603         Likewise.
90604         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
90605         Likewise.
90606         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
90607         Reported by Eric Blake.
90609 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
90611         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
90612         for NetBSD.  Problem reported by Bruno Haible.
90614 2006-10-09  Jim Meyering  <jim@meyering.net>
90616         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
90617         Patch from Bruno Haible.
90619 2006-10-09  Jim Meyering  <jim@meyering.net>
90621         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
90622         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
90623         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
90625 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90627         Don't include <config.h> twice; this doesn't work in some cases,
90628         e.g., when config.h has "#define intmax_t long long int" and
90629         we include <config.h>, <inttypes.h>, <config.h> in that order.
90630         Problem reported by Matthew Woehlke in:
90631         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
90632         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
90633         * lib/fts-cycle.c: Don't include config.h.
90634         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
90635         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
90636         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
90637         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
90638         inttypes.h.
90639         * lib/xstrtoumax.c: Likewise.
90640         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
90641         __strtol and the like, so that this module is more like its siblings.
90642         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
90643         Remove; no longer needed now that we assume gnulib inttypes.h.
90645 2006-10-08  Bruno Haible  <bruno@clisp.org>
90647         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
90648         option.
90650 2006-10-07  Jim Meyering  <jim@meyering.net>
90652         * modules/inttypes (inttypes.h): Revert what seems to have been
90653         an inadvertent part of today's change: use "|", not "/" in the
90654         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
90656 2006-10-07  Bruno Haible  <bruno@clisp.org>
90658         * modules/sublist: New file.
90660 2006-10-07  Bruno Haible  <bruno@clisp.org>
90662         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
90663         * modules/argz (argz.h): Likewise.
90664         * modules/arpa_inet (arpa/inet.h): Likewise.
90665         * modules/byteswap (byteswap.h): Likewise.
90666         * modules/configmake (configmake.h): Likewise.
90667         * modules/fcntl (fcntl.h): Likewise.
90668         * modules/fnmatch (fnmatch.h): Likewise.
90669         * modules/getopt (getopt.h): Likewise.
90670         * modules/glob (glob.h): Likewise.
90671         * modules/inttypes (inttypes.h): Likewise.
90672         * modules/netinet_in (netinet/in.h): Likewise.
90673         * modules/poll (poll.h): Likewise.
90674         * modules/stdbool (stdbool.h): Likewise.
90675         * modules/stdint (stdint.h): Likewise.
90676         * modules/sys_select (sys/select.h): Likewise.
90677         * modules/sys_socket (sys/socket.h): Likewise.
90678         * modules/sys_stat (sys/stat.h): Likewise.
90679         * modules/sysexits (sysexits.h): Likewise.
90680         * modules/unistd (unistd.h): Likewise.
90681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90682         Add a "DO NOT EDIT" comment to the generated file.
90683         (func_import): Likewise for gnulib-comp.m4.
90685 2006-10-07  Bruno Haible  <bruno@clisp.org>
90687         * lib/gl_sublist.h: New file.
90688         * lib/gl_sublist.c: New file.
90690 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90692         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
90693         name (relative to the original working directory) and the file
90694         name component (relative to the temporary working directory).  All
90695         callers changed.
90696         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
90697         * lib/mkdir-p.c (make_dir_parents): Likewise.
90698         * lib/mkdir-p.h (make_dir_parents): Likewise.
90700 2006-10-06  Eric Blake  <ebb9@byu.net>
90702         Define several macros for use by the clean-temp module.
90703         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
90704         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
90705         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
90707         * lib/clean-temp.h (close_stream_temp): New declaration.
90708         * lib/clean-temp.c (includes): Pull in headers according to what
90709         other modules are in use.
90710         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
90712 2006-10-06  Bruno Haible  <bruno@clisp.org>
90714         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
90715         instead of fopen, fwriteerror.
90717 2006-10-06  Bruno Haible  <bruno@clisp.org>
90719         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
90720         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
90721         int.
90722         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
90723         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
90724         Return an error indicator.
90725         Suggested by Eric Blake.
90727 2006-10-06  Bruno Haible  <bruno@clisp.org>
90729         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
90730         Reported by Eric Blake.
90732 2006-10-06  Bruno Haible  <bruno@clisp.org>
90734         * modules/closeout (Description): Mention stderr too.
90736 2006-10-06  Bruno Haible  <bruno@clisp.org>
90737         and Paul Eggert  <eggert@cs.ucla.edu>
90739         * lib/closeout.c (close_stdout): Also close stderr.
90740         * lib/closeout.h: Update comment.
90742 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
90744         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
90745         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
90746         * lib/dirchownmod.c: Include lchown.h.
90747         * lib/lchown.c: Don't include files that lchown.h now includes.
90748         Don't declare chown, since lchown.h now does that.
90749         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
90750         (lchown): Define to rpl_chown if lchown is declared but
90751         does not exist.  Declare using a prototype if lchown is not
90752         declared.  Add a copyright notice.
90753         * lib/mkstemp.h: Include <unistd.h>.
90754         * lib/openat.c: Include lchown.h.
90756         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
90757         we now test for that separately.
90758         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
90759         rather than O_NOFOLLOW, when testing whether it's possible to
90760         avoid a race condition reliably.
90761         * lib/savewd.c (savewd_chdir): Likewise.
90763         Remove macros that are no longer needed now that stdint.h is
90764         reliable.
90765         * lib/fsusage.c (UINTMAX_MAX): Remove.
90766         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
90767         * lib/utimecmp.c (SIZE_MAX): Remove.
90769         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
90771         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
90772         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
90773         O_NOATIME works.
90775 2006-10-05  Bruno Haible  <bruno@clisp.org>
90777         * lib/gl_list.h (gl_sortedlist_search_from_to,
90778         gl_sortedlist_indexof_from_to): New declarations.
90779         (gl_list_implementation): New fields sortedlist_search_from_to,
90780         sortedlist_indexof_from_to.
90781         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
90782         inline functions.
90783         * lib/gl_list.c (gl_sortedlist_search_from_to,
90784         gl_sortedlist_indexof_from_to): New functions.
90785         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
90786         function.
90787         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
90788         (gl_array_sortedlist_search_from_to): New function.
90789         (gl_array_list_implementation): Update.
90790         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
90791         function.
90792         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
90793         (gl_carray_sortedlist_search_from_to): New function.
90794         (gl_carray_list_implementation): Update.
90795         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
90796         gl_linked_sortedlist_indexof_from_to): New functions.
90797         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90798         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90799         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
90800         gl_tree_sortedlist_indexof_from_to): New functions.
90801         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90802         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90803         Update.
90804         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90805         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
90806         Update.
90808 2006-10-05  Bruno Haible  <bruno@clisp.org>
90810         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
90811         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
90812         (struct gl_list_implementation): Add fields search_from_to,
90813         indexof_from_to. Remove fields search, indexof.
90814         (gl_list_search): Use the search_from_to method.
90815         (gl_list_search_from, gl_list_search_from_to): New functions.
90816         (gl_list_indexof): Use the indexof_from_to method.
90817         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
90818         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
90819         (gl_list_search_from, gl_list_search_from_to): New functions.
90820         (gl_list_indexof): Use the indexof_from_to method.
90821         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
90822         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
90823         gl_array_indexof. Add start_index, end_index arguments.
90824         (gl_array_search_from_to): Renamed from gl_array_search. Add
90825         start_index, end_index arguments.
90826         (gl_array_remove, gl_array_list_implementation): Update.
90827         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
90828         gl_carray_indexof. Add start_index, end_index arguments.
90829         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
90830         start_index, end_index arguments.
90831         (gl_carray_remove, gl_carray_list_implementation): Update.
90832         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
90833         gl_linked_search. Add start_index, end_index arguments.
90834         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
90835         start_index, end_index arguments.
90836         (gl_linked_remove): Update.
90837         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90838         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90839         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
90840         field to 'size_t'.
90841         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
90842         gl_tree_search. Add start_index, end_index arguments.
90843         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
90844         start_index, end_index arguments.
90845         (gl_tree_remove): Update.
90846         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90847         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90848         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
90849         function.
90850         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
90851         gl_tree_search. Add start_index, end_index arguments.
90852         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
90853         start_index, end_index arguments.
90854         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90855         Update.
90856         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
90858 2006-10-05  Bruno Haible  <bruno@clisp.org>
90860         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
90862         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
90863         fwriteerror_temp): New declarations.
90864         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
90865         (descriptors): New variable.
90866         (cleanup): First, close the descriptors.
90867         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
90868         fclose_temp, fwriteerror_temp): New functions.
90870 2006-10-04  Jim Meyering  <jim@meyering.net>
90872         * lib/fts.c (fts_open): Tiny comment change.
90874 2006-10-04  Bruno Haible  <bruno@clisp.org>
90876         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
90877         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
90878         gl_LOCK_BODY.
90879         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
90880         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
90881         gl_LOCK_EARLY_BODY.
90882         (gl_LOCK): Require gl_LOCK_BODY.
90884 2006-10-04  Bruno Haible  <bruno@clisp.org>
90886         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
90887         (gl_oset_search_atleast): New declaration.
90888         (struct gl_oset_implementation): Add field 'search_atleast'.
90889         (gl_oset_search_atleast): New inline function.
90890         * lib/gl_oset.c (gl_oset_search_atleast): New function.
90891         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
90892         (gl_array_oset_implementation): Update.
90893         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
90894         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
90895         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
90897 2006-10-04  Bruno Haible  <bruno@clisp.org>
90899         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
90901 2006-10-03  Bruno Haible  <bruno@clisp.org>
90903         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
90904         from gl_avltreehash_list_implementation.
90906 2006-10-03  Bruno Haible  <bruno@clisp.org>
90908         * lib/gl_oset.c (gl_oset_add): Fix return type.
90910 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
90912         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
90914 2006-10-02  Eric Blake  <ebb9@byu.net>
90916         * modules/strnlen (Depends-on): Add extensions.
90918 2006-10-02  Eric Blake  <ebb9@byu.net>
90920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
90921         definition in 2.60+.
90923 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
90925         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
90926         checks.
90928 2006-10-02  Bruno Haible  <bruno@clisp.org>
90930         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
90931         to the AUTOMAKE_OPTIONS.
90932         Reported by Jim Meyering.
90934 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
90936         Work around bug in Solaris 10 /proc file system:
90937         /proc/self/fd/NNN/.. isn't the parent directory of
90938         the directory whose file descriptor is NNN.  This needs to
90939         be worked around at run time, not compile time, since a
90940         program might be built on Solaris 8, where things work, and
90941         run on Solaris 10.
90942         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
90943         to use the following interface instead:
90944         (OPENAT_BUFFER_SIZE): New macro.
90945         (openat_proc_name): New function.
90946         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
90947         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
90948         Likewise.
90949         * lib/openat-proc.c: New file.
90950         * modules/openat (Files): Add lib/openat-proc.c.
90951         (Depends-on): Add same-inode, stdbool.
90952         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
90954 2006-09-29  Bruno Haible  <bruno@clisp.org>
90956         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
90957         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
90958         argument. Set stdout_closed before testing for ferror, not after.
90959         (fwriteerror, fwriteerror_no_ebadf): New functions.
90961 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90963         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
90965 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
90967         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
90968         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
90970 2006-09-28  Jim Meyering  <jim@meyering.net>
90972         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
90973         Include <unistd.h>.
90975 2006-09-28  Bruno Haible  <bruno@clisp.org>
90977         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
90978         * modules/linkedhash-list (Depends-on): Likewise.
90979         * modules/rbtreehash-list (Depends-on): Likewise.
90981 2006-09-28  Bruno Haible  <bruno@clisp.org>
90983         * lib/strndup.h: Simplify the redefinition of strndup.
90984         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
90985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
90987 2006-09-28  Bruno Haible  <bruno@clisp.org>
90989         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
90990         * lib/gl_linkedhash_list.c: Likewise.
90991         * lib/gl_rbtreehash_list.c: Likewise.
90993 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
90995         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
90996         getaddrinfo.
90998         * lib/__fpending.h: Don't include <stdio_ext.h> unless
90999         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
91000         it causes <stdio_ext.h> to cause a compile-time error.
91001         Problem reported by Nelson H. F. Beebe.
91002         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
91003         of HAVE_DECL___PENDING.
91005         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
91006         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
91007         declaration.
91009 2006-09-27  Jim Meyering  <jim@meyering.net>
91011         This file could end up with a definition for a function
91012         named __strndup, rather than rpl_strndup on a system with
91013         incomplete weak_alias support.
91014         * lib/strndup.c (strndup): Rename from __strndup.
91015         Remove #defines that used to map __strndup to strndup.
91016         Don't use K&R prototypes.
91017         Remove LIBC-related code, since this file is not sync'd with glibc.
91018         * lib/strndup.h: Revamp, accordingly.
91019         * m4/strndup.m4: Modernize.
91021 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
91023         * modules/savewd (Depends-on): Add 'raise'.
91024         * lib/savewd.c: Include <signal.h>, for 'raise'.
91026 2006-09-26  Jim Meyering  <jim@meyering.net>
91028         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
91029         when we detect Darwin 8.7.0's acl_get_file bug.
91030         Rearrange to perform the new (below) run-test while $LIBS
91031         contains any acl-related library.  Set USE_ACL at the end.
91032         (gl_ACL_GET_FILE): New function.
91034 2006-09-26  Eric Blake  <ebb9@byu.net>
91036         * lib/verror.c: Include <config.h> unconditionally.
91038 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
91040         * modules/clock-time (Maintainer): Add self.
91041         * modules/getlogin_r (Depends-on): Add extensions.
91043 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91045         * modules/clock-time: New module.
91046         * modules/nanosleep (Depends-on): Add clock-time.
91047         * modules/gethrxtime (Depends-on): Likewise.
91048         * modules/gettime (Depends-on): Likewise.
91049         * modules/settime (Depends-on): Likewise.
91051         * modules/fts-lgpl: Depend on openat.
91052         * modules/mkancesdirs: Depend on savewd.
91053         * modules/mkdir-p: Likewise.
91055 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91057         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
91059         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
91060         `gl_have_arbitrary_file_name_length_limit' to
91061         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
91062         actually works between configure runs.
91064 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91065             Bruno Haible  <bruno@clisp.org>
91067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
91069 2006-09-25  Jim Meyering  <jim@meyering.net>
91071         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
91072         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
91074 2006-09-25  Eric Blake  <ebb9@byu.net>
91076         * gnulib-tool (func_import, func_create_testdir): Fix typos in
91077         exec's in 2006-09-18 patch when shuffling fds.
91079 2006-09-25  Bruno Haible  <bruno@clisp.org>
91081         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
91082         Reported by Jim Meyering.
91084 2006-09-24  Jim Meyering  <jim@meyering.net>
91086         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
91087         compare a pointer against a literal "0".  That caused failures with
91088         at least HP-UX's hpcc.
91090 2006-09-22  Simon Josefsson  <jas@extundo.com>
91092         * modules/gc-sha1:
91093         * modules/gc-md4:
91094         * modules/gc-hmac-sha1:
91095         * modules/gc-hmac-md5:
91096         * modules/gc-des:
91097         * modules/gc-arcfour: Distribute more files.
91099 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91101         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
91102         (gl_linked_iterator_from_to): Initialize struct completely.
91103         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
91104         (gl_tree_iterator_from_to): Likewise
91105         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
91106         * lib/gl_array_list.c [lint] (gl_array_iterator)
91107         (gl_array_iterator_from_to): Likewise.
91108         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
91109         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
91110         (gl_carray_iterator_from_to): Likewise.
91112         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
91113         * lib/md4.c (md4_process_block): Remove unused variable.
91114         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
91115         parentheses for clarity.
91117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91119         * modules/bison-i18n (Depends-on): Add gettext.
91121 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91123         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
91124         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
91125         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
91126         also add missing comma that caused broken test.
91127         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
91128         stdlib.h, for `abort'.
91129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
91130         variables.
91131         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
91132         include unistd.h if present, for `rmdir'.
91133         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
91134         variables.
91135         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
91136         in the process include standard headers for prototypes.
91137         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
91138         gets declared on GNU/Linux.
91139         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
91140         unistd.h, for `rmdir'.
91141         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
91143         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
91144         always true.
91145         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
91147         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
91149 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91151         * gnulib-tool (func_version): Create output all at once.  This
91152         may help avoid triggering unnecessary SIGPIPEs, and at any
91153         rate it doesn't hurt.
91155 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91156             Bruno Haible  <bruno@clisp.org>
91158         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
91159         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
91160         * m4/signed.m4 (bh_C_SIGNED): Likewise.
91162         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
91163         (gl_FUNC_VASPRINTF): Invoke it.
91165 2006-09-22  Bruno Haible  <bruno@clisp.org>
91167         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
91168         getloadavg.c as first argument.
91170 2006-09-22  Bruno Haible  <bruno@clisp.org>
91172         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
91173         at the beginning of the gl_INIT macro.
91174         * modules/getloadavg (configure.ac): Pass $gl_source_base to
91175         gl_GETLOADAVG.
91177 2006-09-22  Bruno Haible  <bruno@clisp.org>
91179         * gnulib-tool (func_create_megatestdir): Don't include the config-h
91180         module.
91181         Suggested by Ralf Wildenhues.
91183 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
91185         Import this patch from libc:
91187         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
91189         * lib/regex_internal.c (re_string_reconstruct): Handle
91190         offset < pstr->valid_raw_len && pstr->offsets_needed case.
91191         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
91192         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
91193         re_string_context_at.
91195         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
91196         now requires it.
91197         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
91198         gl_REGEX now does it for us.
91199         (gl_REGEX): Add test taken from
91200         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
91202         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
91203         Check that large offsets work.  Modernize Autoconf usages.
91204         Prefer "yes" to mean a good thing rather than a bad.
91205         Don't put "#define mkstemp" in config.h, as this might interfere
91206         with standard system headers that "#define mkstemp mkstemp64".
91208         * modules/mkstemp (Depends-on): Add extensions, so that
91209         mkstemp is visible on some platforms.
91210         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
91211         (Include): Change to "mkstemp.h" from <stdlib.h>.
91212         (Files): Add mkstemp.h.
91214         * lib/mkstemp.h: New file, since some standard headers
91215         #define mkstemp.
91216         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
91217         Include "mkstemp.h".
91218         Make the _LIBC code resemble glibc original more,
91219         e.g., use K&R style.
91220         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
91221         (mkstemp): Remove, since mkstemp.h does this for us.
91222         * lib/stdlib--.h: Include mkstemp.h.
91224         Import this patch from libc:
91226         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
91228         * lib/tempname.c (__gen_tempname): Change attempts_min
91229         into a macro.  Use preprocessor to decide how to initialize
91230         attempts [Coverity CID 67].
91232 2006-09-20  Bruno Haible  <bruno@clisp.org>
91234         * lib/mkdtemp.c: Import from libc.
91235         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
91236                 * sysdeps/posix/tempname.c (__gen_tempname): Change
91237                 attempts_min into a macro.  Use preprocessor to decide how to
91238                 initialize attempts [Coverity CID 67].
91239         2001-11-27  Paul Eggert  <eggert@twinsun.com>
91240                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
91241                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
91243 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91245         * gnulib-tool (func_exit): New function, to allow to pass the
91246         exit status portably through the trap.  Use everywhere.
91247         (--help, --version): Signal a write error.
91248         (trap): catch SIGPIPE, for write errors.
91249         Exit at the end of the trap, with the correct exit status.
91251 2006-09-19  Karl Berry  <karl@gnu.org>
91253         * doc/gnulib.texi: note about the license texinfo files.
91255 2006-09-19  Eric Blake  <ebb9@byu.net>
91257         * gnulib-tool: Avoid space-tab.
91259 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
91261         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
91262         that prevented coreutils 6.1 from building.  Problem reported
91263         by Petter Reinholdtsen.
91265 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
91267         * gnulib-tool (avoidlist): Fix typo that broke options like
91268         --avoid=lock that are used by coreutils bootstrap.
91270 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
91272         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
91273         more systematically.
91275 2006-09-18  Jim Meyering  <jim@meyering.net>
91277         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
91279 2006-09-18  Bruno Haible  <bruno@clisp.org>
91281         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
91283 2006-09-18  Bruno Haible  <bruno@clisp.org>
91285         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
91286         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
91287         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
91288         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
91289         * m4/gettext.m4: Require autoconf >= 2.52.
91290         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
91291         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
91292         of gl_cv_header_inttypes_h.
91294 2006-09-18  Bruno Haible  <bruno@clisp.org>
91296         * lib/javaversion.c: Include configmake.h.
91298 2006-09-18  Bruno Haible  <bruno@clisp.org>
91300         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
91301         avoid that the while loops be executed in a subshell.
91303 2006-09-18  Bruno Haible  <bruno@clisp.org>
91305         * MODULES.html.sh (func_module): Break long lines.
91306         Suggested by Bruce Korb <bkorb@gnu.org>.
91308 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91310         Speed up by a factor of 1.12.
91311         * gnulib-tool (nl): New variable.
91312         (func_import): Rewrite include directive extraction to only read each
91313         directive once.
91315 2006-09-17  Bruno Haible  <bruno@clisp.org>
91317         * modules/javaversion (Makefile.am): Remove DEFS setting.
91318         (Depends-on): Add configmake, for PKGDATADIR definition.
91320 2006-09-17  Bruno Haible  <bruno@clisp.org>
91322         * gnulib-tool (func_create_testdir): Rewrite all files at once.
91324 2006-09-17  Bruno Haible  <bruno@clisp.org>
91326         * gnulib-tool (func_append): New function, stolen from libtool.m4.
91327         (func_modules_transitive_closure, func_modules_add_dummy,
91328         func_modules_to_filelist, func_import, func_create_testdir,
91329         func_create_megatestdir, ...): Use it wherever possible.
91330         Suggested by Ralf Wildenhues.
91332 2006-09-16  Karl Berry  <karl@gnu.org>
91334         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
91335         to avoid sectioning errors.
91336         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
91337         [ifinfo]: blank line after @center-ed titles.
91338         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
91339         Spell FSF address consistently with others.
91340         (These changes approved by rms.)
91342 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91344         Speed up by a factor of 1.61.
91345         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
91346         already checked module names again.
91348 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91350         Speed up by a factor of 1.13.
91351         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
91352         for new_files, and the input to func_add_or_update.
91354 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91356         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
91357         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
91359 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91361         * modules/mkancesdirs (Depends-on): Add fcntl.
91362         * modules/savewd: New file.
91363         * MODULES.html.sh (File system functions): Add savewd.
91365         * modules/configmake (Makefile.am): Add support for the
91366         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
91368 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91370         * m4/savewd.m4: New file.
91372 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91374         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
91375         (dirchownmod): New arg FD.  All callers changed.
91376         Use FD rather than opening the directory ourself, as opening is
91377         now the caller's responsibility.
91378         * lib/dirchownmod.h: Likewise.
91379         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
91380         hosts that require <sys/types.h> before <sys/stat.h>.  Include
91381         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
91382         (test_dir): Remove.
91383         (mkancesdirs): Return length of prefix of FILE that has already
91384         been made, or -2 if there is a child doing the work.  Redo
91385         algorithm so that it is O(N) rather than O(N**2).  Optimize away
91386         ".", and treat ".." specially since it might stray back into
91387         already-created areas.  Use a subprocess if necessary.  New arg
91388         WD; all users changed.  MAKE_DIR function should now return 1
91389         if it creates a directory that is not readable.  Return -2 if
91390         a child process is spun off.
91391         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
91392         Adjust signature to match code.
91393         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
91394         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
91395         all users changed.
91396         * lib/savewd.c, lib/savewd.h: New files.
91398 2006-09-15  Jim Meyering  <jim@meyering.net>
91400         * modules/rename-dest-slash: New module.
91401         * MODULES.html.sh (posix_compat): Add it here.
91403         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
91405 2006-09-15  Jim Meyering  <jim@meyering.net>
91407         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
91408         file.
91410         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
91412 2006-09-15  Jim Meyering  <jim@meyering.net>
91414         * lib/rename-dest-slash.c (has_trailing_slash): Use
91415         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
91416         (rpl_rename_dest_slash): Perform the cheaper trailing slash
91417         test before testing whether SRC is a directory.
91418         Suggestions from Bruno Haible.
91420         Avoid a warning about an unused variable.
91421         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
91422         into the #ifdef block where it's used.
91424         * lib/rename-dest-slash.c: New file.
91426 2006-09-14  Bruno Haible  <bruno@clisp.org>
91428         * lib/allocsa.c: Include <config.h> unconditionally.
91429         * lib/asnprintf.c: Likewise.
91430         * lib/asprintf.c: Likewise.
91431         * lib/c-strcasecmp.c: Likewise.
91432         * lib/c-strcasestr.c: Likewise.
91433         * lib/c-strncasecmp.c: Likewise.
91434         * lib/c-strstr.c: Likewise.
91435         * lib/classpath.c: Likewise.
91436         * lib/clean-temp.c: Likewise.
91437         * lib/concatpath.c: Likewise.
91438         * lib/copy-file.c: Likewise.
91439         * lib/csharpcomp.c: Likewise.
91440         * lib/csharpexec.c: Likewise.
91441         * lib/execute.c: Likewise.
91442         * lib/fatal-signal.c: Likewise.
91443         * lib/findprog.c: Likewise.
91444         * lib/fwriteerror.c: Likewise.
91445         * lib/gl_array_list.c: Likewise.
91446         * lib/gl_array_oset.c: Likewise.
91447         * lib/gl_avltree_list.c: Likewise.
91448         * lib/gl_avltree_oset.c: Likewise.
91449         * lib/gl_avltreehash_list.c: Likewise.
91450         * lib/gl_carray_list.c: Likewise.
91451         * lib/gl_linked_list.c: Likewise.
91452         * lib/gl_linkedhash_list.c: Likewise.
91453         * lib/gl_list.c: Likewise.
91454         * lib/gl_oset.c: Likewise.
91455         * lib/gl_rbtree_list.c: Likewise.
91456         * lib/gl_rbtree_oset.c: Likewise.
91457         * lib/gl_rbtreehash_list.c: Likewise.
91458         * lib/imaxabs.c: Likewise.
91459         * lib/imaxdiv.c: Likewise.
91460         * lib/javacomp.c: Likewise.
91461         * lib/javaexec.c: Likewise.
91462         * lib/javaversion.c: Likewise.
91463         * lib/linebreak.c: Likewise.
91464         * lib/localcharset.c: Likewise.
91465         * lib/lock.c: Likewise.
91466         * lib/mbchar.c: Likewise.
91467         * lib/mbswidth.c: Likewise.
91468         * lib/mkdtemp.c: Likewise.
91469         * lib/pipe.c: Likewise.
91470         * lib/printf-args.c: Likewise.
91471         * lib/printf-parse.c: Likewise.
91472         * lib/progname.c: Likewise.
91473         * lib/progreloc.c: Likewise.
91474         * lib/readlink.c: Likewise.
91475         * lib/sh-quote.c: Likewise.
91476         * lib/stpcpy.c: Likewise.
91477         * lib/stpncpy.c: Likewise.
91478         * lib/strcasecmp.c: Likewise.
91479         * lib/strcasestr.c: Likewise.
91480         * lib/strcspn.c: Likewise.
91481         * lib/striconv.c: Likewise.
91482         * lib/strncasecmp.c: Likewise.
91483         * lib/strnlen1.c: Likewise.
91484         * lib/strstr.c: Likewise.
91485         * lib/strtok_r.c: Likewise.
91486         * lib/tls.c: Likewise.
91487         * lib/tmpdir.c: Likewise.
91488         * lib/unicodeio.c: Likewise.
91489         * lib/unsetenv.c: Likewise.
91490         * lib/vasnprintf.c: Likewise.
91491         * lib/vasprintf.c: Likewise.
91492         * lib/wait-process.c: Likewise.
91493         * lib/xallocsa.c: Likewise.
91494         * lib/xsetenv.c: Likewise.
91495         * lib/xstriconv.c: Likewise.
91497 2006-09-13  Simon Josefsson  <jas@extundo.com>
91499         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
91500         that internally, suggested by Ralf Wildenhues
91501         <Ralf.Wildenhues@gmx.de>.
91503 2006-09-13  Simon Josefsson  <jas@extundo.com>
91505         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
91506         @LIBOBJS@.
91507         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91509 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
91511         * lib/_fpending.c: Include <config.h> unconditionally, since we no
91512         longer worry about uses that don't define HAVE_CONFIG_H.
91513         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
91514         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
91515         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
91516         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
91517         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
91518         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
91519         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
91520         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
91521         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
91522         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
91523         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
91524         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
91525         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
91526         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
91527         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
91528         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
91529         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
91530         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
91531         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
91532         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
91533         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
91534         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
91535         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
91536         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
91537         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
91538         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
91539         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
91540         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
91541         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
91542         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
91543         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
91544         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
91545         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
91546         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
91547         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
91548         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
91549         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
91550         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
91551         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
91552         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
91553         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
91554         Likewise.
91556 2006-09-13  Eric Blake  <ebb9@byu.net>
91558         * lib/getopt.c: Fix typo in last commit.
91560 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
91562         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
91563         dgettext.
91565 2006-09-12  Jim Meyering  <jim@meyering.net>
91567         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
91568         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
91569         Reported by Nelson H. F. Beebe.
91571 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
91573         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
91574         program_invocation_name and program_invocation_short_name are
91575         initialized.
91576         * lib/argp-namefrob.h: Move declarations of program_invocation_name
91577         and program_invocation_short_name to argp.h, so they are visible
91578         to user programs.
91579         * lib/argp.h: Likewise
91581 2006-09-10  Bruno Haible  <bruno@clisp.org>
91583         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
91584         m4/inttypes_h.m4, m4/uintmax_t.m4.
91586 2006-09-10  Bruno Haible  <bruno@clisp.org>
91588         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
91589         gl_AC_TYPE_UINTMAX_T.
91591 2006-09-10  Bruno Haible  <bruno@clisp.org>
91593         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
91595 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
91597         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
91598         convention.  Text proposed by Bruno Haible.
91599         (struct argp_option): Document the use of N_() wrappers.
91601         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
91602         '\v', and translate the two parts separately, instead of feeding
91603         the whole string to gettext.  This allows to exclude
91604         '\v' from the strings visible to the translator by writing doc
91605         strings as N_("..") "\v" N_("..").
91607 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
91609         * config/srclist.txt: Undo latest change; the bug was fixed.
91611 2006-09-09  Bruno Haible  <bruno@clisp.org>
91613         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
91614         assignments if building a library without libtool.
91615         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
91616         in func_emit_lib_Makefile_am.
91617         (func_import): When building a static library libfoo.a, arrange to
91618         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
91619         (func_create_testdir): Likewise.
91620         * modules/gc (configure.ac, Makefile.am): If building statically,
91621         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
91622         * modules/iconvme (configure.ac, Makefile.am): Likewise.
91623         * modules/striconv (configure.ac, Makefile.am): Likewise.
91624         Based on a suggestion by Ralf Wildenhues.
91626 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91628         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91629         Check for unistd.h too, since Autoconf doesn't assume POSIX.
91630         Also:
91632         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91633         Add year_2050_test to catch glibc bug 2821
91634         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
91636         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91637         Prefer #ifdef to #if.
91639         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
91640         Return from 'main' instead of calling 'exit'.
91642 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91644         * lib/mktime.c (guess_time_tm): Fix bug where mktime
91645         returned the maximum time_t value rather than (time_t) -1.
91646         Problem originally reported by William Bardwell
91647         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
91649         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
91650         Moved to here ...
91651         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
91652         ... from here.
91654 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91656         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
91657         2821 is fixed.
91659 2006-09-08  Jim Meyering  <jim@meyering.net>
91661         Don't make generated files read-only.  That would bother too many
91662         people.  However, do retain the ability to work when targets are
91663         read-only: remove the destination and temporary files before writing
91664         them (when generated via sed or echo), or by using the -f option for
91665         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
91666         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91667         * modules/byteswap, modules/configmake, modules/fcntl:
91668         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91669         * modules/localcharset, modules/netinet_in, modules/poll:
91670         * modules/stdbool, modules/stdint, modules/sys_select:
91671         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91673 2006-09-08  Jim Meyering  <jim@meyering.net>
91675         Avoid new build failure on FreeBSD 6.0.
91676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
91677         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
91678         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
91680 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91682         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
91684 2006-09-07  Jim Meyering  <jim@meyering.net>
91686         Fix global typo in last change: use chmod u-w, not chmod u-x.
91687         Spotted by Paul Eggert and Bruce Korb.
91688         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91689         * modules/byteswap, modules/configmake, modules/fcntl:
91690         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91691         * modules/localcharset, modules/netinet_in, modules/poll:
91692         * modules/stdbool, modules/stdint, modules/sys_select:
91693         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91695 2006-09-06  Jim Meyering  <jim@meyering.net>
91697         Make generated files be read-only.
91698         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
91699         Ensure that each generated file is now read-only.
91700         * modules/argz: Likewise.
91701         * modules/arpa_inet: Likewise.
91702         * modules/byteswap: Likewise.
91703         * modules/configmake: Likewise.
91704         * modules/fcntl: Likewise.
91705         * modules/fnmatch: Likewise.
91706         * modules/getopt: Likewise.
91707         * modules/glob: Likewise.
91708         * modules/inttypes: Likewise.
91709         * modules/netinet_in: Likewise.
91710         * modules/poll: Likewise.
91711         * modules/stdbool: Likewise.
91712         * modules/stdint: Likewise.
91713         * modules/sys_select: Likewise.
91714         * modules/sys_socket: Likewise.
91715         * modules/sys_stat: Likewise.
91716         * modules/sysexits: Likewise.
91717         * modules/localcharset: Same as above, but continue using temporary
91718         file named "t-$@" (why different?) rather than the "$@-t" used
91719         everywhere else.
91721         * modules/sysexits (Makefile.am): Replace literal occurrences
91722         of "sysexit.h" more readable, and more consistent, "$@".
91724 2006-09-06  Bruno Haible  <bruno@clisp.org>
91726         * modules/striconv: New file.
91727         * modules/xstriconv: New file.
91728         * MODULES.html.sh (Internationalization functions): Add striconv,
91729         xstriconv.
91731 2006-09-06  Bruno Haible  <bruno@clisp.org>
91733         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
91734         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
91735         not using libtool correctly.
91737 2006-09-06  Bruno Haible  <bruno@clisp.org>
91739         * lib/striconv.h: New file.
91740         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
91741         iconvstring.c.
91742         * lib/xstriconv.h: New file.
91743         * lib/xstriconv.c: New file.
91745 2006-09-06  Bruno Haible  <bruno@clisp.org>
91747         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91748         lib_..._LDFLAGS.
91750 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91752         * lib/argz_.h: Sync from Libtool.
91754         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
91755                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
91757         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
91759 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91761         * modules/trim: New file.
91763 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91765         * lib/trim.h: New file.
91766         * lib/trim.c: New file.
91768 2006-09-05  Bruno Haible  <bruno@clisp.org>
91770         * MODULES.html.sh (String handling): Add trim.
91772 2006-09-04  Karl Berry  <karl@gnu.org>
91774         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
91775         until next release.
91777 2006-09-03  Bruno Haible  <bruno@clisp.org>
91779         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
91780         correctly.
91782 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91784         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
91785         not gl_GETLOADAVG.  Omit unneeded semicolons.
91786         Problems reported by Ralf Wildenhues in
91787         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91788         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
91789         at the end, which is the usual gnulib style.
91791         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
91792         of doing all the work ourselves.
91793         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
91794         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
91796 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91798         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
91799         Problem reported by Ralf Wildenhues in
91800         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91802         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
91803         HAVE_STRUCT_STATFS_F_FSTYPENAME.
91805 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91807         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
91808         yesterday's patch by changing test -n to test -z.
91810 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91812         * modules/getloadavg (Files): Add m4/getloadavg.m4.
91813         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
91814         the former is now obsolescent.
91816         * modules/chdir-long (Depends-on): Add fcntl.
91818 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91820         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
91821         obsolescent, and programs should use gnulib instead.
91822         * m4/getloadavg.m4: New file, with contents taken from Autoconf
91823         but with prefixes changed.
91825 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91827         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
91828         or stdbool.h, because they might not exist while configuring.
91830         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
91831         Don't include unistd.h or limits.h; not needed, since chdir-long.h
91832         does that for us.
91833         (O_DIRECTORY): Remove.
91835 2006-08-31  Eric Blake  <ebb9@byu.net>
91837         * gnulib-tool: Don't let emacs change spaces to TAB.
91839 2006-08-31  Bruno Haible  <bruno@clisp.org>
91841         * gnulib-tool: When calling func_import more than once, do it in a
91842         subshell.
91843         Reported by Eric Blake <ebb9@byu.net>.
91845 2006-08-31  Bruno Haible  <bruno@clisp.org>
91847         * gnulib-tool (nl): Remove variable.
91848         (sed_transform_lib_file): Use more robust test for config-h module.
91849         (func_import): Fix typo in 2006-08-25 patch.
91851 2006-08-31  Bruno Haible  <bruno@clisp.org>
91853         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
91854         specified, augment Makefile.am variables instead of assigning them.
91856 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91858         Work around a bug in both the Linux and SunOS 64-bit kernels:
91859         nanosleep mishandles sleeps for longer than 2**31 seconds.
91860         Problem reported by Frank v Waveren in
91861         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
91862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
91863         Check for nanosleep bug.
91864         (LIB_NANOSLEEP): Append clock_gettime library if needed.
91866 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91868         Work around a bug in both the Linux and SunOS 64-bit kernels:
91869         nanosleep mishandles sleeps for longer than 2**31 seconds.
91870         Problem reported by Frank v Waveren in
91871         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
91872         * lib/nanosleep.c (BILLION): New constant.
91873         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
91874         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
91875         implementation.
91877 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91879         * modules/nanosleep (Depends-on): Add gettime.
91881 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91882         and Simon Josefsson  <jas@extundo.com>
91883         and Oskar Liljeblad  <oskar@osk.mine.nu>
91885         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
91886         * gnulib-tool (func_import): New license type 'unmodifiable license
91887         text'.
91888         * modules/fdl: Use it.  Longer description.
91889         * module/gpl, module/lgpl: New files.
91891 2006-08-30  Jim Meyering  <jim@meyering.net>
91893         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
91894         shadowing the parameter.
91896 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91898         Sync from Libtool:
91900         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91902         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
91903         sharing with gnulib.  Report by Eric Blake.
91905 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91907         * modules/isapipe: New file.
91908         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
91910 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91912         * modules/configmake (Makefile.am): Add a comment, and omit
91913         the CONFIGMAKE_ prefix from generated macro names.  Suggested
91914         by Bruno Haible.
91916 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91918         * m4/isapipe.m4: New file.
91920 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91922         * lib/isapipe.c, lib/isapipe.h: New files.
91924 2006-08-29  Jim Meyering  <jim@meyering.net>
91926         * modules/configmake (Makefile.am): Make configmake.h depend on
91927         Makefile.  Otherwise, a stale configmake.h could hang around.
91929 2006-08-29  Eric Blake  <ebb9@byu.net>
91931         * lib/error.c (error_at_line, print_errno_message): Match libc, after
91932         resolution of upstream bug 3044.
91934 2006-08-29  Bruno Haible  <bruno@clisp.org>
91936         * modules/localcharset (Depends-on): Add configmake.
91937         (Makefile.am): Remove setting of LIBDIR through DEFS.
91939 2006-08-29  Bruno Haible  <bruno@clisp.org>
91941         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
91942         defined.
91944 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91946         * modules/fcntl: New file.
91947         * modules/chdir-safer (Depends-on): Add fcntl.
91948         * modules/fts: Likewise.
91949         * modules/mkdir-p: Likewise.
91951         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
91952         This undoes the most recent change, since we're now addressing the
91953         problem in a different way.
91955         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
91956         into output, since the output might be called Makefile.am even
91957         if $makefile_name is something different.
91958         (func_import): Use $makefile_am rather than
91959         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
91960         empty.
91962         * modules/inttypes (Files): Add m4/inttypes-h.m4.
91964 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91966         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
91967         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
91968         recent change to stdint.m4, since we're now addressing the problem in a
91969         different way.
91971 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91973         * m4/fcntl_h.m4: New file.
91975 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
91977         * lib/fcntl_.h: New file.
91978         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
91979         the fcntl module.
91980         * lib/dirchownmod.c: Likewise.
91981         * lib/fts.c: Likewise.
91983         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
91984         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
91985         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
91986         just before including <inttypes.h>, to avoid circular inclusion.
91988 2006-08-28  Jim Meyering  <jim@meyering.net>
91990         * doc/visibility.texi: Actually read and correct the grammar of the
91991         sentence affected by yesterday's change.
91993 2006-08-28  Eric Blake  <ebb9@byu.net>
91995         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
91996         needs wrapper.
91998 2006-08-28  Eric Blake  <ebb9@byu.net>
92000         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
92002 2006-08-28  Eric Blake  <ebb9@byu.net>
92004         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
92006 2006-08-28  Bruno Haible  <bruno@clisp.org>
92008         * modules/c-strstr: New file, from GNU gettext.
92009         * MODULES.html.sh (String handling): Add c-strstr.
92011 2006-08-28  Bruno Haible  <bruno@clisp.org>
92013         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
92014         macros.
92015         Reported by Eric Blake.
92017 2006-08-28  Bruno Haible  <bruno@clisp.org>
92019         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
92020         (VASNPRINTF): Return a string of length > INT_MAX without failing.
92021         * lib/vasprintf.c: Include errno.h, limits.h.
92022         (EOVERFLOW): New fallback definition.
92023         (vasprintf): Test here whether the string length is > INT_MAX.
92024         * lib/vsnprintf.c: Include errno.h, limits.h.
92025         (EOVERFLOW): New fallback definition.
92026         (vsnprintf): Fix bug when generated string was too long for the buffer.
92027         Test here whether the string length is > INT_MAX.
92029 2006-08-28  Bruno Haible  <bruno@clisp.org>
92031         * lib/inttypes_.h (SCNX*): Remove definitions.
92032         Reported by Eric Blake.
92034 2006-08-28  Bruno Haible  <bruno@clisp.org>
92036         * lib/c-strstr.h: New file, from GNU gettext.
92037         * lib/c-strstr.c: New file, from GNU gettext.
92039 2006-08-28  Bruno Haible  <bruno@clisp.org>
92041         * gnulib-tool: Reorder some statements.
92043 2006-08-28  Bruno Haible  <bruno@clisp.org>
92045         * gnulib-tool: New option --makefile-name.
92046         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
92047         $makefile_name.
92048         (func_import): Write $makefile_name to the cache file, and read it from
92049         there unless explicitly specified. Use $makefile_name as file name
92050         instead of Makefile.am. Adjust the recommendations accordingly.
92052 2006-08-28  Bruno Haible  <bruno@clisp.org>
92054         * gnulib-tool (func_verify_module): Check against misapplying patch.
92056 2006-08-28  Bruno Haible  <bruno@clisp.org>
92058         * gnulib-tool (func_relativize, func_relconcat): New functions.
92059         Give an error if --local-dir is given with --update.
92060         Remove trailing slashes from $local_gnulib_dir.
92061         (func_import): Store the relativized $local_gnulib_dir in
92062         gnulib-cache.m4, and read it from there if not specified explicitly.
92064 2006-08-28  Bruno Haible  <bruno@clisp.org>
92066         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
92067         is the current directory. Respect also $local_gnulib_dir.
92069 2006-08-28  Bruno Haible  <bruno@clisp.org>
92070             Simon Josefsson  <jas@extundo.com>
92072         BeOS portability.
92073         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
92075 2006-08-27  Jim Meyering  <jim@meyering.net>
92077         * doc/visibility.texi: Remove duplicate word: "pointer".
92079 2006-08-26  Bruno Haible  <bruno@clisp.org>
92081         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
92082         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
92083         (Makefile.am): Create inttypes.h from inttypes_.h.
92084         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
92086         * modules/imaxabs: New file.
92088         * modules/imaxdiv: New file.
92090 2006-08-26  Bruno Haible  <bruno@clisp.org>
92092         * m4/inttypes.m4: New file.
92093         * m4/_inttypes_h.m4: Remove file.
92094         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
92095         PRI_MACROS_BROKEN.
92096         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
92098         * m4/imaxabs.m4: New file.
92100         * m4/imaxdiv.m4: New file.
92102 2006-08-26  Bruno Haible  <bruno@clisp.org>
92104         * lib/inttypes_.h: New file.
92105         * lib/inttypes.h: Remove file.
92106         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
92108         * lib/imaxabs.c: New file.
92110         * lib/imaxdiv.c: New file.
92112 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
92114         New config-h module, so that "make" output needn't be cluttered
92115         by -DHAVE_CONFIG_H.
92116         * MODULES.html.sh (Support for building libraries and executables):
92117         Add config-h.
92118         * modules/config-h: New file.
92119         * gnulib-tool (nl, sed_transform_lib_file): New vars.
92120         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
92121         the config-h module is used.
92123         New configmake module, so that "make" output needn't be cluttered
92124         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
92125         * MODULES.html.sh (Support for building libraries and executables):
92126         Add configmake.
92127         * modules/configmake: New file.
92129 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
92131         * m4/config-h.m4: New file.
92133 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
92135         * config/srclist.txt: Add elisp-comp.
92137 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
92139         * MODULES.html.sh (Support for building libraries and executables):
92140         Add elisp-comp.
92141         * build-aux/elisp-comp: New file.
92142         * modules/elisp-comp: New file.
92144 2006-08-24  Bruno Haible  <bruno@clisp.org>
92146         * gnulib-tool (func_create_testdir): Use non-default values of
92147         sourcebase and m4base.
92149 2006-08-24  Bruno Haible  <bruno@clisp.org>
92151         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
92152         HTML structure.
92154 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
92156         * modules/openat (Depends-on): Add lchown.
92158 2006-08-23  Bruno Haible  <bruno@clisp.org>
92160         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
92161         of gl_LOCK_EARLY instead of gl_LOCK.
92163 2006-08-23  Bruno Haible  <bruno@clisp.org>
92165         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
92166         on OSF/1 to no.
92167         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
92169 2006-08-23  Bruno Haible  <bruno@clisp.org>
92171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
92172         as unusable.
92174         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
92175         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
92176         (gl_LOCK): New macro.
92178 2006-08-22  Simon Josefsson  <jas@extundo.com>
92180         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
92181         to md5 module.
92183 2006-08-22  Simon Josefsson  <jas@extundo.com>
92185         * MODULES.html.sh: Add "Support for maintaining and release
92186         projects".
92188         * build-aux/gnupload: New file, from coreutils.
92190 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92192         Avoid the need for AC_LIBSOURCES in m4 macros.
92193         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
92194         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
92195         * modules/check-version (EXTRA_DIST): Add check-version.h.
92196         * modules/crc (EXTRA_DIST): Add crc.h.
92197         * modules/des (EXTRA_DIST): Add des.h.
92198         * modules/gc (EXTRA_DIST): Add gc.h.
92199         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
92200         * modules/getline (EXTRA_DIST): Add getline.h.
92201         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
92202         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
92203         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
92204         * modules/md2 (EXTRA_DIST): Add md2.h.
92205         * modules/md4 (EXTRA_DIST): Add md4.h.
92206         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
92207         * modules/read-file (EXTRA_DIST): Add read-file.h.
92208         * modules/readline (EXTRA_DIST): Add readline.h.
92209         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
92210         rijndael-api-fst.h.
92212 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92214         * m4/rijndael.m4 (gl_ARCFOUR):
92215         * m4/arctwo.m4 (gl_ARCTWO):
92216         * m4/check-version.m4 (gl_CHECK_VERSION):
92217         * m4/crc.m4 (gl_CRC):
92218         * m4/des.m4 (gl_DES):
92219         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
92220         * m4/gc.m4 (gl_GC):
92221         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
92222         * m4/getline.m4 (gl_FUNC_GETLINE):
92223         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
92224         * m4/hmac-md5.m4 (gl_HMAC_MD5):
92225         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
92226         * m4/md2.m4 (gl_MD2):
92227         * m4/md4.m4 (gl_MD4):
92228         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
92229         * m4/read-file.m4 (gl_FUNC_READ_FILE):
92230         * m4/readline.m4 (gl_FUNC_READLINE):
92231         * m4/rijndael.m4 (gl_RIJNDAEL):
92232         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
92233         to get the necessary .h files and whatnot.
92235 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92237         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
92238         gnulib rather than the other way around.
92239         * config/srclistvars.sh (COREUTILS): Remove.
92241 2006-08-22  Jim Meyering  <jim@meyering.net>
92243         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
92245         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
92247 2006-08-22  Eric Blake  <ebb9@byu.net>
92249         * modules/regexprops-generic: New file.
92250         * MODULES.html.sh (Support for building documentation): List it.
92252 2006-08-22  Eric Blake  <ebb9@byu.net>
92254         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
92255         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
92256         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
92257         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
92259 2006-08-22  Bruno Haible  <bruno@clisp.org>
92261         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
92262         and lib_LTLIBRARIES like the other lib_* variables.
92264 2006-08-22  Bruno Haible  <bruno@clisp.org>
92266         * build-aux/x-to-1.in: New file, from GNU gettext.
92268 2006-08-22  Bruno Haible  <bruno@clisp.org>
92270         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
92271         <utmpx.h> exists.
92273 2006-08-22  Bruno Haible  <bruno@clisp.org>
92275         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
92276         <utmpx.h> exists.
92278 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92280         BeOS portability.
92281         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
92282         exist.
92283         Problem reported by Bruno Haible.
92285 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92287         Avoid the need for AC_LIBSOURCES in m4 macros.
92288         * modules/acl (EXTRA_DIST): Add acl.h.
92289         * modules/argmatch (Files): Add m4/argmatch.m4.
92290         (configure.ac): Add gl_ARGMATCH.
92291         (EXTRA_DIST): Renamed from lib_SOURCES, for
92292         consistency with the other modules.  Remove argmatch.c.
92293         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
92294         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
92295         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
92296         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
92297         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
92298         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
92299         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
92300         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
92301         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
92302         * modules/closeout (EXTRA_DIST): Add closeout.h.
92303         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
92304         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
92305         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
92306         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
92307         dirname.h; remove basename.c and stripslash.c.
92308         * modules/exclude (EXTRA_DIST): Add exclude.h.
92309         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
92310         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
92311         * modules/file-type (EXTRA_DIST): Add file-type.h.
92312         * modules/filemode (EXTRA_DIST): Add filemode.h.
92313         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
92314         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
92315         * modules/fpending (EXTRA_DIST): Add __fpending.h.
92316         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
92317         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
92318         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
92319         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
92320         * modules/getdate (EXTRA_DIST): Add getdate.c.
92321         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
92322         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
92323         * modules/getpass (EXTRA_DIST): Add getpass.h.
92324         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
92325         * modules/group-member (EXTRA_DIST): Add group-member.h.
92326         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
92327         * modules/hash (EXTRA_DIST): Add hash.h.
92328         * modules/human (EXTRA_DIST): Add human.h.
92329         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
92330         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
92331         * modules/lchown (EXTRA_DIST): Add lchown.h.
92332         * modules/long-options (EXTRA_DIST): Add long-options.h.
92333         * modules/lstat (EXTRA_DIST): Add lstat.h.
92334         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
92335         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
92336         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
92337         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
92338         * modules/memxor (EXTRA_DIST): Add memxor.h.
92339         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
92340         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
92341         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
92342         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
92343         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
92344         * modules/physmem (EXTRA_DIST): Add physmem.h.
92345         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
92346         * modules/posixver (EXTRA_DIST): Add posixver.h.
92347         * modules/quote (EXTRA_DIST): Add quote.h.
92348         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
92349         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
92350         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
92351         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
92352         regex_internal.h regexec.c.
92353         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
92354         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
92355         * modules/same (EXTRA_DIST): Add same.h.
92356         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
92357         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
92358         * modules/savedir (EXTRA_DIST): Add savedir.h.
92359         * modules/sha1 (EXTRA_DIST): Add sha1.h.
92360         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
92361         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
92362         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
92363         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
92364         * modules/strdup (EXTRA_DIST): Add strdup.h.
92365         * modules/strftime (EXTRA_DIST): Add strftime.h.
92366         * modules/strndup (EXTRA_DIST): Add strndup.h.
92367         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
92368         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
92369         * modules/time_r (EXTRA_DIST): Add time_r.h.
92370         * modules/timespec (EXTRA_DIST): Add timespec.h.
92371         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
92372         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
92373         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
92374         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
92375         * modules/userspec (EXTRA_DIST): Add userspec.h.
92376         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
92377         * modules/utimens (EXTRA_DIST): Add utimens.h.
92378         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
92379         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
92380         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
92381         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
92382         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
92383         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
92384         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
92385         * modules/yesno (EXTRA_DIST): Add yesno.h.
92387 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92389         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
92391         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
92392         * m4/dev-ino.m4, same-inode.m4: Remove.
92394         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
92395         * m4/acl.m4 (AC_FUNC_ACL):
92396         * m4/backupfile.m4 (gl_BACKUPFILE):
92397         * m4/c-strtod.m4 (gl_C99_STRTOLD):
92398         * m4/canon-host.m4 (gl_CANON_HOST):
92399         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
92400         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
92401         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
92402         * m4/cloexec.m4 (gl_CLOEXEC):
92403         * m4/close-stream.m4 (gl_CLOSE_STREAM):
92404         * m4/closeout.m4 (gl_CLOSEOUT):
92405         * m4/dirfd.m4 (gl_FUNC_DIRFD):
92406         * m4/dirname.m4 (gl_DIRNAME):
92407         * m4/exclude.m4 (gl_EXCLUDE):
92408         * m4/exitfail.m4 (gl_EXITFAIL):
92409         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
92410         * m4/file-type.m4 (gl_FILE_TYPE):
92411         * m4/filemode.m4 (gl_FILEMODE):
92412         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
92413         * m4/fpending.m4 (gl_FUNC_FPENDING):
92414         * m4/fprintftime.m4 (gl_FPRINTFTIME):
92415         * m4/fts.m4 (gl_FUNC_FTS):
92416         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
92417         * m4/getdate.m4 (gl_GETDATE):
92418         * m4/gethrxtime.m4 (gl_GETHRXTIME):
92419         * m4/getpagesize.m4 (gl_GETPAGESIZE):
92420         * m4/getpass.m4 (gl_FUNC_GETPASS):
92421         * m4/gettime.m4 (gl_GETTIME):
92422         * m4/getugroups.m4 (gl_GETUGROUPS):
92423         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
92424         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
92425         * m4/hard-locale.m4 (gl_HARD_LOCALE):
92426         * m4/hash.m4 (gl_HASH):
92427         * m4/idcache.m4 (gl_IDCACHE):
92428         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
92429         * m4/lchown.m4 (gl_FUNC_LCHOWN):
92430         * m4/long-options.m4 (gl_LONG_OPTIONS):
92431         * m4/lstat.m4 (gl_FUNC_LSTAT):
92432         * m4/md5.m4 (gl_MD5):
92433         * m4/memcasecmp.m4 (gl_MEMCASECMP):
92434         * m4/memcoll.m4 (gl_MEMCOLL):
92435         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
92436         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
92437         * m4/memxor.m4 (gl_MEMXOR):
92438         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
92439         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
92440         * m4/modechange.m4 (gl_MODECHANGE):
92441         * m4/mountlist.m4 (gl_MOUNTLIST):
92442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
92443         * m4/openat.m4 (gl_FUNC_OPENAT):
92444         * m4/pathmax.m4 (gl_PATHMAX):
92445         * m4/physmem.m4 (gl_PHYSMEM):
92446         * m4/posixtm.m4 (gl_POSIXTM):
92447         * m4/posixver.m4 (gl_POSIXVER):
92448         * m4/quote.m4 (gl_QUOTE):
92449         * m4/quotearg.m4 (gl_QUOTEARG):
92450         * m4/readtokens.m4 (gl_READTOKENS):
92451         * m4/readutmp.m4 (gl_READUTMP):
92452         * m4/regex.m4 (gl_REGEX):
92453         * m4/safe-read.m4 (gl_SAFE_READ):
92454         * m4/safe-write.m4 (gl_SAFE_WRITE):
92455         * m4/same.m4 (gl_SAME):
92456         * m4/save-cwd.m4 (gl_SAVE_CWD):
92457         * m4/savedir.m4 (gl_SAVEDIR):
92458         * m4/settime.m4 (gl_SETTIME):
92459         * m4/sha1.m4 (gl_SHA1):
92460         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
92461         * m4/stat-macros.m4 (gl_STAT_MACROS):
92462         * m4/stat-time.m4 (gl_STAT_TIME):
92463         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
92464         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
92465         * m4/strdup.m4 (gl_FUNC_STRDUP):
92466         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
92467         * m4/strndup.m4 (gl_FUNC_STRNDUP):
92468         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
92469         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
92470         * m4/time_r.m4 (gl_TIME_R):
92471         * m4/timespec.m4 (gl_TIMESPEC):
92472         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
92473         * m4/unlinkdir.m4 (gl_UNLINKDIR):
92474         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
92475         * m4/userspec.m4 (gl_USERSPEC):
92476         * m4/utimecmp.m4 (gl_UTIMECMP):
92477         * m4/utimens.m4 (gl_UTIMENS):
92478         * m4/xalloc.m4 (gl_XALLOC):
92479         * m4/xgetcwd.m4 (gl_XGETCWD):
92480         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
92481         * m4/xreadlink.m4 (gl_XREADLINK):
92482         * m4/xstrtod.m4 (gl_XSTRTOD):
92483         * m4/yesno.m4 (gl_YESNO):
92484         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
92485         to get the necessary .h files and whatnot.
92487 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
92488             Bruno Haible  <bruno@clisp.org>
92490         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
92491         /bin/sh understanding of '!' conditional negation.
92493 2006-08-21  Jim Meyering  <jim@meyering.net>
92495         * modules/openat (Depends-on): Really alphabetize.
92497         * modules/acl (Depends-on): Add error and quote.
92499         * check-module (find_included_lib_files): Add at-func.c to the
92500         ok-to-include-more-than-once white list.
92502         * modules/openat (Depends-on): Add lstat.  Alphabetize.
92504 2006-08-21  Bruno Haible  <bruno@clisp.org>
92506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92507         Emit a pkgdata_DATA variable only if some snippets add contents to it.
92508         Reported by Martin Lambers <marlam@marlam.de>.
92510 2006-08-21  Bruno Haible  <bruno@clisp.org>
92512         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
92513         specify an installation location, don't emit a noinst_LIBRARIES or
92514         noinst_LTLIBRARIES assignment.
92516 2006-08-21  Bruno Haible  <bruno@clisp.org>
92518         BeOS portability.
92519         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
92520         BeOS has mbrtowc() but no <wctype.h>.
92522 2006-08-21  Bruno Haible  <bruno@clisp.org>
92524         BeOS portability.
92525         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
92526         exist.
92528 2006-08-21  Bruno Haible  <bruno@clisp.org>
92530         BeOS portability.
92531         * lib/mbchar.h: Include <wctype.h> only if it exists.
92533 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92535         Remove files that are no longer needed by their respective modules.
92536         * m4/obstack.m4: Remove.
92537         * m4/strerror_r.m4: Remove.
92538         * m4/uint32_t.m4: Remove.
92539         * m4/uintptr_t.m4: Remove.
92540         * m4/ullong_max.m4: Remove.
92541         * m4/xstrtoimax.m4: Remove.
92542         * m4/xstrtoumax.m4: Remove.
92544         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
92545         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
92546         dependencies now capture this.
92548         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
92549         Do not use AC_LIBSOURCES, since gnulib modules now do this.
92550         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
92551         * m4/human.m4 (gl_HUMAN): Likewise.
92552         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
92553         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
92555         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
92557         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
92558         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
92559         stdint.
92560         * m4/human.m4 (gl_HUMAN): Likewise.
92561         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
92562         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
92563         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
92564         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
92565         * m4/xstrtol (gl_XSTRTOL): Likewise.
92567         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
92568         AC_TYPE_LONG_LONG_INT.
92569         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
92570         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
92571         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
92572         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
92574         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
92575         on stdbool.
92577         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
92578         (gl_PREREQ_XSTRTOUL): Remove.
92580         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
92582         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
92583         mode.
92585 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92587         Add and change modules to make it easier for coreutils to use
92588         gnulib-tool.
92589         * modules/backupfile (Files): Remove m4/d-ino.m4.
92590         (Depends-on): Add d-ino.
92591         * modules/cycle-check (Depends-on): Add stdint.
92592         (lib_SOURCES): Add cycle-check.h.
92593         * modules/d-ino: New module.
92594         * modules/d-type: New module.
92595         * modules/error (Files): Remove m4/strerror_r.m4.
92596         * modules/filemode (Files): Add m4/st_dm_mode.m4.
92597         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
92598         m4/inttypes_h.m4, m4/uintmax_t.m4.
92599         (Depends-on): Add stdint.
92600         (lib_SOURCES): Add fsusage.h.
92601         * modules/getcwd (Files): Remove d-ino.m4.
92602         (Depends-on): Add d-ino.
92603         * modules/getndelim2 (Depends-on): Add stdint.
92604         * modules/glob (Files): Remove m4/d-type.m4.
92605         (Depends-on): Add d-type.
92606         * modules/host-os: New module.
92607         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
92608         m4/inttypes_h.m4, m4/uintmax_t.m4.
92609         * Depends-on: Add stdint.
92610         (lib_SOURCES): Add human.h.
92611         * modules/inttostr (Files): Remove m4/intmax_t.m4,
92612         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
92613         m4/uintmax_t.m4, m4/ulonglong.m4.
92614         (Depends-on): Add stdint.
92615         (EXTRA_DIST): Add inttostr.h.
92616         * modules/lchmod: New module.
92617         * modules/link-follow: New module.
92618         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
92619         (Depends-on): Add lchmod.
92620         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
92621         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
92622         (Depends-on): Add stdint.
92623         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
92624         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
92625         (Depends-on): Add stdint.
92626         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
92627         * modules/perl: New module.
92628         * modules/regex (Depends-on): Add stdint.
92629         * modules/rmdir-errno: New module.
92630         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
92631         m4/intmax_t.m4.
92632         (Depends-on): Add stdint.
92633         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
92634         m4/uintmax_t.m4.
92635         (Depends-on): Add stdint.
92636         * modules/unlink-busy: New module.
92637         * modules/utimecmp (Depends-on): Add stdint.
92638         * modules/uptime: New module.
92639         * modules/winsz-ioctl: New module.
92640         * modules/winsz-termios: New module.
92641         * modules/xnanosleep (Depends-on): Add nanosleep.
92642         * modules/ullong_max: Remove.
92643         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
92644         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
92645         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
92646         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
92647         (Depends-on): Add inttypes.
92648         (lib_SOURCES): Add xstrtol.h.
92649         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
92650         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
92651         * MODULES.html.sh: Move 'assert' into the assert section.
92652         Move 'dummy' into the linking section.
92653         Remove ullong_max.
92654         Add section for compatibility checks for POSIX:2001 functions,
92655         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
92656         winsz-ioctl, and winsz-termios into it.
92657         Add lchmod.
92658         Add top-level Misc section and put host-os, perl, and uptime
92659         into it.
92661 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92663         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
92664         now assume the stdint module.  Do not include inttypes.h.
92665         * lib/fsusage.h: Likewise.
92666         * lib/getndelim2.c: Likewise.
92667         * lib/human.h: Likewise.
92668         * lib/inttostr.h: Likewise.
92669         * lib/obstack.c: Likewise.
92670         * lib/regex_internal.h: Likewise.
92671         * lib/tempname.c: Likewise.
92672         * lib/utimecmp.c: Likewise.
92673         * lib/xstrtol.h: Likewise.
92675         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
92677         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
92678         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
92679         * lib/xtime.h: Likewise.
92681 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92683         * modules/openat (Files): Add lib/fchmodat.c.
92684         Fixes problem reported by Jay Youngman.
92686 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92688         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
92689         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
92691 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
92692             Bruno Haible  <bruno@clisp.org>
92694         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
92695         and is a script that invokes bison. Tighten the code. Add comments.
92697 2006-08-18  Jim Meyering  <jim@meyering.net>
92699         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
92700         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
92701         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
92702         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
92704 2006-08-18  Bruno Haible  <bruno@clisp.org>
92706         * modules/bison-i18n: New file.
92707         * MODULES.html.sh (Internationalization functions): Add it.
92709 2006-08-18  Bruno Haible  <bruno@clisp.org>
92711         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
92712         sys/statvfs.h. When getmntinfo was found, check its declaration and
92713         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
92715 2006-08-18  Bruno Haible  <bruno@clisp.org>
92717         * m4/bison-i18n.m4: New file, from bison.
92719 2006-08-18  Bruno Haible  <bruno@clisp.org>
92721         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
92722         (ME_DUMMY): Treat "kernfs" as a dummy.
92723         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
92725 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92727         Update from coreutils.
92729         2006-08-15  Jim Meyering  <jim@meyering.net>
92731         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
92733         2006-01-17  Jim Meyering  <jim@meyering.net>
92735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
92737         2006-01-11  Jim Meyering  <jim@meyering.net>
92739         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
92740         Check for the lchmod function.
92742 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92744         Update from coreutils.
92746         * lib/__fpending.h: Add copyright notice.
92747         * lib/fprintftime.h: Likewise.
92748         * lib/savedir.c: Use (C) in copyright notice.
92749         * lib/savedir.h: Likewise.
92751         2006-08-15  Jim Meyering  <jim@meyering.net>
92753         * lib/at-func.c: New file, with the logic of all emulated at-functions.
92754         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
92755         in support of the EXPECTED_ERRNO macro.
92756         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
92757         definitions.  Instead, define the appropriate symbols and include
92758         "at-func.c".
92759         * lib/mkdirat.c (mkdirat): Likewise.
92760         * lib/fchmodat.c (fchmodat): Likewise.
92761         (ENOSYS): Remove definition.
92762         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
92763         it.  Don't include "unistd--.h" -- it wasn't ever used.
92765         2006-01-17  Jim Meyering  <jim@meyering.net>
92767         Rewrite fts.c not to change the current working directory,
92768         by using openat, fstatat, fdopendir, etc..
92770         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
92771         (HAVE_OPENAT_SUPPORT): Define.
92772         [_LIBC] (fchdir): Don't undef or define; no longer used.
92773         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
92774         Now, this `function' always succeeds, and consumes its file descriptor
92775         parameter -- so callers must not close such FDs.  Update callers.
92776         (diropen_fd, opendirat, cwd_advance_fd): New functions.
92777         (diropen): Add parameter, SP.  Adjust all callers.
92778         Implement using diropen_fd, rather than open.
92779         (fts_open): Initialize new member, fts_cwd_fd.
92780         Remove fts_rft-setting code.
92781         (fts_close): Close fts_cwd_fd, if necessary.
92782         (__opendir2): Define in terms of opendir or opendirat,
92783         depending on whether the FST_NOCHDIR flag is set.
92784         (fts_build): Since fts_safe_changedir consumes its FD, and since
92785         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
92786         and close the dup'd file descriptor upon failure.
92787         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
92788         (fts_safe_changedir): Tweak semantics to reflect that this function
92789         now calls cwd_advance_fd and hence consumes its FD argument.
92790         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
92791         [struct FTS] (fts_rft): Remove now-unused member.
92792         [struct FTS] (fts_cycle.state): Improve comment.
92794         * lib/openat.c (openat_needs_fchdir): New function.
92795         * lib/openat.h (openat_needs_fchdir): Declare it.
92797 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
92799         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
92800         Problem and fix reported by Pádraig Brady in
92801         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
92803 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92805         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
92807 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92809         * lib/memcoll.c (memcoll): Optimize for the common case where the
92810         arguments are bytewise equal.
92812 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92814         * doc/regexprops-generic.texi: Add a copyright notice.
92816 2006-08-15  Bruno Haible  <bruno@clisp.org>
92818         * modules/tmpdir (License): Change to LGPL.
92820 2006-08-15  Bruno Haible  <bruno@clisp.org>
92822         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
92823         module.
92825 2006-08-14  Simon Josefsson  <jas@extundo.com>
92827         * config/srclist.txt: Add gnupload.
92829 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92831         Change copyright notice from LGPL 2 to GPL 2, since that's the
92832         standard form used in the gnulib repository.
92833         * tests/test-lock.c: Likewise.
92834         * tests/test-stdint.c: Likewise.
92835         * tests/test-tls.c: Likewise.
92837         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
92838         prelude-manager.  User shorter URLs for GNU projects, without '?'.
92839         Add copyright notice.
92841         * check-module: Add copyright notice.  Output a copyright
92842         notice if "--version" is specified.
92843         * modules/COPYING: New file.
92844         * tests/test-getaddrinfo.c: Add copyright notice.
92845         * tests/test-verify.c: Likewise.
92847 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92849         Change copyright notice from LGPL 2 to GPL 2, since that's the
92850         standard form used in the gnulib repository.
92851         * lib/lock.c: LGPL -> GPL.
92852         * lib/lock.h: Likewise.
92853         * lib/strnlen1.c: Likewise.
92854         * lib/strnlen1.h: Likewise.
92855         * lib/tls.c: Likewise.
92856         * lib/tls.h: Likewise.
92857         * lib/tmpdir.c: Likewise.
92859         * lib/TODO: Remove; this belongs only in coreutils.
92861 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92863         Add copyright notices to long-enough files that lack them, since
92864         otherwise the files aren't clearly free.  Use the same notice that
92865         getdate.texi already uses.
92866         * doc/alloca-opt.texi: Add copyright notice.
92867         * doc/alloca.texi: Likewise.
92868         * doc/ctime.texi: Likewise.
92869         * doc/functions.texi: Likewise.
92870         * doc/gcd.texi: Likewise.
92871         * doc/gnulib-tool.texi: Likewise.
92872         * doc/inet_ntoa.texi: Likewise.
92873         * doc/visibility.texi: Likewise.
92875         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
92876         * doc/quote.texi: Add copyright notice.
92878         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
92879         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
92880         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
92881         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
92882         is now obsolete, and give a pointer to the Sun list.
92883         Add copyright notice.
92885 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92887         * config/srclistvars.sh: Add copyright notice.
92889 2006-08-14  Eric Blake  <ebb9@byu.net>
92891         Import the following change from libc:
92893         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
92895         Upstream bug 2997.
92896         * lib/misc/error.c: Add space between program name and message if file
92897         name is missing.
92899 2006-08-12  Karl Berry  <karl@gnu.org>
92901         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
92902         remove, these originate in gnulib now.
92904 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92906         * doc/Makefile (standards.info standards.html standards.dvi):
92907         Also depend on make-stds.texi.
92909 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
92911         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
92912         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
92914         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
92915         in wchar_t.  Problem reported by Eric Blake.
92917         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
92918         LEN is smaller than SIZE.  Suggested by Bruno Haible.
92919         Also, help the compiler to keep LEN in a register.
92921 2006-08-11  Eric Blake  <ebb9@byu.net>
92923         * users.txt: Sort.  Add tar.
92925 2006-08-11  Bruno Haible  <bruno@clisp.org>
92927         * users.txt: New file.
92929 2006-08-11  Bruno Haible  <bruno@clisp.org>
92931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
92932         before <wchar.h>. Needed for OSF/1 and BSD/OS.
92934 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
92936         * modules/snprintf (Depends-on): Remove minmax.
92937         (Maintainer): Add self and Bruno.
92939 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
92941         * lib/.cppi-disable: Add snprintf.h, socket_.h.
92942         * lib/snprintf.c: Include <errno.h> and <limits.h>.
92943         (EOVERFLOW): Define if the system does not.
92944         Do not include "minmax.h"; it wasn't used.
92945         (snprintf): Don't assume size_t promotes to an unsigned type.
92946         Fix bug when generated string was too long for the buffer: the
92947         buffer's contents are supposed to be the initial prefix of the
92948         output.  Don't assume vasnprintf returns EOVERFLOW if the size
92949         exceeds INT_MAX; do the check ourselves.
92951         Import the following changes from libc:
92953         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
92955         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
92956         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
92957         set wc to the byte which couldn't be converted.
92958         (re_string_reconstruct): Don't clear valid_raw_len before calling
92959         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
92960         tip_context using re_string_context_at.
92962         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
92964         * lib/posix/regex.h: g++ still cannot handled [restrict].
92966         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
92968         * lib/posix/regex.h: Remove special handling for VMS.
92970 2006-08-10  Jim Meyering  <jim@meyering.net>
92972         * modules/same-inode: New module.
92973         * modules/dev-ino: New module.
92974         * modules/cycle-check: Depend on these modules, rather than simply
92975         including their .h files.
92976         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
92977         required via m4/cycle-check.m4.
92978         * modules/same: Depend on new same-inode module, rather than
92979         including same-inode.h.
92980         * modules/chdir-safer: New file.
92982         * modules/chown (Depends-on): Add stat-macros.
92984 2006-08-10  Jim Meyering  <jim@meyering.net>
92986         * m4/cycle-check.m4: New file.
92987         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
92988         * m4/dev-ino.m4, m4/same-inode.m4: New files.
92990 2006-08-10  Eric Blake  <ebb9@byu.net>
92992         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
92993         in from original proposal.
92995 2006-08-10  Eric Blake  <ebb9@byu.net>
92996         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
92998         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
92999         namespace.
93001 2006-08-10  Bruno Haible  <bruno@clisp.org>
93003         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
93004         as well.
93006 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93008         Sync from coreutils.
93010         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
93012         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
93013         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
93015 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93017         * modules/restrict: Remove; no longer needed now that we assume
93018         Autoconf 2.59 or later.
93019         * MODULES.html.sh: Remove 'restrict'.
93020         * modules/argp (Depends-on): Remove 'restrict'.
93021         * modules/base64 (Depends-on): Likewise.
93022         * modules/gc (Depends-on): Likewise.
93023         * modules/getaddrinfo (Depends-on): Likewise.
93024         * modules/glob (Depends-on): Likewise.
93025         * modules/inet_ntop (Depends-on): Likewise.
93026         * modules/inet_pton (Depends-on): Likewise.
93027         * modules/memxor (Depends-on): Likewise.
93028         * modules/regex (Depends-on): Likewise.
93029         * modules/strtok_r (Depends-on): Likewise.
93030         * modules/time_r (Depends-on): Likewise.
93032 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93034         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
93035         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
93036         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
93037         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
93038         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
93039         * m4/memxor.m4 (gl_MEMXOR): Likewise.
93040         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
93041         gl_C_RESTRICT replaced by AC_C_RESTRICT.
93043         Merge from coreutils.
93044         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
93045         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
93046         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93047         * m4/time_r.m4 (gl_TIME_R): Likewise.
93049 2006-08-09  Karl Berry  <karl@gnu.org>
93051         * config/srclist.txt: no more gettext-tools, per Bruno.
93053 2006-08-08  Eric Blake  <ebb9@byu.net>
93055         * modules/verror: New module.
93056         * MODULES.html.sh: Document it.
93058 2006-08-08  Eric Blake  <ebb9@byu.net>
93060         * lib/verror.h, lib/verror.c: New files.
93062 2006-08-08  Eric Blake  <ebb9@byu.net>
93064         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
93065         verror_at_line output complies with GNU Coding Standards even when
93066         file is NULL.
93068 2006-08-07  Bruno Haible  <bruno@clisp.org>
93070         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
93071         versions of AIX.
93072         Reported by Ralf Wildenhues.
93074 2006-08-07  Bruno Haible  <bruno@clisp.org>
93076         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
93077         in an AC_DEFUN. Needed so that the autoconf snippets can use
93078         AC_REQUIRE.
93080 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93083         Initialize pkgdata_DATA.
93084         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
93085         overriding it.
93087 2006-08-06  Eric Blake  <ebb9@byu.net>
93089         * lib/error.h: Fold in some upstream changes from glibc.
93090         * lib/error.c: Likewise.
93092 2006-08-04  Bruno Haible  <bruno@clisp.org>
93094         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93095         Make the mostlyclean-local rule depend on mostlyclean-generic.
93096         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
93098 2006-07-31  Bruno Haible  <bruno@clisp.org>
93100         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
93101         <stdlib.h>, <string.h>.
93103 2006-07-30  Bruno Haible  <bruno@clisp.org>
93105         * modules/readlink (License): Change to LGPL.
93107 2006-07-30  Bruno Haible  <bruno@clisp.org>
93109         * modules/javaversion (Makefile.am): Distribute javaversion.java and
93110         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
93111         set PKGDATADIR to point to it.
93113 2006-07-30  Bruno Haible  <bruno@clisp.org>
93115         * modules/csharpexec (configure.ac): Comment out macro invocation.
93116         * modules/javaexec (configure.ac): Likewise.
93117         * modules/javacomp-script (configure.ac): Likewise.
93119         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
93121 2006-07-30  Bruno Haible  <bruno@clisp.org>
93123         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
93124         linked-list.
93126 2006-07-30  Bruno Haible  <bruno@clisp.org>
93128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
93130 2006-07-30  Bruno Haible  <bruno@clisp.org>
93132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93133         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
93134         get removed.
93136 2006-07-29  Bruno Haible  <bruno@clisp.org>
93138         Make it possible for gnulib-tool to work with locally modified or
93139         augmented gnulib repositories.
93140         * gnulib-tool (func_usage): Document --local-dir option.
93141         (local_gnulib_dir): New variable.
93142         Handle --local-dir option.
93143         (func_lookup_file): New function.
93144         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
93145         (func_get_description, func_get_filelist, func_get_description,
93146         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
93147         func_get_automake_snippet, func_get_include_directive,
93148         func_get_license, func_get_maintainer): Use func_lookup_file.
93149         (func_import, func_create_testdir): Use func_lookup_file.
93151 2006-07-29  Bruno Haible  <bruno@clisp.org>
93153         * modules/setenv (Depends-on): Add unistd.
93155 2006-07-29  Bruno Haible  <bruno@clisp.org>
93157         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
93159 2006-07-29  Bruno Haible  <bruno@clisp.org>
93161         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
93163 2006-07-29  Bruno Haible  <bruno@clisp.org>
93165         * gnulib-tool (import, update): If there is no Makefile.am, look at
93166         aclocal.m4, instead of bailing out.
93168 2006-07-29  Bruno Haible  <bruno@clisp.org>
93170         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
93171         Categorize the options by when they are useful.
93173 2006-07-29  Bruno Haible  <bruno@clisp.org>
93175         * gnulib-tool (func_usage): Document option --no-libtool.
93176         Handle option --no-libtool.
93177         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
93178         for changed semantics of $libtool variable.
93179         (func_import): Likewise. If libtool is not used, show this through
93180         an option --no-libtool.
93181         (func_create_testdir): Update.
93183 2006-07-29  Bruno Haible  <bruno@clisp.org>
93185         * gnulib-tool (func_import): Extend error message about missing
93186         --doc-base.
93188 2006-07-29  Bruno Haible  <bruno@clisp.org>
93190         * gnulib-tool (func_import): Don't create the $docbase directory if
93191         there is no file to store there.
93193 2006-07-29  Bruno Haible  <bruno@clisp.org>
93195         * gnulib-tool (autoconf_minversion): If a --dir option is given and
93196         relevant, look for configure.ac there, not in the current directory.
93197         Also use a simple search for AC_PREREQ, not "autoconf --trace".
93199 2006-07-29  Bruno Haible  <bruno@clisp.org>
93201         * gnulib-tool (SORT): New variable.
93202         (func_usage): Undocument --assume-autoconf option.
93203         Remove --assume-autoconf option handling.
93204         (autoconf_minversion): Determine from the contents of configure.ac.
93205         (func_import): Remove autoconf_minversion handling.
93206         Suggested by Eric Blake.
93208 2006-07-29  Bruno Haible  <bruno@clisp.org>
93210         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
93212 2006-07-29  Bruno Haible  <bruno@clisp.org>
93214         * config/srclist.txt (*setenv.[ch]): Remove rules.
93216 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93218         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
93220 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93222         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
93223         arpa/inet.h.
93225 2006-07-28  Simon Josefsson  <jas@extundo.com>
93227         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
93228         * modules/inet_pton (Depends-on): Likewise.
93230 2006-07-28  Simon Josefsson  <jas@extundo.com>
93232         * m4/netinet_in_h.m4: New file.
93234 2006-07-28  Simon Josefsson  <jas@extundo.com>
93236         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
93237         #include's.
93239 2006-07-28  Simon Josefsson  <jas@extundo.com>
93241         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
93242         #include's.
93244 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
93246         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
93247         setgid on directories only if they set these bits.
93248         * lib/modechange.h: Remove obsolete comment about masks.
93250 2006-07-28  Eric Blake  <ebb9@byu.net>
93252         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
93253         macro expansion.
93255 2006-07-28  Bruno Haible  <bruno@clisp.org>
93257         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
93259 2006-07-28  Bruno Haible  <bruno@clisp.org>
93261         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
93263 2006-07-28  Bruno Haible  <bruno@clisp.org>
93265         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
93266         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
93267         Define fallbacks.
93268         Avoids link error on FreeBSD 4.x.
93269         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
93271         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
93272         encoding.
93273         * lib/mbswidth.c (iswcntrl): Likewise.
93275 2006-07-27  Bruno Haible  <bruno@clisp.org>
93277         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
93278         test.
93280 2006-07-27  Bruno Haible  <bruno@clisp.org>
93282         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
93283         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
93284         defined.
93286 2006-07-26  Eric Blake  <ebb9@byu.net>
93288         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
93290 2006-07-26  Eric Blake  <ebb9@byu.net>
93292         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
93293         like mingw that lack mkstemp.
93294         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
93295         avoid compilation warning on mingw.
93297 2006-07-26  Bruno Haible  <bruno@clisp.org>
93299         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
93300         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
93301         INT_FAST*_MIN, INTPTR_MIN.
93303 2006-07-25  Bruno Haible  <bruno@clisp.org>
93305         * modules/version-etc (Depends-on): Add stdarg.
93307 2006-07-25  Bruno Haible  <bruno@clisp.org>
93309         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
93310         complex commands.
93312 2006-07-25  Bruno Haible  <bruno@clisp.org>
93314         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
93315         defined in <stdarg.h> or config.h.
93317 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
93319         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
93320         (gl_STDIO_SAFER): Remove.
93322 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
93324         * MODULES.html.sh (File stream based Input/Output):
93325         Add fopen-safer, tmpfile-safer; remove stdio-safer.
93326         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
93327         * modules/fopen-safer, modules/tmpfile-safer: New files.
93328         * modules/stdio-safer: Remove.
93330 2006-07-24  Bruno Haible  <bruno@clisp.org>
93332         * modules/tmpdir: New file.
93333         * MODULES.html.sh (File system functions): Add it.
93335 2006-07-24  Bruno Haible  <bruno@clisp.org>
93337         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
93338         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
93340 2006-07-24  Bruno Haible  <bruno@clisp.org>
93342         * modules/clean-temp: New file.
93344 2006-07-24  Bruno Haible  <bruno@clisp.org>
93346         * m4/tmpdir.m4: New file, from GNU gettext.
93348 2006-07-24  Bruno Haible  <bruno@clisp.org>
93350         * lib/tmpdir.h: New file, from GNU gettext.
93351         * lib/tmpdir.c: New file, from GNU gettext.
93353 2006-07-24  Bruno Haible  <bruno@clisp.org>
93355         * lib/clean-temp.h: New file, from GNU gettext.
93356         * lib/clean-temp.c: New file, from GNU gettext.
93358 2006-07-23  Eric Blake  <ebb9@byu.net>
93360         * modules/stdio-safer (Files): Add tmpfile-safer.c.
93361         (Depends-on): Add binary-io.
93363 2006-07-23  Eric Blake  <ebb9@byu.net>
93365         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
93367 2006-07-23  Eric Blake  <ebb9@byu.net>
93369         * lib/tmpfile-safer.c: New file.
93370         * lib/stdio-safer.h (fopen_safer): Add prototype.
93371         * lib/stdio--.h (tmpfile): Make safer.
93373 2006-07-23  Bruno Haible  <bruno@clisp.org>
93375         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
93376         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
93377         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
93378         gl_linked_remove_at): Use it.
93380 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93381         and Simon Josefsson <jas@extundo.com>
93383         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
93385         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
93387 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93389         * modules/close-stream: New file.
93390         * modules/closeout (Description): Make it clear that it exits
93391         with a diagnostic on error.
93392         (Depends-on): Add close-stream.  Remove fpending, stdbool.
93393         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
93395 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93397         * m4/close-stream.m4: New file.
93399 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93401         * lib/close-stream.c, lib/close-stream.h: New files.
93403 2006-07-22  Bruno Haible  <bruno@clisp.org>
93405         Merge from GNU gettext 0.15.
93407         2006-05-01  Bruno Haible  <bruno@clisp.org>
93409                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
93411         2006-07-22  Bruno Haible  <bruno@clisp.org>
93413                 * modules/javaversion: New file.
93414                 * MODULES.html.sh (Java): Add javaversion.
93416         2006-03-12  Bruno Haible  <bruno@clisp.org>
93418                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
93420         2005-12-04  Bruno Haible  <bruno@clisp.org>
93422                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
93423                 (untested).
93425         2006-06-21  Bruno Haible  <bruno@clisp.org>
93427                 Avoid warnings from recent versions of mcs.
93428                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
93429                 -o, -L, -r any more. Use options documented since mcs-1.0
93430                 instead. Similarly for -g.
93432         2005-12-04  Bruno Haible  <bruno@clisp.org>
93434                 * build-aux/csharpcomp.sh.in: Suffix for resources is
93435                 .resources, not .resource.
93437         2005-07-09  Bruno Haible  <bruno@clisp.org>
93439                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
93440                 add a .dll suffix.
93441                 Reported by Mark Junker <mjscod@gmx.de>.
93443         2006-07-22  Bruno Haible  <bruno@clisp.org>
93445                 * modules/gettext: Upgrade to gettext-0.15.
93446                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
93447                 m4/visibility.m4.
93448                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
93450 2006-07-22  Bruno Haible  <bruno@clisp.org>
93452         Merge from GNU gettext 0.15.
93454         2006-03-25  Bruno Haible  <bruno@clisp.org>
93456                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
93458         2006-07-21  Bruno Haible  <bruno@clisp.org>
93460                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
93461                 "1.1".
93463         2006-05-09  Bruno Haible  <bruno@clisp.org>
93465                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
93466                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
93467                 for the conftestver execution.
93469         2006-05-01  Bruno Haible  <bruno@clisp.org>
93471                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
93472                 optional target-version argument. Verify that the compiler
93473                 groks source of the specified source-version, or add -source
93474                 option as necessary. Verify that the compiler produces
93475                 bytecode in the specified target-version, or add -target and
93476                 -source options as necessary. Make the result of the test
93477                 available as variable CONF_JAVAC. Also log error output in
93478                 config.log.
93480         2006-03-11  Bruno Haible  <bruno@clisp.org>
93482                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
93484         2006-05-09  Bruno Haible  <bruno@clisp.org>
93486                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
93487                 CLASSPATH_SEPARATOR to a semicolon.
93489         2006-03-12  Bruno Haible  <bruno@clisp.org>
93491                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
93492                 available as variable CONF_JAVA, for subsequent autoconf
93493                 tests. Also log error output in config.log.
93495         2006-07-19  Bruno Haible  <bruno@clisp.org>
93497                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
93498                 that getline works on glibc2 systems. Needed to avoid trouble
93499                 in relocatable.c.
93500                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
93502         2005-12-04  Bruno Haible  <bruno@clisp.org>
93504                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
93505                 launcher (untested).
93507         2005-12-04  Bruno Haible  <bruno@clisp.org>
93509                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
93511         2006-07-22  Bruno Haible  <bruno@clisp.org>
93513                 * gettext.m4: Update from GNU gettext-0.15.
93514                 * nls.m4: Likewise.
93515                 * po.m4: Likewise.
93516                 * inttypes-pri.m4: Likewise.
93517                 * inttypes-h.m4: Renamed from inttypes.m4.
93518                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
93520 2006-07-22  Bruno Haible  <bruno@clisp.org>
93522         Merge from GNU gettext 0.15.
93524         2005-07-05  Bruno Haible  <bruno@clisp.org>
93526                 * printf-args.c (printf_fetchargs): Work around broken
93527                 definition of wint_t on mingw.
93529         2005-02-12  Bruno Haible  <bruno@clisp.org>
93531                 * xallocsa.h: Add extern "C" for C++.
93533         2006-05-17  Bruno Haible  <bruno@clisp.org>
93535                 Cygwin portability.
93536                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
93538         2006-04-30  Bruno Haible  <bruno@clisp.org>
93540                 * progreloc.c: Include <mach-o/dyld.h> if available.
93541                 (find_executable): Use _NSGetExecutablePath when possible.
93543         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93545                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
93546                 function.
93548         2005-12-29  Bruno Haible  <bruno@clisp.org>
93550                 * progreloc.c (set_program_name_and_installdir): Fix
93551                 compilation error.
93553         2005-12-04  Bruno Haible  <bruno@clisp.org>
93555                 Cygwin portability.
93556                 * progreloc.c: Include <windows.h> also on Cygwin.
93557                 (find_executable): Add support for Cygwin.
93558                 (set_program_name_and_installdir): Handle also platforms with
93559                 nonempty EXEEXT.
93561         2006-07-11  Bruno Haible  <bruno@clisp.org>
93563                 * javacomp.c: Fix a comment.
93564                 Reported by Jim Meyering.
93566         2006-04-30  Bruno Haible  <bruno@clisp.org>
93568                 * javacomp.h (compile_java_class): Add source_version,
93569                 target_version arguments.
93570                 * javacomp.c: Rewritten to choose only a compiler that
93571                 respects the specified source_version and target_version.
93573         2006-06-27  Bruno Haible  <bruno@clisp.org>
93575                 Assume correct S_ISDIR macro.
93576                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
93578         2006-07-22  Bruno Haible  <bruno@clisp.org>
93580                 * javaversion.h: New file, from GNU gettext.
93581                 * javaversion.c: New file, from GNU gettext.
93582                 * javaversion.java: New file, from GNU gettext.
93583                 * javaversion.class: New file, from GNU gettext.
93585         2006-05-17  Bruno Haible  <bruno@clisp.org>
93587                 Cygwin portability.
93588                 * javaexec.c (execute_java_class): Test for jview program
93589                 also on Cygwin.
93591         2006-04-09  Bruno Haible  <bruno@clisp.org>
93593                 * fatal-signal.c: Don't include string.h.
93594                 (at_fatal_signal): Use a copying loop instead of memcpy.
93596         2005-12-04  Bruno Haible  <bruno@clisp.org>
93598                 * csharpexec.c: Add support for 'clix' launcher (untested).
93599                 (execute_csharp_using_sscli): New function.
93600                 (execute_csharp_program): Call it.
93602         2006-06-21  Bruno Haible  <bruno@clisp.org>
93604                 Avoid warnings from recent versions of mcs.
93605                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
93606                 -o, -L, -r any more. Use options documented since mcs-1.0
93607                 instead. Similarly for -g.
93609         2005-07-09  Bruno Haible  <bruno@clisp.org>
93611                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
93612                 add a .dll suffix.
93613                 Reported by Mark Junker <mjscod@gmx.de>.
93615         2006-06-17  Bruno Haible  <bruno@clisp.org>
93617                 * config.charset: Update for NetBSD 3.0.
93619         2006-05-17  Bruno Haible  <bruno@clisp.org>
93621                 Cygwin portability.
93622                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
93624         2006-05-16  Bruno Haible  <bruno@clisp.org>
93626                 * localcharset.c [CYGWIN]: Include <windows.h>.
93627                 (get_charset_aliases): For Cygwin, return the same CPxxx
93628                 aliases list as under WIN32.
93629                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
93630                 the environment variables. Fall back to GetACP().
93632         2006-04-05  Bruno Haible  <bruno@clisp.org>
93634                 * config.charset: Update Juan Manuel Guerrero's address.
93636         2005-02-12  Bruno Haible  <bruno@clisp.org>
93638                 * allocsa.h: Add extern "C" for C++.
93640         2005-02-10  Bruno Haible  <bruno@clisp.org>
93642                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
93643                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
93645         2006-07-22  Bruno Haible  <bruno@clisp.org>
93647                 * gettext.h: Update to GNU gettext-0.15.
93649 2006-07-22  Bruno Haible  <bruno@clisp.org>
93651         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
93652         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
93653         lib-prefix.m4, longdouble.m4, ssize_t.m4.
93655 2006-07-21  Eric Blake  <ebb9@byu.net>
93657         * modules/stdlib-safer: New file.
93658         * MODULES.html.sh (File stream based Input/Output): Add
93659         stdlib-safer.
93661 2006-07-21  Eric Blake  <ebb9@byu.net>
93663         * lib/stdlib-safer.h: New file from coreutils, required by
93664         stdlib--.h.
93666 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
93668         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
93670 2006-07-20  Bruno Haible  <bruno@clisp.org>
93672         * gnulib-tool: Recognize new option --assume-autoconf.
93673         (autoconf_minversion): New variable.
93674         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
93676 2006-07-20  Bruno Haible  <bruno@clisp.org>
93678         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
93680 2006-07-19  Derek R. Price  <derek@ximbiot.com>
93682         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
93683         Reindent and repaginate.
93685 2006-07-19  Derek Price  <derek@ximbiot.com>
93687         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
93688         Correct grammar.
93690 2006-07-17  Bruno Haible  <bruno@clisp.org>
93692         * modules/list: New file.
93693         * modules/array-list: New file.
93694         * modules/carray-list, modules/carray-list-tests: New files.
93695         * modules/linked-list, modules/linked-list-tests: New files.
93696         * modules/avltree-list, modules/avltree-list-tests: New files.
93697         * modules/rbtree-list, modules/rbtree-list-tests: New files.
93698         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
93699         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
93700         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
93701         * modules/oset: New file.
93702         * modules/array-oset: New file.
93703         * modules/avltree-oset, modules/avltree-oset-tests: New files.
93704         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
93705         * tests/test-carray_list.c: New file.
93706         * tests/test-linked_list.c: New file.
93707         * tests/test-avltree_list.c: New file.
93708         * tests/test-rbtree_list.c: New file.
93709         * tests/test-linkedhash_list.c: New file.
93710         * tests/test-avltreehash_list.c: New file.
93711         * tests/test-rbtreehash_list.c: New file.
93712         * tests/test-avltree_oset.c: New file.
93713         * tests/test-rbtree_oset.c: New file.
93714         * MODULES.html.sh (Container data structures): New section.
93716 2006-07-17  Bruno Haible  <bruno@clisp.org>
93718         * m4/gl_list.m4: New file.
93720 2006-07-17  Bruno Haible  <bruno@clisp.org>
93722         * lib/gl_list.h: New file.
93723         * lib/gl_list.c: New file.
93724         * lib/gl_array_list.h: New file.
93725         * lib/gl_array_list.c: New file.
93726         * lib/gl_carray_list.h: New file.
93727         * lib/gl_carray_list.c: New file.
93728         * lib/gl_linked_list.h: New file.
93729         * lib/gl_linked_list.c: New file.
93730         * lib/gl_anylinked_list1.h: New file.
93731         * lib/gl_anylinked_list2.h: New file.
93732         * lib/gl_avltree_list.h: New file.
93733         * lib/gl_avltree_list.c: New file.
93734         * lib/gl_anyavltree_list1.h: New file.
93735         * lib/gl_anyavltree_list2.h: New file.
93736         * lib/gl_rbtree_list.h: New file.
93737         * lib/gl_rbtree_list.c: New file.
93738         * lib/gl_anyrbtree_list1.h: New file.
93739         * lib/gl_anyrbtree_list2.h: New file.
93740         * lib/gl_anytree_list1.h: New file.
93741         * lib/gl_anytree_list2.h: New file.
93742         * lib/gl_linkedhash_list.h: New file.
93743         * lib/gl_linkedhash_list.c: New file.
93744         * lib/gl_anyhash_list1.h: New file.
93745         * lib/gl_anyhash_list2.h: New file.
93746         * lib/gl_avltreehash_list.h: New file.
93747         * lib/gl_avltreehash_list.c: New file.
93748         * lib/gl_rbtreehash_list.h: New file.
93749         * lib/gl_rbtreehash_list.c: New file.
93750         * lib/gl_anytreehash_list1.h: New file.
93751         * lib/gl_anytreehash_list2.h: New file.
93753         * lib/gl_oset.h: New file.
93754         * lib/gl_oset.c: New file.
93755         * lib/gl_array_oset.h: New file.
93756         * lib/gl_array_oset.c: New file.
93757         * lib/gl_avltree_oset.h: New file.
93758         * lib/gl_avltree_oset.c: New file.
93759         * lib/gl_rbtree_oset.h: New file.
93760         * lib/gl_rbtree_oset.c: New file.
93761         * lib/gl_anytree_oset.h: New file.
93763 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93765         * m4/mkancesdirs.m4: New file.
93766         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
93767         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
93768         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
93769         it.
93771 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93773         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
93774         * lib/mkancesdirs.h: New files.
93775         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
93776         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
93777         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
93778         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
93779         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
93780         callers changed.  Revamp internals significantly, by not
93781         attempting to create directories that are temporarily more
93782         permissive than the final results.  Do not attempt to use
93783         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
93784         This removes some race conditions, fixes some bugs, and simplifies
93785         things.  Use new dirchownmod function to do owner and mode changes.
93786         * lib/mkdir-p.h: Likewise.
93787         * lib/modechange.c (octal_to_mode): New function.
93788         (struct mode_change): New member mentioned.
93789         (make_node_op_equals): New arg mentioned.  All callers changed.
93790         (mode_compile): Keep track of which mode bits the user has explicitly
93791         mentioned.
93792         (mode_adjust): New arg DIR, so that we implement the X op correctly.
93793         New arg PMODE_BITS, to keep track of which mode bits the user
93794         mentioned; it treats S_ISUID and S_ISGID speciall.
93795         All callers changed.
93796         * lib/modechange.h: Likewise.
93798 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93800         * MODULES.html.sh: Add mkancestors.
93801         * modules/mkancesdirs: New module.
93802         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
93803         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
93804         The chdir-safer and afs files are now orphans; I'll remove them
93805         unless someone speaks up.
93806         Add lib/dirchownmod.c, lib/dirchownmod.h.
93807         (Depends-on): Remove alloca, chown, save-cwd, dirname.
93808         Add lchown, mkancesdirs.
93809         (Maintainer): Add self.
93811 2006-07-15  Karl Berry  <karl@gnu.org>
93813         * gnulib-tool: help message wording/arrangement.
93815 2006-07-14  Simon Josefsson  <jas@extundo.com>
93817         * doc/gnulib.texi (Libtool and Windows): New section.
93819 2006-07-12  Simon Josefsson  <jas@extundo.com>
93821         * modules/gendocs (License): Fix license, approved by Karl.
93823 2006-07-12  Eric Blake  <ebb9@byu.net>
93825         * MODULES.html.sh: Add gendocs.
93827 2006-07-11  Eric Blake  <ebb9@byu.net>
93829         * modules/fdl: New module, to install doc/fdl.texi.
93830         * MODULES.html.sh: Add new section for documentation modules.
93831         * gnulib-tool: Avoid space-tab.
93832         (--doc-base): New option, to manage files from doc.
93834 2006-07-11  Eric Blake  <ebb9@byu.net>
93836         * m4/absolute-header.m4: Fix comments to match recent change.
93838 2006-07-11  Eric Blake  <ebb9@byu.net>
93840         * gnulib-tool: List --doc-base before --tests-base.
93842 2006-07-11  Derek R. Price  <derek@ximbiot.com>
93844         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
93846 2006-07-11  Bruno Haible  <bruno@clisp.org>
93848         * README: Mention where to put documentation.
93850 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93852         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
93854 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
93856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
93857         to stdint.m4.
93859 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
93861         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
93862         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
93863         "no/such/file/stdint.h" when there is no such file, so that
93864         the resulting C code can be parsed by dodgy compilers.
93865         Problems reported by Bob Proulx.
93867 2006-07-10  Derek R. Price  <derek@ximbiot.com>
93869         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
93870         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
93871         macros into the GNU _D_EXACT_NAMLEN.
93872         * lib/savedir.c:  Likewise.
93873         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
93875 2006-07-10  Derek R. Price  <derek@ximbiot.com>
93876         and Paul Eggert  <eggert@cs.ucla.edu>
93878         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
93879         * m4/savedir.m4:
93880         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
93881         macros into the GNU _D_EXACT_NAMLEN.
93883 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93885         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
93886         around the absolute name, to work around a problem with the HP-UX
93887         11.23 native C compiler, reported by Bob Proulx.
93889 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93891         * doc/maintain.texi, make-stds.texi: Sync from
93892         <http://savannah.gnu.org/projects/gnustandards>.
93894 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93896         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
93898 2006-07-09  Jim Meyering  <jim@meyering.net>
93900         * m4/glob.m4: Remove a doubled word in a comment.
93902 2006-07-09  Jim Meyering  <jim@meyering.net>
93904         * lib/argp-pv.c: Remove a doubled word in a comment.
93905         * lib/check-version.c (check_version): Likewise.
93906         * lib/javacomp.c (compile_java_class): Likewise.
93908 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
93910         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
93911         for the benefit of people using Autoconf 2.60.  If you want to
93912         support older Autoconf versions you can copy m4/onceonly_2_57.m4
93913         (or m4/onceonly.m4, if pre-2.57) manually.
93915 2006-07-08  Jim Meyering  <jim@meyering.net>
93917         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
93918         comment.
93919         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
93920         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
93921         comment.
93923 2006-07-08  Jim Meyering  <jim@meyering.net>
93925         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
93927 2006-07-07  Simon Josefsson  <jas@extundo.com>
93929         * tests/test-crc.c: Change expected crc value, the test vector
93930         were probably computed using the old broken crc.c?
93932 2006-07-06  Simon Josefsson  <jas@extundo.com>
93934         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
93935         now the canonical place for the M4 file).
93937         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
93938         from the sys_socket dependency now.
93940         * modules/inet_pton (Files): Ditto.
93942         * modules/inet_ntop (Files): Ditto.
93944 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
93946         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
93947         not gl_PREREQ_GETUSERSHELL.
93949 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93951         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
93952         with only one argument, for Autoconf 2.60.
93953         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
93954         expand to nothing, so add a shell command to avoid syntax error.
93955         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
93957 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93959         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
93961 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
93963         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
93964         no longer needed.  Check for isblank decl.
93965         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
93966         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
93967         of existence.
93969 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
93971         * lib/getloadavg.c: Use __VMS, not VMS.
93972         * lib/getopt.c: Likewise.
93973         * lib/getpagesize.h: Likewise.
93974         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
93975         and probably does not work.
93977 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
93979         * lib/.cppi-disable: Add wcwidth.
93980         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
93981         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
93982         (ISGRAPH): Remove.  All uses changed to isgraph.
93983         (FOLD) [!defined _LIBC]: Remove special case.
93984         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
93985         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
93986         HAVE_ISBLANK.
93987         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
93988         case.
93990 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
93992         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
93993         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
93994         brackets.  Other minor changes to suppress some compiler
93995         warnings.
93997 2006-07-06  Derek R. Price  <derek@ximbiot.com>
93998         and Paul Eggert  <eggert@cs.ucla.edu>
94000         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
94001         of invoking obsolescent AC_HEADER_DIRENT macro.
94002         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
94003         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
94004         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
94005         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
94006         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
94007         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
94008         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
94009         * m4/readdir.m4: Remove; no longer needed.
94011 2006-07-06  Derek R. Price  <derek@ximbiot.com>
94012         and Paul Eggert  <eggert@cs.ucla.edu>
94014         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
94015         Don't worry about this obsolete case any more.
94016         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
94017         directories.
94018         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
94019         worry about this obsolete case any more.
94020         * lib/fts.c: Likewise.
94021         * lib/getcwd.c: Likewise.
94022         * lib/glob.h: Likewise.
94023         * lib/savedir.c: Likewise.
94025 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
94027         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
94028         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
94029         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
94030         needed.
94031         All uses removed.
94032         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94033         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
94034         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
94035         needed.
94036         * m4/getdate.m4 (gl_GETDATE): Likewise.
94037         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
94038         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
94039         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
94040         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94041         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
94042         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94043         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
94044         needed.
94046 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
94048         * lib/memcasecmp.c: Include <limits.h>.
94049         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
94050         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
94051         Don't assume isdigit succeeds only on '0' through '9'.
94053 2006-07-05  Eric Blake  <ebb9@byu.net>
94055         * modules/getaddrinfo (Depends-on): Add snprintf.
94057 2006-07-05  Eric Blake  <ebb9@byu.net>
94059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
94060         to avoid 'header present but could not be compiled' on cygwin.
94062 2006-07-05  Eric Blake  <ebb9@byu.net>
94064         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
94065         missing from netdb.h.
94066         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
94068 2006-07-05  Derek R. Price  <derek@ximbiot.com>
94070         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
94071         no longer needed.
94072         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
94073         * m4/getdate.m4 (gl_GETDATE): Likewise.
94074         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
94075         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
94076         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
94077         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94078         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94080 2006-07-05  Derek R. Price  <derek@ximbiot.com>
94082         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
94083         All uses of is_space replaced by isspace.
94084         * lib/exit.h: Don't talk about STDC_HEADERS.
94085         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
94086         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
94087         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
94088         replaced by isprint etc.
94089         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
94090         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
94091         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
94092         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
94093         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
94094         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
94096 2006-07-05  Bruno Haible  <bruno@clisp.org>
94098         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
94099         the function exists, before testing against AIX.
94100         Reported by Martin Lambers <marlam@marlam.de>.
94102 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
94104         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
94105         From Mark D. Baushke.
94107 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
94109         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
94110         to the absolute name, not just one, to bypass Sun C 5.8's
94111         "warning: #include of /usr/include/... may be non-portable".
94113 2006-07-04  Eric Blake  <ebb9@byu.net>
94115         * modules/dirname-tests: New test module.
94116         * tests/test-dirname.c: New file, replacing dirname.c
94117         TEST_DIRNAME section that was recently deleted.
94119 2006-07-04  Bruno Haible  <bruno@clisp.org>
94121         Assume ANSI C header files and <ctype.h> functions.
94122         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
94123         (mbsnwidth): Use isprint, iscntrl instead.
94125 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94127         Merge from coreutils.
94128         * MODULES.html.sh: Add xstrtold.
94129         * modules/xstrtold: New file.
94130         * modules/cycle-check (Files): Add lib/same-inode.h.
94131         * modules/dirname (Files): Add m4/double-slash-root.m4.
94132         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
94133         * modules/mkdir-p (Files): Add lib/same-inode.h.
94134         * modules/same (Files): Add lib/same-inode.h.
94136 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94138         * m4/absolute-header.m4: Renamed from full-header-path.m4.
94139         This is to keep the terminology clean; POSIX talks about
94140         "absolute pathnames", not "full pathnames", but the GNU
94141         Coding Standards say to use "path" for something else;
94142         so use "absolute" to keep both sides happy.
94143         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
94144         Set gl_absolute_header, not gl_full_header_path.
94145         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
94146         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
94147         All uses changed.
94149         Merge from coreutils.
94151         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
94153         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
94154         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
94155         want to require the building of c-strtod.o.
94156         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
94157         needs -lm directly.
94158         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
94160         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
94162         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
94163         --as-needed option if available.  Problem reported by Albert Chin in
94164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
94165         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
94166         cc merely issues a bunch of annoying warnings for --as-needed
94167         (this problem was reported by Bob Proulx).  Also, try linking with
94168         -lm to detect a bug in binutils 2.16 (this problem was reported
94169         by Ralf Wildenhues).
94171         2006-06-18  Jim Meyering  <jim@meyering.net>
94173         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
94174         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
94175         macro.
94176         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
94177         also check for glibc-2.4's abort-inducing bug.
94179         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
94180         Low-probability clean-up should be to use rmdir to get rid of
94181         the just-created directory, not unlink.
94183         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
94184         configure fail, and request a bug report to inform us about it.
94185         Add a comment that, barring reports to the contrary, in 2007 we'll
94186         assume ftruncate is universally available.
94188         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
94190         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
94192         2006-03-12  Jim Meyering  <jim@meyering.net>
94194         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
94195         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
94196         * m4/same.m4 (gl_SAME): Likewise.
94197         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
94199         2006-03-11  Eric Blake  <ebb9@byu.net>
94201         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
94202         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
94203         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
94204         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
94206 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94208         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
94209         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
94210         reported by Mark D. Baushke, one in
94211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
94213         Merge from coreutils.
94215         * lib/.cppi-disable: Add stdint_.h.
94216         * lib/.cvsignore: Add stdint.h.
94218         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
94220         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
94221         both double and long double versions.
94222         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
94223         * lib/xstrtold.c: New file.
94224         * lib/xstrtod.h (xstrtold): New decl.
94226         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
94228         * lib/filemode.c (setst): Remove.
94229         (strmode): Rewrite to avoid setst.  This makes the code shorter,
94230         (arguably) clearer, and the generated code is a bit smaller on my
94231         Debian GNU/Linux stable x86 host.
94233         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
94235         * lib/filemode.c: Include "filemode.h" first, to test the interface.
94236         Assume that filemode.h includes sys/types.h and sys/stat.h.
94237         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
94238         (ftypelet): Reorder to put common cases first, for efficiency.
94239         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
94240         to do 'M'.
94241         (strmode): Renamed from mode_string, and now stores 12 bytes instead
94242         of 10, for compatibility with FreeBSD.  All callers changed.
94243         (filemodestring): Now stores 12 bytes instead of 10, and sets file
94244         types that can't be deduced solely from st_mode.  First arg is now a
94245         const pointer.
94246         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
94247         (strmode): Renamed from mode_string.
94248         (filemodestring): New decl.
94249         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
94250         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
94251         needed.
94252         (S_ISPORT, S_ISWHT): New macros, if not already defined.
94254         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
94256         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
94257         fsusage.h now does that.  Include fsusage.h first, to test interface.
94258         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
94259         at most one method (the old code could have generated decls that
94260         didn't conform to C89, not that this was ever exercised).
94261         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
94263         2006-03-19  Jim Meyering  <jim@meyering.net>
94265         Work even in a chroot where d_ino values for entries in "/"
94266         don't match the stat.st_ino values for the same names.
94267         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
94268         number, iterate through all entries again, using lstat instead.
94269         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
94270         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
94272         * lib/getcwd.c (__getcwd): Clarify a comment.
94273         Use memcpy in place of a call to strcpy.
94275         2006-03-12  Jim Meyering  <jim@meyering.net>
94277         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
94278         matches that of the current directory (which we're about to chdir ".."
94279         out of), then save the dev-ino of the parent, instead.
94281         * lib/same-inode.h (SAME_INODE): New file/macro.
94282         * lib/chdir-safer.c (SAME_INODE): Remove definition.
94283         Include "same-inode.h", instead.
94284         * lib/same.c: Likewise.
94285         * lib/cycle-check.h: Include "same-inode.h".
94286         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
94287         * lib/cycle-check.c (SAME_INODE): Remove definition.
94288         * lib/root-dev-ino.h: Include "same-inode.h".
94290         2006-03-11  Eric Blake  <ebb9@byu.net>
94292         * lib/same.c (same_name): s/base_name/last_component/
94293         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
94294         * lib/filenamecat.c (file_name_concat): Likewise.
94296         2006-03-11  Eric Blake  <ebb9@byu.net>,
94297                     Paul Eggert  <eggert@cs.ucla.edu>
94299         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
94300         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
94301         drive prefix.
94302         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
94303         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
94304         (last_component): New method.
94305         * lib/dirname.c (dir_len): Determine when drive letters need a
94306         subsequent slash.  Preserve // when it is special.
94307         (dir_name): Don't append dot when drive letter is absolute.
94308         [TEST_DIRNAME]: Move into a full-blown gnulib test.
94309         * lib/basename.c (base_name): New semantics - malloc the result.
94310         Preserve // when it is special.  Preserve relative files that look
94311         like drive letters.
94312         (base_len): Preserve // when it is special.
94313         (last_component): New method, similar to old base_name semantics.
94314         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
94315         base_name.  Strip redundant slashes from ///.
94317 2006-07-03  Jim Meyering  <jim@meyering.net>
94319         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
94320         macro is used before the first cycle_check call.
94322 2006-07-03  Eric Blake  <ebb9@byu.net>
94324         * modules/dirname (Depends-on): Add xstrndup.
94326 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94328         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
94329         test cases, so that config.log is a bit easier to follow.
94331 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94333         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
94334         both are 64 bits, since this seems to be the tradition, and this
94335         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
94336         we ever run into a host that prefers long long to long in this
94337         case, we'll need another configure-time test.  Problem reported by
94338         Jim Meyering.
94340 2006-07-02  Eric Blake  <ebb9@byu.net>
94342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
94344 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94346         * modules/inttypes (Depends-on): No longer depends on stdint.
94347         * modules/stdint (Description): Say more about assumptions.
94348         Say that the fast types might differ.  Say macros are used.
94349         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
94350         (Makefile.am): Revise list of substituted symbols to match
94351         new stdint.m4.
94352         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
94353         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
94354         * tests/test-stdint.c (verify_same_types)
94355         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
94356         the code conforms to C99/C89.
94357         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
94358         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
94360 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94362         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
94363         but fix a bug, by requiring at least 64 bits.
94364         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
94365         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
94366         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
94367         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94369         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
94370         changes.  Make 2.59 a prerequisite.  Check and substitute for
94371         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
94372         inttypes.h.  Do not use special include files; just use the
94373         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
94374         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
94375         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
94376         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
94377         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
94378         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
94379         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
94380         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
94381         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
94382         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
94383         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
94384         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
94385         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
94386         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
94387         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
94388         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
94389         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
94390         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
94391         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
94392         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
94393         WINT_MAX.  Check for C99 conformance more strictly, by detecting
94394         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
94395         not check for things that C99 does not require, e.g., int8_t.  If
94396         a test isn't needed unless <stdint.h> isn't working, and is
94397         unlikely to be needed for any other reason, then don't do it
94398         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
94399         size_t, since we assume C89 freestanding at least.  Do not check
94400         for sig_atomic_t, wchar_t, or wint_t, since the code now does
94401         the right thing even if the types are not defined.  Instead use:
94402         (gl_STDINT_TYPE_PROPERTIES): New macro.
94403         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
94404         testing whether <sys/types.h> clashes, as Autoconf does this for
94405         us now.  All uses removed.
94406         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
94407         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
94408         (gl_CHECK_TYPE_SAME):
94409         Remove; no longer needed.
94410         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
94411         exists, since we'll return 0 anyway in that case.
94412         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
94414 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94416         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
94417         possible collision with system files.
94418         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
94419         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
94420         WCHAR_MIN and WCHAR_MAX in this case.
94421         (<stddef.h>): Do not include; no longer needed.
94422         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
94423         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
94424         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
94425         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
94426         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
94427         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
94428         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
94429         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
94430         !defined(__c99))]: Include in this case too, since it's harmless
94431         now.
94432         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
94433         dangerous to do so.
94434         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
94435         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
94436         (_STDINT_MIN, _STDINT_MAX): New macros.
94437         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
94438         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
94439         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
94440         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
94441         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
94442         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
94443         macros, not typedefs; this simplifies things quite a bit.
94444         Use long int for all types narrower than int64_t.
94445         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
94446         Define in terms of long long int or int64_t or long int,
94447         not int64_t or int32_t.  This saves some compile-time testing.
94448         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
94449         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
94450         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
94451         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
94452         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
94453         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
94454         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
94455         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
94456         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
94457         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
94458         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
94459         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
94460         undef any previous version and define our own version, for
94461         simplicity and consistency with the new macros for types.
94462         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
94463         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
94464         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
94465         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
94466         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
94467         @WINT_T_SUFFIX@ to keep things simple here.
94468         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
94469         Simplify by assuming typical 8/16/32/64 host, since we're
94470         already doing that elsewhere anyway.
94471         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
94472         and assume long long int is 64 bits if available.  This
94473         speeds up 'configure'.
94475 2006-07-01  Eric Blake  <ebb9@byu.net>
94477         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
94478         Reported by Andreas Buening.
94480 2006-07-01  Eric Blake  <ebb9@byu.net>
94482         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
94484 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
94486         * lib/getaddrinfo.c: fixed typo
94488 2006-06-29  Jim Meyering  <jim@meyering.net>
94490         * modules/strftime (Maintainer): Add my name, since with the
94491         FPRINTFTIME changes strftime.c has forked from glibc.
94493 2006-06-29  Eric Blake  <ebb9@byu.net>
94495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
94497 2006-06-29  Eric Blake  <ebb9@byu.net>
94499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
94501 2006-06-29  Eric Blake  <ebb9@byu.net>
94503         * lib/stat_.h: New file.
94505 2006-06-29  Eric Blake  <ebb9@byu.net>
94507         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
94508         unused static function.
94510 2006-06-29  Eric Blake  <ebb9@byu.net>
94512         * doc/functions.texi (Function Portability): Document missing lstat
94513         on mingw.
94515 2006-06-29  Eric Blake  <ebb9@byu.net>
94517         * MODULES.html.sh: Add sys_stat.
94518         * modules/sys_stat: New module.
94519         * modules/mkstemp (Depends-on): Add sys_stat.
94521 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94523         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
94525 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94527         * m4/c-bs-a.m4: Removed.
94529 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94531         * lib/strftime.c: Assume strftime() exists.
94533 2006-06-29  Derek Price  <derek@ximbiot.com>
94535         * modules/c-bs-a: Removed - \a is C89.
94536         * MODULES.html.sh: Remove c-bs-a.
94538 2006-06-29  Bruno Haible  <bruno@clisp.org>
94540         * modules/wcwidth (License): Change to LGPL.
94542 2006-06-28  Simon Josefsson  <jas@extundo.com>
94544         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
94545         on _WIN32.
94547         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
94548         getnameinfo.
94550 2006-06-28  Simon Josefsson  <jas@extundo.com>
94552         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
94554 2006-06-28  Simon Josefsson  <jas@extundo.com>
94556         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
94557         functions there.  It will succeed on Windows XP, but on Windows
94558         2000 and (presumably) earlier, it will fail, and use the internal
94559         re-implementation.
94560         (use_win32_p): New function.
94561         (getaddrinfo): Use strtoul on servname, to support numeric ports.
94562         Support AI_NUMERICSERV to disable getservbyname.
94563         (getnameinfo): New function, only supports
94564         NI_NUMERICHOST|NI_NUMERICSERV for now.
94566         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
94567         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
94568         getnameinfo.
94570 2006-06-28  Eric Blake  <ebb9@byu.net>
94572         * modules/wcwidth: New file.
94573         * modules/mbchar (Depends-on): Add wcwidth.
94574         * modules/mbswidth (Depends-on): Add wcwidth.
94575         * MODULES.html.sh: Add wcwidth.
94577 2006-06-28  Eric Blake  <ebb9@byu.net>
94579         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
94580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
94582 2006-06-28  Eric Blake  <ebb9@byu.net>
94584         * lib/xvasprintf.h: Fix comments.
94586 2006-06-28  Eric Blake  <ebb9@byu.net>
94588         * lib/mbchar.h (wcwidth): Include wcwidth.h.
94589         * lib/mbswidth.c (wcwidth): Move from here...
94590         * lib/wcwidth.h: ...to this new file.
94592 2006-06-28  Derek R. Price  <derek@ximbiot.com>
94594         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
94596         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
94597         it's obsolete.
94598         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
94600 2006-06-28  Derek R. Price  <derek@ximbiot.com>
94602         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
94603         Autoconf 2.60 says this stuff was obsolete.
94605 2006-06-28  Bruno Haible  <bruno@clisp.org>
94607         * modules/wcwidth (Files): Add m4/wchar_t.m4.
94609 2006-06-28  Bruno Haible  <bruno@clisp.org>
94611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
94612         gt_TYPE_WCHAR_T.
94614 2006-06-28  Bruno Haible  <bruno@clisp.org>
94616         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
94617         declaration for wcwidth.
94618         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
94620 2006-06-28  Bruno Haible  <bruno@clisp.org>
94622         * lib/mkdtemp.c [MINGW]: Include <io.h>.
94623         (mkdir): Define using _mkdir.
94625 2006-06-28  Bruno Haible  <bruno@clisp.org>
94627         * lib/getaddrinfo.h: Fix POSIX URL.
94628         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
94629         _WIN32.
94630         (use_win32_p): Make static.
94631         (getaddrinfo): Reject service name if it is empty or does not consist
94632         solely of decimal digits, or if its value is > 65535.
94633         (getnameinfo): Remove useless casts.
94635 2006-06-27  Simon Josefsson  <jas@extundo.com>
94637         * modules/sys_select: New file, suggested by Bruno Haible, Paul
94638         Eggert and Martin Lambers.
94640 2006-06-27  Simon Josefsson  <jas@extundo.com>
94642         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
94643         Eggert and Martin Lambers.
94645 2006-06-27  Bruno Haible  <bruno@clisp.org>
94647         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
94648         result to 0, not to empty.
94649         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
94651 2006-06-27  Bruno Haible  <bruno@clisp.org>
94653         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
94655 2006-06-26  Simon Josefsson  <jas@extundo.com>
94657         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
94658         present.
94660 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
94662         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
94663         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
94664         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
94666 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
94668         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
94670 2006-06-26  Bruno Haible  <bruno@clisp.org>
94672         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
94674 2006-06-26  Bruno Haible  <bruno@clisp.org>
94676         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
94678 2006-06-26  Bruno Haible  <bruno@clisp.org>
94680         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
94681         SGI C compiler in pre-C99 mode.
94682         Suggested by Mark D. Baushke and Larry Jones.
94684 2006-06-26  Bruno Haible  <bruno@clisp.org>
94686         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
94687         WCHAR_MAX.
94688         Reported by Mark D. Baushke and Larry Jones.
94690 2006-06-26  Bruno Haible  <bruno@clisp.org>
94692         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
94693         in pre-C99 mode.
94694         Suggested by Mark D. Baushke and Larry Jones.
94696 2006-06-23  Simon Josefsson  <jas@extundo.com>
94697             Bruno Haible  <bruno@clisp.org>
94699         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
94700         Emit mostlyclean-local rule.
94701         (func_emit_tests_Makefile_am): Likewise.
94702         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
94704 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
94706         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
94708 2006-06-23  Bruno Haible  <bruno@clisp.org>
94710         * tests/test-stdint.c: Update to match ISO C 99 Technical
94711         Corrigendum 1.
94713 2006-06-23  Bruno Haible  <bruno@clisp.org>
94715         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
94717 2006-06-23  Bruno Haible  <bruno@clisp.org>
94719         * lib/stdint_.h: Treat IRIX like OpenBSD.
94721 2006-06-23  Bruno Haible  <bruno@clisp.org>
94723         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
94724         ISO C 99 Technical Corrigendum 1.
94726 2006-06-22  Simon Josefsson  <jas@extundo.com>
94728         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
94729         MinGW.
94731 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
94733         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
94734         needed.  Some compiler complained about some of them.  Problem reported
94735         by Larry Jones in
94736         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
94738 2006-06-21  Simon Josefsson  <jas@extundo.com>
94740         * tests/test-getaddrinfo.c: New file.
94742         * modules/getaddrinfo-tests: New file.
94744         * MODULES.html.sh: Add inet_pton.
94746         * modules/inet_pton: New file.
94748 2006-06-21  Simon Josefsson  <jas@extundo.com>
94750         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
94751         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
94752         of using the (limited) gnulib implementation on Windows XP.
94754         * m4/inet_pton.m4: New file.
94756 2006-06-21  Simon Josefsson  <jas@extundo.com>
94758         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
94759         variable.
94761         * lib/socket_.h: Don't define WINVER.
94763         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
94764         slightly modified to work in gnulib.
94766 2006-06-21  Simon Josefsson  <jas@extundo.com>
94768         * doc/gnulib.texi (Windows sockets): Add.
94770 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
94772         * lib/read-file.c (fread_file): Start with buffer allocation of
94773         0 bytes rather than 1 byte; this simplifies the code.
94774         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
94775         code to free buffer and save/restore errno.
94776         (internal_read_file): Remove unused local.
94778 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
94780         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
94781         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
94782         Problem reported by Denis Excoffier in
94783         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
94785 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94787         * modules/sys_socket, modules/socklen: Include sys/types since
94788         FreeBSD 4.x's sys/socket.h needs it.
94790 2006-06-19  Simon Josefsson  <jas@extundo.com>
94792         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
94794 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
94796         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
94798 2006-06-19  Bruno Haible  <bruno@clisp.org>
94800         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
94801         and FULL_PATH_INTTYPES_H in angle brackets.
94802         Reported by Mark D. Baushke <mdb@gnu.org>.
94804 2006-06-17  Eric Blake  <ebb9@byu.net>
94806         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
94807         errno.
94809 2006-06-17  Bruno Haible  <bruno@clisp.org>
94811         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
94812         <sys/inttypes.h>.
94814 2006-06-17  Bruno Haible  <bruno@clisp.org>
94816         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
94817         whether errno is declared. Assume <errno.h> declares errno.
94819 2006-06-17  Bruno Haible  <bruno@clisp.org>
94821         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
94823 2006-06-17  Bruno Haible  <bruno@clisp.org>
94825         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
94826         problem on Solaris 2.5.1.
94828 2006-06-16  Eric Blake  <ebb9@byu.net>
94830         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
94831         * lib/unicodeio.c [!defined errno]: Likewise.
94832         * lib/strtol.c [!defined errno]: Likewise.
94833         * lib/strtod.c [!defined errno]: Likewise.
94835 2006-06-15  Eric Blake  <ebb9@byu.net>
94837         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
94839 2006-06-15  Eric Blake  <ebb9@byu.net>
94841         * config/srclist.txt (ssize_t.m4): Lose sync.
94843 2006-06-15  Bruno Haible  <bruno@clisp.org>
94845         * modules/stdint (Files): Include m4/full-header-path.m4,
94846         m4/size_max.m4, m4/wchar_t.m4.
94847         (Makefile.am): Many more substitutions.
94848         * modules/stdint-tests: New file.
94849         * tests/test-stdint.c: New file.
94851 2006-06-15  Bruno Haible  <bruno@clisp.org>
94853         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
94854         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
94855         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
94856         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
94857         gl_CHECK_TYPE_SAME): New macros.
94859 2006-06-15  Bruno Haible  <bruno@clisp.org>
94861         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
94863 2006-06-15  Bruno Haible  <bruno@clisp.org>
94865         * lib/stdint_.h: Rewritten to be fully auto-configured.
94866         Fixes bug on HP-UX/IA64.
94868 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
94870         * lib/getdate.y (__attribute__): Don't define if already defined.
94871         Problem reported by Larry Jones.
94872         * lib/utimens.c (__attribute__): Likewise.
94874 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
94876         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
94877         reported by Andreas Schwab.
94879 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94880             Bruno Haible  <bruno@clisp.org>
94882         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
94883         check for the declaration of strnlen and a run test that exposes the
94884         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
94885         rpl_strndup.
94887 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94888             Bruno Haible  <bruno@clisp.org>
94890         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
94892 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94894         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
94895         compile test, for Tru64 4.0D.
94897 2006-05-28  Karl Berry  <karl@gnu.org>
94899         * config/srclist.txt (printf-args.c): lose sync.
94901 2006-05-26  Martin Lambers  <marlam@marlam.de>
94903         * lib/getpass.c: Updates the test for the native W32 API, and adds
94904         missing includes, thus fixing compilation warnings.
94906 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
94908         * lib/exclude.c (exclude_fnmatch): New function.
94909         (excluded_file_name): Call exclude_fnmatch.
94910         * lib/exclude.h (excluded_file_name): New prototype
94912 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
94914         * lib/tempname.c (small_open, large_open): New macros.
94915         (__open, __open64) [!_LIBC]: Remove.
94916         (__gen_tempname): Use small_open and large_open instead of __open
94917         and __open64.  This fixes a portability bug on HP-UX 11.11i
94918         reported by Simon Wing-Tang in
94919         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
94921 2006-05-24  Bruno Haible  <bruno@clisp.org>
94923         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
94924         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
94925         Reported by Thorsten Maerz <torte@netztorte.de> via
94926         Aaron Stone <aaron@serendipity.cx>.
94928 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
94930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
94931         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
94932         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
94933         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
94934         not really conditional on the cache.
94935         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
94937 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
94939         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
94940         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
94941         (my_usleep): Don't mishandle maximum value.
94943 2006-05-19  Jim Meyering  <jim@meyering.net>
94945         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
94947 2006-05-17  Bruno Haible  <bruno@clisp.org>
94949         Cygwin portability.
94950         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
94952 2006-05-17  Bruno Haible  <bruno@clisp.org>
94954         * lib/stdint_.h: Fix recognition of Cygwin.
94956 2006-05-15  Bruno Haible  <bruno@clisp.org>
94958         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
94959         on libtool patch by Ralf Wildenhues.
94961 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
94963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
94964         test for C99 conformance; (bool) 0.5 is an integer constant
94965         expression, but (bool) -0.5 is not.  Problem reported by Fedor
94966         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
94968 2006-05-11  Simon Josefsson  <jas@extundo.com>
94970         * m4/xvasprintf.m4: Fix obvious typo.
94972 2006-05-11  Jim Meyering  <jim@meyering.net>
94974         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
94975         James Lemley.
94977 2006-05-10  Simon Josefsson  <jas@extundo.com>
94979         * lib/md4.c: Typo fix, update copyright years.
94980         (K1, K2): Don't use L because it turn computations into 64-bit on
94981         64-bit platforms.
94983 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
94985         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
94986         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
94987         unwanted sign propagation, e.g., on hosts with 64-bit int.
94988         There still are some problems with reeelly weird theoretical hosts
94989         (e.g., 33-bit int) but it's not worth worrying about now.
94990         * lib/sha1.c (rol): Likewise.
94991         (K1, K2, K3, K4): Remove unnecessary L suffix.
94993 2006-05-10  Bruno Haible  <bruno@clisp.org>
94995         * lib/des.c: Cast to avoid warnings.
94997 2006-05-09  Bruno Haible  <bruno@clisp.org>
94999         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
95000         (Depends-on): Depend also on xsize, stdarg.
95001         (configure.ac): Add gl_XVASPRINTF.
95003 2006-05-09  Bruno Haible  <bruno@clisp.org>
95005         * m4/xvasprintf.m4: New file.
95007 2006-05-09  Bruno Haible  <bruno@clisp.org>
95009         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
95010         (EOVERFLOW): Define fallback value.
95011         (xstrcat): New function.
95012         (xvasprintf): Recognize the special case of a string concatenation.
95014 2006-05-08  Eric Blake  <ebb9@byu.net>
95016         * gnulib-tool (func_version): Base copyright year on CVS date.
95017         (func_emit_copyright_notice): New function.
95018         (func_emit_lib_Makefile_am): Use it.
95019         (func_emit_tests_Makefile_am): Likewise.
95020         (func_import): Likewise.
95022 2006-05-08  Bruno Haible  <bruno@clisp.org>
95024         * modules/stdarg: New file.
95025         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
95027 2006-05-08  Bruno Haible  <bruno@clisp.org>
95029         * m4/stdarg.m4: New file, from GNU gettext.
95031 2006-05-08  Bruno Haible  <bruno@clisp.org>
95033         * config/srclist.txt (build-aux/config.rpath): different from latest
95034         release.
95036 2006-05-08  Bruno Haible  <bruno@clisp.org>
95038         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
95040 2006-05-05  Jim Meyering  <jim@meyering.net>
95042         * m4/warning.m4: New file, derived from bison's file by the same name.
95044 2006-05-03  Bruno Haible  <bruno@clisp.org>
95046         * lib/stdint_.h: Shorter URL.
95047         * lib/inttypes.h: Likewise.
95049 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95051         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
95053 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95055         * lib/verify.h: Document the internals better.  Most of this change
95056         was written by Bruno Haible.
95058 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95060         * doc/verify.texi: New file, partly based on a proposal by
95061         Bruno Haible.
95063 2006-05-02  Bruno Haible  <bruno@clisp.org>
95065         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
95066         test from here...
95067         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
95069 2006-04-29  Bruno Haible  <bruno@clisp.org>
95071         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
95072         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
95074 2006-04-29  Bruno Haible  <bruno@clisp.org>
95076         * gnulib-tool: Make --update option actually work.
95078 2006-04-29  Bruno Haible  <bruno@clisp.org>
95080         * doc/gcd.texi: New file.
95081         * doc/gnulib.texi: Include it.
95083 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
95085         * lib/getdate.y (get_date): When adding relative date, start with the
95086         initial time, not with the result of the first mktime call.
95088 2006-04-25  Bruno Haible  <bruno@clisp.org>
95090         * gnulib-tool (func_import): Output the include directives in three
95091         blocks, sorted separately.
95092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95094 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
95096         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
95097         to define main with arguments, for C++.  Reported by Eric Blake.
95098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
95099         Prefer 'int main ()' to 'int main (void)', for C++.
95100         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
95101         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
95102         for 'main', for C99 and C++.
95104 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
95106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
95107         Don't assume that exit status -1 is valid.
95108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
95109         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95110         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
95111         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
95112         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
95113         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
95114         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
95115         functions can be used without declaring them, or that you can
95116         exit with status -1.
95117         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
95119 2006-04-24  Karl Berry  <karl@gnu.org>
95121         * config/srclist.txt (longdouble.m4): sync lost.
95123 2006-04-24  Eric Blake  <ebb9@byu.net>
95125         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
95127 2006-04-24  Bruno Haible  <bruno@clisp.org>
95129         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
95130         poll() implementation in AIX.
95131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95133 2006-04-24  Bruno Haible  <bruno@clisp.org>
95135         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
95136         assigned exactly once.
95138 2006-04-23  Claudio Fontana  <claudio@gnu.org>
95139             Bruno Haible  <bruno@clisp.org>
95141         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
95142         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
95143         for AM_CPPFLAGS.
95145 2006-04-23  Bruno Haible  <bruno@clisp.org>
95147         * modules/copy-file: Depend on unistd.
95148         * modules/execute: Likewise.
95149         * modules/fatal-signal: Likewise.
95150         * modules/findprog: Likewise.
95151         * modules/mkdtemp : Likewise.
95152         * modules/pipe: Likewise.
95153         * modules/wait-process: Likewise.
95155 2006-04-23  Bruno Haible  <bruno@clisp.org>
95157         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
95158         condition was already detected.
95159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95161 2006-04-23  Bruno Haible  <bruno@clisp.org>
95163         * lib/copy-file.c: Include <unistd.h> unconditionally.
95164         * lib/execute.c: Likewise.
95165         * lib/fatal-signal.c: Likewise.
95166         * lib/findprog.c: Likewise.
95167         * lib/mkdtemp.c: Likewise.
95168         * lib/pipe.h: Likewise.
95169         * lib/pipe.c: Likewise.
95170         * lib/wait-process.h: Likewise.
95172 2006-04-23  Bruno Haible  <bruno@clisp.org>
95174         * gnulib-tool (func_usage): Fix --import description. Document
95175         --update.
95176         (func_import): Create temporary file in a temporary directory, if
95177         --dry-run is specified. Silence errors from 'grep' when there are no
95178         m4 files in $m4dir.
95179         (func_create_testdir): Silence errors from 'grep' when there are no
95180         m4 files in $m4dir.
95181         Reported by Karl Berry <karl@freefriends.org>.
95183 2006-04-20  Bruno Haible  <bruno@clisp.org>
95185         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
95186         one argument, so that the code will be portable to Autoconf 2.60.
95187         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
95188         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
95189         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
95191 2006-04-19  Derek Price  <derek@ximbiot.com>
95192             Eric Blake  <ebb9@byu.net>
95194         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
95195         rather than "/full/path.h".  Update comment to match.  Shorten &
95196         generalize m4_translit call via AS_TR_CPP.
95198 2006-04-19  Derek Price  <derek@ximbiot.com>
95199             Eric Blake  <ebb9@byu.net>
95201         * lib/inttypes.h: Correct grammar in comment.
95203 2006-04-18  Derek Price  <derek@ximbiot.com>
95204             Paul Eggert  <eggert@cs.ucla.edu>
95206         * modules/inttypes: New file.
95207         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
95209 2006-04-18  Derek Price  <derek@ximbiot.com>
95210             Paul Eggert  <eggert@cs.ucla.edu>
95212         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
95213         New files.
95215 2006-04-18  Derek Price  <derek@ximbiot.com>
95216             Paul Eggert  <eggert@cs.ucla.edu>
95218         * lib/inttypes.h: New file.
95219         * lib/strtoimax.c: Assume <inttypes.h>.
95221 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
95223         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
95224         isn't mounted.  Problem reported by Kir Kolyshkin.
95226 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
95228         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
95229         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
95230         Derek R. Price.
95231         * lib/regex.h (RE_DUP_MAX): Update comment to match current
95232         implementation.
95234 2006-04-12  Eric Blake  <ebb9@byu.net>
95236         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
95237         is now done automatically by the corresponding Autoconf macro.
95239 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
95241         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
95242         time_r.h.
95244 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95246         Merge regex changes from libc, removing some of our
95247         POSIX-conformance changes that were rejected and redoing them in a
95248         less-intrusive way.
95250         * lib/regcomp.c (re_compile_internal, init_dfa):
95251         Length arg is now size_t, not Idx.  All uses changed.
95252         (peek_token): Forward decl now says internal_function.
95253         (__re_error_msgid, __re_error_msgid_idx):
95254         Now static rather than extern with attribute_hidden.
95255         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
95256         For some reason libc prefers K&R style defns for external functions.
95257         (regerror) [!defined _LIBC]: Likewise.
95258         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
95259         (seek_collating_symbol_entry, lookup_collation_sequence_value):
95260         (build_range_exp, build_collating_symbol):
95261         Use K&R-style defn.
95262         (re_compile_fastmap): Use '\0' to memset, not 0.
95263         (utf8_sb_map): Make the calculations more obvious.
95264         (init_dfa, parse_bracket_exp, build_charclass_op):
95265         Call calloc and cast result, as glibc does.
95266         (init_word_char, fetch_token, peek_token, peek_token_bracket):
95267         (build_range_exp, build_collating_symbol):
95268         Now internal functions.
95270         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
95272         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
95273         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
95274         Don't depend on VMS; depend on __VMS instead, for POSIX
95275         namespace cleanness.
95276         (regoff_t): Define to ssize_t, not long int.
95278         Remove the REG_ macros named below.  Instead, make the old names
95279         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
95280         __USE_GNU_REGEX.
95281         (REG_BACKSLASH_ESCAPE_IN_LISTS):
95282         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
95283         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
95284         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
95285         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
95286         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
95287         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
95288         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
95289         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
95290         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
95291         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
95292         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
95293         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
95294         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
95295         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
95296         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
95297         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
95298         (REG_NREGS):
95299         Remove.  All uses replaced by the old RE_* names.
95300         (RE_BACKSLASH_ESCAPE_IN_LISTS):
95301         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
95302         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
95303         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
95304         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
95305         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
95306         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
95307         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
95308         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
95309         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
95310         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
95311         Don't bother having these macros be independent of each others'
95312         values, since they no longer exist in the POSIX name space.
95314         Rename the following member names back to their old names,
95315         unless !__USE_GNU_REGEX.  All uses changed back.
95316         (buffer): Renamed from re_buffer.
95317         (allocated): Renamed from re_allocated.
95318         (used): Renamed from re_used.
95319         (syntax): Renamed from re_syntax.
95320         (fastmap): Renamed from re_fastmap.
95321         (translate): Renamed from re_translate.
95322         (can_be_null): Renamed from re_can_be_null.
95323         (regs_allocated): Renamed from re_regs_allocated.
95324         (fastmap_accurate): Renamed from re_fastmap_accurate.
95325         (no_sub): Renamed from re_no_sub.
95326         (not_bol): Renamed from re_not_bol.
95327         (not_eol): Renamed from re_not_eol.
95328         (newline_anchor): Renamed from re_newline_anchor.
95329         (num_regs): Renamed from rm_num_regs.
95330         (start): Renamed from rm_start.
95331         (end): Renamed from rm_end.
95333         (free_state): Move up a bit.
95335         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
95336         #define to be empty.
95337         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
95338         when that is what is intended.
95339         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
95340         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
95341         (MAX): New macro.
95342         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
95343         All uses changed back to re_malloc, etc.  It's now the caller's
95344         responsibility to check for overflow; all callers changed.
95345         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
95346         (re_x2nrealloc): Remove.
95347         (free_state): Remove decl.
95349         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
95350         (re_set_registers, re_exec):
95351         Use K&R-style defn.
95353         2006-01-31  Roland McGrath  <roland@redhat.com>
95355         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
95356         Reported by Mike Frysinger <vapier@gentoo.org>.
95358         2006-01-15  Andreas Jaeger  <aj@suse.de>
95360         [BZ #1950]
95361         * lib/regex_internal.c (re_string_reconstruct): Adjust for
95362         build_wcs_upper_buffer change.
95363         (build_wcs_upper_buffer): Change return type.
95365         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
95367         * lib/regex_internal.h: Include <stdint.h> if available.
95369         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
95371         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
95373         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
95375         * lib/regcomp.c: Adjust for changed secondary hash function.
95377         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
95379         * lib/regex.h: Pretty printing.
95380         Clean up namespace a bit.
95382         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
95384         * lib/regexec.c (update_cur_sifted_state, check_arrival,
95385         check_arrival_add_next_nodes): Avoid using uninitialized variable.
95387         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
95388                     Ulrich Drepper  <drepper@redhat.com>
95390         [BZ #1302]
95391         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
95392         changed.
95393         (bitset_word_t): Renamed from bitset_word.  All uses changed.
95395         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
95397         [BZ #281]
95398         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
95399         * lib/regcomp.c: Remove unnecessary uses of
95400         unsigned RE_TRANSLATE_TYPE.
95401         * lib/regex_internal.h: Likewise.
95402         * lib/regex_internal.c: Likewise.
95403         * lib/regexec.c: Likewise.
95404         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
95406         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
95408         * lib/regexec.c (find_recover_state): Remove unnecessary
95409         initialization.
95410         (transit_state_bkref): Make DFA a const pointer.
95411         (get_subexp): Likewise.
95412         (check_arrival): Likewise.
95413         (update_cur_sifted_state): Likewise.
95414         (re_search_internal): Likewise.
95415         (prune_impossible_nodes): Likewise.
95416         (acquire_init_state_context): Likewise.
95417         (proceed_next_node): Likewise.
95418         (set_regs): Likewise.
95419         (free_fail_stack_return): Likewise.
95420         (check_arrival_expand_ecl): Mark DFA parameter as const.
95421         (check_arrival_expand_ecl_sub): Likewise.
95422         (check_subexp_limits): Likewise.
95423         (sub_epsilon_src_nodes):  Likewise.
95424         (add_epsilon_src_nodes):  Likewise.
95425         (merge_state_array): Likewise.
95426         (update_regs): Likewise.
95427         (build_trtable): Likewise.
95428         (sift_states_backward): Mark MCTX parameter as const.
95429         (build_sifted_states): Likewise.
95430         (update_cur_sifted_state): Likewise.
95431         (sift_states_mkref): Likewise.
95432         (check_arrival_expand_ecl): Mark eclosure as const.
95433         (check_dst_limits_calc_pos_1): Likewise.
95434         * lib/regex_internal.h (re_match_context_t): Make dfa a const
95435         pointer.
95437         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
95439         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
95440         (transit_state_sb): Likewise.
95441         (transit_state_mb): Likewise.
95442         (sift_states_iter_mb): Likewise.
95443         (check_arrival_add_next_nodes): Likewise.
95444         (check_node_accept_bytes): Change first parameter to pointer-to-const.
95445         [_LIBC] (re_search_2_stub): Use mempcpy.
95447         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
95448         mbrtowc for very simple UTF-8 case.
95450         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
95451         a pointer-to-const.
95452         (re_acquire_state_context): Likewise.
95453         * lib/regex_internal.h: Adjust prototypes.
95455         * lib/regex.c: Prevent using C++ compilers.
95457         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
95458         (re_acquire_state_context): Likewise.
95460 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95462         * modules/regex (Depends-on): Add ssize_t.
95464 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95466         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
95467         translation table.
95469 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95471         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
95473 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
95474             Bruno Haible  <bruno@clisp.org>
95476         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
95477         <sys/types.h> and <inttypes.h>.
95479 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95481         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
95482         `__error_t_defined', so argp.h will not typedef the former.
95484 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
95486         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
95487         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
95488         glibc names.  Even if glibc is changed to conform to POSIX, the
95489         traditional names will be available anyway, since regex depends on
95490         the extensions module.  Also, fix a longstanding typo in the
95491         implementation of Spencer ERE test #75 from grep 2.3.  Problems
95492         reported by Emanuele Giaquinta.  Also, change sense of cached
95493         variable, so that the message makes sense.
95495 2006-03-24  Simon Josefsson  <jas@extundo.com>
95497         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
95498         including some doc fixes.
95499         (base64_encode_alloc): Fix +1 bug on allocation failures.
95501 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95503         * lib/base64.c (base64_encode): Do not read past end of array with
95504         unsanitized input on systems with CHAR_BIT > 8.
95506 2006-03-24  Eric Blake  <ebb9@byu.net>
95508         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
95510 2006-03-22  Karl Berry  <karl@gnu.org>
95512         * config/srclist.txt (*setenv.[ch]): get from coreutils.
95513         * config/srclistvars.sh (COREUTILS): new var.
95515 2006-03-17  Jim Meyering  <jim@meyering.net>
95517         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
95518         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
95520 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
95522         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
95523         no longer needs it.  Instead, check that regoff_t is as least
95524         as wide as ptrdiff_t.
95526         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
95527         so that our regex.h stays compatible with the installed regex.
95528         This is helpful for installers who configure --without-included-regex.
95529         Problem reported by Emanuele Giaquinta.
95531 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
95533         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
95534         Typedef to long int, not to off_, as POSIX will likely change
95535         in that direction.
95537 2006-03-15  Eric Blake  <ebb9@byu.net>
95539         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
95541 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
95543         * lib/argp-help.c (validate_uparams): Fix typo
95544         * lib/argp-parse.c (argp_default_options): Consistently begin help
95545         messages with a lowercase letter.
95547 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
95549         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
95550         overrun buffers and shouldn't be used (much as gets shouldn't be
95551         used).
95552         * lib/time_r.c (asctime_r, ctime_r): Likewise.
95554 2006-03-08  Simon Josefsson  <jas@extundo.com>
95556         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
95557         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95559 2006-03-08  Simon Josefsson  <jas@extundo.com>
95561         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
95562         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95564 2006-03-08  Simon Josefsson  <jas@extundo.com>
95566         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
95567         signal that configure disabled the device.
95569 2006-03-08  Simon Josefsson  <jas@extundo.com>
95571         * build-aux/maint.mk: Fix refresh-po, to handle no translated
95572         languages.
95574 2006-03-07  Simon Josefsson  <jas@extundo.com>
95576         * modules/getopt (Depends-on): Add unistd.
95578         * modules/unistd: New file.
95580 2006-03-07  Simon Josefsson  <jas@extundo.com>
95582         * modules/gc-random: New file.
95584 2006-03-07  Simon Josefsson  <jas@extundo.com>
95586         * m4/unistd_h.m4: New file.
95588 2006-03-07  Simon Josefsson  <jas@extundo.com>
95590         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
95591         test to be side-effect free by storing the result in the cache
95592         variable gl_cv_lib_readline, and moving the assignment of
95593         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
95594         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95596 2006-03-07  Simon Josefsson  <jas@extundo.com>
95598         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
95599         error on missing devices (the functions will return an error).
95601         * m4/gc.m4: Move random stuff to gc-random.m4
95603 2006-03-07  Simon Josefsson  <jas@extundo.com>
95605         * lib/unistd_.h: New file.
95607 2006-03-07  Simon Josefsson  <jas@extundo.com>
95609         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
95611 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95613         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
95614         Problem reported by Juan Manuel Guerrero.
95616 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95618         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
95619         the unistd module.
95620         * lib/getlogin_r.c: Likewise.
95621         * lib/getlogin_r.h: Likewise.
95622         * lib/glob.c: Likewise.
95623         * lib/pagealign_alloc.c: Likewise.
95624         * lib/unistd_.h: Remove; no longer needed.
95626 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95628         * MODULES.html.sh (Support for systems lacking POSIX:2001):
95629         Add unistd.
95630         * modules/c-stack (Depends-on): Add unistd.
95631         * modules/getlogin_r: Likewise.
95632         * modules/glob: Likewise.
95633         * modules/pagealign_alloc: Likewise.
95634         * modules/unistd (Files): Remove lib/unistd_.h.
95635         (EXTRA_DIST): Remove.
95636         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
95637         need unistd_.h.
95638         (MOSTLYCLEANFILES): Remove unistd.h-t.
95640 2006-03-03  Simon Josefsson  <jas@extundo.com>
95642         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
95644 2006-03-03  Simon Josefsson  <jas@extundo.com>
95646         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
95647         libidn and bison.
95649 2006-03-03  Simon Josefsson  <jas@extundo.com>
95651         * build-aux/maint.mk: Add indent target.
95653 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
95655         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
95656         our replacement poll.h in any case, to avoid a differing
95657         declaration from a system header.  Seen on AIX.
95659 2006-03-01  Simon Josefsson  <jas@extundo.com>
95661         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
95662         <kasal@ucw.cz>.
95664 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95666         * modules/gettime (Depends-on): Add extensions module.
95667         * modules/nanosleep (Depends-on): Likewise.
95668         * modules/settime (Depends-on): Likewise.
95670 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95672         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
95673         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
95674         pedantically.
95675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
95676         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
95678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
95679         not "==".  Reported by Ralf Wildenhues.
95681 2006-03-01  Karl Berry  <karl@gnu.org>
95683         * doc/Copyright/request-*: new files, synced from gnuorg.
95685 2006-03-01  Karl Berry  <karl@gnu.org>
95687         * config/srclist.txt (Copyright/*): new entries.
95689 2006-02-28  Simon Josefsson  <jas@extundo.com>
95691         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
95693 2006-02-27  Simon Josefsson  <jas@extundo.com>
95695         * lib/base64.h: Indent #define's.  From Jim Meyering
95696         <jim@meyering.net>.
95698 2006-02-27  Jim Meyering  <jim@meyering.net>
95700         Revert the change of 2006-02-24, so these files can continue
95701         to be sync'd from gettext.
95702         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
95703         of `config.h'.
95705 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
95707         * modules/intprops: New file.
95708         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95709         Add intprops.
95710         * modules/getloadavg (Files): Remove lib/intprops.h.
95711         (Depends-on): Add intprops.
95712         * modules/human: Likewise.
95713         * modules/inttostr: Likewise.
95714         * modules/openat: Likewise.
95715         * modules/sig2str: Likewise.
95716         * modules/userspec: Likewise.
95717         * modules/utimecmp: Likewise.
95718         * modules/xnanosleep: Likewise.
95719         * modules/xstrtol: Likewise.
95721 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
95723         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
95724         * modules/lock-tests (TESTS): Use $(EXEEXT).
95725         * modules/tls-tests: Likewise.
95726         * modules/argp-tests: Likewise.
95727         (check_PROGRAMS): New var, replacing...
95728         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
95730 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95732         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
95733         `config.h'.
95735 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
95737         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
95739 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95741         Sync from coreutils.
95742         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
95743         gl_CHDIR_SAFER.
95745 2006-02-22  Jim Meyering  <jim@meyering.net>
95747         Sync from coreutils.
95748         * m4/chdir-safer.m4: New file.
95750 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
95752         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
95753         AT_FDCWD exceeds INT_MAX.
95754         * lib/openat.h (AT_FDCWD): Likewise.
95756 2006-02-17  Eric Blake  <address@hidden>
95758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
95760 2006-02-16  Simon Josefsson  <jas@extundo.com>
95762         * modules/getaddrinfo (Depends-on): Add sys_socket.
95764 2006-02-15  Simon Josefsson  <jas@extundo.com>
95766         * build-aux/maint.mk: Add dsyntax-check rule.
95768 2006-02-15  Eric Blake  <ebb9@byu.net>
95770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
95771         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
95772         'present but cannot compile' warnings on cygwin.
95773         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
95774         use ws2tcpip.h if sys/socket.h works.
95775         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
95776         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
95778 2006-02-14  Simon Josefsson  <jas@extundo.com>
95780         * modules/maintainer-makefile (Files): Rename.
95782         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
95783         and (the local) Makefile.cfg to maint-cfg.mk.
95785         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
95786         to the latter.
95788         * modules/maintainer-makefile: New module.
95790         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
95791         severaly stripped to make it possible to build it up from scratch
95792         with reliable tests.
95794         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
95795         fixes to permit overriding the default actions when configure and
95796         makefile are not available.
95798 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
95800         Sync from coreutils.
95801         * modules/lstat (Depends-on): Don't depend on xalloc.
95802         (License): Change from GPL to LGPL, since this is now simply a
95803         replacement for a libc function.
95805 2006-02-14  Jim Meyering  <jim@meyering.net>
95807         Sync from coreutils.
95809         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
95810         failure on deficient systems, and simplify gnulib lgpl dependencies.
95811         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
95812         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
95814         * lib/xalloc-die.c: Remove unused definition of N_.
95816 2006-02-14  Jim Meyering  <jim@meyering.net>
95818         Sync from coreutils.
95819         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
95820         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
95821         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
95822         double-quote uses of that variable, to accommodate the rare case in
95823         which getmntent is available in none of the libraries checked.  This
95824         happens at least on FreeBSD 5.0.
95826 2006-02-13  Simon Josefsson  <jas@extundo.com>
95828         * gnulib-tool (Usage): Fix --import, from
95829         karl@freefriends.org (Karl Berry).
95831 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
95833         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
95835 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
95837         * lib/argp-namefrob.h: Restore changes accidentally lost during the
95838         "autoupdate" on 2005-12-12.
95840 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
95842         * modules/closeout (Depends-on): Remove atexit.
95844 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
95846         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
95847         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
95849 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
95851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
95852         __EXTENSIONS__ if this causes compilation to fail.  Problem
95853         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
95854         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
95856 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
95858         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
95859         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
95860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
95861         All uses changed.
95863 2006-01-26  Simon Josefsson  <jas@extundo.com>
95865         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
95866         prototype is visible on mingw32.
95868         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
95869         for mingw32.
95871         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
95872         mingw32).
95874 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
95876         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
95877         attempt to open for write; this always fails, at least on POSIX
95878         hosts.  This reinstates the 2006-01-09 change, which was
95879         inadvertently removed.
95881 2006-01-26  Bruno Haible  <bruno@clisp.org>
95883         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
95884         Reported by Paul Eggert.
95886 2006-01-26  Bruno Haible  <bruno@clisp.org>
95887             Paul Eggert  <eggert@cs.ucla.edu>
95889         * lib/stdbool_.h (_Bool)
95890         [(! (defined __cplusplus || defined __BEOS__)
95891           && !defined __GNUC__
95892           && !(defined __HP_cc || defined __xlc__
95893                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
95894                || defined __sgi))]:
95895         #define to signed char in these cases too; this simplifies
95896         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
95897         etc., separately) and makes it more conservative.
95899 2006-01-25  Simon Josefsson  <jas@extundo.com>
95901         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
95902         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
95903         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
95905 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
95907         * lib/argp-namefrob.h: Bugfix. Remove stray #
95909 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
95911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
95912         so that we test the test.
95913         Check for yet another HP-UX cc bug involving *bool |= bool.
95915 2006-01-25  Karl Berry  <karl@gnu.org>
95917         * config/srclist.txt (vasnprintf.c): sync lost.
95919 2006-01-25  Jim Meyering  <jim@meyering.net>
95921         Sync from the stable (b5) branch of coreutils:
95923         * lib/fts.c (fts_children): Don't let close() clobber errno from
95924         failed fchdir().
95926         * lib/fts.c (fts_stat): When following a symlink-to-directory,
95927         don't necessarily interpret stat-fails+lstat-succeeds as indicating
95928         a dangling symlink.  That can also happen at least for ELOOP.
95929         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
95930         FYI, this bug predates the inclusion of fts.c in coreutils.
95932         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
95933         in their own block, so pre-c99 compilers don't object.
95935         Avoid the double-free (first in fts_read, second in fts_close) that
95936         would occur when an `active' directory is made inaccessible (e.g.,
95937         via chmod a-x) during a traversal.
95938         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
95939         before returning.  Reproduce this failure by
95940         mkdir -p a/b; cd a; chmod a-x . b
95941         Reported by Stavros Passas.
95943 2006-01-25  Jim Meyering  <jim@meyering.net>
95945         * lib/fileblocks.c: Remove more useless parentheses.
95946         * lib/readutmp.h: Likewise.
95948 2006-01-25  Bruno Haible  <bruno@clisp.org>
95950         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
95951         warnings.
95952         Reported by Paul Eggert.
95954 2006-01-25  Bruno Haible  <bruno@clisp.org>
95956         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
95957         rid of a trap command. For Solaris sh.
95958         Reported by Mark D. Baushke <mdb@gnu.org>.
95960 2006-01-24  Simon Josefsson  <jas@extundo.com>
95962         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
95963         Bruno.
95965 2006-01-24  Karl Berry  <karl@gnu.org>
95967         * config/srclist.txt (argp-namefrob.h): sync lost.
95969 2006-01-24  Jim Meyering  <jim@meyering.net>
95971         * modules/openat (Files): Add lib/intprops.h.
95972         From Mark D. Baushke.
95974 2006-01-24  Jim Meyering  <jim@meyering.net>
95976         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
95977         Reported by Mark D. Baushke.
95979 2006-01-24  Jim Meyering  <jim@meyering.net>
95981         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
95983 2006-01-24  Bruno Haible  <bruno@clisp.org>
95985         * modules/strnlen (Maintainer): Change from glibc to all.
95987 2006-01-24  Bruno Haible  <bruno@clisp.org>
95989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
95990         Patch by Paul Eggert.
95992 2006-01-24  Bruno Haible  <bruno@clisp.org>
95994         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
95995         already has it.
95996         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
95997         2005-11-26.
95999         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
96000         'signed char' to avoid problems with the built-in _Bool type.
96001         Reported by Paul Eggert on 2005-11-26.
96003 2006-01-24  Bruno Haible  <bruno@clisp.org>
96005         * gnulib-tool (func_import): Avoid constructing complicated sed
96006         expressions inside backquote.
96007         Report and solution by Mark D. Baushke <mdb@gnu.org>.
96009 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
96011         These changes imported from libc.
96012         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
96013         test and two separate function calls.
96014         * lib/strndup.c (__strndup): Add libc_hidden_def.
96016 2006-01-23  Simon Josefsson  <jas@extundo.com>
96018         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
96019         Remove the test_*_SOURCES variable: automake infers it by default.
96020         * modules/tls-tests: Likewise.
96022 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96024         Work around porting bugs reported by Dieter in
96025         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
96026         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
96027         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
96028         Include "getopt.h" first, to check interface.
96029         (getenv): Declare only if defined HAVE_DECL_GETENV &&
96030         !HAVE_DECL_GETENV.
96031         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
96032         (__strndup): Revert to K&R-style function dfns, the glibc style.
96033         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
96034         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
96035         Include strnlen.h first, to get prototype properly.
96036         (strnlen): Renamed from __strnlen.
96037         Remove weak alias.
96039 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96041         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
96043 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96045         * config/srclist.txt: Adjust to reflect glibc reorganization.
96046         This affects only comments.
96048 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96050          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
96051          Reported by Bruce Korb <bkorb@gnu.org>.
96053 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
96055         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
96056         to pacify gcc -Wswitch-default.
96058 2006-01-22  Bruno Haible  <bruno@clisp.org>
96060         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
96061         temporary buffer for sprintf, take into account the precision also
96062         for 'd', 'i', 'u', 'o', 'x', 'X'.
96064 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
96066         * modules/argp-tests: New module
96067         * tests/test-argp.c: New file
96068         * tests/test-argp-2.sh: New file
96070 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
96072         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
96073         (__argp_base_name): Removed
96074         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
96075         typo.
96076         (__argp_base_name): Provide macro definition or extern declaration
96077         depending on the configuration
96079 2006-01-20  Simon Josefsson  <jas@extundo.com>
96081         * modules/inet_ntop (Depends-on): Depend on sys_socket.
96083 2006-01-20  Simon Josefsson  <jas@extundo.com>
96085         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
96087 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
96089         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
96090         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
96091         Suggested by Bruno Haible.
96093 2006-01-20  Karl Berry  <karl@gnu.org>
96095         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
96096         until changes propagate, I guess.
96098 2006-01-19  Simon Josefsson  <jas@extundo.com>
96100         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
96102 2006-01-19  Simon Josefsson  <jas@extundo.com>
96104         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
96106 2006-01-19  Simon Josefsson  <jas@extundo.com>
96108         * gnulib-tool: Set check_PROGRAMS.
96110         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
96111         modules/des-tests, modules/gc-arcfour-tests,
96112         modules/gc-arctwo-tests, modules/gc-des-tests,
96113         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
96114         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
96115         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
96116         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
96117         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
96118         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
96119         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
96120         test_*_SOURCES.
96122 2006-01-18  Simon Josefsson  <jas@extundo.com>
96124         * modules/socklen (Depends-on): Depend on sys_socket.
96126 2006-01-18  Simon Josefsson  <jas@extundo.com>
96128         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
96129         modules/des-tests, modules/gc-arcfour-tests,
96130         modules/gc-arctwo-tests, modules/gc-des-tests,
96131         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
96132         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
96133         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
96134         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
96135         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
96136         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
96137         $(EXEEXT) to automake TESTS variable, for mingw32.
96139 2006-01-17  Simon Josefsson  <jas@extundo.com>
96141         * modules/socklen (Include): Need sys/socket.h.
96143 2006-01-17  Bruno Haible  <bruno@clisp.org>
96145         * modules/ssize_t (Include): Add <sys/types.h>.
96147 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
96149         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
96150         it's not portable and it doesn't work with cross-compiles.
96151         Problem reported by Bruno Haible.  Fix missing-$ typo in
96152         'test "gl_cv_ignore_unused_libraries" ...' that prevented
96153         -zignore from being used with Sun's C compiler.
96155 2006-01-12  Simon Josefsson  <jas@extundo.com>
96157         * lib/base64.c: Fix warning, reported by Bruno Haible
96158         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
96160 2006-01-12  Bruno Haible  <bruno@clisp.org>
96162         * modules/ldd: New file.
96163         * build-aux/ldd.sh.in: New file.
96164         * MODULES.html.sh (Support for building libraries and executables): Add
96165         ldd.
96167 2006-01-12  Bruno Haible  <bruno@clisp.org>
96169         * m4/ldd.m4: New file.
96171 2006-01-12  Bruno Haible  <bruno@clisp.org>
96173         * gnulib-tool (func_import, func_create_testdir): Don't go into an
96174         endless loop while replacing $auxdir with build-aux.
96176 2006-01-11  Simon Josefsson  <jas@extundo.com>
96178         * lib/stdint_.h (SIZE_MAX): Add missing (.
96180 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
96182         Sync from coreutils.
96183         * lib/md5.c: Fix commentary typos.
96184         (alignof, UNALIGNED_P): No need for a GCC-specific version.
96185         * lib/md5.h (__attribute__): Remove; unused.
96186         * lib/sha1.c: Fix commentary to match md5 better.
96187         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
96188         so that we don't need to worry about alignment.  All uses changed.
96189         This merges the 2005-10-28 md5 change into sha1.
96191 2006-01-11  Jim Meyering  <jim@meyering.net>
96193         Sync from coreutils.
96194         * lib/md5.c (OP): Fix spacing.
96196 2006-01-11  Bruno Haible  <bruno@clisp.org>
96198         Ensure automatic ordering between gl_LOCK and gl_ARGP.
96199         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
96200         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
96202 2006-01-11  Bruno Haible  <bruno@clisp.org>
96204         Ensure automatic ordering between gl_LOCK and gl_ARGP.
96205         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
96206         the "early" section as well.
96208 2006-01-11  Bruno Haible  <bruno@clisp.org>
96210         Avoid "ar: no archive members specified" error on MacOS X.
96211         * gnulib-tool (func_modules_add_dummy): New function.
96212         (func_import, func_create_testdir): Invoke it.
96214 2006-01-11  Bruno Haible  <bruno@clisp.org>
96216         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
96217         with $auxdir in AC_CONFIG_FILES statements.
96219 2006-01-11  Bruno Haible  <bruno@clisp.org>
96221         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96222         Initialize also noinst_HEADERS to empty.
96224 2006-01-11  Bruno Haible  <bruno@clisp.org>
96226         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
96227         variables.
96228         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
96229         autoreconf.
96231 2006-01-11  Bruno Haible  <bruno@clisp.org>
96233         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
96234         overridable by the user.
96235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96237 2006-01-10  Simon Josefsson  <jas@extundo.com>
96239         * modules/sys_socket: New file.
96241 2006-01-10  Simon Josefsson  <jas@extundo.com>
96243         * m4/sys_socket_h.m4: New file.
96245 2006-01-10  Simon Josefsson  <jas@extundo.com>
96247         * lib/socket_.h: New file.
96249 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96251         * modules/readutmp (Maintainer): Add myself.
96253 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96255         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
96256         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
96257         People who are still concerned with buggy memcmp implementations
96258         can invoke gl_FUNC_MEMCMP themselves.
96260 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96262         * lib/regex_internal.h (BITSET_WORD_BITS):
96263         Work around a bug in 64-bit PGC (before version 6.1-2), where the
96264         preprocessor mishandles large unsigned values as if they were signed.
96265         Problem reported by Claudio Fontana in
96266         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
96268 2006-01-10  Jim Meyering  <jim@meyering.net>
96270         Avoid the double-free (first in fts_read, second in fts_close) that
96271         would occur when an `active' directory is made inaccessible (e.g.,
96272         via chmod a-x) during a traversal.
96273         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
96274         before returning.  Reproduce this failure by
96275         mkdir -p a/b; cd a; chmod a-x . b
96276         Reported by Stavros Passas.
96278         Sync from coreutils.
96279         * lib/sha1.c: Tweak grammar in a comment.
96281 2006-01-10  Jim Meyering  <jim@meyering.net>
96283         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
96284         Patch by Joerg Sonnenberger.
96286 2006-01-10  Bruno Haible  <bruno@clisp.org>
96288         * modules/readutmp: Depend on module free.
96289         * modules/strtok_r: Depend on module restrict.
96291 2006-01-10  Bruno Haible  <bruno@clisp.org>
96293         * modules/gettext (configure.ac): Add an invocation of
96294         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
96296 2006-01-10  Bruno Haible  <bruno@clisp.org>
96298         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
96299         Reported by Werner Lemberg <wl@gnu.org>.
96301 2006-01-10  Bruno Haible  <bruno@clisp.org>
96303         * lib/localcharset.c: Update from GNU gettext.
96305 2006-01-10  Bruno Haible  <bruno@clisp.org>
96307         * lib/argp.h (__const): Remove macro. Use const instead.
96308         * lib/argp-fmtstream.h (__const): Likewise.
96309         * lib/glob_.h (__const): Remove macro.
96310         * lib/glob-libc.h: Use const instead of __const.
96312 2006-01-10  Bruno Haible  <bruno@clisp.org>
96314         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
96315         variable.
96316         Needed to avoid an automake error regarding the 'gettext' module.
96318 2006-01-09  Simon Josefsson  <jas@extundo.com>
96320         * modules/inet_ntop (Depends-on): Add restrict.
96322 2006-01-09  Simon Josefsson  <jas@extundo.com>
96324         * modules/gc-rijndael-tests (License): Put under LGPL.
96326         * modules/gc-des-tests (License): Likewise.
96328         * modules/gc-arcfour-tests (License): Likewise.
96330         * modules/gc-arctwo-tests (License): Likewise.
96332         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
96334         * modules/gc-hmac-sha1-tests (Files): Likewise.
96336         * modules/gc-hmac-md5-tests (License): Likewise.
96338         * modules/gc-sha1-tests (License): Likewise.
96340         * modules/gc-md5-tests (License): Likewise.
96342         * modules/gc-md4-tests (License): Likewise.
96344         * modules/gc-md2-tests (License): Likewise.
96346         * modules/gc-tests (License): Likewise.
96348         * modules/des-tests (License): Likewise.
96350         * modules/md4-tests (License): Likewise.
96352         * modules/md2-tests (License): Likewise.
96354 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96356         Sync from coreutils:
96358         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
96359         * modules/lib-ignore: New file.
96360         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
96361         chdir-safer.m4, lchmod.m4.
96362         * modules/openat: Add mkdirat.c, openat-priv.h.
96364 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96366         Sync from coreutils.
96367         * m4/lib-ignore.m4: New file.
96368         * m4/lchmod.m4: New file.
96370 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96372         Sync from coreutils.
96373         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
96374         for write access: POSIX says that must fail.
96375         * lib/fts.c (diropen): Likewise.
96376         * lib/save-cwd.c (save_cwd): Likewise.
96377         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
96378         well, for minor improvements on hosts that lack O_DIRECTORY.
96379         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
96380         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
96381         Fall back on chown if open failed with EACCES.
96383         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
96384         Report an error at compile-time if only a 1-second nominal clock
96385         resolution is found.
96387         * lib/lchmod.h: New file.
96388         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
96389         (make_dir_parents): Use lchown rather than chown, and
96390         lchmod rather than chmod.
96392         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
96393         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
96394         "proc" reported by n0dalus.
96396         * lib/mountlist.c: Include <limits.h>.
96397         (dev_from_mount_options)
96398         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
96399         New function.  It no longer assumes "dev=" has the System V meaning
96400         on Linux (since it doesn't).  It also parses "dev=" more carefully.
96401         (read_file_system_list)
96402         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
96403         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
96404         dev= in that case.
96406         * lib/posixtm.h (PDS_PRE_2000): New macro.
96407         * lib/posixtm.c (year): Arg is now syntax_bits rather than
96408         allow_century.  All usages changed.  Reject dates outside the range
96409         1969-1999 if PDS_PRE_2000 is used.
96411 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96413         Sync from coreutils.
96414         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
96415         (Time of day items): Mention the possibility of leap seconds.
96416         Problem reported by Dr. David Alan Gilbert.
96418 2006-01-09  Jim Meyering  <jim@meyering.net>
96420         Sync from coreutils.
96422         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
96424         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
96426         * lib/modechange.c (mode_compile): Reject an invalid mode string
96427         that starts with an octal digit.  From Andreas Gruenbacher.
96429         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
96430         and dup to open_safer and dup_safer, respectively.
96431         (openat_permissive): Fix typo in comment.
96433         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
96434         "gettext.h"; either no longer needed or are guaranteed by openat.h.
96435         (_): Remove; no longer needed.
96436         (openat): Renamed from rpl_openat; no need for rpl_openat
96437         since openat.h renames openat for us.
96438         Replace most of the body with a call to openat_permissive,
96439         to avoid duplicate code.
96440         Port to (probably hypothetical) environments were mode_t is
96441         wider than int.
96442         (openat_permissive): Require mode arg, so that we can check
96443         types better.  Put it just after flags.  Change cwd failure
96444         indicator from pointer-to-bool to pointer-to-errno-value.
96445         All callers changed.
96446         Invoke openat_save_fail and/or openat_restore_fail if
96447         cwd_errno is null, so that openat can call us.
96448         (openat_permissive, fdopendir, fstatat, unlinkat):
96449         Simplify errno handling to avoid some duplicate code,
96450         as it's OK to set errno on success.
96451         * lib/openat.h: Revamp code so that function macros depend on
96452         __OPENAT_PREFIX only, not also on AT_FDCWD.
96453         (openat_ro): Remove.  Caller changed to use openat_permissive.
96454         (openat_permissive): Now a macro, if not a function.
96455         (openat_restore_fail, openat_save_fail): Now always functions,
96456         since mkdirat needs them even if __OPENAT_PREFIX is defined.
96458         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
96459         and openat.c.
96460         * lib/mkdirat.c: Include openat-priv.h.
96461         Remove definitions of macros defined therein.
96462         * lib/openat.c: Likewise.
96464         * lib/mkdirat.c (mkdirat): New file and function.
96465         * lib/openat.h (mkdirat): Declare.
96467         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
96469         * lib/openat.h (openat_permissive): Declare.
96470         (openat_ro): Define.
96472         * lib/openat.c (EXPECTED_ERRNO): New macro.
96473         (openat_permissive): New function -- used in remove.c rewrite.
96474         (all functions): Set errno just before returning, only if there
96475         was an actual failure.
96476         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
96478         Emulate openat-family functions using Linux's procfs, if possible.
96479         Idea and some code based on Ulrich Drepper's glibc changes.
96481         * lib/openat.c: (BUILD_PROC_NAME): New macro.
96482         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
96483         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
96484         before falling back on save_cwd and restore_cwd.
96485         (fdopendir, fstatat, unlinkat): Likewise.
96487         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
96488         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
96490         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
96491         as second argument to va_arg.  Otherwise, some versions of gcc
96492         warn that `if this code is reached, the program will abort'.
96494 2006-01-09  Jim Meyering  <jim@meyering.net>
96496         Sync from coreutils.
96497         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
96498         Require openat-priv.h.
96500 2006-01-09  Bruno Haible  <bruno@clisp.org>
96502         * modules/strnlen (Include): Use strnlen.h.
96504 2006-01-09  Bruno Haible  <bruno@clisp.org>
96506         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
96508 2006-01-09  Bruno Haible  <bruno@clisp.org>
96510         * lib/sysexit_.h (EX_OK): New macro.
96511         Suggested by Martin Lambers <marlam@marlam.de>.
96513 2006-01-09  Bruno Haible  <bruno@clisp.org>
96515         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
96516         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
96518 2006-01-09  Bruno Haible  <bruno@clisp.org>
96520         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
96521         numbers.
96523 2006-01-09  Bruno Haible  <bruno@clisp.org>
96525         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
96526         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
96527         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
96528         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
96530 2006-01-09  Bruno Haible  <bruno@clisp.org>
96532         * build-aux/javacomp.sh.in: New file, moved from lib/.
96533         * modules/javacomp-script (Files): Update.
96534         (configure.ac): Add AC_CONFIG_FILES invocation.
96535         (EXTRA_DIST): Remove variable.
96537         * build-aux/javaexec.sh.in: New file, moved from lib/.
96538         * modules/javaexec (Files): Update.
96539         (configure.ac): Add AC_CONFIG_FILES invocation.
96540         (EXTRA_DIST): Remove javaexec.sh.in.
96542         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
96543         * modules/csharpcomp-script (Files): Update.
96544         (configure.ac): Add AC_CONFIG_FILES invocation.
96545         (EXTRA_DIST): Remove variable.
96547         * build-aux/csharpexec.sh.in: New file, moved from lib/.
96548         * modules/csharpexec (Files): Update.
96549         (configure.ac): Add AC_CONFIG_FILES invocation.
96550         (EXTRA_DIST): Remove csharpexec.sh.in.
96552 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
96554         Sync from coreutils.
96556         Add POSIX ACL support
96557         * lib/acl.h (copy_acl, set_acl): Add declarations.
96558         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
96559         systems other than Linux.
96560         (chmod_or_fchmod): New function: use fchmod when possible,
96561         and chmod otherwise.
96562         (file_has_acl): Add a POSIX ACL implementation, with a
96563         Linux-specific subcase.
96564         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
96565         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
96566         acls are unsupported.
96567         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
96568         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
96569         are unsupported.
96571 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
96573         Sync from coreutils.
96574         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
96576 2006-01-07  Bruno Haible  <bruno@clisp.org>
96578         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
96579         gl_EARLY.
96581 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
96583         * lib/strftime.c (tzname): Don't declare if it is already #defined.
96584         Problem reported for Mingw by Mark Junker.
96586 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
96588         * README: Gnulib normally doesn't generate a tarball.
96590 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
96592         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
96593         long int, not int, for nanosecond counts, so that people who are
96594         used to POSIX struct timespec won't be surprised.  Reported by Jim
96595         Meyering.
96597 2005-12-28  Bruno Haible  <bruno@clisp.org>
96599         * build-aux/config.rpath: Update from GNU gettext.
96601 2005-12-16  Jim Meyering  <jim@meyering.net>
96603         * modules/fprintftime: New module.
96604         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
96606 2005-12-16  Jim Meyering  <jim@meyering.net>
96608         * m4/fprintftime.m4: New file.
96610 2005-12-16  Jim Meyering  <jim@meyering.net>
96612         * lib/fprintftime.c, lib/fprintftime.h: New files.
96614 2005-12-15  Simon Josefsson  <jas@extundo.com>
96616         * modules/socklen (configure.ac): Fix M4 macro name, to align with
96617         new m4/socklen.m4.
96619 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96621         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
96622         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
96624 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96626         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
96627         * lib/argp-help.c (fill_in_uparams): Check if the constructed
96628         struct uparams is valid. Fall back to the default values if it is
96629         not.
96631 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96633         * modules/argp (Files): Add argp-pin.c
96634         (Depends-on): dirname
96635         (lib_SOURCES): Add argp-pin.c
96637 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96639         * m4/argp.m4:  Check if program_invocation_name and
96640         program_invocation_short_name are declared and define appropriate
96641         macros if they are not.
96643 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96645         * lib/argp-help.c (__argp_base_name): New function
96646         (__argp_short_program_name): Rewrite using __argp_base_name
96647         * lib/argp-namefrob.h: Define program_invocation_name and
96648         program_invocation_short_name if requested
96649         (__argp_base_name): Add prototype
96650         * lib/argp-parse.c (argp_def): Use gettext wrappers
96651         (argp_default_parser): Use __argp_base_name
96652         * lib/argp-pin.c: New file. Defines program_invocation_name and
96653         program_invocation_short_name on systems that lack them.
96655 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
96657         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
96658         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
96659         porting problem reported by Georg Schwarz in
96660         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
96662 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
96664         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
96665         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
96666         porting problem reported by Georg Schwarz in
96667         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
96669 2005-12-05  Bruno Haible  <bruno@clisp.org>
96671         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
96672         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
96673         Reported by Mark Junker <mjscod@gmx.de>.
96675 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
96677         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
96678         Use implementation from Albert Chin, with some
96679         comments/corrections by Stepan Kasal and myself.
96681 2005-12-02  Bruno Haible  <bruno@clisp.org>
96683         * gnulib-tool (func_import): Accept GPLed build tool modules when
96684         --lgpl is given.
96685         * modules/csharpcomp-script: New file.
96686         * modules/csharpcomp: Depend on it.
96687         * modules/javacomp-script: New file.
96688         * modules/javacomp: Depend on it.
96689         Suggested by Simon Josefsson.
96691 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
96693         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
96694         statement, to work around an HP-UX 10.20 compiler bug reported by
96695         Peter O'Gorman.
96697 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96699         * modules/savedir (Depends-on): Add openat.
96701 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96703         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
96704         (uintmax_t) [defined uintmax_t]: Do not declare.
96705         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
96706         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
96707         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
96708         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
96709         sake of portability to weird hosts that C allows (though we don't
96710         know of any practical examples).
96712         * lib/savedir.h (fdsavedir): New decl.
96713         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
96714         contains most of the former guts of savedir.
96715         (savedir): Use savedirstream.
96716         Include "openat.h".
96718 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
96720         * modules/obstack (Files): Add m4/ulonglong.m4.
96721         Problem reported by Davide Angelocola.
96723 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
96725         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
96726         coreutils no longer futzes with rounding modes.
96728 2005-11-14  Jim Meyering  <jim@meyering.net>
96730         * lib/mkstemp-safer.c: Include <config.h>, required for possible
96731         replacement of mkstemp.
96733 2005-11-10  Simon Josefsson  <jas@extundo.com>
96735         * lib/readline.c: Remove EOL.
96737 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96739         * modules/gethrxtime (Depends-on): Add gettime.
96741 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96743         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
96744         or gettimeofday; no longer needed.
96746 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96748         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
96749         time business.
96750         (gethrxtime) [! (HAVE_NANOUPTIME
96751         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
96752         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
96753         our own approximation.
96755 2005-11-08  Eric Blake  <ebb9@byu.net>
96757         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96759 2005-11-08  Eric Blake  <ebb9@byu.net>
96761         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96763 2005-11-04  Bruno Haible  <bruno@clisp.org>
96765         * gnulib-tool: Implement --update mode.
96767 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96769         Fix porting problem reported by Theodoros V. Kalamatianos.
96770         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
96771         Don't assume that futimes failing means we must fail.
96773 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96775         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
96776         variables to suggest the intended function of the PATH_MAX check.
96778 2005-10-30  Kean Johnston  <jkj@sco.com>
96780         Trivial changes to support SCO systems.
96781         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
96782         as PATH_MAX.
96783         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
96784         where __ptr is null when no I/O is pending.
96786 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
96788         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
96789         leave errno alone.  Problem reported by Dmitry V. Levin.
96791 2005-10-28  Simon Josefsson  <jas@extundo.com>
96793         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
96794         Test more.
96796         * tests/test-gc-md2.c, tests/test-md2.c: New files.
96798         * modules/md2, modules/md2-tests: New files.
96800 2005-10-28  Simon Josefsson  <jas@extundo.com>
96802         * m4/inet_ntop.m4: More tests.
96804         * m4/gc-md2.m4, md2.m4: New file.
96806 2005-10-28  Simon Josefsson  <jas@extundo.com>
96808         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
96809         "restrict" keywords, as per POSIX.  Protect the function
96810         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
96811         Don't use K&R prototypes.  Check the sprintf return values.
96812         Re-define EAFNOSUPPORT if not present.  Indent.
96814         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
96815         suggested by Bruno Haible <bruno@clisp.org>.
96817         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
96819         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
96821         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
96822         libgcrypt).
96824         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
96826         * lib/md2.h, lib/md2.c: New files.
96828 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
96830         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
96831         errno alone.  Problem reported by Frederic Jolliton.
96833 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
96835         * modules/verify (License): Change from GPL to LGPL.  This is a
96836         tiny module and there are apparently near-equivalents that are
96837         under the BSD license.
96839 2005-10-24  Simon Josefsson  <jas@extundo.com>
96841         * modules/sha1: Relicense to LGPL.
96843 2005-10-24  Simon Josefsson  <jas@extundo.com>
96845         * lib/md4.h: Shrink buffer size, now that we changed the type.
96847 2005-10-23  Simon Josefsson  <jas@extundo.com>
96849         * gnulib-tool (func_import): Fix --tests-base.
96851 2005-10-22  Simon Josefsson  <jas@extundo.com>
96853         * modules/arcfour (Depends-on): Need stdint.
96855 2005-10-22  Simon Josefsson  <jas@extundo.com>
96857         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
96858         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
96860 2005-10-22  Simon Josefsson  <jas@extundo.com>
96862         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
96863         suggested by Bruno Haible <bruno@clisp.org>.
96865 2005-10-22  Simon Josefsson  <jas@extundo.com>
96867         * lib/crc.h: Include stddef.h, for size_t.
96869 2005-10-22  Simon Josefsson  <jas@extundo.com>
96871         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
96872         arcfour_context struct (simplify test vector testing in GNU
96873         Shishi).
96875 2005-10-21  Simon Josefsson  <jas@extundo.com>
96877         * modules/des, modules/des-tests: New files.
96879         * modules/gc-des, modules/gc-des-tests: New files.
96881         * tests/test-des.c, tests/test-gc-des.c: New file.
96883 2005-10-21  Simon Josefsson  <jas@extundo.com>
96885         * modules/arctwo, modules/arctwo-tests: New files.
96887         * tests/test-arctwo.c: New file.
96889         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
96891         * tests/test-gc-arctwo.c: New file.
96893 2005-10-21  Simon Josefsson  <jas@extundo.com>
96895         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
96896         Bruno Haible <bruno@clisp.org>.
96898         * m4/gc-des.m4: New file.
96900 2005-10-21  Simon Josefsson  <jas@extundo.com>
96902         * m4/arctwo.m4: New file.
96904         * m4/gc-arctwo.m4: New file.
96906 2005-10-21  Simon Josefsson  <jas@extundo.com>
96908         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
96909         block.
96911 2005-10-21  Simon Josefsson  <jas@extundo.com>
96913         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
96914         <bruno@clisp.org>.
96916         * lib/hmac-sha1.c (hmac_sha1): Likewise.
96918         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
96919         Bruno Haible <bruno@clisp.org>.
96921         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
96922         <bruno@clisp.org>.
96924 2005-10-21  Simon Josefsson  <jas@extundo.com>
96926         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
96928 2005-10-21  Simon Josefsson  <jas@extundo.com>
96930         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
96932 2005-10-21  Simon Josefsson  <jas@extundo.com>
96934         * lib/des.h, lib/des.c: New files.
96936         * lib/gc-gnulib.c: Support DES.c
96938 2005-10-21  Simon Josefsson  <jas@extundo.com>
96940         * lib/arctwo.h, lib/arctwo.c: New files.
96942         * lib/gc-gnulib.c: Support ARCTWO.
96944 2005-10-21  Simon Josefsson  <jas@extundo.com>
96946         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
96947         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96949 2005-10-21  Simon Josefsson  <jas@extundo.com>
96951         * gnulib-tool (func_import, func_create_testdir): Define automake
96952         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
96953         Makefile.am snippet),
96954         suggested by Bruno Haible <bruno@clisp.org>.
96956         * modules/gc (Makefile.am): Use it.
96958 2005-10-21  Bruno Haible  <bruno@clisp.org>
96960         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
96961         patch.
96963 2005-10-19  Simon Josefsson  <jas@extundo.com>
96965         * tests/test-gc-rijndael.c: New file.
96967         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
96969 2005-10-19  Simon Josefsson  <jas@extundo.com>
96971         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
96972         interface too.
96974 2005-10-19  Simon Josefsson  <jas@extundo.com>
96976         * tests/test-gc-arcfour.c: New file.
96978         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
96980 2005-10-19  Simon Josefsson  <jas@extundo.com>
96982         * modules/gc-md4, modules/gc-md4-tests: New file.
96984         * tests/test-gc-md4.c: New file.
96986 2005-10-19  Simon Josefsson  <jas@extundo.com>
96988         * m4/gc-md4.m4: New file.
96990 2005-10-19  Simon Josefsson  <jas@extundo.com>
96992         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
96993         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
96994         <kasal@ucw.cz>.
96996 2005-10-19  Simon Josefsson  <jas@extundo.com>
96998         * m4/gc-arcfour.m4: New file.
97000         * m4/gc-rijndael.m4: New file.
97002 2005-10-19  Simon Josefsson  <jas@extundo.com>
97004         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
97006 2005-10-19  Simon Josefsson  <jas@extundo.com>
97008         * lib/gc-gnulib.c: Support ARCFOUR.
97010 2005-10-19  Simon Josefsson  <jas@extundo.com>
97012         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
97013         support.
97015         * lib/gc.h: Add ECB enum type.
97017         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
97019 2005-10-18  Simon Josefsson  <jas@extundo.com>
97021         * tests/test-md5.c: New file.
97023         * modules/md5-tests: New file.
97025 2005-10-18  Simon Josefsson  <jas@extundo.com>
97027         * tests/test-md4.c: New file.
97029         * modules/md4, modules/md4-tests: New files.
97031 2005-10-18  Simon Josefsson  <jas@extundo.com>
97033         * m4/md4.m4: New file.
97035 2005-10-18  Simon Josefsson  <jas@extundo.com>
97037         * lib/md4.h, lib/md4.c: New files, based on md5.?.
97039 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
97041         * gnulib-tool (func_create_testdir): Omit the second check whether
97042         BUILT_SOURCES in nonempty.
97044 2005-10-17  Simon Josefsson  <jas@extundo.com>
97046         * tests/test-rijndael.c: New file.
97048 2005-10-17  Simon Josefsson  <jas@extundo.com>
97050         * modules/sha1: Depend on stdint instead of md5.
97052         * modules/md5: Depend on stdint, remove uint32_t.
97054 2005-10-17  Simon Josefsson  <jas@extundo.com>
97056         * modules/gc-sha1-tests: New file.
97058         * tests/test-gc-sha1.c: New file.
97060 2005-10-17  Simon Josefsson  <jas@extundo.com>
97062         * m4/md5.m4: Remove call to uint32_t.m4.
97064 2005-10-17  Simon Josefsson  <jas@extundo.com>
97066         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
97068         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
97069         md5.h.
97071         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
97073         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
97075 2005-10-17  Simon Josefsson  <jas@extundo.com>
97077         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
97079 2005-10-17  Simon Josefsson  <jas@extundo.com>
97081         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
97083 2005-10-17  Simon Josefsson  <jas@extundo.com>
97085         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
97087         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
97089 2005-10-17  Bruno Haible  <bruno@clisp.org>
97091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
97092         that it can also be used in a test.
97094 2005-10-16  Bruno Haible  <bruno@clisp.org>
97096         * gnulib-tool (func_emit_tests_Makefile_am): Also define
97097         TESTS_ENVIRONMENT, so that individual tests can augment it.
97099         * gnulib-tool (func_create_testdir): Use an intermediate target for
97100         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
97101         macros, like $(ALLOCA_H), which cannot be passed through the command
97102         line.
97104 2005-10-15  Simon Josefsson  <jas@extundo.com>
97106         * modules/rijndael-tests: New file.
97108         * modules/rijndael: New file.
97110 2005-10-15  Simon Josefsson  <jas@extundo.com>
97112         * m4/rijndael.m4: New file.
97114 2005-10-15  Simon Josefsson  <jas@extundo.com>
97116         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
97118         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
97120 2005-10-14  Simon Josefsson  <jas@extundo.com>
97122         * tests/test-arcfour.c: New file.
97124         * modules/arcfour, modules/arcfour-tests: New files.
97126 2005-10-14  Simon Josefsson  <jas@extundo.com>
97128         * m4/arcfour.m4: New file.
97130 2005-10-14  Simon Josefsson  <jas@extundo.com>
97132         * lib/arcfour.h, lib/arcfour.c: New files.
97134 2005-10-14  Roland McGrath  <roland@redhat.com>
97136         Import from libc.  [BZ #1331]
97137         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
97138         macro argument.
97139         Reported by Matej Vela <vela@debian.org>.
97141 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
97143         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
97144         include <wchar.h>; no longer needed.
97146 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
97148         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
97150 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
97151         and  Ulrich Drepper  <drepper@redhat.com>
97153         Import from libc.
97154         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
97155         instead of inline stream orientation test and two separate
97156         function calls.  Pay no attention to USE_IN_LIBIO.
97158 2005-10-13  Simon Josefsson  <jas@extundo.com>
97160         * modules/gc-hmac-md5-tests: New file.
97162         * tests/test-gc-hmac-sha1.c: New file.
97164         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
97166         * modules/gc-hmac-md5-tests: New file.
97168         * tests/test-gc-md5.c: New file.
97170         * modules/gc-md5-tests: New file.
97172 2005-10-13  Simon Josefsson  <jas@extundo.com>
97174         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
97175         Move memory allocation outside of loop.
97177 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
97179         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
97180         intermediate directory is in a read-only file system.  Problem
97181         reported by Eric Blake.
97183 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
97185         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
97187 2005-10-12  Simon Josefsson  <jas@extundo.com>
97189         * tests/test-hmac-sha1.c: New file.
97191         * modules/hmac-sha1-tests: New file.
97193         * modules/hmac-sha1: New file.
97195 2005-10-12  Simon Josefsson  <jas@extundo.com>
97197         * modules/gc-sha1: New file.
97199 2005-10-12  Simon Josefsson  <jas@extundo.com>
97201         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
97203         * tests/test-gc-pbkdf2-sha1.c: New file.
97205 2005-10-12  Simon Josefsson  <jas@extundo.com>
97207         * modules/gc-md5, modules/gc-hmac-md5: New files.
97209         * modules/gc (Files): Remove md5, memxor and hmac files.
97211 2005-10-12  Simon Josefsson  <jas@extundo.com>
97213         * m4/gc-pbkdf2-sha1.m4: New file.
97215         * m4/gc-hmac-sha1.m4: New file.
97217         * m4/gc-sha1: New file.
97219         * m4/hmac-sha1.m4: New file.
97221 2005-10-12  Simon Josefsson  <jas@extundo.com>
97223         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
97225         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
97227 2005-10-12  Simon Josefsson  <jas@extundo.com>
97229         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
97230         suggested by Bruno Haible <bruno@clisp.org>.
97232 2005-10-12  Simon Josefsson  <jas@extundo.com>
97234         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
97236 2005-10-12  Simon Josefsson  <jas@extundo.com>
97238         * lib/gc-pbkdf2-sha1.c: New file.
97240         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
97242 2005-10-12  Simon Josefsson  <jas@extundo.com>
97244         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
97246         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
97248 2005-10-12  Simon Josefsson  <jas@extundo.com>
97250         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
97251         GC_USE_HMAC_MD5, respectively.
97253         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
97254         (gc_md5): Fix typo.
97256         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
97258         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
97260         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
97262 2005-10-12  Bruno Haible  <bruno@clisp.org>
97264         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
97265         Reported by Stepan Kasal <kasal@ucw.cz>.
97267 2005-10-11  Simon Josefsson  <jas@extundo.com>
97269         * tests/test-crc.c: New file.
97271         * modules/crc, modules/crc-tests: New files.
97273 2005-10-11  Simon Josefsson  <jas@extundo.com>
97275         * m4/crc.m4: New file.
97277 2005-10-11  Simon Josefsson  <jas@extundo.com>
97279         * lib/gc.h: Add gc_hash and gc_hash_buffer.
97281         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
97283         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
97285 2005-10-11  Simon Josefsson  <jas@extundo.com>
97287         * lib/crc.h, lib/crc.c: New files.
97289         * lib/gc.h (gc_hash_buffer): Add doc.
97291 2005-10-11  Bruno Haible  <bruno@clisp.org>
97293         * modules/c-strcasestr: New file.
97294         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
97296 2005-10-11  Bruno Haible  <bruno@clisp.org>
97298         * modules/c-strcase: New file.
97299         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
97301 2005-10-11  Bruno Haible  <bruno@clisp.org>
97303         * lib/strcasecmp.c: Include limits.h.
97304         (strcasecmp): Avoid integer overflow on exotic platforms.
97305         * lib/strncasecmp.c: Include limits.h.
97306         (strncasecmp): Avoid integer overflow on exotic platforms.
97307         Reported by Paul Eggert.
97309 2005-10-11  Bruno Haible  <bruno@clisp.org>
97311         * lib/c-strcasestr.h: New file, from GNU gettext.
97312         * lib/c-strcasestr.c: New file, from GNU gettext.
97314 2005-10-11  Bruno Haible  <bruno@clisp.org>
97316         * lib/c-strcase.h: New file, from GNU gettext.
97317         * lib/c-strcasecmp.c: New file, from GNU gettext.
97318         * lib/c-strncasecmp.c: New file, from GNU gettext.
97320 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
97322         * modules/mempcpy (License): GPL -> LGPL.
97323         * modules/strchrnul (License): Likewise.
97324         * modules/sysexits (License): Likewise.
97326 2005-10-08  Simon Josefsson  <jas@extundo.com>
97328         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
97330 2005-10-07  Simon Josefsson  <jas@extundo.com>
97332         * m4/memxor.m4: Remove gl_C_RESTRICT call.
97334 2005-10-06  Simon Josefsson  <jas@extundo.com>
97336         * tests/test-hmac-md5.c: New file.
97338         * modules/hmac-md5-tests: New file.
97340         * modules/hmac-md5: New file.
97342 2005-10-06  Simon Josefsson  <jas@extundo.com>
97344         * m4/hmac-md5.m4: New file.
97346         * m4/memxor.m4: Require gl_C_RESTRICT.
97348 2005-10-06  Simon Josefsson  <jas@extundo.com>
97350         * lib/memxor.c (memxor): Avoid casts and warnings.
97352 2005-10-06  Simon Josefsson  <jas@extundo.com>
97354         * lib/hmac-md5.c: New file.
97356         * lib/hmac.h: New file.
97358 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
97360         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
97361         promotes to int, not unsigned int, to catch the AIX 5.3
97362         compiler bug.
97364 2005-10-05  Simon Josefsson  <jas@extundo.com>
97366         * modules/memxor: New file.
97368         * modules/iconv (Files): Move config.rpath to havelib, it is used
97369         there.
97371         * modules/havelib (Files): Add config.rpath.
97373 2005-10-05  Simon Josefsson  <jas@extundo.com>
97375         * m4/memxor.m4: New file.
97377 2005-10-05  Simon Josefsson  <jas@extundo.com>
97379         * lib/memxor.c (memxor): Fix compiler error.
97381         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
97382         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
97384         * lib/memxor.h, lib/memxor.c: New files.
97386         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
97387         we assume all systems have it, suggested by Jim Meyering
97388         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
97389         any systems lack sys/socket.h; mingw32 is known to lack it, but we
97390         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
97391         same reasons.
97393 2005-10-05  Simon Josefsson  <jas@extundo.com>
97395         * config/srclist.txt: Add glibc bug 1423 for md5.h.
97397 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
97399         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
97400         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
97401         needed, since the source code now assumes these .h files.
97403 2005-10-05  Derek Price  <derek@ximbiot.com>
97405         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
97407 2005-10-05  Bruno Haible  <bruno@clisp.org>
97409         * modules/stdint (License): Change to LGPL.
97411 2005-10-04  Simon Josefsson  <jas@extundo.com>
97413         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
97414         D. Baushke" <mdb@gnu.org>.
97416 2005-10-04  Bruno Haible  <bruno@clisp.org>
97418         * lib/verify.h (verify_true): Provide alternative definition for C++.
97420 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
97422         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
97423         (SSIZE_MAX): New macro, if not already defined.
97424         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
97425         than 2 GiB.
97427 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97429         Sync from coreutils.
97430         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
97431         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
97432         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
97433         ULLONG_MAX doesn't work with 2.7.2.1.
97435 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97437         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
97438         From Ben Pfaff.
97440         * modules/exclude (Depends-on): Depend on verify.
97441         * modules/strtoimax (Depends-on): Likewise.
97442         * modules/utimecmp (Depends-on): Likewise.
97444 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97446         * lib/exclude.c: Include verify.h.
97447         (verify): Remove.  All callers changed to use verify.h's version.
97448         * lib/strtoimax.c: Likewise.
97449         * lib/utimecmp.c: Likewis.e
97451         Sync from coreutils.
97452         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
97453         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
97454         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
97455         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
97456         bother returning ENOSYS if settimeofday or stime fails; just let
97457         them return whatever errno they want to return.
97458         * lib/utimens.c: Include unistd.h, for dup2.
97459         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
97460         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
97462 2005-10-02  Jim Meyering  <jim@meyering.net>
97464         Sync from coreutils.
97465         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
97466         from glibc-2.2.5 that fails for read-only files.
97468 2005-10-02  Jim Meyering  <jim@meyering.net>
97470         Sync from coreutils.
97471         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
97472         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
97473         `#if HAVE_CONFIG_H'.
97474         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
97475         Remove AT_FDCWD test.
97476         Do not consume the fd unless successful.
97477         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
97478         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
97479         block, so that we don't even try to compile it if settimeofday is
97480         available.  This works around a compilation failure on OSF1 V5.1,
97481         due to stime requiring a `long int*' while tv_sec is `int'.
97483 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
97485         Sync from coreutils.
97486         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
97487         against `yes', rather than just testing for nonempty.
97489 2005-10-01  Simon Josefsson  <jas@extundo.com>
97491         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
97492         and Darwin.
97494         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
97495         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
97496         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
97497         freeaddrinfo and gai_strerror are declared by the POSIX headers.
97498         Check if struct addrinfo is declared.
97500 2005-10-01  Simon Josefsson  <jas@extundo.com>
97502         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
97503         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
97504         AI_* and EAI_* definitions.  Protect function declarations.
97506 2005-10-01  Jim Meyering  <jim@meyering.net>
97508         Sync from coreutils.
97510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
97511         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
97512         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
97513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
97514         in the inet and nsl libraries.  Required on Solaris 5.7.
97516 2005-10-01  Jim Meyering  <jim@meyering.net>
97518         Sync from coreutils.
97519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
97520         in the inet and nsl libraries.  Required on Solaris 5.7.
97522 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
97524         * lib/getdelim.c (getdelim): Remove unused variables.
97526 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
97528         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
97529         so that the code works even with ancient cpp.  Portability problem
97530         with GCC 2.7.2.1 reported by Thomas M.Ott.
97532 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
97534         * modules/regex (Depends-on): Add strcase.
97536         * modules/gethostname (Licence): Change from GPL to LGPL, since
97537         gethostname.c is a trivial implementation of a standard library
97538         function.
97539         * modules/poll (License): Change from GPL to LGPL, since it's
97540         derived from LGPL code.
97542 2005-09-27  Jim Meyering  <jim@meyering.net>
97544         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
97545         HAVE_CONFIG_H.
97547         * lib/intprops.h (signed_type_or_expr__): Define.
97548         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
97549         for unsigned types.
97551 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
97553         * lib/verify.h (verify_expr): Remove, replacing with:
97554         (verify_true): New macro that returns true instead of void.
97555         (verify_type__): Remove.
97556         (verify): Use verify_true rather than verify_type__.
97558 2005-09-26  Bruno Haible  <bruno@clisp.org>
97560         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
97561         is necessary.
97562         (lib_SOURCES): Remove mbchar.c.
97563         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
97564         (Files): Add m4/mbrtowc.m4.
97565         * modules/mbiter: Likewise.
97566         * modules/mbuiter: Likewise.
97568 2005-09-26  Bruno Haible  <bruno@clisp.org>
97570         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
97571         compile mbchar.c if they are not both present.
97572         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
97573         * m4/mbiter.m4 (gl_MBITER): Likewise.
97574         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
97575         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
97576         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
97578 2005-09-25  Jim Meyering  <jim@meyering.net>
97580         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
97581         also uses socklen_t.
97583 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
97585         * lib/utimens.c (ENOSYS): Define if not already defined.
97586         (futimens): Support having a null PATH if the file descriptor
97587         is nonnegative.
97589         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
97590         Remove.
97591         (__attribute): Define to empty unless GCC 3.1 or later.
97592         This works around a core dump on OpenBSD 3.4, which has GCC
97593         2.95.3, which dumps core when given __attribute__(()).  It also
97594         simplifies other tests, since we really don't want to bother with
97595         worrying about which ancient version of GCC supported what.
97596         Original problem reported by Yoann Vandoorselaere, with part of
97597         the fix suggested by Derek Price.
97599 2005-09-24  Jim Meyering  <jim@meyering.net>
97601         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
97602         so we can once again use a positive bitfield width of 1 -- now we
97603         don't have to explain why we were using a bitfield width of 2.
97605 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
97607         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
97608         and similarly for the other external symbols.  Problem reported
97609         by James Gallager.
97611         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
97612         bug reported by Jim Meyering.
97614         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
97615         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
97616         not needed, since socklen is a prerequisite module.
97618 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
97620         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
97621         Problem reported by Eric Blake.
97622         (getaddrinfo): Initialize se so that it's not garbage.
97623         Redo internal storage allocation so that it doesn't make unportable
97624         assumptions about alignment.
97625         Fix a memory leak.
97627         * lib/utimens.c (futimens): Use futimesat if available.
97628         Prefer it to futimes since it doesn't have the futimes bug.
97630         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
97631         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
97632         Instead, declare a function that returns a pointer to an array,
97633         and use verify_type__ to declare the size of the array.
97634         Problem and germ of a solution reported by Bruno Haible.
97635         (verify_type__): Use 2, not 1, for bitfield size, to avoid
97636         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
97638 2005-09-23  Jim Meyering  <jim@meyering.net>
97640         Sync from coreutils.
97641         Correct build failure (socklen_t not defined) on at least
97642         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
97643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
97645 2005-09-23  Jim Meyering  <jim@meyering.net>
97647         * modules/getaddrinfo (Depends-on): Add socklen.
97649 2005-09-23  Bruno Haible  <bruno@clisp.org>
97651         * tests/test-verify.c: New file.
97653 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97655         Sync from coreutils.
97657         * modules/argmatch (Depends-on): Add verify.
97658         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
97659         unistd-safer.
97660         * modules/save-cwd (Depends-on): Likewise.
97662         * modules/openat (Files): Add lib/openat-die.c.
97663         (Depends-on): Remove error, exitfail.
97664         Add dirname.
97666         * modules/verify: New file.
97667         * MODULES.html.sh (Diagnostics <assert.h>): New section,
97668         with "verify" module.
97670 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97672         Sync from coreutils.
97674         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
97675         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
97676         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
97677         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
97678         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
97679         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
97680         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
97681         Don't bother checking for string.h, stdlib.h, unistd.h.
97682         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
97683         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
97684         module's job.
97685         * m4/jm-macros.m4 (gl_MACROS): Likewise.
97686         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
97688         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
97689         (gl_GETDATE): Use it.
97691         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
97693 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97695         Sync from coreutils.
97697         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
97698         stat-time.h.
97699         * lib/argmatch.h: Include verify.h
97700         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
97701         (ARGMATCH_ASSERT): Remove; unused.
97702         * lib/canonicalize.c: Assume STDC_HEADERS.
97703         * lib/exclude.c: Include "strcase.h".
97704         * lib/regex_internal.h [!defined _LIBC]: Likewise.
97705         * lib/getusershell.c: Include stdio--.h rather than stdio.h
97706         and stdio-safer.h.
97707         (getusershell): Call fopen, not fopen_safer.
97708         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
97709         Do not include unistd-safer.h.
97710         (save_cwd): Don't call fd_safer; no longer needed
97711         now that we include fcntl--.h.
97713         * lib/getdate.y (relative_time): New type.
97714         (RELATIVE_TIME_0): New constant.
97715         (parser_control): Use relative_time instead of doing it ourselves.
97716         (%union): Add new relative_time rel member.
97717         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
97718         Now typeless.
97719         (relunit, relunit_snumber): Now of type rel.
97720         (zone, rel, relunit, get_date): Adjust to above changes.
97722         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
97723         Do not include unistd-safer.h.
97724         (getloadavg): Don't call fd_safer; no longer needed
97725         now that we include fcntl--.h.
97727         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
97728         (make_dir_parents): Treat ENOSYS like EEXIST.
97730         Improve quality of diagnostics on restore_cwd failure.
97731         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
97732         (make_dir_parents): Last arg is now int * (for errno), not bool *.
97733         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
97734         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
97735         each time through the loop.  Do not diagnose restore_cwd failure;
97736         that is the caller's job (and perhaps the caller does not care).
97738         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
97739         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
97740         If the file already exists but is not a directory, don't bother
97741         to try to make its parents.
97742         Close potential file descriptor leak if we can't chdir("/") (!).
97743         Don't always return true if chdir($PWD) fails; return true only
97744         if the requested action was done successfully (except for the
97745         chdir($PWD)).
97746         Don't log final directory unless we actually made it.
97747         Refactor to avoid duplicate code to fix up permissions.
97748         Don't attempt to fix up parent permissions if chdir($PWD) fails.
97750         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
97751         to make it a bit faster and (I hope) clearer.
97752         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
97753         Fix bug in formats like %2N.
97755         * lib/verify.h: New file.
97757 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97759         Sync from coreutils.
97760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
97762 2005-09-22  Jim Meyering  <jim@meyering.net>
97764         Sync from coreutils.
97766         * m4/lstat.m4 (gl_FUNC_LSTAT):
97767         Use AC_LIBSOURCES to require lstat.c and lstat.h.
97768         Remove obsolete comment.
97769         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
97770         * m4/xstrtod.m4: Likewise.
97772         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
97774 2005-09-22  Jim Meyering  <jim@meyering.net>
97776         Sync from coreutils.
97778         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
97780         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
97781         the .tm_year member, since otherwise gcc-4.0 would now warn about
97782         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
97784         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
97785         order to avoid an unsuppressible warning from gcc on 64-bit systems.
97787         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
97788         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
97789         when run in a time zone for which daylight savings time is in effect
97790         for the starting date.
97792         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
97793         stop us from restricting permissions of just-created absolute-named
97794         directories.
97795         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
97796         to restore initial working directory.
97797         * lib/mkdir-p.c (make_dir_parents): New parameter:
97798         different_working_dir, to tell caller if/when we change the working
97799         directory and are unable to return to the initial one.
97800         * lib/mkdir-p.h (make_dir_parents): Update prototype.
97801         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
97802         `return false'.  This fixes a bug introduced on 2004-07-30.
97804         * lib/openat.c (fdopendir): Be sure to close the supplied
97805         file descriptor before returning.  This makes our replacement
97806         implementation a little closer to Solaris's, where fdopendir
97807         ties the file descriptor to the returned DIR* pointer.
97808         * lib/openat.c (unlinkat): New function.
97809         * lib/openat.h (unlinkat): Add prototype.
97810         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
97811         (openat_restore_fail): Rename from openat_restore_die.
97812         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
97814         Provide an alternative to exiting immediately upon save_cwd or
97815         restore_cwd failure.  Now, an application can arrange e.g.,
97816         to perform a longjump in that case.
97817         * lib/openat.c: Include dirname.h.
97818         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
97819         (rpl_openat, fdopendir, fstatat): Call openat_save_die
97820         and openat_restore_die rather than calling error directly.
97821         Don't include "error.h" or "exitfail.h"; they're no longer needed.
97823         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
97824         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
97825         define.
97827         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
97828         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
97829                             int utc, int nanoseconds);
97830         Background:
97831         date should not have to allocate a megabyte of virtual memory to
97832         handle a format argument like +%1048575T.  When implemented with
97833         strftime, it must allocate such a buffer, use strftime to fill it
97834         in, print it, then free it.
97835         With fprintftime, it simply prints everything and exits.
97836         With no need for memory allocation, that's one fewer way to fail.
97837         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
97838         optional field width, not before, so we accept %9:z, not %:9z.
97839         (my_strftime): Be sure to use L_('x') for literals.
97841         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
97842         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
97843         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
97844         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
97845         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
97846         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
97847         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
97848         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
97849         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
97850         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
97851         * lib/xgethostname.c, lib/xreadlink.c:
97852         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
97854         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
97855         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
97856         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
97857         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
97858         and don't include <sys/file.h>).
97860 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
97862         Sync from coreutils.
97864         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
97865         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
97866         [!LDAV_DONE]: Avoid unused variable warning.
97868 2005-09-21  Bruno Haible  <bruno@clisp.org>
97870         * lib/unicodeio.h (unicode_to_mb): New declaration.
97872 2005-09-20  Derek Price  <derek@ximbiot.com>
97874         * lib/getaddrinfo.c: Don't include <netdb.h> included from
97875         getaddrinfo.h.
97877 2005-09-20  Bruno Haible  <bruno@clisp.org>
97879         * gnulib-tool: Remove trailing slashes from the values specified for
97880         --source-base, --m4-base, --tests-base, --aux-dir.
97881         Suggested by Simon Josefsson <jas@extundo.com>.
97883 2005-09-20  Bruno Haible  <bruno@clisp.org>
97885         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
97886         func_modules_to_filelist, func_import, func_create_testdir): Make all
97887         sorting results locale-independent, so that gnulib-cache.m4 doesn't
97888         change when gnulib-tool is invoked in a different locale.
97890 2005-09-19  Simon Josefsson  <jas@extundo.com>
97892         * m4/socklen.m4: Fix typo.
97894 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97896         Use a consistent style for including <config.h>.
97897         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
97898         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
97899         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
97900         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
97901         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
97902         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
97903         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
97904         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
97905         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
97906         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
97907         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
97908         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
97909         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
97910         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
97911         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
97912         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
97913         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
97914         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
97915         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
97916         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
97917         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
97918         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
97919         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
97920         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
97921         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
97922         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
97923         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
97924         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
97925         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
97926         lib/xstrtoumax.c, lib/yesno.c:
97927         Standardize inclusion of config.h.
97928         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
97929         lib/inttostr.h:  Removed inclusion of config.h from header files.
97930         * lib/inttostr.c:  Adjusted in-tree users.
97931         * lib/timespec.h: Remove superfluous warning to include config.h.
97932         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
97933         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
97934         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
97935         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
97936         config.h with HAVE_CONFIG_H.
97938 2005-09-19  Jim Meyering  <jim@meyering.net>
97940         * modules/pathmax (License): Change to LGPL.
97942 2005-09-19  Derek Price  <derek@ximbiot.com>
97944         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
97946 2005-09-19  Bruno Haible  <bruno@clisp.org>
97948         * gnulib-tool (import): Provide default for --tests-base.
97950 2005-09-19  Bruno Haible  <bruno@clisp.org>
97952         * doc/quote.texi: New file, extracted from gnulib.texi.
97953         * doc/ctime.texi: New file, extracted from gnulib.texi.
97954         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
97955         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
97956         * doc/gnulib.texi: Include them.
97958 2005-09-18  Bruno Haible  <bruno@clisp.org>
97960         Portability fix.
97961         * gnulib-tool (func_readlink): New function.
97962         (func_ln_if_changed): Use it.
97964 2005-09-18  Bruno Haible  <bruno@clisp.org>
97966         * gnulib-tool: Support --with-tests also with --import.
97967         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
97968         (func_import): Use variables $testsbase and $inctests. Emit a
97969         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
97970         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
97971         SUBDIRS += $testsdir.
97972         (func_create_testdir): Update.
97974 2005-09-18  Bruno Haible  <bruno@clisp.org>
97976         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
97977         instead of $dry_run.
97978         (func_cp_if_changed, func_mv_if_changed): Remove functions.
97979         (func_ln_if_changed): Don't handle dry-run here.
97980         (func_import): In dry-run mode, detect more precisely which actions
97981         would be performed, and don't use "...ing" verbs.
97983 2005-09-18  Bruno Haible  <bruno@clisp.org>
97985         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
97986         (func_import): Use join on two temporary files instead of three nested
97987         loops, in order to determine which files are new or old.
97989 2005-09-18  Bruno Haible  <bruno@clisp.org>
97991         * gnulib-tool (func_import): Comment out code that spits out the
97992         new files with --dry-run.
97994 2005-09-18  Bruno Haible  <bruno@clisp.org>
97996         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
97998 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98000         * lib/stat-time.h: New file.
98001         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
98002         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
98003         in a different way.
98004         (timespec_cmp): New function.
98005         * lib/utimecmp.c: Include stat-time.h.
98006         (SYSCALL_RESOLUTION): Depend on whether various struct stat
98007         members exist, not on the obsolescent ST_MTIM_NSEC.
98008         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
98010 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98012         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
98014 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98016         * MODULES.html.sh (File system functions): Add stat-time.
98017         * modules/stat-time: New file.
98018         * modules/timespec (Files): Remove m4/st_mtim.m4; this
98019         is now done in a different way, by the stat-time module.
98020         * modules/utimecmp (Depends-on): Add stat-time.
98022 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
98024         * m4/st_mtim.m4: Remove.  Superseded by...
98025         * m4/stat-time.m4: New file.
98026         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
98027         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
98029 2005-09-15  Derek Price  <derek@ximbiot.com>
98031         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
98033 2005-09-15  Derek Price  <derek@ximbiot.com>
98035         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
98036         * lib/regex_internal.c: Ditto, using this...
98037         (__GNUC_PREREQ): ...new macro.
98038         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
98039         using...
98040         (__GNUC_PREREQ): ...this new macro.
98042         * lib/strstr.h: Include string.h. Define strstr as a macro here.
98044 2005-09-15  Derek Price  <derek@ximbiot.com>
98045             Paul Eggert  <eggert@cs.ucla.edu>
98047         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
98048         changes, consolidating in...
98049         * lib/regex_internal.h: ...this file.
98051 2005-09-13  Jim Meyering  <jim@meyering.net>
98053         * lib/canon-host.c: Filter through gnu indent and reword comments
98054         slightly.
98055         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
98057 2005-09-13  Derek Price  <derek@ximbiot.com>
98059         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
98060         failure.
98061         Reported by Jim Meyering  <jim@meyering.net>.
98063 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98065         * lib/base64.c: Typo.
98066         (base64_encode): Put b64str in initialized data section.
98068 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
98070         Merge glibc and coreutils changes into gnulib, plus a few
98071         extra fixes.
98072         * lib/md5.c: Use #error rather than a string.
98073         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
98074         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
98075         (__attribute__): Define to empty for non recent-GCC.
98076         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
98077         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
98078         Renamed from their non-__ counterparts, with new macros replacing
98079         them if not _LIBC.  Add __THROW attribute.
98080         (rol): Remove.
98081         (struct md5_ctx): Align buffer if using GCC.
98082         * lib/sha1.h (struct sha1_ctx): Likewise.
98083         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
98084         The old name was backwards.
98085         (NOTSWAP): Remove; not used.
98086         (rol): New macro, moved here from md5.h.
98087         (sha1_process_block): Remove a FIXME that doesn't make sense.
98089 2005-09-12  Derek Price  <derek@ximbiot.com>
98091         Return usable errors from canon-host.
98092         * lib/canon-host.h: New file.
98093         * lib/canon-host.c (canon_host): Wrap...
98094         (canon_host_r): ...this new function, which now relies exclusively on
98095         getaddrinfo.
98096         (ch_strerror): New function.
98097         (last_cherror): New global.
98098         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
98099         interface.
98100         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
98101         void *.
98102         (freeaddrinfo): Free ai->ai_canonname when set.
98104 2005-09-12  Derek Price  <derek@ximbiot.com>
98106         Make canon-host require getaddrinfo.
98107         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
98108         AC_LIBSOURCE canon-host.h.  Call...
98109         (gl_PREREQ_CANON_HOST): ...this new function, which requires
98110         gl_GETADDRINFO.
98111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
98113 2005-09-12  Derek Price  <derek@ximbiot.com>
98115         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
98116         LGPL.
98117         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
98119 2005-09-12  Derek Price  <derek@ximbiot.com>
98121         * lib/gai_strerror.c: Include config.h when available.  Include
98122         getaddrinfo.h before other headers to test interface.
98123         Reported by Larry Jones <lawrence.jones@ugs.com>.
98125 2005-09-12  Derek Price  <derek@ximbiot.com>
98126             Paul Eggert  <eggert@cs.ucla.edu>
98128         * modules/glob (Files): Add glob-libc.h.
98130 2005-09-12  Derek Price  <derek@ximbiot.com>
98131             Paul Eggert  <eggert@cs.ucla.edu>
98133         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
98134         glob_.h, glob-libc.h.
98135         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
98137 2005-09-12  Derek Price  <derek@ximbiot.com>
98138             Paul Eggert  <eggert@cs.ucla.edu>
98140         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
98141         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
98142         protecting things that should be done only in gnulib contexts.
98143         * lib/glob_.h: New file, containing only the glob things needed for
98144         gnulib.
98145         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
98146         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
98147         (glob, globfree, glob_pattern_p): Now defined simply in terms of
98148         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
98149         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
98150         and to respect the namespace rules better.
98152 2005-09-08  Simon Josefsson  <jas@extundo.com>
98154         * modules/socklen: New file.
98156 2005-09-08  Simon Josefsson  <jas@extundo.com>
98158         * m4/socklen.m4: New file.
98160 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98162         * modules/utimens (Files): Add m4/utimbuf.m4, since
98163         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
98164         Reported by Sergey Poznyakoff.
98166 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98168         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
98169         definitions, since that's the preferred style in glibc.
98170         Fix a minor spacing issue, and update copyright notice to match
98171         glibc's.
98173 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98175         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
98177 2005-09-06  Simon Josefsson  <jas@extundo.com>
98179         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
98180         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
98182 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98184         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
98185         warning.
98187 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98189         * config/srclist.txt: Add glibc bug 1302.
98191 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
98193         Change bitset word type from unsigned int to unsigned long int,
98194         as this has better performance on typical 64-bit hosts.
98195         Port bitset code to hosts with unusual word sizes.
98196         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
98197         (build_collating_symbol):
98198         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
98199         argument is a bitset.  This is merely a style issue, but it makes
98200         it clearer that an entire array is expected.
98201         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
98202         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
98203         Port to the case where bitset_word is not the same as unsigned int.
98204         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
98205         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
98206         Likewise.
98207         * lib/regexec.c (check_dst_limits_calc_pos_1,
98208         check_subexp_matching_top):
98209         (build_trtable, group_nodes_into_DFAstates):
98210         Likewise.
98211         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
98212         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
98213         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
98214         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
98215         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
98216         * lib/regcomp.c (optimize_subexps, lower_subexp):
98217         Work even if bitset_word has holes in its bitwise representation.
98218         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
98219         * lib/regexec.c (check_dst_limits_calc_pos_1,
98220         check_subexp_matching_top):
98221         Likewise.
98222         * lib/regex_internal.c (re_string_reconstruct):
98223         Don't assume UCHAR_MAX == 255.
98224         * lib/regex_internal.h (bitset_set_all): Likewise.
98225         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
98226         All uses changed.
98227         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
98228         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
98229         All uses changed.
98230         (BITSET_WORD_MAX): New macro.
98231         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
98232         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
98233         (bitset_empty, bitset_copy):
98234         Prefer sizeof (bitset) to multiplying it out ourselves.
98235         (bitset_not_merge): Remove; unused.
98236         (bitset_contain): Return bool, not unsigned int with one bit on.
98237         All callers changed.
98238         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
98239         alignment than re_node_set; do this by defining a new internal
98240         type struct dests_alloc and using it to allocate memory.
98242 2005-09-05  Bruno Haible  <bruno@clisp.org>
98244         * gnulib-tool (func_import): Fix comparison in handling of symbolic
98245         links.
98247 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
98249         * modules/size_max (Makefile.am): Add size_max.h
98251 2005-09-04  Derek Price  <derek@ximbiot.com>
98253         * gnulib-tool (func_import): Fix reversed $symbolic logic.
98255 2005-09-03  Simon Josefsson  <jas@extundo.com>
98257         * gnulib-tool: Fix typo.
98259 2005-09-03  Simon Josefsson  <jas@extundo.com>
98261         * config/srclist.txt: Add glibc bug 1293.
98263 2005-09-03  Derek Price  <derek@ximbiot.com>
98265         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
98266         From Larry Jones <lawrence.jones@ugs.com>.
98268 2005-09-02  Simon Josefsson  <jas@extundo.com>
98270         * modules/socklen: New file.
98272 2005-09-02  Simon Josefsson  <jas@extundo.com>
98274         * modules/havelib: New module.
98276         * modules/gettext, modules/iconv, modules/lock, modules/readline:
98277         Use havelib.
98279 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
98281         Check for arithmetic overflow when calculating sizes, to prevent
98282         some buffer-overflow issues.  These patches are conservative, in the
98283         sense that when I couldn't determine whether an overflow was possible,
98284         I inserted a run-time check.
98285         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
98286         macros.
98287         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
98288         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
98289         (re_xnrealloc, re_x2nrealloc): New inline functions.
98290         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
98291         parse_bracket_exp):
98292         (build_equiv_class, build_charclass): Check for arithmetic overflow
98293         in size expression calculations.
98294         * lib/regex_internal.c (re_string_realloc_buffers):
98295         (build_wcs_upper_buffer, re_node_set_add_intersect):
98296         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
98297         (re_dfa_add_node, register_state): Likewise.
98298         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
98299         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
98300         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
98301         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
98303 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
98305         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
98306         m4/ulonglong.m4.  Problem reported by Martin Lambers.
98308 2005-09-02  Bruno Haible  <bruno@clisp.org>
98310         Support for lib vs. lib64 distinction on biarch platforms.
98311         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
98312         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
98313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
98315 2005-09-02  Bruno Haible  <bruno@clisp.org>
98317         * gnulib-tool (import): In the other first-use case, provide defaults
98318         as well.
98320 2005-09-02  Bruno Haible  <bruno@clisp.org>
98322         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
98323         patches not yet found in the latest gettext release.
98325 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
98327         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
98328         to avoid a collision with bits/local_lim.h in glibc.
98329         All uses changed.  Problem reported by Dmitry V. Levin in
98330         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
98332         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
98333         bugs in int versus size_t comparisons.
98334         (re_string_context_at): Fix bug where the code assumed that
98335         Idx is signed.
98337         Use bool where appropriate.
98338         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
98339         All callers changed.
98340         (calc_eclosure_iter): Likewise, for ROOT arg.
98341         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
98342         (build_charclass_op): Likewise, for NON_MATCH arg.
98343         * lib/regex_internal.c (re_string_allocate, re_string_construct):
98344         (re_string_construct_common): Likewise, for ICASE arg.
98345         * lib/regexec.c (re_search_2_stub, re_search_stub):
98346         Likewise, for RET_LEN arg.
98347         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
98348         (set_regs): Likewise, for FL_BACKTRACK arg.
98349         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
98350         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
98351         (calc_eclosure_iter, parse_bracket_exp):
98352         Use bool for internal variables that are booleans.
98353         * lib/regexec.c (re_search_internal, check_matching,
98354         proceed_next_node):
98355         (set_regs, build_sifted_states, sift_states_bkref):
98356         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
98357         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
98358         (find_collation_sequence_value):
98359         Likewise.
98360         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
98361         (re_node_set_compare):
98362         Return bool, not int. All callers changed.
98363         * lib/regexec.c (check_halt_node_context, check_dst_limits):
98364         (build_trtable, check_node_accept): Likewise.
98365         * lib/regex_internal.h: Include stdbool.h.
98367         Fix bugs uncovered when converting to bool.
98368         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
98369         failure instead of charging ahead blindly.
98370         * lib/regex_internal.c (register_state): Likewise.
98371         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
98372         for freeing internal storage.
98373         (group_nodes_into_DFA_states): Use unsigned int, not int, for
98374         bitset pieces used as boolean, to avoid undefined behavior
98375         on hosts that do int overflow checking.
98377 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
98379         * config/srclist.txt: Add glibc bugs 1285-1287.
98381 2005-09-01  Jim Meyering  <jim@meyering.net>
98383         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
98384         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
98385         Require gl_STAT_MACROS, too.
98387 2005-09-01  Bruno Haible  <bruno@clisp.org>
98389         * gnulib-tool (import): In the first-use case, provide defaults.
98391 2005-09-01  Bruno Haible  <bruno@clisp.org>
98393         * gnulib-tool (func_import): Remove the .tmp files.
98395 2005-09-01  Bruno Haible  <bruno@clisp.org>
98397         * gnulib-tool (func_import): Fix handling of symbolic links.
98399 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98401         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
98402         old glibc regex code mishandles strings longer than 2**31 bytes.
98403         This patch fixes this when the regex code is used in gnulib
98404         (i.e., outside glibc).
98406         This patch should not affect the use of the regex code inside
98407         glibc.  No doubt this problem also needs to be handled for glibc
98408         as well, but the result will be an incompatible change to the
98409         glibc ABI, and the old ABI will have to be supported too.  That
98410         can be the subject for another patch.
98412         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
98413         governing whether the rest of this patch is active.  By default,
98414         the macro is disabled and the patch has no effect.
98415         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
98416         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
98417         (struct re_pattern_buffer, re_search, re_search_2, re_match):
98418         (re_match_2, re_set_registers): Use the new types.
98419         * lib/regex_internal.h (Idx, re_hashval_t): New types.
98420         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
98421         New macros.
98422         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
98423         (re_string_context_at, bin_tree_t, re_dfastate_t):
98424         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
98425         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
98426         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
98427         (re_string_char_size_at, re_string_wchar_at):
98428         (re_string_elem_size_at):
98429         Use the new types and macros to port to 64-bit hosts.
98430         Use unsigned types for internal values, so that the code
98431         mostly works even for arrays larger than SSIZE_MAX.
98432         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
98433         (search_duplicated_node, calc_eclosure_iter, fetch_number):
98434         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
98435         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
98436         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
98437         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
98438         (calc_inveclosure, parse_dup_op, build_range_exp):
98439         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
98440         (fetch_number, create_token_tree, mark_opt_subexp):
98441         Likewise.
98442         * lib/regex_internal.c (re_string_construct_common,
98443         create_ci_newstate):
98444         (create_cd_newstate, re_string_allocate, re_string_construct):
98445         (re_string_realloc_buffers, build_wcs_upper_buffer):
98446         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
98447         (re_string_reconstruct, re_string_peek_byte_case):
98448         (re_string_fetch_byte_case, re_string_context_at):
98449         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
98450         (re_node_set_init_copy, re_node_set_add_intersect):
98451         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98452         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98453         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
98454         (re_acquire_state, re_acquire_state_context, register_state):
98455         Likewise.
98456         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
98457         search_cur_bkref_entry):
98458         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
98459         (re_search_internal, re_search_2_stub, re_search_stub)
98460         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
98461         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
98462         (update_cur_sifted_state, check_dst_limits):
98463         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
98464         (check_subexp_limits, sift_states_bkref, merge_state_array):
98465         (check_subexp_matching_top, get_subexp, get_subexp_sub):
98466         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
98467         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
98468         (expand_bkref_cache, check_node_accept_bytes):
98469         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
98470         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
98471         (acquire_init_state_context, check_halt_node_context):
98472         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
98473         (sift_states_backward, clean_state_log_if_needed):
98474         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
98475         (find_recover_state, transit_state_sb, transit_state_mb):
98476         (transit_state_bkref, build_trtable, match_ctx_clean):
98477         Likewise.
98478         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
98479         to work around an assumption that REG_MISSING is negative.
98481         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
98482         (seek_collating_symbol_entry) [defined _LIBC]:
98483         (lookup_collation_sequence_value) [defined _LIBC]:
98484         (build_range_exp, build_collating_symbol) [defined _LIBC]:
98485         Use prototypes rather than old-style function definitions.
98486         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
98487         (transit_state_sb) [0]:
98488         (find_collation_sequence_value) [defined _LIBC]: Likewise.
98490         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
98491         rm_eo.
98493         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
98494         (optimize_subexps, lower_subexp):
98495         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
98496         since the signed shift might overflow.  Use 1u<<31 instead.
98497         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
98498         Likewise.
98499         * lib/regexec.c (check_dst_limits_calc_pos_1,
98500         check_subexp_matching_top): Likewise.
98502         * lib/regcomp.c (optimize_subexps, lower_subexp):
98503         Use CHAR_BIT rather than 8, for clarity.
98504         * lib/regexec.c (check_dst_limits_calc_pos_1):
98505         (check_subexp_matching_top): Likewise.
98506         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
98507         have to worry about portability issues when shifting it left.
98508         Remove no-longer-needed test for table_size > 0.
98509         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
98510         in a word, as the resulting behavior is undefined.
98511         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
98512         in one case, a <= should have been an <, and in another case the
98513         whole test was missing.
98514         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
98515         the standard name CHAR_BIT.
98516         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
98517         this is not true on one's complement and signed-magnitude hosts.
98519         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
98520         next_last_offset.
98521         (struct re_dfa_t): Remove unused member states_alloc.
98522         * lib/regcomp.c (init_dfa): Don't initialize unused members.
98524 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98526         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
98527         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
98528         and large-file glibc and in 32-bit large-file Solaris.
98530 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98532         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
98533         lengths fit in regoff_t; this isn't true if regoff_t is the same
98534         width as size_t.
98535         * lib/regex.c (re_search_internal): 5th arg is LAST_START
98536         (= START + RANGE) instead of RANGE.  This avoids overflow
98537         problems when regoff_t is the same width as size_t.
98538         All callers changed.
98539         (re_search_2_stub): Check for overflow when adding the
98540         sizes of the two strings.
98541         (re_search_stub): Check for overflow when adding START
98542         to RANGE; if it occurs, substitute the extreme value.
98544 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98546         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
98548 2005-08-31  Jim Meyering  <jim@meyering.net>
98550         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
98551         a pointer-to-const.
98552         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
98553         (register_state): Likewise.
98554         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
98555         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
98556         (group_nodes_into_DFAstates): Likewise.
98558 2005-08-31  Jim Meyering  <jim@meyering.net>
98560         * check-module: Add a FIXME comment.
98562 2005-08-31  Eric Blake  <ebb9@byu.net>
98564         * modules/unistd-safer (Files): Add unistd--.h.
98565         * modules/stdio-safer (Files): Add stdio--.h.
98567 2005-08-31  Derek Price  <derek@ximbiot.com>
98569         * lib/getdelim.c (getdelim): Return EOF on EOF.
98570         Reported by Larry Jones <lawrence.jones@ugs.com>.
98572 2005-08-31  Bruno Haible  <bruno@clisp.org>
98574         Avoid unnecessary diffs in the generated lib/Makefile.am.
98575         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
98576         the generated files.
98577         (func_import): Don't set cmd.
98579 2005-08-31  Bruno Haible  <bruno@clisp.org>
98581         * lib/strstr.c: Include <stddef.h>, for NULL.
98582         * lib/strcasestr.c: Likewise.
98583         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98585 2005-08-31  Bruno Haible  <bruno@clisp.org>
98587         * gnulib-tool: New option --macro-prefix.
98588         (func_import): Use macro_prefix.
98589         (import): Handle option --macro-prefix.
98591 2005-08-31  Bruno Haible  <bruno@clisp.org>
98593         * gnulib-tool (import): Rename most ac_* variables to cached_*.
98594         Also use new variables cached_lgpl, cached_libtool.
98596 2005-08-31  Bruno Haible  <bruno@clisp.org>
98598         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
98599         always instantiating them.
98601 2005-08-31  Bruno Haible  <bruno@clisp.org>
98603         * gnulib-tool (func_import): Read the previous cached settings
98604         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
98605         earlier added by gnulib but are now dropped. Warn when a gnulib file
98606         overwrites a non-gnulib file.
98608 2005-08-31  Bruno Haible  <bruno@clisp.org>
98610         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
98611         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
98612         projects that don't keep autogenerated files in CVS. Put into
98613         actioncmd only the specified modules, not the transitive closure.
98615 2005-08-31  Bruno Haible  <bruno@clisp.org>
98617         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
98618         Create directories that shall be filled.
98619         (import): Don't look for gl_* macros in configure.ac. Recurse across
98620         all directories containing a gnulib-cache.m4 files, if meaningful.
98622 2005-08-31  Bruno Haible  <bruno@clisp.org>
98624         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
98625         (import): Set seen_libtool when we see gl_LIBTOOL.
98627 2005-08-31  Bruno Haible  <bruno@clisp.org>
98629         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
98630         declaration macro definitions from generated gnulib.m4.
98632 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
98634         * lib/iconvme.h: Add prototype for iconv_alloc.
98636 2005-08-29  Simon Josefsson  <jas@extundo.com>
98638         * lib/iconvme.c: Fix errno.
98640 2005-08-29  Bruno Haible  <bruno@clisp.org>
98642         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
98643         that it works when the directory contains spaces.
98645 2005-08-29  Bruno Haible  <bruno@clisp.org>
98647         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
98649 2005-08-29  Bruno Haible  <bruno@clisp.org>
98651         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
98652         Emit more advice.
98654 2005-08-29  Bruno Haible  <bruno@clisp.org>
98655         and Stepan Kasal  <kasal@ucw.cz>
98657         * check-module: If more parameters are given, check each of them
98658         separately; add more exceptions, as noted by Jim Meyering.
98659         (check_module): New procedure.
98660         (%exempt_header): Now contains all exceptions.
98662 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
98664         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
98666 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
98668         * lib/iconvme.c: Split iconv_string into iconv_alloc.
98670 2005-08-28  Bruno Haible  <bruno@clisp.org>
98672         * m4/gnulib-tool.m4: New file.
98674 2005-08-27  Jim Meyering  <jim@meyering.net>
98676         * modules/unistd-safer (Files): Add pipe-safer.c.
98677         * modules/fcntl-safer (Files): Add creat-safer.c.
98679 2005-08-27  Jim Meyering  <jim@meyering.net>
98681         * m4/stdlib-safer.m4: New file.  From coreutils.
98682         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
98683         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
98684         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
98685         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
98686         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
98688 2005-08-27  Jim Meyering  <jim@meyering.net>
98690         * lib/fopen-safer.c: Merge minor changes from coreutils.
98691         * lib/dup-safer.c: Likewise.
98692         * lib/fd-safer.c: Likewise.
98694         Merge from coreutils.
98695         * lib/stdio--.h: New file.
98696         * lib/stdlib--.h: New file.
98697         * lib/mkstemp-safer.c: New file.
98699         GNU tar needs these.
98700         * lib/pipe-safer.c: New file.
98701         * lib/creat-safer.c: New file.
98702         * lib/fcntl--.h (creat): Define to creat_safer.
98703         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
98704         * lib/unistd--.h (pipe): Define to pipe_safer.
98705         * lib/unistd-safer.h: Declare pipe_safer.
98707 2005-08-26  Simon Josefsson  <jas@extundo.com>
98709         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
98710         Haible <bruno@clisp.org>.
98712 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
98714         * lib/regex_internal.h: Remove all references to
98715         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
98716         or better.
98717         (bitset_not, bitset_merge, bitset_not_merge):
98718         (bitset_mask, re_string_allocate, re_string_construct):
98719         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
98720         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
98721         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
98722         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
98723         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98724         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98725         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
98726         (re_acquire_state_context):
98727         Remove unnecessary forward decls.
98728         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
98729         Put __attribute at function definition,
98730         now that the function decl has been removed.
98731         * lib/regex_internal.c (re_string_peek_byte_case):
98732         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
98733         Likewise.
98735 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
98737         * m4/regex.m4: Add AC_PREREQ(2.50).
98738         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
98740 2005-08-25  Simon Josefsson  <jas@extundo.com>
98742         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
98743         __fsetlocking.
98745 2005-08-25  Simon Josefsson  <jas@extundo.com>
98747         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
98748         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
98749         GLIBC specific code.
98751 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98753         Make regex safe for g++.  This fixes one real bug (an "err"
98754         that should have been "*err").  g++ problem reported by
98755         Sam Steingold.
98756         * lib/regex_internal.h (re_calloc): New macro, consistent with
98757         re_malloc etc.  All callers of calloc changed to use re_calloc.
98758         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
98759         not int.  All callers changed.
98760         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
98761         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
98762         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
98763         (find_recover_state): Change "err" to "*err"; this fixes what
98764         appears to be a real bug.
98765         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
98766         versus int.
98768 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98770         * modules/regex (Depends-on): Add malloc, since the code
98771         assumes that !malloc(0) means failure.
98773 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98775         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
98777         alloca modernization/simplification for regex.
98778         * lib/regex.c: Remove portability cruft for alloca.  This no longer
98779         needs to be at the start of the file, and can be moved into
98780         regex_internal.h and simplified.
98781         * lib/regex_internal.h: Include <alloca.h>.
98782         (__libc_use_alloca) [!defined _LIBC]: New macro.
98783         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
98784         now works outside glibc.
98786 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98788         * config/srclist.txt: Add glibc bugs 1241, 1245.
98790 2005-08-25  Jim Meyering  <jim@meyering.net>
98792         * lib/open-safer.c: Include <config.h>.
98793         Otherwise, we'd lose LARGEFILE support in any file using
98794         e.g. "fcntl--.h"
98796 2005-08-25  Bruno Haible  <bruno@clisp.org>
98798         * m4/minmax.m4: Require autoconf 2.52.
98799         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
98800         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
98801         alternatives of translit over the alphabet.
98802         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
98804 2005-08-24  Simon Josefsson  <jas@extundo.com>
98806         * tests/test-getpass.c: New file.
98808 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98810         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
98811         for GNU regex features.
98813 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98815         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
98816         * lib/regex.h (regerror): Likewise.
98818         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
98819         requires this.  (The code never needed it.)
98821         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
98822         All uses of recently-renamed identifiers changed to use the new,
98823         POSIX-compliant names.  The code will build and run just fine
98824         without these changes, but it's better to eat our own dog food
98825         and use the standard-conforming names.
98827         * lib/regex.h: Fix a multitude of POSIX name space violations.
98828         These changes have an effect only for programs that define
98829         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
98830         do not change anything for programs compiled in the normal way.
98831         Also, there is no effect on the ABI.
98833         (_REGEX_SOURCE): New macro.
98834         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
98835         defined and _GNU_SOURCE is not; this fixes a name space violation.
98837         Rename the following macros to obey POSIX requirements.
98838         The old names are still visible as macros if _REGEX_SOURCE is defined.
98839         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
98840         RE_BACKSLASH_ESCAPE_IN_LISTS.
98841         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
98842         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
98843         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
98844         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
98845         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
98846         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
98847         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
98848         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
98849         (REG_INTERVALS): renamed from RE_INTERVALS.
98850         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
98851         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
98852         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
98853         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
98854         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
98855         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
98856         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
98857         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
98858         RE_UNMATCHED_RIGHT_PAREN_ORD.
98859         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
98860         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
98861         (REG_DEBUG): renamed from RE_DEBUG.
98862         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
98863         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
98864         unusual, since we can't clash with the POSIX REG_ICASE.
98865         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
98866         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
98867         (REG_NO_SUB): renamed from RE_NO_SUB.
98868         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
98869         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
98870         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
98871         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
98872         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
98873         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
98874         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
98875         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
98876         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
98877         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
98878         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
98879         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
98880         RE_SYNTAX_POSIX_MINIMAL_BASIC.
98881         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
98882         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
98883         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
98884         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
98885         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
98886         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
98887         (REG_FIXED): Renamed from REGS_FIXED.
98888         (REG_NREGS): Renamed from RE_NREGS.
98890         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
98891         of other REG_* macros, since POSIX says the user is allowed to
98892         #undef these macros selectively.
98894         (reg_errcode_t): Update comment stating what other tables need
98895         to be consistent.
98897         Rename the following enum values to obey POSIX requirements.
98898         The old names are still visible as macros.
98899         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
98900         is not defined, since GNU is supposed to be a superset of POSIX as
98901         much as possible, and since we want reg_errcode_t to be a signed
98902         type for implementation consistency.
98903         (_REG_NOERROR): Renamed from REG_NOERROR.
98904         (_REG_NOMATCH): Renamed from REG_NOMATCH.
98905         (_REG_BADPAT): Renamed from REG_BADPAT.
98906         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
98907         (_REG_ECTYPE): Renamed from REG_ECTYPE.
98908         (_REG_EESCAPE): Renamed from REG_EESCAPE.
98909         (_REG_ESUBREG): Renamed from REG_ESUBREG.
98910         (_REG_EBRACK): Renamed from REG_EBRACK.
98911         (_REG_EPAREN): Renamed from REG_EPAREN.
98912         (_REG_EBRACE): Renamed from REG_EBRACE.
98913         (_REG_BADBR): Renamed from REG_BADBR.
98914         (_REG_ERANGE): Renamed from REG_ERANGE.
98915         (_REG_ESPACE): Renamed from REG_ESPACE.
98916         (_REG_BADRPT): Renamed from REG_BADRPT.
98917         (_REG_EEND): Renamed from REG_EEND.
98918         (_REG_ESIZE): Renamed from REG_ESIZE.
98919         (_REG_ERPAREN): Renamed from REG_ERPAREN.
98920         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
98921         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
98922         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
98923         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
98925         (_REG_RE_NAME, _REG_RM_NAME): New macros.
98926         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
98927         changed.  But support the old name if the new one is not defined
98928         and if _REGEX_SOURCE.
98930         Change the following member names in struct re_pattern_buffer.
98931         The old names are still supported if !_REGEX_SOURCE.
98932         The new names are always supported, regardless of _REGEX_SOURCE.
98933         (re_buffer): Renamed from buffer.
98934         (re_allocated): Renamed from allocated.
98935         (re_used): Renamed from used.
98936         (re_syntax): Renamed from syntax.
98937         (re_fastmap): Renamed from fastmap.
98938         (re_translate): Renamed from translate.
98939         (re_can_be_null): Renamed from can_be_null.
98940         (re_regs_allocated): Renamed from regs_allocated.
98941         (re_fastmap_accurate): Renamed from fastmap_accurate.
98942         (re_no_sub): Renamed from no_sub.
98943         (re_not_bol): Renamed from not_bol.
98944         (re_not_eol): Renamed from not_eol.
98945         (re_newline_anchor): Renamed from newline_anchor.
98947         Change the following member names in struct re_registers.
98948         The old names are still supported if !_REGEX_SOURCE.
98949         The new names are always supported, regardless of _REGEX_SOURCE.
98950         (rm_num_regs): Renamed from num_regs.
98951         (rm_start): Renamed from start.
98952         (rm_end): Renamed from end.
98954         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
98955         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
98956         Prepend __ to parameter names.
98958         Undo yesterday's changes.
98960 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98962         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
98963         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
98964         lib/regex.c.
98966 2005-08-24  Jim Meyering  <jim@meyering.net>
98968         Sync from coreutils.
98969         * m4/fcntl-safer.m4: New file.
98971         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
98972         and object files for this module.
98974 2005-08-24  Jim Meyering  <jim@meyering.net>
98976         Sync from coreutils.
98977         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
98979 2005-08-24  Jim Meyering  <jim@meyering.net>
98981         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
98982         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
98984 2005-08-24  Jim Meyering  <jim@meyering.net>
98986         * modules/fcntl-safer: New module.
98987         * modules/fts (Depends-on): Add fcntl-safer.
98988         * MODULES.html.sh (File descriptor based Input/Output):
98989         Add fcntl-safer.
98991 2005-08-24  Bruno Haible  <bruno@clisp.org>
98993         Support for unit test modules.
98994         * modules/README: Mention tests modules.
98995         * modules/TEMPLATE-TESTS: New file.
98996         * gnulib-tool: New options --extract-tests-module, --with-tests and
98997         --tests-base (unused for the moment).
98998         (testsbase, inctests): New variables.
98999         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
99000         (func_verify_module): Exclude TEMPLATE-TESTS.
99001         (func_verify_nontests_module, func_verify_tests_module): New functions.
99002         (func_get_dependencies): Add implicit dependency for tests modules.
99003         (func_get_tests_module): New function.
99004         (func_modules_transitive_closure): When --with-tests was specified,
99005         include the unit tests as well, unless explicitly avoided.
99006         (func_emit_lib_Makefile_am): Ignore the tests modules here.
99007         (func_emit_tests_Makefile_am): New function.
99008         (func_create_testdir): When --with-tests was specified, emit a
99009         tests/ directory.
99010         * MODULES.html.sh (Future developments): Update.
99012 2005-08-24  Bruno Haible  <bruno@clisp.org>
99014         * modules/tls-tests: New file.
99015         * tests/test-tls.c: New file, from GNU gettext.
99017 2005-08-24  Bruno Haible  <bruno@clisp.org>
99019         * modules/lock-tests: New file.
99020         * tests/test-lock.c: New file, from GNU gettext.
99022 2005-08-24  Bruno Haible  <bruno@clisp.org>
99024         * lib/lock.h: Add multiple inclusion guard.
99025         * lib/tls.h: Add multiple inclusion guard.
99027 2005-08-24  Bruno Haible  <bruno@clisp.org>
99029         * gnulib-tool: Add support for the --aux-dir option to
99030         --create-testdir, --create-megatestdir, --test, --megatest.
99031         (func_create_testdir, func_create_megatestdir): Optionally emit a
99032         AC_CONFIG_AUX_DIR directive.
99033         (create-testdir, create-megatestdir, test, megatest): Provide a
99034         default value for $auxdir.
99036 2005-08-24  Bruno Haible  <bruno@clisp.org>
99038         * gnulib-tool (import): Use compound statement instead of subshell
99039         where possible.
99041 2005-08-24  Bruno Haible  <bruno@clisp.org>
99043         * gnulib-tool (import): Change --aux-dir default to "build-aux".
99045 2005-08-24  Bruno Haible  <bruno@clisp.org>
99047         * gnulib-tool (func_version): Update.
99049 2005-08-24  Bruno Haible  <bruno@clisp.org>
99051         * gnulib-tool (func_import, func_create_testdir,
99052         func_create_megatestdir): Quote all autoconf macro arguments.
99054 2005-08-24  Bruno Haible  <bruno@clisp.org>
99056         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
99057         option --force, because --force causes the aclocal.m4 of each
99058         subdirectory to be newer than the corresponding config.h.in.
99060 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99062         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
99063         All contents moved to gl_REGEX.
99064         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
99065         assume that it does.
99067 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99069         * lib/regex.h (REG_NOSYS)
99070         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
99071         Define, since POSIX requires it as of 2001.
99072         (_REG_ENOSYS)
99073         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
99074         New private symbol, used to keep the enum signed in all cases.
99075         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
99076         Youngman in
99077         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
99079         * lib/regex_internal.c (re_string_skip_chars, register_state):
99080         (calc_state_hash):
99081         Remove forward decls; no longer needed now that we use prototypes.
99082         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
99083         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
99084         (clean_state_log_if_needed): Likewise.
99086 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99088         * config/srclist.txt: Add glibc bugs 1231-1233.
99090 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99092         Fix problems reported by Sam Steingold in
99093         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
99094         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
99095         assumed that reg_errcode_t is a signed type, which is not
99096         necessarily true if _XOPEN_SOURCE is not defined.
99097         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
99098         since some compilers warn about it otherwise.
99100 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99102         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
99103         (init_word_char, create_initial_state, duplicate_node_closure):
99104         (fetch_token, peek_token_bracket, build_range_exp):
99105         (build_collating_symbol): Remove forward decls; no longer needed
99106         now that we use prototypes.
99108         * lib/regcomp.c:
99109         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
99110         (re_compile_fastmap_iter, regcomp, regerror, regfree):
99111         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
99112         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
99113         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
99114         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
99115         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
99116         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
99117         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
99118         (build_range_exp, build_collating_symbol, parse_bracket_exp):
99119         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
99120         (build_charclass, build_charclass_op, fetch_number, create_tree):
99121         (create_token_tree, mark_opt_subexp, duplicate_tree):
99122         Use prototypes rather than old-style definitions.
99124         * lib/regex_internal.c:
99125         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
99126         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
99127         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
99128         (re_string_reconstruct, re_string_peek_byte_case):
99129         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
99130         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
99131         (re_node_set_init_copy, re_node_set_add_intersect):
99132         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
99133         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
99134         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
99135         (re_acquire_state, re_acquire_state_context, register_state):
99136         (create_ci_newstate, create_cd_newstate, free_state):
99137         Likewise.
99138         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
99139         re_search_2):
99140         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
99141         (re_search_internal, prune_impossible_nodes):
99142         (acquire_init_state_context, check_matching, static):
99143         (check_halt_node_context, check_halt_state_context, proceed_next_node):
99144         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
99145         (update_regs, sift_states_backward, build_sifted_states):
99146         (clean_state_log_if_needed, merge_state_array):
99147         (update_cur_sifted_state, add_epsilon_src_nodes):
99148         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
99149         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
99150         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
99151         (find_recover_state, check_subexp_matching_top, transit_state_mb):
99152         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
99153         (check_arrival, check_arrival_add_next_nodes):
99154         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
99155         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
99156         (check_node_accept_bytes, check_node_accept, extend_buffers):
99157         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
99158         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
99159         (sift_ctx_init):
99160         Likewise.
99162         * lib/regex_internal.h:
99163         (re_string_allocate, re_string_construct, re_string_reconstruct):
99164         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
99165         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
99166         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
99167         (re_string_context_at, re_string_peek_byte_case):
99168         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
99169         is defined, since we now use prototypes always.
99171         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
99172         C89 or better.  All uses removed.
99174 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99176         * config/srclist.txt: Add glibc bugs 1220-1227.
99178 2005-08-20  Jim Meyering  <jim@meyering.net>
99180         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
99181         of unused local, dfa.
99183 2005-08-20  Bruno Haible  <bruno@clisp.org>
99185         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
99187 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99189         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
99190         (re_node_set_insert_last, re_dfa_add_node):
99191         Rename local variables to avoid GCC shadowing warnings.
99193 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99195         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
99196         [defined lint]: Suppress bogus uninitialized-variable warnings.
99198         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
99199         and let the caller return REG_ESPACE if out of space.  This
99200         removes an uninitialied-variable warning with GCC 4.0.1, and also
99201         avoids taking the address of a local variable.  All callers
99202         changed.
99204 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99206         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
99207         $LIBCSRC/posix/regexec.c.
99208         Add glibc bug 1217 for regcomp.c.
99210 2005-08-19  Jim Meyering  <jim@meyering.net>
99212         * lib/regexec.c (proceed_next_node): Redo local variables to
99213         avoid GCC shadowing warnings.
99215 2005-08-18  Bruno Haible  <bruno@clisp.org>
99217         * lib/strstr.c (strstr): Fix return value in multibyte case.
99218         * lib/strcasestr.c (strcasestr): Likewise.
99220 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
99222         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
99224 2005-08-17  Jim Meyering  <jim@meyering.net>
99226         Make the %s format (seconds since the epoch) work for a negative
99227         number and when used with a zero-padded field width, e.g. %015s.
99229         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
99230         label so that it precedes the code to set `digits'.  Otherwise,
99231         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
99232         print `00-22'.  Now, it prints `-0022', as it should.
99234 2005-08-17  Bruno Haible  <bruno@clisp.org>
99236         * modules/strstr (Files): Add m4/mbrtowc.m4.
99237         (Depends-on): Add mbuiter.
99239 2005-08-17  Bruno Haible  <bruno@clisp.org>
99241         * modules/strcasestr: New file.
99242         * MODULES.html.sh (String handling, based on ANSI C 89): Add
99243         strcasestr.
99245 2005-08-17  Bruno Haible  <bruno@clisp.org>
99247         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
99249 2005-08-17  Bruno Haible  <bruno@clisp.org>
99251         * modules/mbuiter: New file.
99252         * MODULES.html.sh (Extended multibyte and wide character utilities):
99253         Add mbuiter.
99255 2005-08-17  Bruno Haible  <bruno@clisp.org>
99257         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
99258         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
99260 2005-08-17  Bruno Haible  <bruno@clisp.org>
99262         * m4/strcasestr.m4: New file.
99264 2005-08-17  Bruno Haible  <bruno@clisp.org>
99266         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
99267         * lib/strstr.c: Completely rewritten, with multibyte locale support.
99269 2005-08-17  Bruno Haible  <bruno@clisp.org>
99271         * lib/strcasestr.h: New file.
99272         * lib/strcasestr.c: New file.
99274 2005-08-17  Bruno Haible  <bruno@clisp.org>
99276         * lib/strcasecmp.c: Use mbuiter.h.
99278 2005-08-17  Bruno Haible  <bruno@clisp.org>
99280         * lib/mbuiter.h: New file.
99282 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
99284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
99285         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
99286         and gl_GETOPT are both invoked via different paths (as happens
99287         with GNU tar CVS because it uses both argp and getopt), the former
99288         wins.
99290 2005-08-16  Bruno Haible  <bruno@clisp.org>
99292         * modules/tls: New file.
99293         * MODULES.html.sh (Multithreading): Add tls.
99295 2005-08-16  Bruno Haible  <bruno@clisp.org>
99297         * modules/strnlen1: New file.
99298         * MODULES.html.sh (String handling): Add strnlen1.
99300 2005-08-16  Bruno Haible  <bruno@clisp.org>
99302         * modules/strcase (Files): Add m4/mbrtowc.m4.
99303         (Depends-on): Add strnlen1, mbchar.
99305 2005-08-16  Bruno Haible  <bruno@clisp.org>
99307         * modules/mbiter: New file.
99308         * MODULES.html.sh (Extended multibyte and wide character utilities):
99309         Add mbiter.
99311 2005-08-16  Bruno Haible  <bruno@clisp.org>
99313         * modules/mbfile: New file.
99314         * MODULES.html.sh (Extended multibyte and wide character utilities):
99315         Add mbfile.
99317 2005-08-16  Bruno Haible  <bruno@clisp.org>
99319         * modules/mbchar: New file.
99320         * MODULES.html.sh (Extended multibyte and wide character utilities):
99321         New section.
99323 2005-08-16  Bruno Haible  <bruno@clisp.org>
99325         * m4/tls.m4: New file, from GNU gettext.
99327 2005-08-16  Bruno Haible  <bruno@clisp.org>
99329         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
99330         always.
99331         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
99333 2005-08-16  Bruno Haible  <bruno@clisp.org>
99335         * m4/mbiter.m4: New file.
99337 2005-08-16  Bruno Haible  <bruno@clisp.org>
99339         * m4/mbfile.m4: New file.
99341 2005-08-16  Bruno Haible  <bruno@clisp.org>
99343         * m4/mbchar.m4: New file.
99345 2005-08-16  Bruno Haible  <bruno@clisp.org>
99347         * lib/tls.h: New file, from GNU gettext.
99348         * lib/tls.c: New file, from GNU gettext.
99350 2005-08-16  Bruno Haible  <bruno@clisp.org>
99352         * lib/strnlen1.h: New file.
99353         * lib/strnlen1.c: New file.
99355 2005-08-16  Bruno Haible  <bruno@clisp.org>
99357         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
99358         (mbi_init): Update.
99359         (mbi_avail, mbi_advance): Let the iteration end before the terminating
99360         NUL byte, not after it.
99362 2005-08-16  Bruno Haible  <bruno@clisp.org>
99364         * lib/strcase.h (strcasecmp): Add note in comments.
99365         * lib/strncasecmp.c: Use code from strcasecmp.c.
99366         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
99367         (strcasecmp): Work correctly in multibyte locales.
99369 2005-08-16  Bruno Haible  <bruno@clisp.org>
99371         * lib/mbiter.h: New file.
99373 2005-08-16  Bruno Haible  <bruno@clisp.org>
99375         * lib/mbfile.h: New file.
99377 2005-08-16  Bruno Haible  <bruno@clisp.org>
99379         * lib/mbchar.h: New file.
99380         * lib/mbchar.c: New file.
99382 2005-08-16  Bruno Haible  <bruno@clisp.org>
99384         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
99385         the valid ones. Makes the comparison operations transitive:
99386         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
99387         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
99389 2005-08-15  Simon Josefsson  <jas@extundo.com>
99391         * modules/ssize_t (License): Change to 'unlimited'.
99393         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
99395 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
99397         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
99398         Add comments for each pending glibc patch.
99400 2005-08-15  Bruno Haible  <bruno@clisp.org>
99402         * lib/regex.h (__restrict_arr): Don't define to __restrict if
99403         __cplusplus is defined.
99405 2005-08-14  Jim Meyering  <jim@meyering.net>
99407         Sync from coreutils.
99409         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
99410         Use the hash-table-based cycle-detection code not just when
99411         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
99412         Reported by James Youngman in
99413         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
99414         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
99415         FTS_TIGHT_CYCLE_CHECK.
99416         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
99417         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
99418         once again.
99419         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
99420         * lib/fts.c (fd_safer): Remove decl.
99421         Include fcntl--.h rather than unistd-safer.h
99422         (fts_safe_changedir): Don't call fd_safer; no longer needed
99423         now that we include fcntl--.h.
99425 2005-08-12  Simon Josefsson  <jas@extundo.com>
99427         * modules/getndelim2: Use ssize_t module.
99428         * modules/getnline: Likewise.
99429         * modules/safe-read: Likewise.
99430         * modules/xreadlink: Likewise.
99432         * modules/ssize_t: New file.
99434 2005-08-12  Simon Josefsson  <jas@extundo.com>
99436         * m4/readline.m4: Look for termcap, curses or ncurses if required.
99438 2005-08-12  Simon Josefsson  <jas@extundo.com>
99440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99441         ssize_t.
99443 2005-08-12  Simon Josefsson  <jas@extundo.com>
99445         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
99446         readline, getdelim and check_version.
99447         (Support for systems lacking ISO C 99: Sizes of integer types):
99448         Add size_max.
99450 2005-08-12  Bruno Haible  <bruno@clisp.org>
99452         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
99454 2005-08-11  Simon Josefsson  <jas@extundo.com>
99456         * modules/readline: New file.
99458         * modules/strnlen (Files): Add strnlen.h.
99460 2005-08-11  Simon Josefsson  <jas@extundo.com>
99462         * m4/readline.m4: New file.
99464 2005-08-11  Simon Josefsson  <jas@extundo.com>
99466         * lib/readline.h, readline.c: New file.
99468 2005-08-11  Simon Josefsson  <jas@extundo.com>
99470         * doc/gnulib.texi (Initial import, Finishing touches): Mention
99471         gl_AVOID.
99473 2005-08-11  Bruno Haible  <bruno@clisp.org>
99475         * lib/strnlen.h (strnlen): Change parameter name to match comment.
99477 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
99479         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
99481 2005-08-10  Simon Josefsson  <jas@extundo.com>
99483         * tests/test-iconvme.c: New file.
99485 2005-08-10  Simon Josefsson  <jas@extundo.com>
99487         * m4/strnlen.m4: New file.
99489         * m4/strndup.m4: Don't check for strnlen declaration, done in
99490         strnlen.m4.
99492 2005-08-10  Simon Josefsson  <jas@extundo.com>
99494         * lib/strndup.c: Use strnlen.h.
99496         * lib/strnlen.h: New file.
99498 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99500         * README: Typos.
99502 2005-08-02  Simon Josefsson  <jas@extundo.com>
99504         * modules/readline: New file.
99506 2005-08-02  Simon Josefsson  <jas@extundo.com>
99508         * modules/getdelim: New file.
99510         * modules/getline: Rewrite, don't use getndelim2.
99512 2005-08-02  Simon Josefsson  <jas@extundo.com>
99514         * m4/getline.m4: Separate out getdelim stuff into separate module.
99516         * m4/getdelim.m4: New file.
99518 2005-08-02  Simon Josefsson  <jas@extundo.com>
99520         * lib/getline.h, getline.c: Rewrite.
99522         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
99524 2005-07-31  Bruno Haible  <bruno@clisp.org>
99526         * lib/lock.h (gl_lock_initializer): New macro.
99527         (gl_lock_define_initialized): Use it.
99528         (gl_rwlock_initializer): New macro.
99529         (gl_rwlock_define_initialized): Use it.
99530         (gl_recursive_lock_initializer): New macro.
99531         (gl_recursive_lock_define_initialized): Use it.
99533 2005-07-30  Karl Berry  <karl@gnu.org>
99535         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
99536         Report from Ben Pfaff, regarding getopt.
99538 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
99540         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
99541         normal way.
99542         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
99543         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
99544         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
99545         (gl_GETOPT): Use the new macros.  Most of the implementation
99546         is moved to the new macros.  This is for programs like Emacs
99547         that don't want all the functionality of gl_GETOPT.
99549 2005-07-26  Bruno Haible  <bruno@clisp.org>
99551         * m4/lock.m4: Update from GNU gettext.
99553 2005-07-26  Bruno Haible  <bruno@clisp.org>
99555         * lib/lock.h: Update from GNU gettext.
99556         * lib/lock.c: Update from GNU gettext.
99558 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
99560         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
99561         obsolescent AC_TRY_RUN.  Include the default includes files, for
99562         'exit'.
99564 2005-07-24  Bruno Haible  <bruno@clisp.org>
99566         * modules/visibility: New file.
99567         * MODULES.html.sh (Misc): Add visibility.
99569 2005-07-24  Bruno Haible  <bruno@clisp.org>
99571         * m4/visibility.m4: New file.
99573 2005-07-24  Bruno Haible  <bruno@clisp.org>
99575         * doc/visibility.texi: New file.
99577 2005-07-22  Bruno Haible  <bruno@clisp.org>
99579         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
99580         $(ALLOCA_H), redundant through BUILT_SOURCES.
99581         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
99582         redundant through BUILT_SOURCES.
99583         * modules/byteswap (Makefile.am): Remove explicit dependency on
99584         $(BYTESWAP_H), redundant through BUILT_SOURCES.
99585         * modules/fnmatch (Makefile.am): Remove explicit dependency on
99586         $(FNMATCH_H), redundant through BUILT_SOURCES.
99587         * modules/getopt (Makefile.am): Remove explicit dependency on
99588         $(GETOPT_H), redundant through BUILT_SOURCES.
99589         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
99590         redundant through BUILT_SOURCES.
99591         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
99592         redundant through BUILT_SOURCES.
99593         * modules/stdbool (Makefile.am): Remove explicit dependency on
99594         $(STDBOOL_H), redundant through BUILT_SOURCES.
99595         * modules/stdint (Makefile.am): Remove explicit dependency on
99596         $(STDINT_H), redundant through BUILT_SOURCES.
99597         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
99598         Remove explicit dependency on $(SYSEXITS_H).
99599         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
99601 2005-07-18  Simon Josefsson  <jas@extundo.com>
99603         * lib/check-version.c (check_version): Accept identical versions too.
99605 2005-07-18  Bruno Haible  <bruno@clisp.org>
99607         * modules/lock: New file.
99608         * MODULES.html.sh (Multithreading): New section.
99610 2005-07-18  Bruno Haible  <bruno@clisp.org>
99612         * m4/lock.m4: New file, from GNU gettext.
99614 2005-07-18  Bruno Haible  <bruno@clisp.org>
99616         * lib/lock.h: New file, from GNU gettext.
99617         * lib/lock.c: New file, from GNU gettext.
99619 2005-07-18  Bruno Haible  <bruno@clisp.org>
99621         * lib/lock.h (gl_once_t): New type.
99622         (gl_once_define, gl_once): New macros.
99623         * lib/lock.c (fresh_once): New variable.
99624         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
99625         functions.
99627 2005-07-16  Simon Josefsson  <jas@extundo.com>
99629         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
99630         workaround, suggested by Bruno.
99632 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
99634         * modules/xalloc (Depends-on): Add xalloc-die.
99635         * modules/xvasprintf (Depends-on): Add xalloc-die.
99637 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
99639         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
99640         with a minor change.
99642 2005-07-15  Bruno Haible  <bruno@clisp.org>
99644         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
99645         When using lib/poll.c, define poll as rpl_poll.
99647 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
99649         * modules/argp (Depends-on): Remove unlocked-io.
99651 2005-07-14  Derek Price  <derek@ximbiot.com>
99653         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
99654         for glob symlink bug.
99656 2005-07-14  Bruno Haible  <bruno@clisp.org>
99658         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
99659         Instead, test for *_unlocked function declarations directly.
99661 2005-07-11  Simon Josefsson  <jas@extundo.com>
99663         * modules/size_max: New file.
99665         * modules/xsize: Depend on size_max module for size_max.m4.
99667 2005-07-11  Simon Josefsson  <jas@extundo.com>
99669         * lib/size_max.h: New file.
99671 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
99673         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
99674         copyright symbol and the year.
99675         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
99676         (version_etc_va): Use parameterized copyright notice.
99677         Reword to conform to the current GNU coding standards.
99679 2005-07-11  Karl Berry  <karl@gnu.org>
99681         * doc/gnulib.texi (Quoting): new node.
99682         (Initial import): more info, from Patrice.
99684 2005-07-11  Bruno Haible  <bruno@clisp.org>
99686         * gnulib-tool (func_usage): Document option --avoid.
99687         (Command line options): Handle --avoid.
99688         (func_acceptable): New function.
99689         (func_modules_transitive_closure): Use it.
99691 2005-07-11  Bruno Haible  <bruno@clisp.org>
99693         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
99694         Reported by Jim Meyering.
99696 2005-07-10  Bruno Haible  <bruno@clisp.org>
99698         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
99699         Needed when size_t is smaller than 'unsigned int'.
99700         Reported by Paul Eggert.
99702 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99704         * modules/argp (Depends-on): Add unlocked-io
99706 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99708         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
99709         block of defines.
99711 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99713         * config/srclist.txt: Comment out regcomp.c, since we have a porting
99714         fix now.
99716 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
99717         and Paul Eggert  <eggert@cs.ucla.edu>
99719         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
99720         in wint_t, not wchar_t.  Remove now-unnecessary cast.
99722 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99724         * modules/regex (Files): Add lib/regex_internal.c,
99725         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
99726         (Depends-on): Add extensions.
99727         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
99729 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99731         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
99732         pathconf.
99733         * m4/same.m4 (gl_SAME): Likewise.
99734         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
99736         * m4/regex.m4: Adjust to new libc regex implementation.
99737         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
99738         all the .c and .h parts of (the new) regex.
99739         Quote the m4 stuff better.
99740         Check for RE_ICASE bug of old gnulib.
99741         Check for REG_STARTEND of recent libc.
99742         Rename local variables from jm_* to gl_*.
99743         Quote operand of "test -f".
99744         Say "recent enough" version of libc, not "version 2".
99745         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
99746         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
99747         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
99748         Remove check for btowc, isascii.
99749         Require AM_LANGINFO_CODESET.
99751 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99753         * lib/regex.c, regex.h: Sync from libc.
99754         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
99755         * lib/regexec.c:
99756         New files, synced from libc, except that regex_internal.h
99757         currently has a small porting fix.
99759 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99761         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
99762         regex_internal.c, regexec.c.
99763         Add regex_internal.h too, but as a comment, since the libc version
99764         is currently broken in gnulib mode.
99766 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99768         Support programs like Emacs that use gnulib but not gettext.
99769         * MODULES.html.sh (Internationalization functions): Add gettext-h.
99770         * modules/gettext-h: New file.
99771         * modules/gettext (Files): Remove lib/gettext.h.
99772         (Depends-on): Add gettext-h.
99773         (Makefile.am): Remove lib_SOURCES.
99774         * modules/argmatch, modules/c-stack, modules/closeout:
99775         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
99776         * modules/execute, modules/file-type, modules/getaddrinfo:
99777         * modules/getopt, modules/human, modules/javacomp:
99778         * modules/javaexec, modules/mkdir-p, modules/obstack:
99779         * modules/openat, modules/pagealign_alloc, modules/pipe:
99780         * modules/quotearg, modules/regex, modules/rpmatch:
99781         * modules/unicodeio, modules/userspec, modules/version-etc:
99782         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
99783         * modules/xsetenv:
99784         Depend on gettext-h, not gettext.
99786 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99788         * gnulib-tool (func_import): Add support for 'public domain' license.
99789         * modules/alloca, modules/atexit, modules/memmove:
99790         Now public domain, not GPL.
99791         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
99792         * modules/realloc, modules/strerror, modules/strtod:
99793         Now LGPL, not GPL.
99795 2005-07-05  Bruno Haible  <bruno@clisp.org>
99797         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
99798         autoconf CVS. Needed for mingw.
99800 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99802         Remove the dependency of the strftime module on the tzset module.
99803         * modules/strftime (Depends-on): Remove dependency on tzset.
99805 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99807         Remove the dependency of the strftime module on the tzset module.
99808         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
99809         gl_FUNC_TZSET_CLOBBER.
99811 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99813         Remove the dependency of the strftime module on the tzset module.
99814         * lib/strftime.c (my_strftime)
99815         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
99816         Copy the input structure, to work around some of the bug with
99817         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
99818         Solaris releases, you should also use the tzset module, but we won't
99819         require it as a dependency any more since we don't want LGPLed code
99820         to depend on GPLed code.
99822 2005-07-02  Jim Meyering  <jim@meyering.net>
99824         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
99825         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
99826         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
99827         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
99829 2005-07-02  Jim Meyering  <jim@meyering.net>
99831         * lib/backupfile.c (backup_args): Change a `0' to NULL.
99833 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99835         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
99836         declares only 'struct timespec;' (!).
99838 2005-07-01  Jim Meyering  <jim@meyering.net>
99840         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
99841         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
99842         * lib/save-cwd.c, tempname.c:
99843         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
99844         and don't include <sys/file.h>).
99846 2005-06-29  Jim Meyering  <jim@meyering.net>
99848         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
99849         type name.  Use the variable name instead.
99850         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
99851         Likewise.
99853 2005-06-28  Simon Josefsson  <jas@extundo.com>
99855         * modules/check-version (Files): Add check-version.m4.
99857 2005-06-28  Simon Josefsson  <jas@extundo.com>
99859         * m4/check-version.m4: New file, suggested by Jim Meyering
99860         <jim@meyering.net>.
99862 2005-06-28  Simon Josefsson  <jas@extundo.com>
99864         * lib/check-version.h, lib/check-version.c: New files.
99866 2005-06-28  Simon Josefsson  <jas@extundo.com>
99868         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
99869         collision with global variable.  Better indentation.  Don't
99870         increment buffer pointer beyond buffer end.  Based on comments
99871         from Paul Eggert <eggert@cs.ucla.edu>.
99873         * lib/base64.h: Indent.
99875 2005-06-28  Simon Josefsson  <jas@extundo.com>
99877         * doc/gnulib.texi (Library version handling): New section.
99879 2005-06-28  Jim Meyering  <jim@meyering.net>
99881         * check-module (find_included_lib_files): Hard-code another
99882         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
99883         but modules/fts-lgpl (correctly) does not list those files.
99885         * modules/canonicalize (Files): Add lib/pathmax.h.
99887 2005-06-25  Simon Josefsson  <jas@extundo.com>
99889         * modules/check-version: New file.
99891 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
99893         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
99894         initializer of struct addrinfo, as an indication that we don't
99895         care how many members the structure has.
99897 2005-06-24  Derek Price  <derek@ximbiot.com>
99898         and Bruno Haible  <bruno@clisp.org>
99900         Remove stat module & update lstat.
99901         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
99902         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99903         * m4/stat.m4: Remove this file.
99905 2005-06-24  Derek Price  <derek@ximbiot.com>
99906         and Bruno Haible  <bruno@clisp.org>
99908         Remove stat module & update lstat.
99909         * lib/stat.c: Remove this file...
99910         (slash_aware_lstat): ...moving this content and its support...
99911         * lib/lstat.c (rpl_lstat): ...into here.
99912         * lib/lstat.h: New file.
99914 2005-06-24  Derek Price  <derek@ximbiot.com>
99915         and Bruno Haible  <bruno@clisp.org>
99917         Remove stat module & update lstat.
99918         * config/srclist.txt (libc sources): Remove stat.
99920 2005-06-24  Derek Price  <derek@ximbiot.com>
99921         and Bruno Haible  <bruno@clisp.org>
99923         Remove stat module & update lstat.
99924         * MODULES.html.sh (stat): Remove.
99925         * MODULES.html: Regenerated.
99926         * modules/lstat (Description): Correct function name.
99927         (Files): Add "lstat.h".
99928         (Depends-on): Remove stat, add xalloc, stat-macros.
99929         * modules/stat: Remove this file.
99930         (Include): Add "lstat.h", remove <sys/stat.h>.
99932 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99934         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
99935         (ranged_convert): Don't save conversion in a temporary struct.
99936         This causes a warning with GCC 4.0.0, and anyway in the typical
99937         case it's not worth the extra 100 bytes or so of code.
99938         (ranged_convert, __mktime_internal): When calling a function via a
99939         pointer P, use P () rather than (*P) (), as we now assume C89 or
99940         better.
99942 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
99944         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
99945         "who -r" failed to give output.  Problem reported by Tim Waugh.
99947         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
99948         (xcalloc): Use it to avoid needless tests.
99949         Problem reported by Jim Meyering.
99951 2005-06-20  Derek Price  <derek@ximbiot.com>
99953         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
99954         unnecessary for Autoconfs > 2.59c.
99956 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99958         * lib/argp.h (__option_is_short): Check upper limit of
99959         __key. Isprint() requires its argument to have the value
99960         of an unsigned char or EOF.
99962 2005-06-16  Jim Meyering  <jim@meyering.net>
99964         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
99965         when either N or S is zero.
99967 2005-06-16  Derek Price  <derek@ximbiot.com>
99969         * m4/bison.m4: Declare YACC & YFLAGS precious.
99971 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
99973         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
99974         multibyte string or pattern, fall back on unibyte matching.
99975         Problem reported by James Youngman.
99977 2005-06-08  Bruno Haible  <bruno@clisp.org>
99979         * modules/csharpcomp: New file.
99980         * MODULES.html.sh (C#): Add csharpcomp.
99982 2005-06-08  Bruno Haible  <bruno@clisp.org>
99984         * m4/csharpcomp.m4: New file, from GNU gettext.
99986 2005-06-08  Bruno Haible  <bruno@clisp.org>
99988         * lib/csharpcomp.h: New file, from GNU gettext.
99989         * lib/csharpcomp.c: New file, from GNU gettext.
99990         * lib/csharpcomp.sh.in: New file, from GNU gettext.
99992 2005-06-08  Bruno Haible  <bruno@clisp.org>
99994         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
99995         warning on mingw.
99997 2005-06-07  Derek Price  <derek@ximbiot.com>
99999         Sync from CVS.
100000         * lib/glob_.h: Indent nested #ifdef.
100002 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100004         Sync from coreutils.
100005         Use "file name" when talking about file names, instead of "filename"
100006         or "path", as per the GNU coding standards.
100007         * lib/mkdir-p.c: Renamed from makepath.c.
100008         (make_dir_parents): Renamed from make_path.  All callers changed.
100009         * lib/mkdir-p.h: Likewise.  All includers changed.
100010         * lib/filenamecat.c: Renamed from path-concat.c.
100011         (file_name_concat): Renamed from path_concat.  All callers changed.
100012         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
100013         * lib/filenamecat.h: Likewise.  All includers changed.
100014         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
100015         in comments or local variable names.
100016         * lib/basename.c: Likewise.
100017         * lib/canonicalize.c, canonicalize.h: Likewise.
100018         * lib/dirname.c, dirname.h: Likewise.
100019         * lib/euidaccess.c: Likewise.
100020         * lib/exclude.c: Likewise
100021         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
100022         * lib/fsusage.c, fsuage.h: Likewise.
100023         * lib/fts.c, fts_.h: Likewise.
100024         * lib/getcwd.c: Likewise.
100025         * lib/getloadavg.c: Likewise.
100026         * lib/mkstemp.c: Likewise.
100027         * lib/mountlist.c, mountlist.h: Likewise.
100028         * lib/openat.c, openat.h: Likewise.
100029         * lib/readlink-stub.c: Likewise.
100030         * lib/readutmp.c, readutmp.h: Likewise.
100031         * lib/rename.c: Likewise.
100032         * lib/rmdir.c: Likewise.
100033         * lib/same.c: Likewise.
100034         * lib/savedir.c: Likewise.
100035         * lib/stripslash.c: Likewise.
100036         * lib/tempname.c: Likewise.
100037         * lib/xreadlink.c: Likewise.
100038         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
100039         All uses changed.
100040         * lib/exclude.h: Likewise.
100042         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
100043         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100044         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
100045         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100046         * lib/pathmax.h: Include <limits.h> unconditionally, since other
100047         files have been getting away with it for years (MORE/BSD 4.3
100048         is extinct now).
100049         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
100050         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100052         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
100053         Define to 256, not 255, as per modern POSIX.
100055 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100057         Sync from coreutils.
100058         Use "file name" when talking about file names, instead of "filename"
100059         or "path", as per the GNU coding standards.
100060         * MODULES.html.sh: mkdir-p renamed from makepath.
100061         filenamecat renamed from path-concat.
100062         * modules/filenamecat: Renamed from modules/path-concat.
100063         (Files): filenamecat.h and filenamecat.c renamed from
100064         path-concat.h and path-concat.c.
100065         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
100066         (Include): filenamecat.h, not path-concat.h.
100067         * modules/mkdir-p: Renamed from modules/makepath.
100068         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
100069         makepath.c.
100070         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
100071         (Include): mkdir-p.h, not makepath.h.
100073 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100075         Sync from coreutils.
100076         * m4/mkdir-p.m4: Renamed from makepath.m4.
100077         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
100078         Rename files from makepath.c to mkdir-p.c, and from
100079         makepath.h to mkdir-p.h.
100080         * m4/filenamecat.m4: Renamed from path-concat.m4.
100081         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
100082         Rename files from path-concat.c to filenamecat.c,
100083         and from path-concat.h to filenamecat.h.
100084         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
100085         "file name" in local variables or comments.
100086         * m4/rename.m4: Likewise.
100088 2005-06-01  Bruno Haible  <bruno@clisp.org>
100090         * modules/csharpexec: New file.
100091         * MODULES.html.sh (C#): New section.
100093 2005-06-01  Bruno Haible  <bruno@clisp.org>
100095         * m4/csharp.m4: New file, from GNU gettext.
100096         * m4/csharpexec.m4: New file, from GNU gettext.
100098 2005-06-01  Bruno Haible  <bruno@clisp.org>
100100         * lib/csharpexec.h: New file, from GNU gettext.
100101         * lib/csharpexec.c: New file, from GNU gettext.
100102         * lib/csharpexec.sh.in: New file, from GNU gettext.
100104 2005-05-31  Derek Price  <derek@ximbiot.com>
100105             Paul Eggert  <eggert@cs.ucla.edu>
100107         Sync from cvs.
100108         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
100110 2005-05-31  Derek Price  <derek@ximbiot.com>
100111             Paul Eggert  <eggert@cs.ucla.edu>
100113         Sync from cvs.
100114         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
100116 2005-05-29  Derek Price  <derek@ximbiot.com>
100118         * config/srclist.txt (glob_.h, glob.c): Add these files.
100120 2005-05-29  Derek Price  <derek@ximbiot.com>
100122         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
100123         * modules/glob: New file.
100124         * modules/getlogin_r: Add link to POSIX spec in description.
100126 2005-05-29  Derek Price  <derek@ximbiot.com>
100127             Paul Eggert  <eggert@cs.ucla.edu>
100129         * m4/glob.m4: New file.
100131 2005-05-29  Derek Price  <derek@ximbiot.com>
100132             Paul Eggert  <eggert@cs.ucla.edu>
100134         * lib/glob_.h, lib/glob.c: New files.
100136 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100138         * modules/fts (Files): Remove m4/inttypes-pri.m4.
100139         * modules/fts-lgpl (Depends-on): Remove gettext.
100141 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
100144         and don't require gt_INTTYPES_PRI.
100146 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100148         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
100150         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
100151         the configuration hassle isn't worth it.
100152         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
100153         (LONGEST_MODIFIER, PRIuMAX): Remove.
100155 2005-05-27  Bruno Haible  <bruno@clisp.org>
100157         * lib/getlogin_r.h: Remove second include of <stddef.h>.
100159 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
100161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
100162         _POSIX_PTHREAD_SEMANTICS for Solaris.
100164 2005-05-25  Derek Price  <derek@ximbiot.com>
100166         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
100168 2005-05-25  Derek Price  <derek@ximbiot.com>
100169             Paul Eggert  <eggert@cs.ucla.edu>
100171         * modules/getlogin_r, m4/getlogin_r.m4: New files.
100172         * lib/getlogin_r.c, getlogin_r.h: New files.
100174 2005-05-25  Bruno Haible  <bruno@clisp.org>
100175             Derek Price  <derek@ximbiot.com>
100177         * lib/getlogin_r.h: Simplify API documentation.
100179 2005-05-23  Derek Price  <derek@ximbiot.com>
100181         * modules/minmax (Files): Add m4/minmax.m4.
100182         (configure.ac): Add gl_MINMAX.
100184 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100186         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
100187         so that unistd-safer.h (GPL'ed code) need not be included.
100189 2005-05-22  Bruno Haible  <bruno@clisp.org>
100191         * m4/minmax.m4: New file.
100192         Based on a patch by Derek Price <derek@ximbiot.com>.
100194 2005-05-22  Bruno Haible  <bruno@clisp.org>
100196         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
100197         (INT64_MIN): Fix definition.
100198         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
100200         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
100201         NEED_SIGNED_INT_TYPES.
100203         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
100204         HAVE_SYSTEM_INTTYPES.
100206 2005-05-22  Bruno Haible  <bruno@clisp.org>
100208         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
100209         Also include <sys/param.h> if it defines MIN, MAX.
100210         Based on a patch by Derek Price <derek@ximbiot.com>.
100212 2005-05-21  Jim Meyering  <jim@meyering.net>
100214         * modules/fts (Files): Add m4/inttypes-pri.m4.
100215         (Depends-on): Add lstat and remove gettext.  Alphabetize.
100217 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100219         New fts module.
100220         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
100221         (setup_dir, free_dir): New functions.
100222         (enter_dir, leave_dir): Define trivial
100223         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
100224         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
100225         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
100226         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
100227         Move to fts-cycle.c.
100228         (fts_open): Use setup_dir.
100229         (fts_close): Use free_dir.
100230         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
100231         This adds a label and some gotos, but the alternatives were messier.
100232         Check for memory allocation failure when entering a dir.
100233         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
100234         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
100235         (FTS): New member fts_cycle, that is a union that contains the
100236         old active_dir_ht and cycle_state.  All uses changed to mention
100237         fts_cycle.ht and fts_cycle.state.
100238         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
100239         fts.c, with the following changes:
100240         (setup_dir, free_dir): New functions.
100241         (enter_dir): Now returns bool.  Return true if successful, false
100242         if memory exhausted.  All callers changed.
100243         Do not bother partly cleaning up on
100244         memory allocation failure; that is free_dir's job.
100245         However, free ad if hash_insert fails, to avoid memory leak.
100246         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
100247         fts->fts_options to see which union member to use.
100249 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
100252         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
100254 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100256         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
100258 2005-05-20  Jim Meyering  <jim@meyering.net>
100260         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
100261         Now a macro, to pacify GCC.
100263 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
100265         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
100266         of -1.
100268 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
100270         * lib/chown.c (rpl_chown): Return -1 on failure.
100272 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
100274         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
100275         Don't check for stddef.h.
100276         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
100277         don't use its results.
100278         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
100279         since we include them unconditionally.  Don't require
100280         AM_STDBOOL_H, since stdbool is a prerequisite.
100281         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
100282         since we assume C89 or better.
100283         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
100284         as we don't use their results.
100285         Don't check for fchdir, memmove, memset, strrchr, as we use
100286         them unconditionally.
100287         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
100288         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
100290 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
100292         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
100293         Include <stddef.h> unconditionally, since we assume C89 now.
100294         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
100295         * lib/fts.c: Include fts_.h first, to check interface.
100296         Do not include intprops.h; no longer needed.
100297         Include cycle-check.h and hash.h, since fts_.h no longer does.
100298         Remove unnecessary casts of closedir to void.
100299         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
100300         decide whether to decrement nlinks.
100301         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
100302         (FTS): Use struct hash_table * instead of Hash_table, so that
100303         we no longer need to include hash.h here.
100305 2005-05-18  Jim Meyering  <jim@meyering.net>
100307         * modules/dirfd (License): Change to LGPL.  Most of the code
100308         is already in the public domain.
100310 2005-05-18  Jim Meyering  <jim@meyering.net>
100312         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
100313         Reported by Yoann Vandoorselaere.
100315 2005-05-17  Jim Meyering  <jim@meyering.net>
100317         * m4/fts.m4: New file, from coreutils.
100319 2005-05-17  Jim Meyering  <jim@meyering.net>
100321         * lib/fts.c, lib/fts_.h: New files, from coreutils.
100323 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100325         Sync from coreutils.
100326         * m4/unlinkdir.m4: New file.
100328 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100330         Sync from coreutils.
100331         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
100332         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
100333         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
100334         White space changes only.
100335         * lib/makepath.c (make_path): Port to hosts where leading "//" is
100336         special.
100337         * lib/yesno.c: Include getline.h, not ctype.h.
100338         (yesno): Don't remove leading white space; POSIX doesn't allow it.
100339         Use getline to remove arbitrary restriction on response length.
100341 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100343         * config/srclist-update: Spell out "Street" in FSF postal
100344         mail address; this is the style the FSF seems to prefer.
100346         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
100347         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
100348         this updates FSF postal mail address.
100350         Sync from coreutils.
100351         * modules/unlinkdir: New file.
100352         * modules/yesno (Depends-on): Add getline.
100353         * MODULES.html.sh (File system functions): Add unlinkdir.
100355 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100357         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
100358         lib/strsep.h:
100359         Change the initial comment to refer to GPL, not LGPL.
100360         gnulib-tool will change it to LGPL as needed.
100362         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
100363         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
100364         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
100365         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
100366         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
100367         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
100368         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
100369         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
100370         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
100371         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
100372         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
100373         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
100374         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
100375         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
100376         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
100377         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
100378         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
100379         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
100380         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
100381         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
100382         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
100383         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
100384         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
100385         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
100386         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
100387         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
100388         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
100389         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
100390         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
100391         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
100392         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
100393         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
100394         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
100395         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
100396         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
100397         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
100398         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
100399         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
100400         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
100401         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
100402         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
100403         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
100404         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
100405         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
100406         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
100407         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
100408         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
100409         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
100410         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
100411         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
100412         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
100413         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
100414         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
100415         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
100416         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
100417         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
100418         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
100419         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
100420         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
100421         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
100422         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
100423         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
100424         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
100425         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
100426         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
100427         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
100428         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
100429         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
100430         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
100431         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
100432         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
100433         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
100434         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
100435         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
100436         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
100437         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
100438         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
100439         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
100440         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
100441         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
100442         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
100443         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
100444         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
100445         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
100446         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
100447         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
100448         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
100449         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
100450         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
100451         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
100452         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
100453         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
100454         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
100455         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
100456         lib/yesno.c, lib/yesno.h:
100457         Update FSF postal mail address.
100459 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100461         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
100462         tests/test-memmem.c, tests/test-stpncpy.c:
100463         Update FSF postal mail address.
100465 2005-05-13  Bruno Haible  <bruno@clisp.org>
100467         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
100468         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
100469         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
100470         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
100471         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
100472         Add support for 64-bit integers in the MSVC compiler.
100474 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100476         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
100478 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
100480         * gnulib-tool (func_import): Sort and uniquify recommended includes.
100482 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
100484         * doc/getdate.texi (General date syntax): Don't say that date
100485         date --iso-8601=ns generates acceptable dates; it doesn't yet.
100486         Problem reported by Nic Ferrier.
100488 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100490         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
100491         specified in ai_socktype. Fix invalid ai_protocol
100492         check. ai_protocol is usually set to 0 or depending on
100493         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
100494         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
100495         ai_socktype / ai_protocol in the returned addrinfo structure.
100497 2005-05-10  Simon Josefsson  <jas@extundo.com>
100499         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
100500         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
100502 2005-05-10  Karl Berry  <karl@gnu.org>
100504         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
100505         (from http://www.gnu.org/licenses).
100506         * doc/COPYING.LIB: also rename to COPYING.LESSER.
100507         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
100508         fdl.texi suffices.
100510 2005-05-10  Karl Berry  <karl@gnu.org>
100512         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
100513         (COPYING.DOC): remove.
100515         * config/srclist-update: new FSF address.
100517 2005-05-10  Derek Price  <derek@ximbiot.com>
100519         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
100520         possible.
100522 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100523             Bruno Haible  <bruno@clisp.org>
100525         * modules/inet_ntop: New file.
100526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100527         inet_ntop.
100529 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100530             Bruno Haible  <bruno@clisp.org>
100532         * m4/inet_ntop.m4: New file.
100534 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100535             Bruno Haible  <bruno@clisp.org>
100537         * lib/inet_ntop.h: New file.
100538         * lib/inet_ntop.c: New file, from glibc with modifications.
100540 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
100542         * modules/time_r (License): Change to LGPL.
100543         * modules/extensions (License): Change to LGPL.  Actually,
100544         the license is more permissive than that, but currently gnulib-tool
100545         doesn't know how to handle more-permissive licenses.
100547         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
100548         Problem reported by Dave Love.
100550 2005-05-08  Jim Meyering  <jim@meyering.net>
100552         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
100553         blank.
100555 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
100557         * modules/argmatch (Depends-on): Add stdbool.
100558         * modules/backupfile (Depends-on): Likewise.
100559         * modules/chdir-long (Depends-on): Likewise.
100560         * modules/closeout (Depends-on): Likewise.
100561         * modules/cycle-check (Depends-on): Likewise.
100562         * modules/dirname (Depends-on): Likewise.
100563         * modules/fnmatch (Depends-on): Likewise.
100564         * modules/fsusage (Depends-on): Likewise.
100565         * modules/fwriteerror (Depends-on): Likewise.
100566         * modules/getcwd (Depends-on): Likewise.
100567         * modules/getloadavg (Depends-on): Likewise.
100568         * modules/hard-locale (Depends-on): Likewise.
100569         * modules/makepath (Depends-on): Likewise.
100570         * modules/mountlist (Depends-on): Likewise.
100571         * modules/nanosleep (Depends-on): Likewise.
100572         * modules/posixtm (Depends-on): Likewise.
100573         * modules/quotearg (Depends-on): Likewise.
100574         * modules/readtokens (Depends-on): Likewise.
100575         * modules/readtokens0 (Depends-on): Likewise.
100576         * modules/readutmp (Depends-on): Likewise.
100577         * modules/save-cwd (Depends-on): Likewise.
100578         * modules/strftime (Depends-on): Likewise.
100579         * modules/userspec (Depends-on): Likewise.
100580         * modules/utimecmp (Depends-on): Likewise.
100581         * modules/xgetcwd (Depends-on): Likewise.
100582         * modules/xnanosleep (Depends-on): Likewise.
100583         * modules/xstrtod (Depends-on): Likewise.
100584         * modules/yesno (Depends-on): Likewise.
100586 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
100588         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
100589         needless checks.
100591 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100593         Merge from coreutils.  Among other things,
100594         add bulletproofing for cases where stdin, stdout, or stderr are closed.
100595         * lib/fd-safer.c: New file.
100596         * lib/fcntl-safer.h, open-safer.c: Remove.
100597         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
100598         * lib/dup-safer.c: Include unistd-safer.h first.
100599         Don't include errno.h.
100600         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
100601         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
100602         * lib/file-type.c: Rely on file-type.h change.
100603         * lib/getloadavg.c: Include unistd-safer.h.
100604         (getloadavg): Use safer open.
100605         * lib/getusershell.c: Include "stdio-safer.h".
100606         (getusershell): Use safer fopen.
100607         * lib/long-options.c (long_options): Use NULL rather than 0.
100608         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
100609         'free'.
100610         * lib/modechange.c: Likewise.
100611         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
100612         (MODE_DONE): New constant.
100613         (struct mode_change): Remove 'next' member.
100614         (make_node_op_equals): New function; like the old one of the
100615         same name, except it allocates an array.
100616         (mode_compile, mode_create_from_ref): Use it.
100617         (mode_compile): Allocate result as an array, not a linked list.
100618         Parse octal string ourself, so that we catch mistakes like "+0".
100619         (mode_adjust): Arg is an array, not a linked list.
100620         * lib/modechange.c: Include stat-macros.h, xalloc.h.
100621         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
100622         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
100623         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
100624         Remove.  This is now stat-macros.h's job.
100625         (talloc): Remove.  All callers replaced by xalloc, so that
100626         our invokers don't have to worry about reporting memory failures.
100627         (make_node_op_equals): Remove.
100628         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
100629         New constants.
100630         (struct mode_change): Moved here from modechange.h.
100631         (mode_append_entry): Remove.
100632         (mode_compile): Remove MASKED_OPS arg, since it encouraged
100633         apps to have incorrect behavior.  Use simpler algorithm for head
100634         and tail.  Don't futz with umask; that's now the job of mode_adjust.
100635         Detect more invalid usages rather than having somewhat-random behavior.
100636         Don't insert an "a=" action, as that leads to incorrect behavior.
100637         (mode_compile, mode_create_from_ref): Return NULL on error instead
100638         of an enum, since now there's only one way to have an error.  All
100639         callers changed.
100640         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
100641         at the correct time.  Simplify calculation of "+u" and its ilk.
100642         Don't mishandle "+X".
100643         (mode_free): Remove "register" and localize decls.
100644         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
100645         (struct mode_change): Move to modechange.c; callers don't
100646         need to see this stuff.
100647         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
100648         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
100649         (mode_change, mode_adjust): Reflect the new signatures noted above.
100650         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
100651         that might redefine system include files.
100652         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
100653         (my_usleep): Use NULL rather than (void *) 0.
100654         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
100655         Use siginterrupt to specify that system calls should be interrupted.
100656         (rpl_nanosleep): Move initialization of suspended closer to call of
100657         my_usleep.
100658         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
100659         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
100660         (desirable_utmp_entry): New function.
100661         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
100662         using x2nrealloc, to simplify logic.
100663         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
100664         size calculation.  Do not assume utmp file is a regular file.
100665         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
100666         (READ_UTMP_CHECK_PIDS): New constant.
100667         * lib/save-cwd.c: Include unistd-safer.h.
100668         (save_cwd): Use fd_safer.
100669         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
100670         [!_LIBC] Include "stat-macros.h" instead.
100671         * lib/unistd-safer.h (fd_safer): New decl.
100673 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100675         * modules/getloadavg (Depends-on): Add unistd-safer.
100676         * modules/getusershell (Depends-on): Add stdio-safer.
100677         * modules/lstat (Depends-on): Remove xalloc.
100678         * modules/mkstemp (Depends-on): Add stat-macros.
100679         * modules/modechange (Depends-on): Remove xstrtol.
100680         Add stat-macros, xalloc.
100681         * modules/save-cwd (Depends-on): Add unistd-safer.
100682         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
100683         * modules/unistd-safer (Files): Add lib/fd-safer.c
100684         (Makefile.am): Remove lib_SOURCES.
100686         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
100687         Remove fcntl-safer; unistd-safer supersedes it.
100689 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100691         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
100692         AC_HEADER_STAT.
100693         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
100694         (gl_PREREQ_CHOWN): Remove.
100695         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
100696         it.  Don't require AC_HEADER_STAT.
100697         (gl_PREREQ_LSTAT): Remove.
100698         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
100699         Don't require AC_HEADER_STAT.
100700         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
100701         (gl_PREREQ_RMDIR): Remove.
100702         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
100703         mention stat-macros.h or AC_HEADER_STAT, since we'll make
100704         the stat-macros module a prerequisite.
100705         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
100706         * m4/filemode.m4 (gl_FILEMODE): Likewise.
100707         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
100708         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
100709         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
100710         variable names.
100711         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
100712         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
100713         variable prefixes.
100714         * m4/fcntl-safer.m4: Remove.
100715         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
100716         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
100717         Invoke gl_PREREQ_FD_SAFER.
100718         (gl_PREREQ_FD_SAFER): New macro.
100719         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
100720         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
100721         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
100722         Remove duplicate call to AC_LIBOBJ(readutmp).
100723         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
100725         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
100726         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
100728 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100730         * MODULES.html.sh (Misc): Add byteswap.
100732 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100734         * modules/getcwd (Depends-on): Add extensions.
100735         * modules/openat (Depends-on): Likewise.
100737 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100739         * modules/byteswap: New file.
100741 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100743         * m4/byteswap.m4: New file.
100745 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100747         * lib/byteswap_.h: New file.
100749 2005-04-25  Karl Berry  <karl@gnu.org>
100751         * m4/gettext.m4: Update from GNU gettext 0.14.4.
100753 2005-04-25  Albert Chin  <china@thewrittenword.com>
100755         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
100756         Toolkit C bug.
100758 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
100760         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
100761         (func_ln_if_changed): Remove forcibly for no error message
100762         in case file does not exist.
100764 2005-04-19  Simon Josefsson  <jas@extundo.com>
100766         * gnulib-tool (Options): Make --symlink mean --symbolic.
100768 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
100770         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
100772 2005-04-16  Simon Josefsson  <jas@extundo.com>
100774         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
100776 2005-04-15  Simon Josefsson  <jas@extundo.com>
100778         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
100780 2005-04-15  Simon Josefsson  <jas@extundo.com>
100782         * gnulib-tool: Rename --symlink to --symbolic.
100784 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
100786         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
100787         symbolic links to files instead of copying/moving.  Add --aux-dir,
100788         specifying directory relative --dir where auxiliary build tools
100789         are placed.
100791 2005-04-14  Bruno Haible  <bruno@clisp.org>
100793         * modules/allocsa (License): Change to LGPL.
100794         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
100796 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100798         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
100799         that "UTC +1 second" continues to work.  Problem reported
100800         by Dmitry V. Levin.
100801         (relunit_snumber): New rule.
100802         (relunit): Use it.
100804 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100806         * lib/getdate.y (universal_time_zone_table): New constant.
100807         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
100808         universal_time_zone_table.
100809         (lookup_zone): Prefer universal_time_zone_table to
100810         local_time_zone_table, so that "GMT" time stamps are allowed in
100811         London during the summer.  Problem reported by Ian Abbott.
100813 2005-04-12  Jim Meyering  <jim@meyering.net>
100815         * lib/human.c (humblock): Set *options even when returning due to
100816         xstrtoumax conversion failure.  Thanks to a used-uninitialized
100817         warning from gcc-4.
100819 2005-04-09  Jim Meyering  <jim@meyering.net>
100821         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
100822         -Wuninitialized: initialize tm0.tm_year.
100824 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
100826         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
100827         count, since there's no maximum.  All uses changed.
100828         Add member dsts_seen.
100829         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
100830         not being INT_MAX.
100831         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
100832         Use pc_rels_seen to decide whether a date is absolute.
100834         * lib/getdate.y (number): Don't overwrite year.
100835         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
100836         check.
100838 2005-04-02  Simon Josefsson  <jas@extundo.com>
100840         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
100841         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
100843 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
100845         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
100846         where no absolute path name can be longer than PATH_MAX.
100848 2005-03-27  Jim Meyering  <jim@meyering.net>
100850         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
100852 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
100854         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
100855         "one's complement" -> "ones' complement" in comment, as per Knuth.
100856         "value of type" -> "type or expression" in comment.
100857         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
100859 2005-03-26  Jim Meyering  <jim@meyering.net>
100861         Comment nits.
100862         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
100863         Correct typos: s/or/of/.
100865 2005-03-26  Jim Meyering  <jim@meyering.net>
100867         * modules/check-include-files: Move to ../ and rename to...
100868         * check-module: ...this.
100870 2005-03-25  Jim Meyering  <jim@meyering.net>
100872         * modules/xvasprintf (Files): Add xalloc.h.
100874 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
100876         * modules/gettext (Files): config/config.rpath ->
100877         build-aux/config.rpath
100878         * modules/iconv (Files): Likewise.
100879         Problem reported by Oskar Liljeblad.
100881 2005-03-23  Jim Meyering  <jim@meyering.net>
100883         * modules/check-include-files: New script to check for
100884         missing dependencies, multiple includes, etc.
100886         * modules/c-strtold (Depends-on): Add xalloc.
100887         * modules/c-strtod (Depends-on): Add xalloc.
100888         * modules/hash (Depends-on): Add xalloc.
100889         (Files): Remove lib/xalloc.h.
100891         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
100892         * modules/userspec (Files): Add lib/inttostr.h.
100894 2005-03-23  Jim Meyering  <jim@meyering.net>
100896         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
100898 2005-03-22  Jim Meyering  <jim@meyering.net>
100900         * modules/stat-macros: New module.
100901         * modules/canonicalize, modules/euidaccess, modules/file-type,
100902         * modules/filemode, modules/lchown, modules/makepath,
100903         * modules/rmdir, modules/stat: Depend on new stat-macros module
100904         rather than listing lib/stat-macros.h manually.
100905         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
100907 2005-03-22  Jim Meyering  <jim@meyering.net>
100909         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
100911 2005-03-22  Bruno Haible  <bruno@clisp.org>
100913         * config/srclist.txt: Replace target directory 'config' with
100914         'build-aux'.
100915         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
100916         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
100917         ../build-aux/.
100919 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
100921         * modules/chdir-long (Depends-on): Add mempcpy.
100923         * modules/acl, modules/backupfile, modules/c-strtod,
100924         modules/c-strtold, modules/canon-host, modules/canonicalize,
100925         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
100926         modules/exclude, modules/exitfail, modules/file-type,
100927         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
100928         modules/getdate, modules/getline, modules/getpagesize,
100929         modules/getpass, modules/getugroups, modules/group-member,
100930         modules/hard-locale, modules/hash, modules/human, modules/idcache,
100931         modules/inttostr, modules/long-options, modules/makepath,
100932         modules/md5, modules/memcasecmp, modules/memcoll,
100933         modules/modechange, modules/mountlist, modules/path-concat,
100934         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
100935         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
100936         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
100937         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
100938         modules/strftime, modules/strndup, modules/strverscmp,
100939         modules/timespec, modules/unlocked-io, modules/userspec,
100940         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
100941         modules/yesno:
100942         Remove lib_SOURCES line from Makefile.am section, as this is now
100943         done automatically by the corresponding Autoconf macro.
100945 2005-03-21  Jim Meyering  <jim@meyering.net>
100947         Changes imported from coreutils.
100949         * lib/cycle-check.c: Don't include xalloc.h.
100951         * lib/path-concat.c: Don't include assert.h.
100952         (path_concat): Remove assertion that would have triggered
100953         for ABASE starting with more than one slash.
100954         Reported by Andreas Schwab.
100956         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
100957         properly when ABASE is an absolute file name.
100958         Correct the description of this function.
100959         Include <assert.h>.
100960         Add an assertion and a test driver.
100961         This fixes a bug introduced on 2004-07-02.
100962         Andreas Schwab reported the resulting failure of cp --parents:
100963         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
100965 2005-03-21  Jim Meyering  <jim@meyering.net>
100967         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
100968         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
100970 2005-03-21  Jim Meyering  <jim@meyering.net>
100971         and  Paul Eggert  <eggert@cs.ucla.edu>
100973         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
100974         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
100975         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
100976         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
100977         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
100978         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
100979         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
100980         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
100981         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
100982         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
100983         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
100984         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
100985         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
100986         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
100987         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
100988         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
100989         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
100990         for these modules.
100992 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
100994         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
100995         (which shouldn't happen), generate nothing instead of returning 0
100996         immediately, so that nstrftime (NULL, ...) doesn't return 0.
100998 2005-03-16  Bruno Haible  <bruno@clisp.org>
101000         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
101001         HAVE_LONGLONG_64BIT.
101003 2005-03-16  Bruno Haible  <bruno@clisp.org>
101005         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
101006         HAVE_LONGLONG_64BIT.
101008 2005-03-16  Bruno Haible  <bruno@clisp.org>
101010         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
101011         HAVE_LONGLONG_64BIT.
101013 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
101015         * lib/strftime.c (my_strftime): Prepend space to format so that we can
101016         reliably distinguish strftime failure from empty output on POSIX
101017         hosts.
101019 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
101021         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
101022         (iconv_string): Don't guess a size-zero buffer, as that might cause
101023         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
101024         result would be 'too large', where 'too large' is (heuristically)
101025         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
101026         overflow concerns.  This will prevent some unwanted malloc failures
101027         when the inputs are very large.
101029 2005-03-15  Karl Berry  <karl@gnu.org>
101031         * config/srclist.txt (config.rpath): from gettext.
101032         * config/config.rpath: update.
101034 2005-03-15  Bruno Haible  <bruno@clisp.org>
101036         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
101037         to 'negate'.
101039         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
101040         variable.
101042         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
101043         results.
101045 2005-03-14  Simon Josefsson  <jas@extundo.com>
101047         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
101048         <fx@gnu.org>.
101050 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
101052         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
101053         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
101054         intprops.h.
101055         * lib/strtol.c: Likewise.
101057 2005-03-14  Jim Meyering  <jim@meyering.net>
101059         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
101060         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
101061         to be nonzero so that we (and caller) can detect the difference
101062         between a valid zero-length expansion and an error return, even
101063         when the underlying strftime fails before writing anything into
101064         that location.
101066 2005-03-14  Bruno Haible  <bruno@clisp.org>
101068         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
101069         Update from GNU gettext 0.14.3.
101071 2005-03-10  Jim Meyering  <jim@meyering.net>
101073         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
101075 2005-03-10  Jim Meyering  <jim@meyering.net>
101077         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
101078         so that this module works on systems without fchdir.
101080 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
101082         Factor int-properties macros into a single file, except for
101083         glibc-related files.
101084         * lib/intprops.h: New file.
101085         * lib/getloadavg.c: Include it instead of limits.h.
101086         (INT_STRLEN_BOUND): Remove.
101087         * lib/human.c: Include intprops.h.
101088         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
101089         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
101090         302/1000.
101091         * lib/inttostr.h: Include intprops.h instead of limits.h.
101092         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
101093         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
101094         for consistency with intprops.h.
101095         (time_t_is_integer, twos_complement_arithmetic): Use them.
101096         * lib/sig2str.h: Include <signal.h>, intprops.h.
101097         (INT_STRLEN_BOUND): Remove.
101098         * lib/strftime.c (TYPE_SIGNED): Remove.
101099         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
101100         * lib/strtol.c: Adjust comments to match intprops.h.
101101         * lib/userspec.c: Include intprops.h.
101102         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
101103         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
101104         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
101105         instead of rolling our own expressions.
101106         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
101108         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
101109         instead of int.
101110         (my_strftime): Do not mishandle years close to INT_MAX, by doing
101111         the right thing even if adding 1900 would overflow.  Similarly
101112         for tm_mon + 1 and tm_yday + 1.
101113         Make %Y always equivalent to %C%y, and similarly for %G and %g.
101114         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
101115         (DO_SIGNED_NUMBER): New macro.
101116         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
101118 2005-03-07  Bruno Haible  <bruno@clisp.org>
101120         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
101122 2005-03-07  Bruno Haible  <bruno@clisp.org>
101124         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
101126 2005-03-04  Derek R. Price  <derek@ximbiot.com>
101128         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
101129         (func_import): Only replace files via --import when they have actually
101130         changed.
101132 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101134         * m4/mmap-anon.m4: New file.
101135         * m4/pagealign_alloc.m4: New file.
101137 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101138             Bruno Haible  <bruno@clisp.org>
101140         * modules/pagealign_alloc: New file.
101141         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
101143 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101144             Bruno Haible  <bruno@clisp.org>
101146         * lib/pagealign_alloc.h: New file.
101147         * lib/pagealign_alloc.c: New file.
101149 2005-03-03  Bruno Haible  <bruno@clisp.org>
101151         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
101152         Use an all-permissive copyright notice, recommended by RMS.
101154 2005-03-02  Bruno Haible  <bruno@clisp.org>
101156         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
101157         of AIX, the replacement has to be done only after <string.h> is
101158         included, therefore not in config.h. stpncpy.h does the replacement,
101159         and stpncpy.c uses it.
101161 2005-03-02  Bruno Haible  <bruno@clisp.org>
101163         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
101164         stpncpy.c uses it.
101166 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101168         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
101169         The workaround isn't strictly needed for POSIX conformance, and
101170         it's too much of a pain to configure and maintain.  We'll ask
101171         people to fix their kernels instead.
101172         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
101173         (NANOSLEEP_BUG_WORKAROUND): Remove.
101174         (xnanosleep): Remove the workaround.
101176 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101178         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
101179         Reported by Derek Price.
101180         (Include): Add "timespec.h".
101182         * modules/xnanosleep (Depends-on): Remove gethrxtime.
101184 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101186         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
101187         to detect nanosleep bug.
101189 2005-03-01  Bruno Haible  <bruno@clisp.org>
101191         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
101193 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101195         * modules/gethrxtime: New file.
101196         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
101197         (Depends-on): Add gethrxtime.
101198         (configure.ac): Add gl_XNANOSLEEP.
101199         (Makefile.am): Remove lib_SOURCES line.
101201 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101203         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
101204         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
101206 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101208         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
101209         * lib/timespec.h (gettime): Return void, since it always
101210         succeeds now.  All uses changed.
101211         * lib/gettime.c (gettime): Likewise.
101212         [HAVE_NANOTIME]: Prefer nanotime.
101213         Assume gettimeofday succeeds, as POSIX requires.
101214         Assime time () succeeds, since other code already does.
101215         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
101216         (timespec_subtract): Remove.
101217         (NANOSLEEP_BUG_WORKAROUND): New constant.
101218         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
101219         things considerably.  Use it only on GNU/Linux hosts, since the
101220         workaround shouldn't be needed elsewhere.
101222 2005-02-24  Bruno Haible  <bruno@clisp.org>
101224         * modules/gettext (Files): Add m4/glibc2.m4.
101226 2005-02-24  Bruno Haible  <bruno@clisp.org>
101228         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
101229         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
101230         * m4/progtest.m4:
101231         Update from GNU gettext 0.14.2.
101232         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
101234 2005-02-24  Bruno Haible  <bruno@clisp.org>
101236         * lib/localcharset.c: Update from GNU gettext 0.14.2.
101237         * lib/config.charset: Update from GNU gettext 0.14.2.
101239 2005-02-24  Bruno Haible  <bruno@clisp.org>
101241         * lib/gettext.h: Update from GNU gettext 0.14.2.
101243 2005-02-23  Simon Josefsson  <jas@extundo.com>
101245         * m4/iconvme.m4: New file.
101247 2005-02-23  Jim Meyering  <jim@meyering.net>
101249         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
101250         change.
101251         Thanks to Bruno Haible for catching it.
101253 2005-02-22  Simon Josefsson  <jas@extundo.com>
101255         * modules/iconvme: New file.
101257         * MODULES.html.sh: Add iconvme.
101259 2005-02-22  Simon Josefsson  <jas@extundo.com>
101261         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
101263 2005-02-22  Simon Josefsson  <jas@extundo.com>
101265         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
101267 2005-02-22  Jim Meyering  <jim@meyering.net>
101269         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
101270         s/ifndef/ifdef/.
101272 2005-02-20  Neil Conway  <neilc@samurai.com>
101274         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
101275         returned by OSX/Darwin if the specified buffer is not large
101276         enough for the hostname.
101278 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101280         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
101281         pass it to _help, otherwise the latter coredumps trying to
101282         dereference state.root_argp.
101284 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101286         * modules/chdir-long (Depends-on): Add memrchr.
101287         * modules/memrchr (Files): Add lib/memrchr.h.
101288         (Include): "memrchr.h".
101290 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101292         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
101294 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101296         * lib/memrchr.h: New file.
101297         * lib/chdir-long.c: Include it.
101298         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
101299         Don't bother including stddef.h.
101301 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
101303         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
101304         inclusion.
101305         Include <sys/types.h>, for dev_t.
101306         (ME_DUMMY, ME_REMOTE): Move from here....
101307         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
101308         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
101309         Dmitry V. Levin.
101310         Include mountlist.h first, to test the interface.
101312 2005-01-29  Bruno Haible  <bruno@clisp.org>
101314         * lib/progname.c (program_name): Initialize.
101315         Needed when linking statically on MacOS X.
101317 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
101319         Sync from coreutils.
101320         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
101321         (Depends-on): Add c-strtod.
101322         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
101324 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
101326         Sync from coreutils.
101327         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
101329         Remove files that are specific to coreutils.
101330         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
101332 2005-01-28  Bruno Haible  <bruno@clisp.org>
101334         * modules/javacomp: New file.
101335         * MODULES.html.sh (Java): Add javacomp.
101337 2005-01-28  Bruno Haible  <bruno@clisp.org>
101339         * m4/javacomp.m4: New file, from GNU gettext.
101341 2005-01-28  Bruno Haible  <bruno@clisp.org>
101343         * lib/javacomp.sh.in: New file, from GNU gettext.
101344         * lib/javacomp.h: New file, from GNU gettext.
101345         * lib/javacomp.c: New file, from GNU gettext.
101347 2005-01-26  Simon Josefsson  <jas@extundo.com>
101349         * lib/gai_strerror.c: Use GPL in header.
101351 2005-01-26  Bruno Haible  <bruno@clisp.org>
101353         * modules/javaexec: New file.
101354         * MODULES.html.sh (Java): Add javaexec.
101356 2005-01-26  Bruno Haible  <bruno@clisp.org>
101358         * m4/javaexec.m4: New file, from GNU gettext.
101360 2005-01-26  Bruno Haible  <bruno@clisp.org>
101362         * lib/javaexec.sh.in: New file, from GNU gettext.
101363         * lib/javaexec.h: New file, from GNU gettext.
101364         * lib/javaexec.c: New file, from GNU gettext.
101366 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101368         * modules/lchown (Depends-on): Remove lchown.h
101370 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101372         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
101373         must be defined if the header file was not found, in order
101374         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
101376 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101378         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
101379         initializers for struct pentry_state.
101380         (__argp_error): Check return value of __asprintf
101381         (__argp_failure): Translate error message
101383         * lib/argp-parse.c: Removed braces around the expansion of N_()
101385 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101387         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
101388         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
101389         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
101390         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
101391         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
101392         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
101393         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
101394         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
101395         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
101396         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
101397         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
101398         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
101399         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
101400         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
101401         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
101402         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
101403         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
101404         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
101405         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
101406         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
101407         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
101408         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
101409         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
101410         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
101411         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
101412         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
101413         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
101414         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
101415         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
101416         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
101417         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
101418         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
101419         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
101420         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
101421         xstrtol.m4, xstrtoumax.m4, yesno.m4:
101422         Use an all-permissive copyright notice, recommended by RMS.
101424 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
101426         * modules/chdir-long (Depends-on): Remove mempcpy.
101428 2005-01-21  Jim Meyering  <jim@meyering.net>
101430         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
101431         same value as for Solaris 9.
101433         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
101434         component length.  This included changing the parameter to be
101435         of type `char *' rather than `char const *'.
101436         * lib/chdir-long.h (chdir_long): Update prototype.
101438         * lib/openat.c (fdopendir, fstatat): New functions.
101439         * lib/openat.h: Include headers required for use of DIR and struct
101440         stat.
101441         [AT_SYMLINK_NOFOLLOW]: Define.
101442         (fdopendir, fstatat): Add prototypes.
101444 2005-01-21  Bruno Haible  <bruno@clisp.org>
101446         * modules/classpath: New file.
101447         * MODULES.html.sh (Java): Add classpath.
101449 2005-01-21  Bruno Haible  <bruno@clisp.org>
101451         * lib/classpath.h: New file, from GNU gettext.
101452         * lib/classpath.c: New file, from GNU gettext.
101454 2005-01-20  Simon Josefsson  <jas@extundo.com>
101456         * modules/version-etc-fsf: New file.
101458 2005-01-20  Simon Josefsson  <jas@extundo.com>
101460         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
101461         * lib/version-etc.c: Remove version_etc_copyright.
101462         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
101463         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
101465 2005-01-20  Simon Josefsson  <jas@extundo.com>
101467         * lib/base64.h (isbase64): Add.
101469         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
101470         using a unsigned prototype, don't inline.
101471         (base64_decode): Use it.
101473 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101475         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
101476         it.
101478 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101480         * lib/save-cwd.c (save_cwd): Remove code to support the case
101481         where fchdir is missing or flaky.
101483 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101485         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
101487 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
101489         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
101490         AC_LIBSOURCES now does this.
101491         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
101492         with new ullong_max module.
101494 2005-01-19  Bruno Haible  <bruno@clisp.org>
101496         * modules/sh-quote: New file.
101497         * MODULES.html.sh (Executing programs): Add sh-quote.
101499 2005-01-19  Bruno Haible  <bruno@clisp.org>
101501         * lib/sh-quote.h: New file, from GNU gettext.
101502         * lib/sh-quote.c: New file, from GNU gettext.
101504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101506         Merge from coreutils.
101507         * m4/ullong_max.m4: New file.
101508         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
101509         (gl_MACROS): Assume localeconv exists.
101511 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101513         Merge changes from coreutils, as described below in several
101514         changelogs dated today.
101516         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
101517         (O_DIRECTORY): Remove; not needed here, since "." must be
101518         a directory.  All uses removed.
101519         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
101520         universal on Suns, and we also need to test for IRIX.
101521         Revamp code to use 'if' rather than '#if'.
101522         Avoid unnecessary comparison of cwd->desc to 0.
101524         * lib/utimens.c (futimens): Robustify the previous patch, by checking
101525         for known valid error numbers rather than observed invalid ones.
101527 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101529         * modules/ullong_max: New file.
101531         * modules/chdir-long, modules/openat: New files.
101532         * modules/save-cwd (Depends-on): Depend on chdir-long.
101533         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
101535 2005-01-18  Jim Meyering  <jim@meyering.net>
101537         Merge from coreutils.
101538         * m4/chdir-long.m4, m4/openat.m4: New files.
101539         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
101540         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
101541         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
101542         is sane and DOES follow symlinks.  Besides, testing 20 different
101543         systems found no broken chown implementations.
101544         Prompted by a change in rsync's copy of this macro.
101545         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
101547         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
101549         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
101550         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
101551         NULL-means-set-to-current-time semantics.
101552         Remove temporary file immediately, rather than waiting
101553         for configure's at-exit trap code to do it.
101555 2005-01-18  Jim Meyering  <jim@meyering.net>
101557         * lib/version-etc.c (version_etc_copyright): Update copyright date.
101559         * lib/utimens.c (futimens): Account for the fact that futimes
101560         can also fail with errno == ENOSYS or errno == ENOENT.
101561         Patch from Dmitry V. Levin.
101563         Change the name of the robust chdir function from chdir to chdir_long.
101564         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
101565         (restore_cwd): Use chdir_long, not chdir.
101566         * lib/chdir-long.c: Renamed from chdir.c.
101567         * lib/chdir-long.h: Renamed from chdir.h.
101568         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
101569         Hurd.
101571 2005-01-18  Bruno Haible  <bruno@clisp.org>
101573         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
101574         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
101575         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
101576         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
101577         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
101578         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
101579         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
101580         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
101581         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
101582         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
101583         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
101584         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
101585         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
101586         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
101587         Use an all-permissive copyright notice, recommended by RMS.
101589 2005-01-18  Bob Proulx  <bob@proulx.com>
101591         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
101592         simplify offsetof() macro construct to avoid compile failure with
101593         native HP-UX 11.0 ANSI C compiler.
101595 2005-01-17  Bruno Haible  <bruno@clisp.org>
101597         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
101598         redundant because stpncpy.m4 takes care of it.
101600 2005-01-17  Bruno Haible  <bruno@clisp.org>
101602         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
101604 2005-01-17  Bruno Haible  <bruno@clisp.org>
101606         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
101607         used.
101609 2005-01-17  Bruno Haible  <bruno@clisp.org>
101611         * lib/fwriteerror.h (fwriteerror): Change specification to include
101612         fclose.
101613         * lib/fwriteerror.c: Include <stdbool.h>.
101614         (fwriteerror): At the end, close the file stream. Record whether
101615         stdout was already closed.
101617 2005-01-17  Bruno Haible  <bruno@clisp.org>
101619         * lib/execute.c (environ): Declare if needed.
101620         * lib/pipe.c (environ): Likewise.
101621         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
101623 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101625         * modules/argp: Depend on vsnprintf
101627 2005-01-10  Jim Meyering  <jim@meyering.net>
101629         * modules/closeout (Depends-on): Add atexit.
101631 2005-01-06  Bruno Haible  <bruno@clisp.org>
101633         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
101635 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
101637         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
101638         definitions to be after all include files, to avoid collisions.
101639         Problem reported by Bob Proulx.
101641 2005-01-04  Jim Meyering  <jim@meyering.net>
101643         Changes imported from coreutils.
101644         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
101645         as the mkstemp template, use a temporary directory and an
101646         8.3-friendly template to avoid trouble on systems like DJGPP.
101647         Reported by Juan M. Guerrero via Stepan Kasal.
101648         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
101649         close. Remove the temporary directory right away, rather than waiting
101650         for configure's at-exit trap code to do it.
101651         Suggestion from Stepan Kasal.
101653 2005-01-01  Simon Josefsson  <jas@extundo.com>
101655         * gnulib-tool: Print #include directives when --import'ing.
101657 2004-12-28  Simon Josefsson  <jas@extundo.com>
101659         * tests/test-base64.c: Include required header files.  Remove
101660         unused variables.
101662 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101664         * modules/error (Depends-on): Remove gettext.
101666 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101668         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
101669         not needed.  This removes a dependency on the gettext module.
101670         [defined _LIBC]: Do not include <libintl.h>; not needed.
101672 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101674         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
101675         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
101677 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101679         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
101680         HAVE_DECL_STRTOLD.
101682 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101684         * modules/getdate (Depends-on): Remove alloca-opt.
101686 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101688         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
101690 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101692         * lib/argp-parse.c: Include <stddef.h>.
101693         (alignof, alignto): New macros.
101694         (parser_init): Don't assume that void * is aligned sufficiently
101695         for struct option.
101697         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
101698         need to extend the stack.
101699         (YYINITDEPTH): New macro, so that the initial stack isn't overly
101700         large.
101702 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101704         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
101706 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101708         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
101709         (2004-10-24) change.  Apparently this was a false alarm.
101711         * modules/getdate: Depend on alloca-opt, not alloca.
101713 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101715         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
101716         Remove now-obsolete comment about AIX.
101717         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
101718         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
101719         (YYMAXDEPTH): New macro.
101721 2004-12-18  Simon Josefsson  <jas@extundo.com>
101723         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
101725 2004-12-18  Bruno Haible  <bruno@clisp.org>
101727         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
101729 2004-12-18  Bruno Haible  <bruno@clisp.org>
101731         * lib/fatal-signal.c (fatal_signals): Make non-const.
101732         (init_fatal_signals): New function.
101733         (uninstall_handlers, install_handlers): Ignore signals that were set to
101734         SIG_IGN.
101735         (at_fatal_signal): Call init_fatal_signals.
101736         (init_fatal_signal_set): Likewise. Ignore signals that were set to
101737         SIG_IGN.
101738         Reported by Paul Eggert.
101740 2004-12-18  Bruno Haible  <bruno@clisp.org>
101742         * doc/alloca.texi: New file.
101743         * doc/alloca-opt.texi: New file.
101745 2004-12-17  Jim Meyering  <jim@meyering.net>
101747         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
101748         Otherwise, install-sh could exit with improper exit status when
101749         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
101751 2004-12-16  Simon Josefsson  <jas@extundo.com>
101753         * tests/test-base64.c: Add license.
101755 2004-12-15  Stepan Kasal  <address@hidden>
101757         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
101759 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
101761         * modules/getcwd (Files): Add m4/d-ino.m4.
101762         Suggested by Mark D. Baushke.
101764 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101766         * lib/getdate.y (textint): New member "negative".
101767         (time_zone_hhmm): New function.
101768         Expect 14 shift-reduce conflicts, not 13.
101769         (o_colon_minutes): New rule.
101770         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
101771         (yylex): Set the "negative" member of signed numbers.
101773 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101775         * doc/getdate.texi (Time of day items, Time zone items):
101776         Describe new formats +00:00, UTC+00:00.
101778 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
101780         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
101781         spurious "-l"s.  Problem reported by Stepan Kasal.
101783 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
101785         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
101786         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
101788 2004-12-04  Simon Josefsson  <jas@extundo.com>
101790         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
101791         Vandoorselaere <yoann@prelude-ids.org>.
101793 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101795         Changes imported from coreutils.
101796         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
101797         exist.
101798         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
101800 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101802         Changes imported from coreutils.
101803         * lib/hard-locale.c: Assume <locale.h> exists.
101804         Include "strdup.h".
101805         (GLIBC_VERSION): New macro.
101806         (hard_locale): Assume setlocale exists.
101807         Rewrite to avoid #ifdef.
101808         Use strdup rather than malloc + strcpy.
101809         * lib/human.c: Assume <locale.h> exists.
101810         (human_readable): Assume localeconv exists.
101812 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101814         * modules/hard-locale (Depends-on): Add strdup.
101816 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
101818         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
101819         convert T2, not T.  (Imported from libc.)
101821 2004-11-30  Simon Josefsson  <jas@extundo.com>
101823         * modules/restrict (License): Change to LGPL.
101825 2004-11-30  Simon Josefsson  <jas@extundo.com>
101827         * m4/restrict.m4: Add copyright and copying conditions.
101829 2004-11-30  Simon Josefsson  <jas@extundo.com>
101831         * m4/base64.m4: New file.
101833 2004-11-30  Simon Josefsson  <jas@extundo.com>
101835         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
101836         base64.
101838         * tests/test-base64.c: New file.
101840         * modules/base64: New file.
101842 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
101844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
101845         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
101847         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
101849 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
101851         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
101852         (__getcwd.c): Don't restore errno; glibc doesn't.
101853         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
101854         first, falling back to our code only if its results look suspicious.
101855         Ensure that the resulting buffer is only as large as necessary.
101857         * lib/readutmp.c: Include readutmp.h first.
101858         Include <errno.h>, since readutmp.h no longer does that.
101859         * lib/readutmp.h: Don't include <errno.h>,
101860         <sys/param.h>, <time.h>; not needed to establish interface.
101861         (errno): Remove decl.
101862         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
101863         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
101864         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
101866 2004-11-28  Simon Josefsson  <jas@extundo.com>
101868         * lib/base64.h, base64.c: New file.
101870 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
101872         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
101874 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
101876         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
101877         (Depends-on): Remove pathmax, same.  Add mempcpy.
101878         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
101879         (Makefile.am): Append getcwd.h to lib_SOURCES.
101880         (Include): Add getcwd.h.
101881         (Maintainer): Change from Jim Meyering to "all, glibc",
101882         since getdate now uses intended-for-glibc code.
101883         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
101884         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
101886 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
101888         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
101889         HP's ANSI C compiler.
101890         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
101891         Declaring int functions causes warnings on some modern systems and
101892         shouldn't be needed to compile on ancient ones.
101893         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
101894         defined.
101896         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
101897         with the following changes.
101898         (__set_errno): Parenthesize properly.
101899         Include <stdbool.h>.
101900         (MIN, MAX, MATCHING_INO): New macros.
101901         (__getcwd): Define with prototype, not K&R form.
101902         Use heuristics to allocate default buffer on stack if possible.
101903         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
101904         behavior, and to avoid the PATH_MAX limit when computing
101905         ../../../../...
101906         Use MATCHING_INO to compare inode number to file.
101907         Check for arithmetic overflow in size calculations.
101908         Fix bug in reallocation of dot array that caused getcwd to fail
101909         on directories nested deeper than 75.
101910         Be more careful about saving errno on error.
101911         Do not use realloc; use only free+malloc, as this is a bit
101912         more flexible and avoids a needless copy operation.
101913         Do not inspect st_dev and st_ino for symbolic links; POSIX
101914         doesn't specify the latter.
101915         Check for closedir errors.
101916         Avoid needless casts.
101917         Use "#ifdef weak_alias" around weak_alias, to be like other
101918         glibc code.
101919         The following changes to getcwd.c have effect only when used in
101920         gnulib; they have no effect inside glibc proper.
101921         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
101922         as alloca isn't used.
101923         (alloca, __alloca): Likewise.
101924         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
101925         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
101926         unconditionally, as gnulib assumes C89 or better.
101927         Do not include <sys/param.h>.
101928         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
101929         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
101930         better.
101931         (NULL) [!defined NULL]: Remove; we assume C89 or better.
101932         Include <dirent.h> in a way that is compatible with modern Autoconf.
101933         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
101934         New macros, if not already defined.
101935         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
101936         Use "_LIBC", not "defined _LIBC", for consistency.
101937         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
101938         a mempcpy module.
101939         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
101940         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
101941         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
101942         credit only to Jim Meyering and adjust the copyright dates.
101943         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
101944         <stdlib.h>, <unistd.h>, "pathmax.h".
101945         Instead, include "xgetcwd.h" (first) and "getcwd.h".
101946         (INITIAL_BUFFER_SIZE): Remove.
101947         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
101949 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
101951         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
101952         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
101953         Use the _ONCE methods, for efficiency.
101954         Check for fcntl.h.  In test program, include <errno.h>
101955         and <fcntl.h> if available.  Remove old K&R cruft from
101956         test program.  Check for common errors in GNU/Linux,
101957         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
101958         don't do AC_LIBOBJ, as that's getcwd.m4's job.
101959         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
101960         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
101961         name accordingly.
101962         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
101963         accommodate new getcwd.c.
101964         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
101965         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
101966         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
101967         that's all we need now.
101969 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101971         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
101972         argp-parse.c depends on getopt internals, that means we should
101973         always use our getopt, to be on the safe side.
101974         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
101975         order not to spoil the result of an eventual previous invocation
101976         of gl_GETOPT_SUBSTITUTE.
101978 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101980         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
101981         redefinition warnings. To avoid them, include the defines
101982         in `#if !defined __need_getopt ... #endif'. The only place
101983         where __getopt_argv_const is used is in definitions
101984         of getopt_long and getopt_long_only below, which are as well
101985         protected by `#ifndef __need_getopt'.
101986         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
101987         __need_getopt after including <stdio.h> and <unistd.h> These
101988         headers might have defined it.
101990 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
101992         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
101994 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
101996         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
101997         (futimens): New function, which uses futimes if available.
101998         (futimens, utimens): Support timespec==NULL, with same semantics
101999         as utime and utimens.
102000         * lib/utimens.h (futimens): New decl.
102002 2004-11-23  Jim Meyering  <jim@meyering.net>
102004         * lib/getopt_.h: Remove trailing blanks.
102006 2004-11-23  Jim Meyering  <jim@meyering.net>
102008         * lib/__fpending.c: Add comment.
102010 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
102012         * modules/canonicalize (Depends-on): Add xreadlink.
102013         Problem reported by James Youngman.
102015 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102017         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
102018         New macros.
102019         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
102020         optopt): Use them instead of invoking ## directly; otherwise, the
102021         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
102023 2004-11-19  Bruno Haible  <bruno@clisp.org>
102025         * lib/strtok_r.c: Move comments from here...
102026         * lib/strtok_r.h: ... to here.
102028 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102030         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
102031         implementations that mishandle size_t overflow.
102033 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102035         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
102036         might fail.  Problem reported by Yoann Vandoorselaere.
102037         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
102038         implementations that mishandle size_t overflow.
102040 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102042         * modules/canon-host (Depends-on): Add strdup.
102044 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102046         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
102048 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102050         * lib/canon-host.c: Include "strdup.h".
102051         (canon_host): Use getaddrinfo if available, so that IPv6 works.
102052         Use strdup instead of malloc/strcpy to duplicate strings.
102054         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
102055         (human_space_before_unit): New constant.
102056         * lib/human.c (human_readable): Support it.
102058         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
102059         (xgetcwd): Set errno correctly when failing.
102060         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
102061         the failure is actually due to a PATH_MAX problem.
102063         Further getopt changes to make it more likely that glibc will
102064         buy the changes back.
102065         * lib/getopt.c (POSIXLY_CORRECT): New constant.
102066         (getopt): Use it, so to preserve glibc semantic
102067         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
102068         when compiling for libc.
102069         * lib/getopt_.h (__getopt_argv_const): Bring it back.
102070         (getopt_long, getopt_long_only): Use it.
102072         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
102073         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
102074         (getopt): Argv is now char * const *, as per standard.
102075         (_getopt_internal_r, _getopt_internal): Argv is now char **,
102076         not char *__getopt_argv_const *.
102077         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
102078         _getopt_long_only_r): Likewise.
102079         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
102080         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
102081         _getopt_long_r, _getopt_long_only_r): Likewise.
102082         * lib/getopt_.h (__getopt_argv_const): Remove.
102083         (getopt): Argv is now char * const *, as per standard.
102085         * lib/getdate.y (tORDINAL): New token.
102086         (day, relunit): Allow it for relative times.
102087         (relative_time_table): Use tORDINAL for ordinals.
102089 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102091         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
102092         Document that "second" isn't allowed as an ordinal number.
102094 2004-11-16  Jim Meyering  <jim@meyering.net>
102096         * modules/closeout (Depends-on): Add fpending.
102098 2004-11-15  Jim Meyering  <jim@meyering.net>
102100         * lib/closeout.c: Include "__fpending.h" once again.
102101         Include <stdbool.h>.
102102         (close_stdout): Don't fail just because stdout was closed initially,
102103         since some programs don't write to stdout in the normal course of
102104         operation (other than --version and --help), and we don't want this
102105         function to make e.g. `touch file >&-' fail.
102106         But do fail if it was closed and someone has tried to write to it.
102107         E.g., `printf foo >&-' must fail.
102109 2004-11-13  Jim Meyering  <jim@meyering.net>
102111         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
102113 2004-11-12  Simon Josefsson  <jas@extundo.com>
102115         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
102116         small doc fix is still pending.
102118 2004-11-11  Simon Josefsson  <jas@extundo.com>
102120         * modules/strtok_r: New file.
102122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102123         strtok_r.
102125 2004-11-11  Simon Josefsson  <jas@extundo.com>
102127         * m4/strtok_r.m4: New file.
102129         * m4/getopt.m4: Replace opterr.
102131 2004-11-11  Simon Josefsson  <jas@extundo.com>
102133         * lib/strtok_r.h, strtok_r.c: New file.
102135 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
102137         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
102138         of replacing opterr, getopt, etc.  This should handle the
102139         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
102141 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
102143         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
102144         we can stop lying to compilers about the constness of argv when we
102145         are compiled outside glibc.
102146         (getopt, getopt_long, getopt_long_only): Use it.
102147         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
102148         _getopt_internal, getopt): Likewise.
102149         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
102150         _getopt_long_only_r): Likewise.
102151         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
102152         _getopt_long_r, _getopt_long_only_r): Likewise.
102154         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
102155         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
102156         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
102157         the other external symbols.
102158         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
102159         declaration, since the above renaming now works around collisions.
102161 2004-11-11  Jim Meyering  <jim@meyering.net>
102163         * lib/linebreak.c: Remove trailing blanks.
102164         * lib/alloca_.h: Likewise.
102165         * lib/acosl.c: Likewise.
102166         * lib/euidaccess.c: Likewise.
102167         * lib/allocsa.h: Likewise.
102169 2004-11-10  Simon Josefsson  <jas@extundo.com>
102171         * m4/getaddrinfo.m4: New file.
102173 2004-11-10  Simon Josefsson  <jas@extundo.com>
102175         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
102177 2004-11-10  Simon Josefsson  <jas@extundo.com>
102179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102180         getaddrinfo.
102182         * modules/getaddrinfo: New file.
102184 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102186         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
102188 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102190         * lib/mktime.c (SHR): New macro, which is a portable
102191         substitute for >> that should work even on Crays.
102192         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
102193         Problem reported by Mark D. Baushke in
102194         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
102195         * lib/getdate.y (SHR): Likewise.
102196         (tm_diff): Use it.
102197         * lib/strftime.c (SHR): Likewise.
102198         (tm_diff): Use it.
102199         * lib/quotearg.c (struct quoting_options): Use unsigned int for
102200         quote_these_too, so that right shifts are well defined.  All uses
102201         changed.
102203 2004-11-10  Jim Meyering  <jim@meyering.net>
102205         Ensure that no close failure goes unreported.
102206         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
102207         return early when it seems there's nothing to flush.
102208         Don't include __fpending.h.
102210 2004-11-10  Jim Meyering  <jim@meyering.net>
102212         * modules/closeout (Depends-on): Remove fpending.
102214 2004-11-10  Jim Meyering  <jim@meyering.net>
102216         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
102218 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102220         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
102221         gl_FUNC_STRFTIME.
102222         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
102223         and AC_REQUIRE when possible, to avoid duplicate checks.
102224         Check for <wchar.h>.
102226 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102228         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
102230 2004-11-09  Bruno Haible  <bruno@clisp.org>
102232         * m4/sockpfaf.m4: New file.
102234 2004-11-05  Bruno Haible  <bruno@clisp.org>
102236         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
102237         Reported by Mark D. Baushke <mdb@cvshome.org>.
102239 2004-11-04  Bruno Haible  <bruno@clisp.org>
102241         2004-09-11  Bruno Haible  <bruno@clisp.org>
102242                 * allocsa.valgrind: New file.
102243         2004-02-06  Bruno Haible  <bruno@clisp.org>
102244                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
102245                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
102246                 Reported by Christopher Seip <chris.seip@hp.com>.
102248 2004-11-04  Bruno Haible  <bruno@clisp.org>
102250         * modules/allocsa (Files): Add lib/allocsa.valgrind.
102251         (Makefile.am): Distribute it.
102253 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
102255         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
102256         with errno == ERANGE if the buffer is too small.
102257         Problem reported by Mark D. Baushke.
102259 2004-11-03  Albert Chin  <china@thewrittenword.com>
102260             Paul Eggert  <eggert@cs.ucla.edu>
102262         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
102263         equivalent, substitute $ac_type for equivalent type rather than
102264         blindly using uint32_t *always* which won't work if uint32_t is not
102265         available.  Define _UINT32_T to work around typedef of uint32_t if
102266         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
102267         2.5.1.
102269 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102271         * m4/jm-macros.m4: Sync from coreutils.
102272         (gl_MACROS): Check for mbrlen, for pathchk.
102273         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
102275 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102277         * lib/xreadlink.c (MAXSIZE): New macro.
102278         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
102279         size does not exceed MAXSIZE.  Avoid cast.
102280         As suggested by Mark D. Baushke in
102281         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
102282         if readlink fails with buffer size just under MAXSIZE, try again
102283         with MAXSIZE.
102285 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102287         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
102289 2004-11-02  Derek R. Price  <derek@ximbiot.com>
102290         and  Paul Eggert  <eggert@cs.ucla.edu>
102292         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
102293         (get_date): Overparenthesize to avoid GCC warning.
102295 2004-11-02  Bruno Haible  <bruno@clisp.org>
102297         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
102298         returns void.
102300 2004-11-02  Bruno Haible  <bruno@clisp.org>
102302         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
102303         function returns void.
102305 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
102307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
102308         fflush_unlocked, flockfile, funlockfile, funlockfile,
102309         fputs_unlocked, putc_unlocked.
102311 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
102313         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
102314         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
102315         already declared.
102317 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102319         * modules/getdate (Files): Add doc/getdate.texi.
102320         (Depends-on): Add setenv, xalloc.
102322 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102324         * lib/getdate.y: Add support for TZ="foo" within a date string.
102325         Fix some bugs near time_t boundaries.  Reject dates with
102326         out-of-range components, e.g., "Sept 31".
102327         Include <stdlib.h>, "setenv.h", "xalloc.h".
102328         (ISDIGIT_LOCALE): Remove; unused.
102329         Note that the TZ and time functions used here are not reentrant.
102330         (mktime_ok, get_tz): New functions.
102331         (TZBUFSIZE): New constant.
102332         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
102333         This requires that we sometimes generate our own TZ="XXX..." setting.
102335 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102337         * doc/getdate.texi: New file, from coreutils with modifications for
102338         the new TZ parsing.
102340 2004-10-27  Derek R. Price  <derek@ximbiot.com>
102342         * lib/mktime.c (not_equal_tm): Remove redundant check.
102344 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102346         * modules/regex (lib_SOURCES): Add regex.c.
102347         Reported by James Youngman in
102348         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
102350 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102352         * lib/getdate.y: Use Bison 1.875 features, and some minor
102353         code cleanups.  This change does not affect semantics.
102354         Don't include <stdlib.h>; no longer needed.
102355         Don't include unlocked-io.h; only the "#if TEST" code uses
102356         stdio, and performance isn't crucial there.
102357         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
102358         Bison 1.875 features as described below.
102359         All uses of "PC." replaced by "pc->".
102360         (YYSTYPE): Add a forward declaration.
102361         (yylex, yyerror): Use full prototypes in forward decls.
102362         Use "%pure-parser" rather than obsolescent "%pure_parser".
102363         Use %parse-param and %lex-param instead of obsolescent
102364         YYPARSE_PARAM and YYLEX_PARAM.
102365         (meridian_table, month_and_day_table, time_units_table,
102366         relative_time_table, time_zone_table, military_table,
102367         lookup_zone, lookup_word, get_date):
102368         Use NULL instead of 0 where appropriate.
102369         (to_hour): Avoid abort (), to avoid a dependency on
102370         stdlib.h.
102371         (yyerror, yylex): Now accepts parser_control * arg.
102372         (main) [TEST]: Use '\0' rather than 0 for char.
102374 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
102376         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
102378 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
102380         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
102381         It's now the caller's responsibility to handle the case where
102382         !HAVE_GETPAGESIZE && !defined getpagesize.
102384         * lib/mktime.c (leapyear): Arg is long int, not int.
102386 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
102388         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
102390 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
102392         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
102393         missing.  Problem reported by James Youngman.
102395 2004-10-16  Simon Josefsson  <jas@extundo.com>
102397         * gnulib-tool: Fix comments.  Fix parse problem.
102398         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
102400 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
102402         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
102403         implementation of getopt_long.  Problem reported by Alexander Taler in:
102404         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
102406 2004-10-15  Bruno Haible  <bruno@clisp.org>
102408         * gnulib-tool: Untabify. Initialize supplied_libname.
102409         (func_usage): More homogenous output.
102410         (func_modules_transitive_closure, func_modules_to_filelist,
102411         func_emit_lib_Makefile_am): New functions.
102412         (func_import): New function, extracted from big case statement. Use
102413         func_get_license, func_modules_transitive_closure,
102414         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
102415         opt_lgpl. Don't use test -a, as it's not portable.
102416         (func_create_testdir): Use func_modules_transitive_closure,
102417         func_modules_to_filelist, func_emit_lib_Makefile_am.
102419 2004-10-15  Bruno Haible  <bruno@clisp.org>
102421         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
102423 2004-10-15  Bruno Haible  <bruno@clisp.org>
102425         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
102426         the portions belonging to each module.
102427         Suggested by Derek Robert Price <derek@ximbiot.com>.
102429 2004-10-12  Simon Josefsson  <jas@extundo.com>
102431         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
102432         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
102433         to real functions.
102435 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102437         * modules/vsnprintf: New file.
102439 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102441         * m4/vsnprintf.m4: New file.
102443 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102445         * lib/vsnprintf.h: New file.
102446         * lib/vsnprintf.c: New file.
102448 2004-10-11  Bruno Haible  <bruno@clisp.org>
102450         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
102451         vsnprintf.
102453 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102455         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
102457 2004-10-07  Bruno Haible  <bruno@clisp.org>
102459         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
102460         fits into the provided buffer.
102462 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102464         * lib/diacrit.c, diacrit.h: Add GPL notice.
102466         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
102467         notice.
102468         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
102469         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
102470         This avoids a potential constant-folding bug.
102472 2004-10-05  Bruno Haible  <bruno@clisp.org>
102474         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
102475         for the declaration of strsep.
102477 2004-10-05  Bruno Haible  <bruno@clisp.org>
102479         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
102481 2004-10-04  Simon Josefsson  <jas@extundo.com>
102483         * modules/memmem: New file.
102484         * tests/test-memmem.c: New file.
102485         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
102487 2004-10-04  Simon Josefsson  <jas@extundo.com>
102489         * m4/memmem.m4: New file.
102491 2004-10-04  Simon Josefsson  <jas@extundo.com>
102493         * lib/memmem.h: New file.
102494         * lib/memmem.c: New file, taken from glibc.
102496 2004-10-04  Simon Josefsson  <jas@extundo.com>
102498         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
102499         '#ifdef USE_UNLOCKED_IO'.
102501 2004-10-04  Simon Josefsson  <jas@extundo.com>
102503         * config/srclist.txt: Add memmem from glibc.
102505 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102507         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
102509         * modules/argmatch, modules/argp, modules/closeout, modules/error,
102510         modules/exclude, modules/getdate, modules/getline,
102511         modules/getndelim2, modules/getpass, modules/getpass-gnu,
102512         modules/getusershell, modules/linebuffer, modules/md5,
102513         modules/mountlist, modules/posixtm, modules/readtokens,
102514         modules/readutmp, modules/regex, modules/sha1,
102515         modules/version-etc, modules/yesno:
102516         Remove dependency on unlocked-io.
102518 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102520         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
102522         * m4/unlocked-io.m4: Add copyright notice.
102523         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
102525 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102527         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
102528         * lib/xmalloc.c (xmemdup): Likewise.
102529         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
102530         XFREE): Remove these long-obsolescent macros.
102531         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
102532         * lib/xstrdup.c: Remove.
102534         * lib/regex.c (re_comp): Cast gettext return value to char *,
102535         Problem reported by Martin Neitzel via Mark D. Baushke.
102537 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102539         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
102540         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
102541         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
102542         regex.c, sha1.c, version-etc.c, yesno.c:
102543         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
102544         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
102545         the includer's responsibility.
102547         Sync from coreutils.
102549         * lib/modechange.c (mode_compile): Don't decrement a pointer that
102550         points to the start of a string, as the C Standard says the
102551         resulting behavior is undefined.
102553         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
102554         simple -> simple_backups, numbered_existing ->
102555         numbered_existing_backups, numbered -> numbered_backups
102556         to avoid shadowing problems.  All uses changed.
102557         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
102558         * lib/backupfile.c (check_extension, numbered_backup):
102559         Rename locals to avoid shadowing 'basename'.
102560         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
102561         once.
102563         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
102564         * lib/.cvsignore: Add getopt.h.
102566 2004-10-04  Bruno Haible  <bruno@clisp.org>
102568         * modules/README: New file.
102569         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
102570         not a module.
102572 2004-10-02  Jim Meyering  <jim@meyering.net>
102574         * lib/dirfd.h, getpagesize.h: Add copyright notice.
102576 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102578         * modules/strsep: New file.
102580 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102582         * m4/strsep.m4: New file.
102584 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102586         * lib/strsep.h: New file.
102587         * lib/strsep.c: New file.
102589 2004-10-01  Simon Josefsson  <jas@extundo.com>
102591         * lib/snprintf.c (snprintf): Handle size==0.
102593 2004-10-01  Simon Josefsson  <jas@extundo.com>
102594             Bruno Haible  <bruno@clisp.org>
102596         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
102597         (snprintf): Declare 'args'.
102599 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
102601         * lib/snprintf.c: Remove comments as to why each header is needed.
102603 2004-10-01  Bruno Haible  <bruno@clisp.org>
102605         * MODULES.html.sh: Add strsep.
102607 2004-09-30  Simon Josefsson  <jas@extundo.com>
102609         * modules/snprintf: New file.
102611 2004-09-30  Simon Josefsson  <jas@extundo.com>
102613         * m4/snprintf.m4: New file.
102615 2004-09-30  Simon Josefsson  <jas@extundo.com>
102617         * lib/snprintf.h, lib/snprintf.c: New files.
102619 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102621         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
102622         (hol_entry_help): Never translate an empty string.
102623         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
102624         * lib/argp.h (OPTION_NO_TRANS): New option.
102626 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102628         * modules/argp (Maintainer): Replace Simon Josefsson
102629         by Sergey Poznyakoff.
102631 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102633         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
102634         changes merged back into glibc.
102636 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102638         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
102640 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
102642         * lib/xvasprintf.c: Include xalloc.h.
102643         (xvasprintf): Use xalloc_die, not xmalloc_die.
102645 2004-09-29  Bruno Haible  <bruno@clisp.org>
102647         * modules/alloca-opt: New file, derived from modules/alloca.
102648         * modules/allocsa: Depend on alloca-opt instead of alloca.
102649         * modules/setenv: Likewise.
102650         * modules/vasnprintf: Likewise.
102651         * MODULES.html.sh: Add alloca-opt.
102653 2004-09-28  Simon Josefsson  <jas@extundo.com>
102655         * gnulib-tool: New parameter --lgpl, to asseert that modules are
102656         LGPL, and to replace license template from GPL to LGPL.
102658 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
102660         * modules/dummy: Change license to LGPL.
102662 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
102664         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
102666 2004-09-24  Simon Josefsson  <jas@extundo.com>
102668         * modules/minmax (License): Change from GPL to LGPL.
102670 2004-09-23  Simon Josefsson  <jas@extundo.com>
102672         * gnulib-tool (--import): Typo.
102674 2004-09-23  Simon Josefsson  <jas@extundo.com>
102676         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
102678 2004-09-22  Bruno Haible  <bruno@clisp.org>
102680         * modules/*: Add 'License' field.
102681         * gnulib-tool: Accept --extract-license option.
102682         (func_get_license): New function.
102684 2004-09-21  Bruno Haible  <bruno@clisp.org>
102686         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
102687         Reported by Simon Josefsson.
102689 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102691         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
102692         gl_AC_TYPE_LONG_LONG.
102694 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102696         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
102698 2004-09-18  Simon Josefsson  <jas@extundo.com>
102699         and  Paul Eggert  <eggert@cs.ucla.edu>
102701         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
102702         calls with autoreconf.  Define GL_LIB.
102704 2004-09-14  Karl Berry  <karl@gnu.org>
102706         * config/srclist.txt: unsync setenv.c, sigh.
102708 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102710         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
102711         Problem reported by Bruno Haible in:
102712         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
102714 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102716         * config/srclist.txt: Comment out argp-pvh.c.
102718 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
102720         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
102721         in case some system header has #define'd it.  Problem reported by
102722         Soeren D. Schulze in
102723         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
102725 2004-09-09  Karl Berry  <karl@gnu.org>
102727         * regex.[ch]: delete from the root.  These were supposed to be
102728                 synced with emacs cvs, but this has not happened for about
102729                 a year, and anyway nothing else uses emacs regex.[ch].
102730                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
102731                 lib/regex[.ch] is untouched.
102733 2004-09-09  Bruno Haible  <bruno@clisp.org>
102735         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
102737 2004-09-09  Bruno Haible  <bruno@clisp.org>
102739         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
102740         modifications.
102741         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
102743 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102745         * modules/xvasprintf: New file.
102746         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
102748 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102750         * lib/xvasprintf.h: New file.
102751         * lib/xvasprintf.c: New file.
102752         * lib/xasprintf.c: New file.
102754 2004-09-08  Bruno Haible  <bruno@clisp.org>
102756         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
102758 2004-09-08  Bruno Haible  <bruno@clisp.org>
102760         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
102761         length is > INT_MAX.
102762         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
102763         more.
102765 2004-09-08  Bruno Haible  <bruno@clisp.org>
102767         * lib/stdint_.h: New file, taken from GNU clisp.
102769 2004-09-08  Bruno Haible  <bruno@clisp.org>
102770             Oskar Liljeblad  <oskar@osk.mine.nu>
102772         * modules/stdint: New file.
102773         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
102775 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102777         Import from coreutils.
102778         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
102779         strings on unbounded length.  alloca's performance benefits aren't
102780         that important here.
102781         (V_STRDUP): Remove.
102782         (parse_with_separator): New function, with most of the internals
102783         of the old parse_user_spec.  Allow user to omit both user and group,
102784         for compatibility with FreeBSD.
102785         Clone only the user name, not the entire spec.
102786         Do not set *uid, *gid unless entirely successful.
102787         Avoid memory leak in some failing cases.
102788         Fix regression for USER.GROUP reported by Dmitry V. Levin in
102789         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
102790         (parse_user_spec): Rewrite to use parse_with_separator.
102792 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102794         * modules/userspec: Don't depend on alloca.
102796 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102798         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
102800 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102802         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
102803         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
102804         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
102806 2004-08-16  Simon Josefsson  <jas@extundo.com>
102808         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
102809         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
102810         Add --dry-run for --import.
102811         Let user provided command line parameters override configure.ac
102812         settings.
102814 2004-08-12  Simon Josefsson  <jas@extundo.com>
102816         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
102817         as discussed with Paul Eggert in threads rooted at
102818         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
102819         and
102820         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
102821         Before, the test was empty, and relied on ELIDE_CODE in source
102822         code.)
102823         (gl_PREREQ_GETOPT): New macro.
102824         (gl_GETOPT): Use them.
102826 2004-08-12  Simon Josefsson  <jas@extundo.com>
102828         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
102829         * lib/getopt_.h: Renamed from getopt.h.
102831 2004-08-12  Simon Josefsson  <jas@extundo.com>
102833         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
102834         Change default library name from libfoo to libgnu.
102835         Now, if you have a configure.ac that says:
102836                 gl_SOURCE_BASE(gl)
102837                 gl_M4_BASE(gl/m4)
102838                 gl_MODULES(error getopt etcetera)
102839                 gl_INIT
102840         you can import all you need by running:
102841                 ../gnulib/gnulib-tool --import
102843         * modules/getopt (Files): Rename getopt.h to getopt_.h.
102844         (Makefile.am): Rewrite, use logic from argz.
102845         (Include): Use <getopt.h> instead of "getopt.h".
102847 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102849         * modules/argp (Files): Add m4/unlocked-io.m4.
102850         (Depends-on): Add extensions.
102852 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102854         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
102855         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
102856         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
102857         Check for program_invocation_name, program_invocation_short_name,
102858         flockfile, funlockfile, features.h, _getopt_long_only_r.
102860 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102862         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
102863         its complicated substitute.
102864         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
102865         and program_invocation_name.
102866         (__argp_basename) [!_LIBC]: Remove; the only use was
102867         replaced by its body.
102868         (__argp_short_program_name): Change condition from
102869         !defined __argp_short_program_name to
102870         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
102871         to match argp-namefrob.h.
102872         (__argp_failure): Don't assume strerror_r returns char *.
102873         * lib/argp-parse.c (N_): Define unconditionally.
102874         (argp_default_options): Fill out initializers with 0 to avoid
102875         gcc warnings.
102877 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102879         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
102880         getopt1.c.
102882 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102884         Merge from coreutils.
102886         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
102888         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
102889         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
102891 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102893         Merge from coreutils.
102895         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
102896         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
102897         for Reliant Unix 5.43.
102899         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
102900         (union fooround): Use uintmax_t, not long int.
102901         The rest is a merge from libc:
102902         [defined _LIBC]: Include <shlib-compat.h>.
102903         (_obstack) [defined _LIBC]: Remove after 2.3.4.
102905         * lib/settime.c (settime): Recode to avoid warning with
102906         Sun Forte C 6U2.
102908         * lib/strverscmp.c: Convert to UTF-8.
102910 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102912         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
102913         m4/uintmax_t.m4.
102915 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102917         * modules/xalloc-die: New file.
102918         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
102920         * modules/md5 (Files): Add m4/uint32_t.m4.
102921         * modules/sha1: Renamed from modules/sha.
102922         (Files):
102923         Rename lib/sha.h to lib/sha1.h.
102924         Rename lib/sha.c to lib/sha1.c.
102925         Rename m4/sha.m4 to m4/sha1.m4.
102926         (lib_SOURCES): Likewise.
102927         (configure.ac): Rename gl_SHA to gl_SHA1.
102928         (Include): sha.h -> sha1.h.
102930 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102932         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
102933         * m4/sha1.m4: Renamed from sha.m4.
102934         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
102936 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102938         * lib/obstack.h (obstack_empty_p):
102939         Don't assume that chunk->contents is suitably aligned.
102940         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
102941         Likewise. Problem reported by Benno in
102942         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
102944         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
102945         readable.  This could be improved further but it'd take some work.
102947 2004-08-08  Simon Josefsson  <jas@extundo.com>
102949         * modules/xgethostname (Depends-on): Remove exit and error (not
102950         used).
102952         * modules/getpass-gnu: Add getpass.h.
102953         (Depends-on): Add stdbool.
102954         * modules/getpass: Add getpass.h.
102956 2004-08-08  Simon Josefsson  <jas@extundo.com>
102958         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
102959         Check getpass declaration.
102961 2004-08-08  Simon Josefsson  <jas@extundo.com>
102963         * lib/xgethostname.c: Don't include error.h (not used).
102965         * lib/getpass.h: Add.
102966         * lib/getpass.c: Include getpass.h first.
102968 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
102970         * lib/xalloc-die.c: New file.
102971         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
102972         All uses removed.
102973         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
102974         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
102975         xalloc-die.c.
102976         (_, N_, xalloc_die): Move to xalloc-die.c.
102977         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
102978         so that we needn't mess with xalloc_msg_memory_exhausted.
102980         * lib/sha1.h: Renamed from sha.h.
102981         (SHA1_H): Renamed from _SHA_H.
102982         (sha1_ctx): Renamed from sha_ctx.
102983         (sha1_init_ctx): Renamed from sha_init_ctx.
102984         (sha1_process_block): Renamed from sha_process_block.
102985         (sha1_process_bytes): Renamed from sha_process_bytes.
102986         (sha1_finish_ctx): Renamed from sha_finish_ctx.
102987         (sha1_read_ctx): Renamed from sha_read_ctx.
102988         (sha1_stream): Renamed from sha_stream.
102989         (sha1_buffer): Renamed from sha_buffer.
102990         * lib/sha1.c: Likewise; renamed from sha.c.
102991         Do not include <sys/types.h>.
102992         Include <stddef.h> rather than <stdlib.h>.
102994 2004-08-08  Bruno Haible  <bruno@clisp.org>
102996         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
102997         FILESYSTEM_PREFIX_LEN.
102998         * lib/progreloc.c: Likewise.
102999         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
103001 2004-08-06  Simon Josefsson  <jas@extundo.com>
103003         * modules/progname (Depends-on): Don't depend on stdbool.
103005 2004-08-06  Simon Josefsson  <jas@extundo.com>
103007         * modules/getsubopt: New file.
103008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103009         getsubopt.
103011 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103013         More merge from coreutils.
103015         * m4/utimens.m4, m4/utimecmp.m4: New files.
103016         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
103017         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
103018         prereq.m4, sha.m4: Import changes from coreutils.
103020 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103022         More merge from coreutils.
103023         * modules/raise, modules/readtokens0, modules/utimens:
103024         * modules/utimecmp, module/xnanosleep: New files.
103025         * modules/strftime: Add lib/strftime.h.
103026         Change include from <time.h> to "strftime.h".
103027         * modules/yesno: Add lib/yesno.h.
103028         * modules/backupfile: Remove lib/addext.c.
103029         * modules/euidaccess: Add stat-macros.h.
103030         * modules/canonicalize, modules/euidaccess,
103031         modules/filemode, modules/lchown, modules/makepath,
103032         modules/rmdir, modules/stat: Likewise.
103034 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103036         Merge from tar.
103037         * lib/argp-help.c (make_hol, hol_append): Don't assume that
103038         SIZE_MAX is a valid preprocessor constant.
103039         (__argp_basename): Change from "#ifndef _LIBC"
103040         to "#ifndef __argp_short_program_name", so that
103041         we don't compile these functions for tar.
103043         More merges from coreutils.
103044         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
103045         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
103046         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
103047         * lib/addext.c: Remove; no longer needed.
103048         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
103049         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
103050         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
103051         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
103052         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
103053         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
103054         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
103055         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
103056         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
103057         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
103058         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
103059         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
103060         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
103061         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
103062         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
103063         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
103064         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
103065         Import changes from coreutils.
103067 2004-08-05  Simon Josefsson  <jas@extundo.com>
103069         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
103071 2004-08-05  Simon Josefsson  <jas@extundo.com>
103073         * m4/getsubopt.m4: New file.
103075 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103077         Merge from coreutils.
103079         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
103080         * m4/getcwd-path-max.m4: New files.
103082         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
103083         FILESYSTEM_PREFIX_LEN ->
103084         FILE_SYSTEM_PREFIX_LEN.
103085         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
103086         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
103087         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
103088         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
103090         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
103091         prerequisite modules now handle the DOS stuff.
103092         Don't check for unistd.h.
103094 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103096         Merge from coreutils.
103098         * lib/.gdb-history: Remove; this doesn't belong here.
103100         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
103101         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
103102         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
103103         * lib/getcwd.c: New files.
103105         * lib/dirname.h: Include <stdbool.h>.
103106         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
103107         for consistency with POSIX terminology.  All uses changed.
103108         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
103109         (strip_trailing_slashes): Use bool for booleans.
103110         * lib/stripslash.c (strip_trailing_slashes): Likewise.
103112         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
103113         sometimes returns a positive errno value even when it succeeds.
103114         (print_errno_message) [!LIBC]: Fall back on strerror if
103115         __strerror_r fails.
103117         * lib/path-concat.c (mempcpy): Don't define if a system header defines
103118         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
103119         (longest_relative_suffix): New function.
103120         (path_concat): Use it.  Assume first argument is not NULL.
103121         Port to DOS.  Omit redundant separators.
103122         Report an error instead of returning NULL.
103123         Use mempcpy instead of memcpy.
103124         (xpath_concat): Remove: not declared or used.
103126         * lib/same.h: Include <stdbool.h>
103127         (same_name): Return bool, not int.
103128         * lib/same.c (same_name): Likewise.
103129         (errno): Don't declare; we assume C89 or better now.
103131         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
103132         if not already defined.
103134         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
103135         * lib/dup-safer.c (errno): Likewise.
103137 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103139         Merge from coreutils.
103140         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
103141         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
103142         * modules/path-concat: Don't depend on strdup.
103144 2004-08-03  Simon Josefsson  <jas@extundo.com>
103146         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
103147         * lib/progname.h: Don't include stdbool.h.
103149 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103151         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
103152         * MODULES.html.sh (func_all_modules): Remove fatal.
103154 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103156         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
103158 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103160         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
103161         working.
103163 2004-08-02  Simon Josefsson  <jas@extundo.com>
103165         * lib/getsubopt.h: New file, with comments from Bruno Haible.
103166         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
103167         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
103169 2004-08-01  Simon Josefsson  <jas@extundo.com>
103171         * lib/xgetdomainname.c: Include stdlib.h, for free().
103173 2004-07-19  Bruno Haible  <bruno@clisp.org>
103175         * MODULES.html.sh (func_all_modules): Add dummy.
103177 2004-07-16  Simon Josefsson  <jas@extundo.com>
103179         * modules/dummy: New file.
103181 2004-07-16  Simon Josefsson  <jas@extundo.com>
103183         * lib/dummy.c: New file.
103185 2004-07-16  Bruno Haible  <bruno@clisp.org>
103187         * lib/backupfile.h: Add extern "C" for C++.
103188         * lib/closeout.h: Likewise.
103189         * lib/copy-file.h: Likewise.
103190         * lib/findprog.h: Likewise.
103191         * lib/full-write.h: Likewise.
103192         * lib/pathname.h: Likewise.
103193         * lib/progname.h: Likewise.
103194         * lib/stpcpy.h: Likewise.
103195         * lib/stpncpy.h: Likewise.
103196         * lib/strcase.h: Likewise.
103197         * lib/strstr.h: Likewise.
103198         * lib/xalloc.h: Likewise.
103200         * lib/mbswidth.h: Add extern "C" for C++.
103201         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
103203 2004-07-13  Robert Millan  <robertmh@gnu.org>
103205         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
103207 2004-07-09  Simon Josefsson  <jas@extundo.com>
103209         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
103210         failed without this.)
103212 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
103214         * modules/chown (Files): Add lib/fchown-stub.c, since
103215         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
103217 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
103219         * lib/fchown-stub.c: New file.
103221 2004-06-24  Jim Meyering  <jim@meyering.net>
103223         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
103225 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103227         * modules/argz: Omit "#include".
103229         * MODULES.html.sh (func_all_modules): Add calloc, to match
103230         2004-06-01 addition of calloc module.
103232 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103234         * m4/argz.m4: New file, which is autoupdated from libtool.
103236 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103238         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
103239         libtool.
103241 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103243         * config/srclist-update: Don't insist on "USA." before the
103244         close-comment, as libtool omits the period and puts the */ on a
103245         separate line.
103246         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
103247         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
103249 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
103251         * modules/argz: New file.
103252         * MODULES.html.sh (func_all_modules): Add argz.
103254 2004-06-12  Jim Meyering  <jim@meyering.net>
103255         and  Paul Eggert  <eggert@cs.ucla.edu>
103257         * modules/hash (Files): Add lib/xalloc.h.
103258         * modules/pipe (Depends-on): Add wait-process.
103259         * modules/stat (Depends-on): Add xalloc.
103260         * modules/userspec (Files): Add lib/userspec.h.
103261         * modules/xstrto
103263         Upgrade from gettext-0.13.
103264         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
103265         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
103266         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
103268 2004-06-10  Jim Meyering  <jim@meyering.net>
103270         * lib/calloc.c: New file.
103272 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103274         * lib/getdate.y (yylex): Allow space between sign and number.
103275         Problem reported by Dan Jacobson.
103277 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
103279         Merge from coreutils CVS.
103281         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
103282         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
103283         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
103284         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
103285         xstrtol.m4: Fix copyright date and/or serial number.
103287         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
103288         See if we need an fchown replacement.
103289         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
103290         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
103291         and use the replacement function if we detect either defect.
103293         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
103294         gl_UTIMECMP.
103296 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
103297         and  Jim Meyering  <jim@meyering.net>
103299         Merge from coreutils CVS.
103301         * lib/stat-macros.h: New file, with contents from file-type.h
103302         and coreutils' system.h.
103303         * lib/file-type.c: Include "stat-macros.h".
103304         * lib/file-type.h (file_type): Move all macro definitions to new file,
103305         stat-macros.h.
103307         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
103308         Wrap old code with this conditional.
103309         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
103310         function that does not dereference symlinks.
103311         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
103313         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
103314         dependency problems.
103315         (xreadlink): Accept new arg SIZE, for efficiency.
103316         All decls and uses changed.
103317         * lib/xreadlink.h: Include <stddef.h>, for size_t.
103319         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
103320         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
103322         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
103323         sysexits.h.
103325 2004-06-01  Jim Meyering  <jim@meyering.net>
103327         * m4/calloc.m4: New file.
103329 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
103331         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
103332         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
103333         Also, fix a typo in a diagnostic.
103335 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
103337         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
103338         or AC_FUNC_REALLOC.
103340 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
103342         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
103343         macros to be defined.
103344         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
103345         the allocator returns NULL because the requested size is zero.
103347 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103349         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
103350         var.  Add comment explaining why libc still defines it.  This
103351         merges the following patch from glibc:
103352         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
103354 2004-05-20  Andreas Schwab  <schwab@suse.de>
103356         * m4/free.m4: Replace free if it not known to work, not the other
103357         way round.
103359 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
103361         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
103362         present in glibc since revision 1.1 of this file.
103363         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
103364         obstack_alignment_mask, obstack_alloc, obstack_base,
103365         obstack_blank, obstack_blank_fast, obstack_chunk_size,
103366         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
103367         obstack_grow0, obstack_init, obstack_int_grow,
103368         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
103369         obstack_next_free, obstack_object_size, obstack_ptr_grow,
103370         obstack_ptr_grow_fast, obstack_room): Remove declarations of
103371         nonexistent functions.
103373 2004-05-18  Karl Berry  <karl@gnu.org>
103375         * config/srclist.txt: break link for vasnprintf.c.
103377 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103379         Port obstack to the AS/400, where pointers are 16 bytes wide and
103380         you cannot cast an integer to a valid pointer.  This patch is
103381         currently waiting to be integrated into glibc; see
103382         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
103384         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
103385         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
103386         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
103387         (struct obstack): temp member is now a union of a pointer and
103388         an integer, instead of an integer.  All integer uses changed.
103389         This does not affect the physical layout of struct obstack,
103390         except on hosts (like the AS/400) where the size or alignment of
103391         void * is greater than that of ptrdiff_t.
103392         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
103393         __STDC__)]: Store temporary in pointer member of union, not
103394         integer member.
103395         * lib/obstack.c: Include <stddef.h>, for offsetof.
103396         (struct fooalign): Remove; it doesn't need a name.
103397         (union fooround): Change double to long double, and add void *.
103398         (DEFAULT_ALIGNMENT): Use offsetof to compute.
103399         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
103400         not a macro.  Hence the values are always int; so remove all
103401         casts-to-int in uses.
103403 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103405         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
103406         we can get this patch merged into glibc.
103408 2004-05-17  Derek R. Price  <derek@ximbiot.com>
103409             Paul Eggert  <eggert@cs.ucla.edu>
103411         * m4/argp: Depend on alloca.
103413 2004-05-17  Derek R. Price  <derek@ximbiot.com>
103414             Paul Eggert  <eggert@cs.ucla.edu>
103416         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
103417         freecoding.
103419 2004-05-17  Bruno Haible  <bruno@clisp.org>
103421         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
103422         precision that consists of a '.' followed by an empty digit string.
103423         Patch by Tor Lillqvist <tml@iki.fi>.
103425 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103427         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
103428         for backward compatibility with older code.  We need our own
103429         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
103430         it under some other name, and our alloca.h will define it.
103432 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103433             Derek Price  <derek@ximbiot.com>
103435         * lib/alloca.c: Include <alloca.h>, to get our interface.
103436         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
103437         include <alloca.h> first.  Use C89 prototype for alloca; this
103438         requires including <stddef.h> for size_t.  Use extern "C" if C++.
103439         Use #elif for simplicity, since we can assume C89 now.
103440         Don't try to source the system alloca.h since it will not be found
103441         and to prevent recursively including its replacement.
103442         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
103443         * lib/regex.c: Likewise.
103445 2004-05-16  Derek Price  <derek@ximbiot.com>
103446             Paul Eggert  <eggert@cs.ucla.edu>
103448         getline cleanup.  This changes the getndelim2 API: both order of
103449         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
103450         no delimiter).
103452         * lib/getline.c: Don't include stddef.h or stdio.h, since our
103453         interface does that.
103454         (getline): Always use getdelim, so that we don't have two
103455         copies of this code.
103456         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
103457         if available.
103458         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
103459         (GETNDELIM2_MAXIMUM): New macro.
103460         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
103461         instead of the old practice of delim2==0.  All callers changed.
103462         Return -1 on overflow, instead of returning junk.
103463         Do not set *linesize unless allocation succeeds.
103464         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
103465         that we include sys/types.h.
103466         * lib/getnline.h: Likewise.
103467         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
103468         (getndelim2): Reorder arguments.
103469         * lib/getnline.c (getnline, getndelim):
103470         Don't discard the NMAX argument.
103471         (getnline): Invoke getndelim, to avoid code duplication.
103472         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
103473         of (size_t) -1 by callers of the getnline family.
103475 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103477         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
103478         Check for gettimeofday.
103479         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
103480         Check for settimeofday, stime.
103482 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103484         * lib/nanosleep.c (suspended): Change its type from int to
103485         sig_atomic_t volatile.
103486         (first_call): Make it private to rpl_nanosleep, and have it
103487         be zero initially as that's a bit faster.
103488         (my_usleep): Round up fractional times instead of truncating them,
103489         as this is the usual meaning for 'sleep'.
103491         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
103492         doesn't work.
103493         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
103494         (ENOSYS): Define if not defined.
103495         (settime): Fall back on stime if it exists and settimeofday fails.
103496         But don't bother with fallbacks if a method fails with errno == EPERM.
103498 2004-05-11  Jim Meyering  <jim@meyering.net>
103500         Prior to this change, the save_cwd caller required read access to the
103501         current directory on most systems (ones with the fchdir function).
103503         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
103504         fails, try write-only, and finally, resort to using xgetcwd.
103506 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
103508         * lib/obstack.c, obstack.h: Import changes from libc.
103510 2004-04-28  Bruno Haible  <bruno@clisp.org>
103512         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
103513         also implicitly appends .exe to executables.
103514         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
103515         accepts Windows pathnames.
103516         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
103517         Treat Cygwin like Windows, since it now accepts Windows pathnames.
103518         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
103519         Treat Cygwin like Windows, since it now accepts Windows pathnames.
103520         Reported by Derek Robert Price <derek@ximbiot.com>.
103522 2004-04-21  Karl Berry  <karl@gnu.org>
103524         * config/srclist.txt (localcharset.c): break sync.
103526 2004-04-20  Paul Eggert  <eggert@twinsun.com>
103528         * m4/host-os.m4: Add a copyright notice.
103530 2004-04-20  Jim Meyering  <jim@meyering.net>
103532         Change UTILS_ to gl_ in AC_DEFINE'd names.
103533         Change utils_- and jm_-prefixed variables, too.
103534         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
103535         UTILS_FUNC_MKDIR_TRAILING_SLASH.
103536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
103538         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
103539         Don't emit trailing blanks.
103540         Also rename jm_-prefixed variables to have gl_ prefix.
103542         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
103543         Also rename jm_-prefixed variables to have gl_ prefix.
103545         * m4/jm-macros.m4: Reflect the renamings.
103546         * m4/prereq.m4: Likewise.
103548 2004-04-20  Jim Meyering  <jim@meyering.net>
103550         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
103551         memory.
103553 2004-04-20  Jim Meyering  <jim@meyering.net>
103554             Bruno Haible  <bruno@clisp.org>
103556         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
103557         memory when realloc fails.
103559 2004-04-19  Jim Meyering  <jim@meyering.net>
103561         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
103562         now that readutmp.c may call `free (0)'.
103564 2004-04-19  Bruno Haible  <bruno@clisp.org>
103566         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
103567         * m4/inttypes_h.m4: Likewise.
103568         * m4/stdint_h.m4: Likewise.
103569         * m4/intmax_t.m4: Likewise.
103570         * m4/uintmax_t.m4: Likewise.
103572 2004-04-18  Jim Meyering  <jim@meyering.net>
103574         * m4/prereq.m4: Don't forbid jm_ prefix.
103576         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
103577         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
103578         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
103579         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
103580         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
103581         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
103582         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
103583         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
103584         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
103585         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
103586         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
103587         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
103588         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
103589         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
103590         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
103591         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
103592         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
103593         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
103594         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
103596 2004-04-18  Jim Meyering  <jim@meyering.net>
103598         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
103599         failure, don't leak memory and do call END_UTMP_ENT.
103601 2004-04-16  Jim Meyering  <jim@meyering.net>
103603         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
103604         coreutils' stat program.
103605         (gl_PREREQ): Don't require jm_PREREQ_STAT.
103607 2004-04-11  Paul Eggert  <eggert@twinsun.com>
103609         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
103610         C89.
103611         (CHAR_BIT): Remove, since we assume C89.
103612         Include <stdint.h> if available, as per current Autoconf CVS advice.
103614 2004-03-31  Jim Meyering  <jim@meyering.net>
103616         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
103617         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
103618         * m4/xalloc.m4: Likewise.
103620 2004-03-30  Paul Eggert  <eggert@twinsun.com>
103622         Merge from coreutils.
103624         * m4/inttostr.m4: New file.
103625         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
103626         Require AM_STDBOOL_H and gl_TIMESPEC instead.
103627         Require gl_CLOCK_TIME.
103628         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
103630 2004-03-30  Paul Eggert  <eggert@twinsun.com>
103632         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
103633         not bool, to be more consistent with Unix conventions.
103634         Suggested by Bruno Haible.
103636         Merge from coreutils.
103638         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
103639         * lib/umaxtostr.c: New files.
103641         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
103642         the usual <time.h> dance.
103643         (get_date): Change signature to support fractional time stamps.
103644         All callers changed.
103645         * lib/getdate.y: Include "getdate.h" first, as we can now
103646         assume C89 and don't need to worry about 'const'.
103647         Similarly, include "unlocked-io.h" near start, not in middle.
103648         Include <limits.h>.
103649         (textint.value): Use long int rather than int.
103650         (textint.digits): Use size_t rather than int.
103651         (BILLION, LOG10_BILLION): New constants.
103652         (parser_control): New member rel_ns.  Members day_ordinal,
103653         time_zone, month, day, hour, minutes, rel_year, rel_month,
103654         rel_day, rel_hour, rel_minutes, rel_seconds
103655         are now long int, not int.  Member seconds is now struct timespec,
103656         not int.  New member timespec_seen.  Members dates_seen, days_seen,
103657         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
103658         not int.
103659         (%union.intval): Now long int, not int.
103660         New member timespec.
103661         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
103662         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
103663         (spec): Now is a timespec or an item list.
103664         (timespec, items): New nonterminals.
103665         (time, rel, relunit, number, get_date):
103666         Add support for fractional seconds.
103667         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
103668         (gmtime, localtime, mktime): Remove decls; not needed with C89.
103669         (to_hour): First arg is now long int, not int.
103670         (to_year): Returns long int, not int.
103671         Don't treat year -70 like 70.
103672         (tm_diff): Returns long int, not int.
103673         (lookup_word): Use bool instead of int when appropriate.
103674         (yylex): Use size_t for count, not int.
103675         Detect overflow when parsing large integer constants.
103676         Add support for fractions.
103677         (get_date): Make pointers 'const' if possible.
103678         Use more-portable code to detect integer overflow.
103679         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
103680         Don't use ctime; it's not reliable if the year has >4 digits.
103682         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
103683         This is for compatibility with BSD.
103685         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
103686         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
103687         From coreutils' system.h.
103689         * lib/userspec.c: Don't include "posixver.h".
103690         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
103691         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
103692         compatible extension.  Simplify code by removing a boolean int
103693         that was always nonzero if a string was nonnull.
103695 2004-03-30  Jim Meyering  <jim@meyering.net>
103697         Merge from coreutils.
103699         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
103700         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
103701         on some systems one must include <grp.h> before it.
103702         Reported by Christian Krackowizer.
103704 2004-03-30  Jim Meyering  <jim@meyering.net>
103706         Merge from coreutils.
103708         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
103710         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
103711         an empty input stream.
103713         * lib/readtokens.c: Include <stdbool.h>.
103714         (readtoken): Use `size_t' rather than int/long.
103715         All callers adjusted.
103716         Use `bool' rather than `int' where appropriate.
103717         Use memset rather than an explicit loop.
103718         Use x2nrealloc rather than xrealloc.
103719         Allow the use of `\0' as a delimiter.
103720         (readtokens): Likewise.
103721         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
103723 2004-03-30  Jim Meyering  <jim@meyering.net>
103725         * m4/realloc.m4: Remove file, since now it does no more than
103726         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
103727         the `configure.ac' section of module/realloc.
103728         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
103730 2004-03-30  Bruno Haible  <bruno@clisp.org>
103732         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
103733         nonnull.
103735 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103737         Merge changes to getloadavg.c from coreutils and Emacs.
103739         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
103740         Define to an expression, not to the empty string.
103741         Include cloexec.h and xalloc.h.
103742         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
103743         Use set_cloexec_flag rather than rolling our own.
103744         * lib/cloexec.c, lib/cloexec.h: New files.
103746 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103748         * m4/cloexec.m4: New file.
103750 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103752         * lib/getopt.h: Sync with libc CVS.
103754 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103755             Bruno Haible  <bruno@clisp.org>
103757         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
103758         mbswidth.
103760 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103761             Bruno Haible  <bruno@clisp.org>
103763         * lib/mbswidth.h: Include <wchar.h> only if
103764         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
103765         <wchar.h>.
103766         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
103768 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103770         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
103771         Sync with libc CVS.
103772         * lib/getopt_int.h: New file, also synced from libc.
103774 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103776         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
103777         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
103778         Bring back getopt.c, getopt.h, getopt1.c.
103780 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103782         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
103783         All uses changed.  Check for sa_sigaction member; this fixes
103784         a bug first reported by Jason Andrade in
103785         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103787 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103789         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
103790         '#if' expressions.  Unlike the code it replaces, it does not
103791         depend on (defined _SC_PAGESIZE).  However, it does depend on
103792         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
103793         first reported by Jason Andrade in
103794         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103796 2004-02-25  Simon Josefsson  <jas@extundo.com>
103798         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
103800 2004-02-25  Simon Josefsson  <jas@extundo.com>
103802         * lib/strdup.h: New file.
103803         * lib/strdup.c: Include it.
103804         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
103805         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
103807 2004-02-23  Karl Berry  <karl@gnu.org>
103809         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
103810         (from fencepost.gnu.org:/gd/gnuorg).
103812 2004-02-23  Karl Berry  <karl@gnu.org>
103814         * config/srclistvars.sh (GNUORG) [karl]: redefine.
103815         * config/srclist.txt: add maintain/standards documents.
103817 2004-02-18  Bruno Haible  <bruno@clisp.org>
103819         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
103820         Reported by Derek Robert Price <derek@ximbiot.com>.
103822 2004-02-16  Karl Berry  <karl@gnu.org>
103824         * config/mkinstalldirs, install-sh: update from automake.
103826 2004-02-06  Karl Berry  <karl@gnu.org>
103828         * m4/po.m4: update from gettext 0.14.1.
103830 2004-02-06  Karl Berry  <karl@gnu.org>
103832         * lib/config.charset: update from gettext 0.14.1.
103834 2004-02-05  Paul Eggert  <eggert@twinsun.com>
103836         Add comments and code, prompted by suggestions from Bruno Haible
103837         for sh-quote.
103838         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
103839         describing the enum quoting_style values.
103840         * lib/quotearg.c (quotearg_alloc): New function.
103841         (quotearg_buffer_restyled): Treat lone { and } as special.
103842         Treat = as special.  Work around bug with older shells
103843         that "see" a '\' that is really the 2nd byte of a multibyte char.
103844         Quote empty string with shell_quoting_style.
103846 2004-02-03  Bruno Haible  <bruno@clisp.org>
103848         * m4/pipe.m4: New file, from GNU gettext.
103850 2004-02-03  Bruno Haible  <bruno@clisp.org>
103852         * lib/pipe.h: New file, from GNU gettext.
103853         * lib/pipe.c: New file, from GNU gettext.
103855 2004-01-27  Bruno Haible  <bruno@clisp.org>
103857         * m4/execute.m4: New file, from GNU gettext.
103859 2004-01-27  Bruno Haible  <bruno@clisp.org>
103861         * lib/execute.h: New file, from GNU gettext.
103862         * lib/execute.c: New file, from GNU gettext.
103863         * lib/w32spawn.h: New file, from GNU gettext.
103865 2004-01-24  Paul Eggert  <eggert@twinsun.com>
103867         Merge from diffutils.
103869         * lib/file-type.c (file_type): Add typed memory objects.
103870         * lib/file-type.h (S_TYPEISTMO): New macro.
103872         * lib/c-stack.h (c_stack_action): Remove argv argument.
103873         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
103874         (die): Don't calculate message unless segv_action returns.
103875         (get_stack_location, min_address_from_argv, max_address_from_argv,
103876         volatile stack_base, volatile_stack_size): Remove.
103877         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
103878         that every segmentation violation is a stack overflow.  (Ouch!)
103879         See Debian bug 136249 (still outstanding) for more info about why
103880         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
103882 2004-01-24  Paul Eggert  <eggert@twinsun.com>
103884         Exit-status fix from coreutils.
103886         Use exit_failure consistently in place of EXIT_FAILURE,
103887         so that program exit statuses are consistent on failure.
103889         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
103890         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
103891         * lib/argmatch.h: Comment fix to match the above.
103892         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
103893         Now a macro referring to exit_failure, instead of a separate
103894         variable.  Include "exitfail.h" to get it.
103895         * lib/xstrtol.h: Include "exitfail.h".
103896         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
103898         * lib/long-options.c (parse_long_options): Use prototype
103899         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
103900         for clarity.
103902 2004-01-21  Jim Meyering  <jim@meyering.net>
103904         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
103905         so as not to conflict with a different-sized __mktime_internal
103906         function in GNU libc.
103907         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
103908         Problem building statically-linked `ls' reported by Michael Brunnbauer.
103910 2004-01-20  Karl Berry  <karl@gnu.org>
103912         * config/config.guess: update from config.
103914         * config/srclistvars.sh: GNUWWWLICENSES for karl.
103916 2004-01-20  Bruno Haible  <bruno@clisp.org>
103918         Safer stack allocation.
103919         * lib/setenv.c: Include allocsa.h.
103920         (alloca): Remove fallback definition.
103921         (freea): Remove macro.
103922         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
103923         instead of freea.
103925 2004-01-20  Bruno Haible  <bruno@clisp.org>
103927         * m4/eealloc.m4: New file, from GNU gettext.
103929 2004-01-20  Bruno Haible  <bruno@clisp.org>
103931         * m4/allocsa.m4: New file, from GNU gettext.
103933 2004-01-20  Bruno Haible  <bruno@clisp.org>
103935         * lib/xallocsa.h: New file, from GNU gettext.
103936         * lib/xallocsa.c: New file, from GNU gettext.
103938 2004-01-20  Bruno Haible  <bruno@clisp.org>
103940         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
103942 2004-01-20  Bruno Haible  <bruno@clisp.org>
103944         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
103945         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
103946         specially.
103948 2004-01-20  Bruno Haible  <bruno@clisp.org>
103950         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
103951         patch.
103953 2004-01-20  Bruno Haible  <bruno@clisp.org>
103955         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
103957 2004-01-20  Bruno Haible  <bruno@clisp.org>
103959         * lib/eealloc.h: New file.
103961 2004-01-20  Bruno Haible  <bruno@clisp.org>
103963         * lib/binary-io.h: Avoid warnings on Cygwin.
103965 2004-01-20  Bruno Haible  <bruno@clisp.org>
103967         * lib/allocsa.h: New file, from GNU gettext.
103968         * lib/allocsa.c: New file, from GNU gettext.
103970 2004-01-18  Karl Berry  <karl@gnu.org>
103972         * doc/gpl.texi, doc/lgpl.texi: new files.
103974 2004-01-18  Karl Berry  <karl@gnu.org>
103976         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
103977         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
103979 2004-01-15  Paul Eggert  <eggert@twinsun.com>
103981         Merge from coreutils.
103983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
103984         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
103985         (gl_DEFAULT_POSIX2_VERSION): Move
103986         the documentation from 'configure' into 'config.hin',
103987         so that 'configure --help' isn't burdened by it and
103988         we don't have to worry about its formatting there.
103989         Reword the documentation so that it's more succinct
103990         and can be run together into a single paragraph.
103991         * m4/same.m4 (gl_SAME): Check for pathconf.
103993 2004-01-15  Paul Eggert  <eggert@twinsun.com>
103995         Merge from coreutils.
103997         * lib/posixver.c: Include posixver.h.
103999         * lib/same.c: Include <stdbool.h>, <limits.h>.
104000         (_POSIX_NAME_MAX): Define if not defined.
104001         (MIN): New macro.
104002         (same_name): If file names are silently truncated, report
104003         that the file names are the same if they are the same after
104004         the silent truncation.
104006         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
104007         conversion function.
104008         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
104009         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
104010         longer needed.
104012 2004-01-15  Jim Meyering  <jim@meyering.net>
104014         Merge from coreutils.
104016         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
104017         if no library is required.
104018         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
104019         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
104020         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
104021         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
104022         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
104023         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
104024         value, $ac_cv_search_crypt, if it's "none required".
104025         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
104026         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
104027         not gl_FUNC_GETLOADAVG.
104028         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
104029         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
104031 2004-01-15  Jim Meyering  <jim@meyering.net>
104033         Merge from coreutils.
104035         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
104036         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
104037         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
104039         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
104040         optional configure-time default.
104042         * lib/version-etc.c (version_etc_copyright): Update copyright date.
104044         * lib/xreadlink.c (xreadlink): Correct outdated comment.
104046 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
104048         Merge from coreutils.
104050         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
104051         value, $ac_cv_search_nanosleep, if it's "none required".
104053 2004-01-14  Paul Eggert  <eggert@twinsun.com>
104055         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
104056         with like-named macro in fnmatch.c.
104057         (EXT): Use an internal constant instead.
104059         Merge fnmatch patches from glibc.
104060         * lib/fnmatch.c (mbsinit): Remove define.
104061         Add libc_hidden_ver (__fnmatch, fnmatch).
104062         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
104063         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
104065 2004-01-14  Karl Berry  <karl@gnu.org>
104067         * config/install-sh: update from automake.
104069 2004-01-13  Karl Berry  <karl@gnu.org>
104071         * config/install-sh: update from automake.
104073 2004-01-09  Karl Berry  <karl@gnu.org>
104075         * config/install-sh: update from automake.
104077 2004-01-05  Karl Berry  <karl@gnu.org>
104079         * config/config.{sub,guess}: update from config.
104081 2003-12-31  Karl Berry  <karl@gnu.org>
104083         * config/depcomp: update from automake.
104085 2003-12-14  Karl Berry  <karl@gnu.org>
104087         * lib/config.charset: update from gettext-runtime.
104089 2003-12-03  Paul Eggert  <eggert@twinsun.com>
104091         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
104092         Bug reported by Alfred M. Szmidt.
104094 2003-12-03  Bruno Haible  <bruno@clisp.org>
104096         * m4/gettext.m4: Upgrade from gettext-0.13.
104097         * m4/po.m4: Upgrade from gettext-0.13.
104098         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
104099         * m4/intmax.m4: New file, from gettext-0.13.
104100         * m4/printf-posix.m4: New file, from gettext-0.13.
104102 2003-11-29  Karl Berry  <karl@gnu.org>
104104         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
104106 2003-11-25  Paul Eggert  <eggert@twinsun.com>
104107             Bruno Haible  <bruno@clisp.org>
104109         * lib/printf-parse.h: Don't include sys/types.h.
104110         (ARG_NONE): New macro.
104111         (char_directive): Change type of *arg_index fields to size_t.
104112         * lib/printf-parse.c: Don't include sys/types.h.
104113         (SSIZE_MAX): Remove macro.
104114         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
104115         Remove unnecessary overflow check.
104116         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
104117         fields.
104119 2003-11-25  Bruno Haible  <bruno@clisp.org>
104121         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
104123 2003-11-25  Bruno Haible  <bruno@clisp.org>
104125         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
104126         gt_TYPE_SSIZE_T.
104128 2003-11-24  Paul Eggert  <eggert@twinsun.com>
104130         * modules/alloca: Remove dependency on xalloc.
104132 2003-11-24  Paul Eggert  <eggert@twinsun.com>
104134         * lib/alloca.c: Remove dependency on xalloc module.
104135         (xalloc_die): Remove.
104136         (memory_full) [!defined emacs]: New macro.
104137         [!defined emacs]: Don't include xalloc.h.
104138         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
104139         address arithmetic overflows.  Change datatypes a bit to avoid
104140         unnecessary casts.
104142 2003-11-22  Jim Meyering  <jim@meyering.net>
104144         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
104145         s/size/size_t/.
104147 2003-11-21  Karl Berry  <karl@gnu.org>
104149         * config/config.{sub,guess}: update from config.
104151 2003-11-18  Karl Berry  <karl@gnu.org>
104153         * config/config.{sub,guess}: update from config.
104155         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
104157 2003-11-17  Paul Eggert  <eggert@twinsun.com>
104159         * README: Mention that S+T cannot overflow if S is the size of
104160         an existing object and T is sufficiently small.
104162 2003-11-17  Jim Meyering  <jim@meyering.net>
104164         On systems without utime and without a utimes function capable of
104165         dealing with a NULL struct utimbuf* argument, this utime replacement
104166         could -- in unusual circumstances -- leak a file descriptor.
104167         * lib/utime.c: Include <unistd.h> and <errno.h>.
104168         (utime_null): Be sure to close `fd' and to preserve errno.
104169         Reported by Geoff Collyer via Arnold Robbins.
104171 2003-11-17  Bruno Haible  <bruno@clisp.org>
104173         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
104174         (Depends-on): Add xsize.
104176 2003-11-17  Bruno Haible  <bruno@clisp.org>
104178         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
104180 2003-11-17  Bruno Haible  <bruno@clisp.org>
104182         * lib/vasnprintf.c (alloca): Remove fallback definition.
104183         (freea): Remove definition.
104184         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
104185         Reported by Paul Eggert.
104187 2003-11-16  Paul Eggert  <eggert@twinsun.com>
104188             Bruno Haible  <bruno@clisp.org>
104190         Protect against address arithmetic overflow.
104191         * lib/printf-args.h: Include stddef.h.
104192         (arguments): Change type of field 'count' to size_t.
104193         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
104194         'unsigned int' where appropriate.
104195         * lib/printf-parse.h: Include sys/types.h.
104196         (char_directive): Change type of *arg_index fields to ssize_t.
104197         (char_directives): Change type of fields 'count', max_*_length to
104198         size_t.
104199         * lib/printf-parse.c: Include sys/types.h and xsize.h.
104200         (SSIZE_MAX): Define fallback value.
104201         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
104202         instead of 'int' where appropriate. Check a_allocated, d_allocated
104203         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
104204         * lib/vasnprintf.c: Include xsize.h.
104205         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
104206         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
104207         overflow. Avoid wraparound when converting a width or precision from
104208         decimal to binary.
104210 2003-11-16  Bruno Haible  <bruno@clisp.org>
104212         Update from GNU gettext.
104213         * lib/printf-parse.c: Generalize to it can be compiled for wide
104214         strings.
104215         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
104216         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
104217         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
104218         SNPRINTF): New macros.
104219         Don't include <alloca.h> if the file is used inside libintl.
104220         (local_wcslen): New function, for Solaris 2.5.1.
104221         (VASNPRINTF): Use it instead of wcslen.
104223 2003-11-16  Bruno Haible  <bruno@clisp.org>
104225         * lib/xsize.h (xmax): New function.
104226         (xsum, xsum3, xsum4): Declare as "pure" functions.
104228 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104230         * modules/xalloc (Files): Undo latest change, since xalloc.h
104231         no longer needs SIZE_MAX or PTRDIFF_MAX.
104233 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104235         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
104236         gl_PTRDIFF_MAX.
104238 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104240         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
104241         "return", to pacify some unknown compiler.  Problem reported
104242         by Joerg Schilling.
104244 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104246         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
104247         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
104248         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
104249         heuristic is just as accurate as far as we know, and it removes a
104250         dependency on size_max.m4 and ptrdiff_max.m4.
104252 2003-11-11  Bruno Haible  <bruno@clisp.org>
104254         * modules/xsize (Files): Add m4/size_max.m4.
104255         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
104257 2003-11-11  Bruno Haible  <bruno@clisp.org>
104259         * m4/size_max.m4: New file.
104260         * m4/ptrdiff_max.m4: New file.
104261         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
104262         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
104263         (gl_XALLOC): Invoke it.
104265 2003-11-11  Bruno Haible  <bruno@clisp.org>
104267         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
104268         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
104269         defined.
104271 2003-11-10  Paul Eggert  <eggert@twinsun.com>
104273         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
104274         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
104275         rejected some allocations of exactly SIZE_MAX - 2 bytes.
104276         From Bruno Haible.
104277         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
104278         not (size_t) -1, since it's defined here.
104280 2003-11-09  Karl Berry  <karl@gnu.org>
104282         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
104284 2003-11-06  Paul Eggert  <eggert@twinsun.com>
104286         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
104287         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
104288         Reject sizes of exactly SIZE_MAX bytes.
104289         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
104290         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
104292 2003-11-05  Bruno Haible  <bruno@clisp.org>
104294         * lib/xsize.h: Include limits.h, to avoid a possible collision with
104295         SIZE_MAX defined in <limits.h> on Solaris.
104297 2003-11-04  Jim Meyering  <jim@meyering.net>
104299         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
104300         variable names, rather than @VAR@.
104301         * modules/poll: Likewise.
104303 2003-11-04  Bruno Haible  <bruno@clisp.org>
104305         * modules/xsize: New file.
104306         * modules/linebreak: Depend on xsize.
104307         * MODULES.html.sh (func_all_modules): Add xsize.
104309 2003-11-04  Bruno Haible  <bruno@clisp.org>
104311         * m4/xsize.m4: New file.
104313 2003-11-04  Bruno Haible  <bruno@clisp.org>
104315         * lib/xsize.h: New file.
104316         * lib/linebreak.c: Include xsize.h.
104317         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
104318         argument for overflow.
104319         Suggested by Paul Eggert.
104321 2003-11-03  Karl Berry  <karl@gnu.org>
104323         * config/config.{guess,sub}: update from config.
104325 2003-11-03  Jim Meyering  <jim@meyering.net>
104327         * modules/userspec (lib_SOURCES): Add userspec.h.
104328         (Include): Add "userspec.h".
104329         Improve description.
104331 2003-11-03  Jim Meyering  <jim@meyering.net>
104333         * lib/userspec.c: Include "userspec.h".
104334         * lib/userspec.h: New file.
104336 2003-11-03  Bruno Haible  <bruno@clisp.org>
104338         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
104340 2003-11-03  Bruno Haible  <bruno@clisp.org>
104342         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
104343         available, to avoid (extremely rare) race condition.
104344         Suggested by Paul Eggert.
104346 2003-11-02  Karl Berry  <karl@gnu.org>
104348         * config/srclist.txt (vasprintf.c): sync broken, sigh.
104350 2003-10-31  Paul Eggert  <eggert@twinsun.com>
104352         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
104353         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
104354         (read_filesystem_list): Set and use me_type_malloced.
104355         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
104356         whatever the type happens to be), for brevity and consistency.
104357         Check for size calculation overflow on Alphas running OSF/1.
104359 2003-10-31  Jim Meyering  <jim@meyering.net>
104361         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
104363         * lib/linebuffer.c: Include <string.h> for declaration of memset.
104365 2003-10-30  Paul Eggert  <eggert@twinsun.com>
104366             Bruno Haible  <bruno@clisp.org>
104368         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
104369         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
104371 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
104373         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
104374         netbsd*-gnu*.  Suggested by Robert Millan.
104376 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104378         * modules/group-member: Depend on stdbool.
104380 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104382         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
104384 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104386         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
104387         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
104388         after the 'gnu' in these cases.  This fixes some bugs in the
104389         previous change, and is based on suggestions by Robert Millan.
104391 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104393         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
104394         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
104395         no longer needed.
104396         * lib/quotearg.c (quotearg_n_options): Use it.
104397         * lib/group-member.c: Include <stdbool.h>.
104398         (free_group_info): Arg is now const *; don't free arg.
104399         (get_group_info): Now returns bool and accepts struct group_info *,
104400         rather than returning a malloc'ed struct group_info *.
104401         All uses changed.  Check for overflow in internal size calculation.
104403         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
104404         rather than xmalloc/xrealloc.
104405         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
104406         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
104407         conformance bug: the old code used a pointer after freeing the
104408         storage that it addressed.
104409         * lib/hash.c (hash_initialize): Simplify the code by using
104410         xalloc_oversized rather than doing it by hand.
104411         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
104412         the buffer preserved.  Use free and xmalloc instead.
104413         * lib/quotearg.c (quotearg_n_options): Likewise.
104414         Use a simpler test for size overflow.  Don't use xalloc_oversized
104415         because unsigned int might be wider than size_t (!); this suggests
104416         that we should switch from unsigned int to size_t for slot numbers.
104418 2003-10-28  Paul Eggert  <eggert@twinsun.com>
104420         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
104421         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
104422         NetBSD kernels.  Requested by Richard Stallman.
104424 2003-10-27  Paul Eggert  <eggert@twinsun.com>
104426         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
104427         to allocate the returned structure.  Do not allocate a subarray,
104428         as x2nrealloc will do that.
104429         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
104430         instead of xnrealloc.
104431         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
104433 2003-10-27  Bruno Haible  <bruno@clisp.org>
104435         * lib/stdbool_.h: Better support for BeOS.
104437 2003-10-26  Paul Eggert  <eggert@twinsun.com>
104439         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
104440         now uses inline.
104442 2003-10-26  Paul Eggert  <eggert@twinsun.com>
104444         * lib/xalloc.h (xalloc_oversized): New static inline function, for
104445         callers that want to do their own size-overflow checking.  Include
104446         <stdbool.h>, since xalloc_oversized returns bool.
104447         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
104448         to use xalloc_oversized.
104450         Add two functions x2realloc, x2nrealloc, for programs that grow
104451         arrays dynamically by doubling their sizes.
104452         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
104453         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
104454         New functions.
104456         Port to C99 semantics for 'inline' of external functions.
104457         Bug reported by Bruno Haible.
104458         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
104459         with the old contents of xnmalloc.
104460         (xnmalloc, xmalloc): Use it.
104461         (xnrealloc_inline): New static inline function,
104462         with the old contents of xnrealloc.
104463         (xnrealloc, xrealloc): Use it.
104465         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
104466         that.
104468 2003-10-26  Karl Berry  <karl@gnu.org>
104470         * config/srclist.txt (COPYING.DOC): no longer available from
104471         /gd/gnuorg; don't know where the ultimate source is.
104473 2003-10-25  Paul Eggert  <eggert@twinsun.com>
104475         Fix several address-calculation bugs in the hash modules,
104476         plus some minor code cleanup.
104478         * lib/hash.h: Include <stdbool.h>, for bool.
104479         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
104480         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
104481         hash_get_n_entries, hash_get_max_bucket_length,
104482         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
104483         hash_rehash): Use size_t rather than unsigned.
104484         * lib/hash.c (struct hash_table, hash_get_n_buckets,
104485         hash_get_n_buckets_used, hash_get_n_entries,
104486         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
104487         hash_get_entries, hash_do_for_each, hash_string, is_prime,
104488         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
104489         Likewise.
104490         (SIZE_MAX): Define if not defined.
104491         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
104492         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
104493         hash_print):
104494         Use const * when possible.
104495         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
104496         (check_tuning): Fix bug: if tuning parameters were very close to
104497         0 or 1, rounding errors could have caused subscript violations.
104498         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
104499         (hash_initialize): Add 'fail:' label
104500         to free table and return NULL, and use it to simplify code.
104501         Use calloc rather than clearing the storage ourself.
104502         (hash_initialize, hash_rehash): Check for arithmetic overflow in
104503         buffer size calculations.
104504         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
104505         Include <stddef.h>, for size_t.
104506         * lib/hash-pjw.c (hash_pjw): Likewise.
104507         Switch to method described by Bruno Haible.
104508         Include <limits.h>, for CHAR_BIT.
104509         (SIZE_BITS): New macro.
104511 2003-10-23  Paul Eggert  <eggert@twinsun.com>
104513         * m4/getline.m4 (AM_FUNC_GETLINE):
104514         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
104515         hosts.  Problem reported by Derek Robert Price in
104516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
104517         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
104518         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
104520 2003-10-21  Paul Eggert  <eggert@twinsun.com>
104522         * lib/getndelim2.c (getndelim2): When size calculation overflows,
104523         ceiling the allocation at NMAX bytes rather than silently
104524         discarding input bytes before NMAX is reached.  This makes
104525         a difference only if NMAX exceeds SIZE_MAX / 2.
104527         * lib/obstack.c: Merge from glibc.
104528         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
104529         Add libc_hidden_def (_obstack_newchunk).
104530         (_obstack_free) [! defined _LIBC]: Remove.
104531         [defined _LIBC]: Make a strong alias from obstack_free, rather than
104532         a clone of the function body.
104533         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
104534         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
104536         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
104537         glibc.
104538         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
104539         arg to memcpy.
104541         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
104542         (obstack_ptr_grow_fast, obstack_int_grow_fast):
104543         Don't use lvalue casts, as GCC plans to remove support for them
104544         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
104545         was also present in the non-GCC version, indicating that this
104546         code had always been buggy and had never been widely used.
104547         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
104548         Use the fast variant of each macro, rather than copying the
104549         definiens of the fast variant; that way, we'll be more likely to
104550         catch future bugs in the fast variants.
104552 2003-10-20  Bruno Haible  <bruno@clisp.org>
104554         * modules/wait-process: New file.
104555         * MODULES.html.sh (func_all_modules): Add wait-process.
104557 2003-10-20  Bruno Haible  <bruno@clisp.org>
104559         * m4/wait-process.m4: New file.
104561 2003-10-20  Bruno Haible  <bruno@clisp.org>
104563         * lib/wait-process.h: New file, from GNU gettext.
104564         * lib/wait-process.c: New file, from GNU gettext.
104566 2003-10-19  Jim Meyering  <jim@meyering.net>
104568         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
104569         HPUX 10.20.
104571 2003-10-18  Karl Berry  <karl@gnu.org>
104573         * config/config.guess: update from config.
104575 2003-10-16  Paul Eggert  <eggert@twinsun.com>
104577         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
104578         (getgroups): First arg is int, not size_t.
104579         Don't let 'free' mangle errno.
104581 2003-10-16  Paul Eggert  <eggert@twinsun.com>
104583         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
104585 2003-10-16  Karl Berry  <karl@gnu.org>
104587         * config/config.{guess,sub}: update from config.
104589 2003-10-16  Jim Meyering  <jim@meyering.net>
104591         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
104592         memcpy.
104594 2003-10-15  Paul Eggert  <eggert@twinsun.com>
104596         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
104597         (SIZE_MAX): Remove.
104598         (new_exclude, add_exclude_file): Initial size no longer needs to
104599         be a power of 2.
104600         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
104601         our own address arithmetic overflow checking.
104603         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
104604         (fnmatch): Do not alloca more than 2000 wide characters;
104605         instead, use malloc for large buffers.
104606         Check for address arithmetic overflow, and return -1
104607         with errno set to ENOMEM in that case.
104608         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
104609         (NEW_PATTERN): Do not alloca more than 8000 bytes;
104610         instead, return -1.  Check for address arithmetic overflow.
104612 2003-10-14  Paul Eggert  <eggert@twinsun.com>
104614         Handle invalid suffixes and overflow independently, so that
104615         callers can treat them independently as needed.  Fix some bugs in
104616         suffix handling, e.g., "100k@" was not diagnosed as an invalid
104617         suffix for a human-readable blocksize.  The major caller-visible
104618         change is the addition of a new
104619         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
104620         that both overflow and suffix chars were found.
104622         * lib/human.c (humblock): Don't check separately for invalid suffix
104623         char; that is xstrtoumax's job (now that its bug is fixed).
104624         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
104625         INTMAX_MAX]: New macros.
104626         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
104627         TYPE_MAXIMUM): New macros.
104628         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
104629         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
104630         if overflow occurs, as it's what __strtol does and it's more useful
104631         in practice.
104632         (__xstrtol): If __strtol reports some error other than ERANGE,
104633         reflect it to the caller as LONGINT_INVALID.  If it reports
104634         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
104635         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
104636         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
104637         value.
104638         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
104639         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
104640         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
104641         [defined UINTMAX_MAX]: New macros.
104643 2003-10-14  Bruno Haible  <bruno@clisp.org>
104645         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
104647 2003-10-14  Bruno Haible  <bruno@clisp.org>
104649         * m4/sig_atomic_t: New file, from GNU gettext.
104650         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
104652 2003-10-14  Bruno Haible  <bruno@clisp.org>
104654         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
104655         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
104656         Also use volatile where needed.
104658 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104660         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
104661         Change maintainer from Bruno Haible to 'all'.
104663 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104665         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
104667 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104669         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
104670         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
104671         and define in terms of the other primitives.
104672         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
104673         (SIZE_MAX): Define if not already defined.
104674         (array_size_overflow): New function.
104675         (xalloc_die): Abort instead of exiting if 'error' returns.
104676         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
104677         (xmalloc, xrealloc): Use them.
104678         (xcalloc): Check for address arithmetic overflow.
104679         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
104680         a bit faster than strcpy.
104682 2003-10-10  Simon Josefsson  <jas@extundo.com>
104684         * modules/argp (Depends-on): Add restrict and strcase.
104686 2003-10-10  Simon Josefsson  <jas@extundo.com>
104688         * m4/argp.m4: Add AC_C_INLINE.
104690 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104692         Merge getpass from libc, plus a few fixes.
104694         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
104695         Include <stdbool.h>.
104696         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
104697         __fsetlocking to empty.
104698         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
104699         do include <bits/libc-lock.h>.
104700         Do not include <fcntl.h>; not needed.
104701         [_LIBC]: Include <wchar.h>.
104702         (NOTCANCEL_MODE): New macro.
104703         (flockfile, funlockfile) [_LIBC]: New macros.
104704         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
104705         [!_LIBC]: New macros.
104706         (call_fclose): New function.
104707         (getpass): Use it.  Save tty stream separately; this simplifies the
104708         code and makes it more reliable if stdin happens to equal stdout.
104709         Invoke __fsetlocking on tty.
104710         Handle thread cancellation if needed.
104711         Namespace cleanup (use __tcgetattr, __getline).
104712         Use bool for Booleans.
104713         [USE_IN_LIBIO]: Handle wide streams.
104714         [!_LIBC]: Unconditionally do the fseek, since we don't know what
104715         stream might go where.
104717         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
104718         doesn't have to include <stdio.h> before us.
104719         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
104720         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
104721         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
104722         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
104723         if not declared, so that we can use getpass.c code from libc without
104724         rewriting it.
104725         (flockfile, ftrylockfile, funlockfile): New macros.
104727 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104729         * modules/getpass: Depend on stdbool.
104731 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104733         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
104735 2003-10-07  Karl Berry  <karl@gnu.org>
104737         * config/config.{guess,sub}: update from config.
104739 2003-10-06  Jim Meyering  <jim@meyering.net>
104740             Bruno Haible  <bruno@clisp.org>
104742         This lets translators provide better translations for the
104743         "Written by ..." part of --version output.
104744         * lib/version-etc.h: Include stdarg.h.
104745         (version_etc_copyright): Declare as readonly.
104746         (version_etc): Make this function variadic with a NULL-terminated list
104747         of author name strings.
104748         (version_etc_va): New declaration.
104749         * lib/version-etc.c: Include stdarg.h, stdlib.h.
104750         (version_etc_copyright): Declare as readonly.
104751         (version_etc_va): New function. Provide a different translatable string
104752         for each possible number of authors < 10. Abbreviate when there are 10
104753         authors or more.
104754         (version_etc): Make this function variadic. Call version_etc_va.
104755         Suggestion from Gary V. Vaughan.
104757         * lib/long-options.h (parse_long_options): Change prototype: the
104758         authors string is moved to the end and becomes variadic.
104759         * lib/long-options.c: Include stdarg.h.
104760         (parse_long_options): Make this function variadic, too.
104761         Call version_etc_va, not version_etc.
104763 2003-10-06  Bruno Haible  <bruno@clisp.org>
104765         * modules/version-etc-2: Remove file.
104766         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
104768 2003-10-06  Bruno Haible  <bruno@clisp.org>
104770         * modules/fatal-signal: New file.
104771         * MODULES.html.sh (func_all_modules): Add fatal-signal.
104773 2003-10-06  Bruno Haible  <bruno@clisp.org>
104775         * m4/fatal-signal.m4: New file.
104776         * m4/signalblocking.m4: New file, from GNU gettext.
104778 2003-10-06  Bruno Haible  <bruno@clisp.org>
104780         * lib/version-etc-2.h: Remove file.
104781         * lib/version-etc-2.c: Remove file.
104783 2003-10-06  Bruno Haible  <bruno@clisp.org>
104785         * lib/fatal-signal.h: New file, from GNU gettext.
104786         * lib/fatal-signal.c: New file, from GNU gettext.
104788 2003-10-05  Paul Eggert  <eggert@twinsun.com>
104790         * README: Rework advice for preventing empty .o files.
104791         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
104792         not <sys/types.h>.
104794 2003-10-04  Karl Berry  <karl@gnu.org>
104796         * lib/argp*: update from libc.
104798 2003-10-04  Karl Berry  <karl@gnu.org>
104800         * config/config.{guess,sub}: update from config.
104802 2003-10-02  Bruno Haible  <bruno@clisp.org>
104804         * modules/lchown (Include): Add lchown.h.
104805         * modules/time_r (Include): Use "..." syntax.
104806         * modules/xgetdomainname (Include): Add xgetdomainname.h.
104808 2003-10-01  Simon Josefsson  <jas@extundo.com>
104810         * MODULES.html.sh (func_all_modules): Move gethostname from section
104811         'based on' to section 'lacking' POSIX:2001.
104813 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
104815         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
104816         to output mode on the same stream.
104818 2003-09-29  Paul Eggert  <eggert@twinsun.com>
104820         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
104821         Fix arg typo in previous patch.
104823 2003-09-28  Jim Meyering  <jim@meyering.net>
104825         * lib/error.c: Correct cpp indentation.
104827 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104829         * modules/free: New file.
104831 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104833         * m4/free.m4: New file.
104835 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104837         * lib/minmax.h (MIN, MAX)
104838         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
104839         Omit the special code that used __typeof__, since we worry that
104840         it could be more trouble than it's worth.  See:
104841         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
104842         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
104844         * lib/free.c: New file.
104846 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
104848         Trivial fixes to Makefile.am parts of module listings.
104849         * modules/strstr: Append strstr.h to lib_SOURCES.
104850         * modules/strcase: Likewise, for strcase.h.
104852 2003-09-27  Karl Berry  <karl@gnu.org>
104854         * config/mkinstalldirs: update from automake.
104856 2003-09-26  Paul Eggert  <eggert@twinsun.com>
104858         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
104859         (error_tail): Do not loop, reallocating temporary buffer, since
104860         the output cannot contain more wide characters than the input
104861         contains bytes, the size must be big enough already.  This avoids
104862         one potential size overflow calculation.  Check for size overflow
104863         when calculating temporary buffer size.  Free temporary buffer
104864         when done, if it was allocated with malloc; this plugs a memory
104865         leak.  Remove casts from void * to pointers, that are no longer
104866         needed now that we're assuming C89 or better.
104868         Merge error changes from glibc.
104870         * lib/error.c, error.h: Update copyright notice header to match glibc.
104871         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
104872         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
104873         Disable cancellation while printing error.
104874         * lib/error.h: Prepend __ to parameter names.
104876 2003-09-26  Jim Meyering  <jim@meyering.net>
104878         * lib/error.c (error_tail): Move some declarations
104879         into inner scope where the local variables are used.
104881 2003-09-26  Bruno Haible  <bruno@clisp.org>
104883         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
104884         stpncpy().
104885         Don't define stpncpy through config.h; it's now done through stpncpy.h.
104887 2003-09-26  Bruno Haible  <bruno@clisp.org>
104889         * lib/stpncpy.h (gnu_stpncpy): New declaration.
104890         (stpncpy): Define as alias for gnu_stpncpy.
104891         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
104893 2003-09-25  Simon Josefsson  <jas@extundo.com>
104895         * lib/xgetdomainname.h: New file.
104896         * lib/xgetdomainname.c: New file.
104898 2003-09-25  Simon Josefsson  <jas@extundo.com>
104899             Bruno Haible  <bruno@clisp.org>
104901         * modules/getdomainname: New file.
104902         * modules/xgetdomainname: New file.
104903         * MODULES.html.sh (func_all_modules): Add getdomainname,
104904         xgetdomainname.
104906 2003-09-25  Simon Josefsson  <jas@extundo.com>
104907             Bruno Haible  <bruno@clisp.org>
104909         * m4/getdomainname.m4: New file.
104911 2003-09-25  Simon Josefsson  <jas@extundo.com>
104912             Bruno Haible  <bruno@clisp.org>
104914         * lib/getdomainname.h: New file.
104915         * lib/getdomainname.c: New file.
104917 2003-09-25  Karl Berry  <karl@gnu.org>
104919         * lib/argp-fmtstream.c, argp-help.c: update from libc.
104921 2003-09-25  Karl Berry  <karl@gnu.org>
104923         * config/install-sh: update from automake.
104925 2003-09-25  Bruno Haible  <bruno@clisp.org>
104927         * modules/version-etc-2: New file, from modules/version-etc with
104928         modifications.
104929         * MODULES.html.sh (func_all_modules): Add version-etc-2.
104931 2003-09-25  Bruno Haible  <bruno@clisp.org>
104933         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
104934         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
104936 2003-09-24  Simon Josefsson  <jas@extundo.com>
104938         * modules/xgethostname: Add xgethostname.h.
104940 2003-09-24  Paul Eggert  <eggert@twinsun.com>
104942         * lib/linebuffer.c (freebuffer): Don't free the argument, just
104943         the buffer associated with the argument.  Bug reported by
104944         Simon Josefsson.
104946 2003-09-24  Paul Eggert  <eggert@twinsun.com>
104948         * README: Document assumptions that 'int' is at least 32 bits
104949         wide, that integer arithmetic is 2's complement without overflow,
104950         that there are no holes in integer values, that adding sizes of
104951         two nonoverlapping objects can't overflow, and that all-bits-zero
104952         yields scalar zero.  Fix spelling and capitalization typos.
104954 2003-09-19  Karl Berry  <karl@gnu.org>
104956         * lib/argp.h: update from libc.
104958 2003-09-17  Paul Eggert  <eggert@twinsun.com>
104960         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
104961         to avoid spurious warnings like "AC_RUN_IFELSE was called before
104962         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
104964 2003-09-17  Paul Eggert  <eggert@twinsun.com>
104966         * gnulib-tool: Use "test -h", not "test -L", for portability
104967         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
104968         (tags_regexp): Remove, since \| doesn't conform to POSIX.
104969         (sed_extract_prog): Issue s commands one-by-one, rather than
104970         using \| in one s command.
104972 2003-09-16  Paul Eggert  <eggert@twinsun.com>
104974         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
104975         input error, instead of returning NULL the next time we are called
104976         (and therefore losing track of errno).
104978 2003-09-16  Bruno Haible  <bruno@clisp.org>
104980         * gnulib-tool (func_create_testdir): Warn about duplicated
104981         dependencies.
104983 2003-09-15  Paul Eggert  <eggert@twinsun.com>
104985         * modules/argmatch, modules/fatal, modules/obstack,
104986         modules/xalloc, modules/xgethostname: Sort dependencies by
104987         importance, not alphabetically.
104989 2003-09-15  Paul Eggert  <eggert@twinsun.com>
104991         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
104992         fails, so that the caller gets the proper errno.
104994         * lib/readutmp.c (read_utmp): Likewise.
104995         Check for fstat error.  Close stream and free storage
104996         when failing.
104998 2003-09-14  Karl Berry  <karl@gnu.org>
105000         * config/srclist.txt (strdup.c): disable for c89 changes.
105002 2003-09-14  Jim Meyering  <jim@meyering.net>
105004         * lib/getloadavg.c: Correct cpp indentation.
105005         * lib/strdup.c: Likewise.
105006         * lib/vasnprintf.c: Likewise.
105008 2003-09-14  Bruno Haible  <bruno@clisp.org>
105010         * modules/fwriteerror: New file.
105011         * MODULES.html.sh (func_all_modules): Add fwriteerror.
105013 2003-09-14  Bruno Haible  <bruno@clisp.org>
105015         * lib/fwriteerror.h: New file.
105016         * lib/fwriteerror.c: New file.
105018 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105020         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
105021         modules/xgethostname, modules/xalloc: Depend on exit.
105023 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105025         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
105027         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
105028         and AC_MINIX, too, so that their extensions are available.
105030         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
105031         This macro has been superseded by gl_BACKUPFILE.
105033         More patches to assume C89 or better.
105035         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
105037         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
105038         unconditionally.
105039         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
105040         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
105041         Include <string.h>, <stdlib.h> unconditionally.
105042         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
105043         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
105044         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
105045         headers or for string.h.
105046         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
105047         or strtoul.
105049         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
105050         headers.
105051         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
105052         * m4/userspec.m4 (gl_USERSPEC): Likewise.
105053         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
105054         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
105055         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105056         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
105057         memcpy, memset.
105058         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
105059         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
105060         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
105061         strtol.
105062         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
105063         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
105064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
105065         strtoul.
105067 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105069         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
105070         * lib/obstack.c [!defined _LIBC]: Likewise.
105071         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
105072         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
105073         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
105075         More changes to assume C89 or better.
105077         * lib/error.c (error_tail): Assume vprintf.
105079         * lib/argmatch.c (getenv): Remove decl.
105080         * lib/progreloc.c (get_full_program_name): Define via prototype.
105081         * lib/setenv.c (clearenv): Likewise.
105082         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
105083         needed.
105084         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
105085         (malloc, memcpy): Remove decls.
105086         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
105087         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
105088         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
105089         (memcpy): Remove macro.
105090         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
105091         (__P): Remove.  All uses removed.
105092         (PTR): Remove.  All uses changed to void *.
105093         (CHAR_BIT, NULL): Remove.
105094         (spaces, zeros, memset_space, memset_zero)
105095         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
105096         Remove.
105097         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
105098         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
105099         Define with prototype.
105100         Remove now-unnecessary prototype decl.
105101         (extra_args_spec): Assume ANSI C.  All uses changed.
105102         (extra_args_spec_iso): Remove.
105103         (my_strftime, emacs_strftimeu): Define via prototype.
105104         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
105105         unconditionally.
105106         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
105107         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
105108         (strtoul, strtol): Remove decls.
105109         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
105110         LONG_MAX): Remove.
105111         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
105112         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
105113         (LOCALE_PARAM_PROTO): New macro.
105114         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
105115         (INTERNAL (strtol), strtol): Define with a prototype.
105116         (PARAMS): Remove.  All uses removed.
105117         * lib/tempname.c: Include <string.h> unconditionally.
105118         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
105119         * lib/xgethostname.c (main): Define with a prototype.
105120         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
105121         Include <stdlib.h> unconditionally.
105122         (calloc, malloc, realloc, free): Remove decls.
105123         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
105124         Include <stdlib.h> unconditionally.  Sort include file names.
105125         (strtod): Remove.
105126         (xstrtod): Define with a prototype.
105127         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
105128         (strtol, strtoul): Remove decls.
105130 2003-09-11  Paul Eggert  <eggert@twinsun.com>
105132         More patches to assume C89 or better.
105133         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
105134         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
105135         string.h, memchr, STDC_HEADERS.
105137 2003-09-11  Paul Eggert  <eggert@twinsun.com>
105139         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
105140         Include <stdlib.h>, <string.h> unconditionally.
105141         Remove now-unnecessary cast to char *.
105142         * lib/strnlen.c: Include <string.h> unconditionally.
105143         * lib/yesno.c (yesno): Define with a prototype.
105145 2003-09-11  Bruno Haible  <bruno@clisp.org>
105147         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
105149 2003-09-10  Jim Meyering  <jim@meyering.net>
105151         * lib/error.c: Correct indentation of cpp directives.
105153 2003-09-10  Bruno Haible  <bruno@clisp.org>
105155         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
105156         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
105157         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
105158         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
105159         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
105160         <stdlib.h> and <string.h> checks.
105161         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
105162         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
105164 2003-09-10  Bruno Haible  <bruno@clisp.org>
105166         * lib/strcspn.c: Include <string.h> unconditionally.
105167         * lib/strpbrk.c: Include <string.h> unconditionally.
105168         * lib/strstr.c: Include <string.h> unconditionally.
105169         * lib/unicodeio.c: Include <string.h> unconditionally.
105170         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
105171         * lib/unsetenv.c: Likewise.
105172         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
105173         * lib/yesno.c: Include <stdlib.h> unconditionally.
105174         (rpmatch): Add prototype.
105176 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105178         More patches to assume C89 or better.
105179         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
105180         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
105181         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
105182         or for string.h.
105183         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
105184         stdlib.h.
105185         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
105186         C headers.
105187         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
105188         string.h.
105189         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
105190         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
105191         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
105192         or for string.h.
105193         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
105194         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
105195         C headers.
105196         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
105197         memcpy.
105198         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
105199         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
105200         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
105201         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
105202         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
105203         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
105204         string.h, free.
105205         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
105206         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
105207         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
105208         C headers, or for string.h.
105209         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
105210         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
105211         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
105212         headers, memory.h, stdlib.h, string.h, strings.h.
105213         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
105214         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
105215         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
105216         strchr.
105217         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
105218         headers, memory.h, string.h.
105219         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
105220         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
105221         free.
105222         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
105223         headers.
105224         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
105225         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
105226         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
105227         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
105228         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
105230 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105232         More K&R removal.
105234         * lib/acosl.c (main): Use a prototype.
105235         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
105236         tanl.c: Likewise.
105238         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
105240         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
105241         (getopt, etopt_long, getopt_long_only, _getopt_internal)
105242         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
105243         with a prototype.
105244         * lib/getopt.c (const): Remove macro.
105245         Include <string.h> unconditionally.
105246         (my_index): Remove; all uses changed to strchr.
105247         (strlen): Remove decl.
105248         (exchange): Remove forward decl; no longer needed.
105249         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
105250         Define with prototype.
105251         * lib/getopt1.c (const): Remove macro.
105252         (getopt_long, getopt_long_only, main): Define with prototype.
105254         * lib/getugroups.c: Include <string.h> unconditionally.
105256         * lib/getusershell.c: Include <stdlib.h> unconditionally.
105257         (getusershell, setusershell, endusershell, readname, main):
105258         Define with prototypes.
105260         * lib/group-member.c: Include group-member.h first.
105261         Include <stdlib.h> unconditionally.
105263         * lib/hard-locale.c: Include hard-locale.h first.
105264         Include <stdlib.h>, <string.h> unconditionally.
105266         * lib/hash.c (free, malloc): Remove decls.
105267         Include <stdlib.h> unconditionally.
105269         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
105270         (getenv): Do not declare.
105272         * lib/idcache.c: Include <string.h> unconditionally.
105274         * lib/long-options.c: Include long-options.h first, to test interface.
105275         Include <stdlib.h> unconditionally.
105277         * lib/makepath.c: Include makepath.h first, to test interface.
105278         Include <stdlib.h> and <string.h> unconditionally.
105280         * lib/linebuffer.c: Include <stdlib.h>.
105281         (free): Remove decl.
105283         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
105284         stddef.h. rpl_malloc returns void *, not char *.
105285         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
105286         prototype.
105288         * lib/md5.h: Include <limits.h> unconditionally.
105289         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
105290         (__P): Remove; all uses removed.
105291         * lib/md5.c: Include "md5.h" first.
105292         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
105293         md5_buffer, md5_process_bytes, md5_process_block):
105294         Define with prototypes.
105295         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
105296         * lib/sha.c: Include "sha.h" first.
105297         Include <stdlib.h>, <string.h> unconditionally.
105299         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
105300         * lib/memcmp.c (__ptr_t): Likewise.
105301         * lib/memrchr.c (__ptr_t): Likewise.
105302         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
105303         Include <string.h> unconditionally.
105304         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
105305         * lib/memchr.c: Include <stdlib.h> unconditionally.
105306         * lib/memchr.c (LONG_MAX): Remove.
105307         * lib/memrchr.c (LONG_MAX): Likewise.
105308         * lib/memchr.c (__memchr): Define via a prototype.
105309         * lib/memrchr.c (__memrchr): Likewise.
105310         * lib/memcmp.c (__P): Remove, and remove all uses.
105311         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
105312         Remove forward decls; no longer needed.
105313         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
105314         Use types required by C89 in prototype.
105316         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
105317         * lib/savedir.c: Likewise.
105318         * lib/mkdir.c (free): Remove decl.
105319         * lib/rmdir.c (rmdir): Define with a prototype.
105320         * lib/savedir.c: Include savedir.h first, to test interface.
105322         * lib/mktime.c (STDC_HEADERS): Remove.
105323         Include <stdlib.h>, <string.h> unconditionally.
105325         * lib/modechange.c: Include <stdlib.h> unconditionally.
105326         (malloc): Remove decl.
105328         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
105329         (free): Remove decl.
105331         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
105332         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
105333         (This type really should be intptr_t, but that's a C99ism.)
105334         (_obstack_memcpy): Remove: all uses changed to memcpy.
105335         Include <string.h> unconditionally.
105336         (struct obstack): Assume __STDC__ for types of members
105337         chunkfun, freefun, extra_arg.
105338         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
105339         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
105340         obstack_begin, obstack_specify_allocation,
105341         obstack_specify_allocation_with_arg, obstack_chunkfun,
105342         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
105343         Remove unprototyped decls and the macros that use them.
105344         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
105345         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
105346         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
105347         (defined __STDC__ && __STDC__)]:
105348         Remove nonprototyped code.
105349         Include <stdlib.h> unconditionally.
105350         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
105351         _obstack_allocated_p, _obstack_free, obstack_free,
105352         _obstack_memory_used, print_and_abort):
105353         Define using prototypes.
105354         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
105355         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
105356         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
105357         obstack_next_free, obstack_object_size, obstack_room) [0]:
105358         Remove unused, unprototyped code.
105360         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
105362         * lib/physmem.c (physmem_total, physmem_available, main): Define
105363         with prototypes.
105365         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
105366         (main): Define with a prototype.
105368         * lib/posixver.c (getenv): Remove decl.
105370         * lib/putenv.c (malloc): Returns void *, not char *.
105371         Include <string.h> unconditionally.
105372         (strchr, memcpy, NULL): Do not define.
105374         * lib/readtokens.c: Include readtokens.h first, to test interface.
105375         Include <stdlib.h>, <string.h> unconditionally.
105376         (init_tokenbuffer): Define with a prototype.
105378         * lib/regex.c (PARAMS): Remove.  All uses removed.
105379         All uses of _RE_ARGS removed, too.
105380         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105381         unconditionally.
105382         (bzero): Assume memset exists.
105383         (memcmp, memcpy, NULL): Remove.
105384         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
105385         char, or assignments to local vars of type signed char.
105386         (init_syntax_once, PREFIX(extract_number_and_incr),
105387         PREFIX(print_partial_compiled_pattern),
105388         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
105389         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
105390         PREFIX(regex_grow_registers), PREFIX(regex_compile),
105391         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
105392         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
105393         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
105394         wcs_compile_range, byte_compile_range, truncate_wchar,
105395         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
105396         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
105397         count_mbs_length, wcs_re_match_2_internal,
105398         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
105399         PREFIX(alt_match_null_string_p),
105400         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
105401         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
105402         regfree, PREFIX(extract_number)): Define with prototype.  Remove
105403         now-unnecessary declaration, if any.
105404         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
105405         regcomp, regexec):
105406         Remove now-unnecessary casts among pointer types.
105407         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
105409         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
105410         (free): Remove decl.
105412         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
105414         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
105415         (free): Remove decl.
105417         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
105418         * lib/xgetcwd.c: Likewise.
105420         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
105421         (free): Remove decl.
105423         * lib/strchrnul.c (strchrnul): Define with a prototype.
105424         Fix bug: c_in was not converted to char before searching.
105426         The following changes are not K&R related:
105428         * lib/group-member.h: Include <sys/types.h>, so that this file is
105429         self-contained.
105430         * lib/makepath.h: Likewise.
105432         * lib/getusershell.c (readname, default_index, line_size, readname):
105433         Use size_t, not int, for sizes.
105434         (readname): If the size overflows, report an error instead of
105435         looping forever.
105437 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105439         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
105440         libc.
105442 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105444         * README: New section: portability guidelines.
105446 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
105448         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
105449         C89 spec.
105451 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
105453         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
105455 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105457         Assume C89 or better; remove K&R cruft.
105458         A few of these changes were first proposed by Derek Robert Price
105459         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
105461         * lib/addext.c: Include <string.h> unconditionally.
105462         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
105463         Don't declare getenv or malloc.
105465         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
105466         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
105467         (NULL): Remove.
105468         (find_stack_direction, alloca): Use prototypes.
105470         * lib/atexit.c (atexit): Define using a prototype.
105472         * lib/basename.c, dirname.c, stripslash.c:
105473         Include <string.h> unconditionally.
105475         * lib/bcopy.c: Include <stddef.h>.
105476         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
105478         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
105480         * lib/error.h (error, error_at_line, error_print_progname)
105481         [! (defined (__STDC__) && __STDC__)]: Remove decls.
105482         * lib/error.c: Include error.h first, to check interface.
105483         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
105484         (VA_START): Remove; all uses changeed to va_start.
105485         (exit, strerror): Remove decls.
105486         (error_print_progname): Prototype uncondionally.
105487         Don't include <errno.h>; no longer needed.
105488         (private_strerror): Remove.
105489         (error_tail): Always define.
105490         (error, error_at_line): Assume C89 or better; always use prototypes.
105491         * lib/fatal.c: Include "fatal.h" first, to test interface.
105492         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
105493         (VA_START): Remove; all uses changed to va_start.
105494         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
105495         this case.
105496         (exit): Remove decl.
105497         (fatal): Prototype unconditionally.  Assume va_start works.
105498         Abort at end, to pacify gcc.
105500         * lib/euidaccess.c (main): Define with a prototype.
105502         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
105504         * lib/exitfail.c: Include <stdlib.h> unconditionally.
105506         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
105507         prototypes.
105508         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
105509         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
105510         (getenv): Remove decl.
105511         (fnmatch): Define using a prototype.
105512         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
105513         (FCT): Define using a prototype.
105515         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
105517         * lib/gethostname.c: Include <stddef.h>.
105518         (gethostname): Define with prototype.  Length is size_t, not int.
105520 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105522         Assume C89 or better; remove K&R cruft.
105523         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
105524         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
105525         string.h, getenv, malloc.
105526         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
105527         headers.
105528         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
105529         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
105530         do not check for strerror.
105531         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
105532         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
105533         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
105534         do not check for doprnt or vprintf.
105535         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
105536         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
105538 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105540         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
105541         getversion.c should have been removed then, but was accidentally
105542         preserved.
105544         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
105545         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
105547 2003-09-08  Karl Berry  <karl@gnu.org>
105549         * config/config.sub, config.guess, srclistvars.sh: update from savannah
105550                 config, forget about prep.
105552         * config/depcomp, missing: update from automake.
105554 2003-09-07  Paul Eggert  <eggert@twinsun.com>
105556         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
105557         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
105559 2003-09-07  Paul Eggert  <eggert@twinsun.com>
105561         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
105562         copy_tm_result.  Bug reported by Simon Josefsson in
105563         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
105565 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105567         * m4/time_r.m4: New file.
105568         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
105569         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
105570         is. Check for timegm declaration.
105571         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
105572         Do not check for gmtime_r.
105573         Replace mktime if __mktime_internal does not exist and if mktime
105574         hasn't been replaced already.
105576 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105578         * lib/time_r.c, lib/time_r.h: New files.
105580         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
105581         __localtime_r.
105582         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
105583         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
105585         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
105586         __gmtime_r.
105587         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
105588         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
105589         Include <time_r.h>.
105591         * lib/timegm.c: Switch to glibc implementation, with the following
105592         changes:
105593         [defined HAVE_CONFIG_H]: Include <config.h>.
105594         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
105595         (__mktime_internal) [!defined _LIBC]: New decl.
105596         (__gmtime_r) [!defined _LIBC]: New macro and function.
105597         (timegm): Use a prototype, since gnulib assumes C89.
105598         Do not bother declaring tmp to be const, as it's not really usefu.
105599         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
105600         (timegm): Declare only if HAVE_DECL_TIMEGM.
105602 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105604         * MODULES.html.sh (func_all_modules): Add time_r.
105605         * modules/time_r: New file.
105606         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
105607         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
105609 2003-09-03  Paul Eggert  <eggert@twinsun.com>
105611         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
105612         Bug reported by Lute Kamstra in
105613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
105615         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
105616         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
105617         course with correspondingly smaller numbers for tomorrow and
105618         yesterday.  From Tadayoshi Funaba.  Originally installed into
105619         sh-utils on 1999-08-07, but the patch got lost (I guess during the
105620         coreutils merge?).
105622 2003-08-31  Simon Josefsson  <jas@extundo.com>
105624         * modules/timegm: New file.
105625         * MODULES.html.sh (func_all_modules): Add timegm.
105627 2003-08-31  Simon Josefsson  <jas@extundo.com>
105629         * m4/timegm.m4: New file.
105631 2003-08-31  Simon Josefsson  <jas@extundo.com>
105633         * lib/timegm.h: New file.
105634         * lib/timegm.c: New file.  Based on
105635         wget-1.8.2/src/http.c:mktime_from_utc.
105637 2003-08-31  Karl Berry  <karl@gnu.org>
105639         * lib/argp.h: update from libc.
105641 2003-08-28  Bruno Haible  <bruno@clisp.org>
105643         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
105644         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
105645         followed by '#define fnmatch fnmatch_posix' gives an error.
105647 2003-08-28  Bruno Haible  <bruno@clisp.org>
105649         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
105650         warning on QNX, which defines O_BINARY to 000000.
105652 2003-08-27  Jim Meyering  <jim@meyering.net>
105654         * m4/mkstemp.m4: Require that the system mkstemp be able to create
105655         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
105656         would fail after 32.  Reported by Danny Levinson.  Details here:
105657         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
105659 2003-08-24  Bruno Haible  <bruno@clisp.org>
105661         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
105662         MSVC7 <stdio.h> is included later.
105664 2003-08-22  Simon Josefsson  <jas@extundo.com>
105666         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
105668 2003-08-20  Karl Berry  <karl@gnu.org>
105670         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
105672 2003-08-20  Bruno Haible  <bruno@clisp.org>
105674         * modules/progname: New file.
105675         * MODULES.html.sh (func_all_modules): Add progname.
105677 2003-08-20  Bruno Haible  <bruno@clisp.org>
105679         * lib/progname.h: New file, from GNU gettext.
105680         * lib/progname.c: New file, from GNU gettext.
105681         * lib/progreloc.c: New file, from GNU gettext.
105683 2003-08-19  Jim Meyering  <jim@meyering.net>
105685         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
105686         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
105688 2003-08-19  Bruno Haible  <bruno@clisp.org>
105690         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
105691         more.
105693 2003-08-19  Bruno Haible  <bruno@clisp.org>
105695         * lib/xstrdup.c: Assume <string.h> exists.
105697 2003-08-18  Paul Eggert  <eggert@twinsun.com>
105699         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
105700         in makefile rules.
105702 2003-08-18  Jim Meyering  <jim@meyering.net>
105704         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
105705         * m4/lib-ld.m4: Likewise.
105707 2003-08-18  Jim Meyering  <jim@meyering.net>
105709         * lib/setenv.h: Indent nested cpp directive.
105710         * lib/vasnprintf.c: Remove trailing blanks.
105712 2003-08-17  Simon Josefsson  <jas@extundo.com>
105714         * modules/xstrndup: New file.
105715         * MODULES.html.sh (func_all_modules): Add xstrndup.
105717 2003-08-17  Simon Josefsson  <jas@extundo.com>
105719         * modules/argp: Fix autoconf macro name. Add more dependencies.
105721 2003-08-17  Simon Josefsson  <jas@extundo.com>
105723         * m4/xstrndup.m4: New file.
105725 2003-08-17  Simon Josefsson  <jas@extundo.com>
105727         * m4/argp.m4: New file.
105729 2003-08-17  Simon Josefsson  <jas@extundo.com>
105730             Bruno Haible  <bruno@clisp.org>
105732         * lib/xstrndup.h: New file.
105733         * lib/xstrndup.c: New file.
105735 2003-08-17  Bruno Haible  <bruno@clisp.org>
105737         * modules/strndup (Files, Include): Add lib/strndup.h.
105739 2003-08-17  Bruno Haible  <bruno@clisp.org>
105741         * modules/euidaccess (Files): Add lib/euidaccess.h.
105743 2003-08-17  Bruno Haible  <bruno@clisp.org>
105745         * lib/strndup.h: New file.
105747 2003-08-17  Bruno Haible  <bruno@clisp.org>
105749         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
105750         like AC_GNU_SOURCE.
105751         * modules/extensions (configure.ac): Comment out the invocation of
105752         gl_USE_SYSTEM_EXTENSIONS.
105754 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105756         Merges from coreutils, etc.
105757         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
105758         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
105759         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
105760         fixing a typo.
105761         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
105762         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
105764 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105766         Document merge from coreutils.
105767         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
105768         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
105769         * modules/utime: Add m4/utimes-null.m4.
105771 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105773         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
105774         space, undoing this 2003-08-12 change:
105775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105777 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105779         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
105780         strtoul.c from libc, undoing this 2003-08-12 change:
105781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105783 2003-08-16  Jim Meyering  <jim@meyering.net>
105785         Merges from coreutils.
105786         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
105787         prefix.  Adjust cache variables similarly.  Create 500 rather than
105788         just 300 files, to exercise bug on Darwin6.5, too.
105789         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
105790         $missing_dir.
105791         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
105792         AM_SYS_POSIX_TERMIOS.
105793         Reported by mkc@mathdogs.com.
105794         Also change use of $am_cv_sys_posix_termios
105795         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
105796         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
105797         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
105798         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
105799         in /proc/mounts until it finds one with matching device number.  This
105800         is unnecessary when the FILE argument *is* a mount point.  No stat call
105801         is necessary in that case.  So, disable the statvfs-testing code on
105802         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
105803         as RedHat bug# 84846.
105804         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
105805         to 1MB, so as not to render systems with no stack size limit (e.g.,
105806         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
105807         Include <unistd.h>.  On some systems,
105808         it is required for the definition of _SC_PAGESIZE.
105810 2003-08-16  Jim Meyering  <jim@meyering.net>
105812         Merge from coreutils.
105813         * lib/xstrtoimax.c: #else #if -> #elif.
105814         * lib/xstrtoumax.c: Likewise.
105816 2003-08-16  Jim Meyering  <jim@meyering.net>
105818         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
105819         * m4/utimes.m4: Removed.
105820         * m4/utimes-null.m4: Renamed from utimes.m4.
105822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
105823         to 1MB, so as not to render systems with no stack size limit (e.g.,
105824         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
105825         Include <unistd.h>.  On some systems,
105826         it is required for the definition of _SC_PAGESIZE.
105828 2003-08-16  Jim Meyering  <jim@meyering.net>
105829         and Paul Eggert  <eggert@cs.ucla.edu>
105831         Merges from coreutils, etc.
105833         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
105834         using the latest version from cvs.  This avoids problems with #line
105835         directives using a vendor (Sun) compiler.
105836         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
105837         Don't set GETGROUPS_LIB here; now it's
105838         done via getgroups.m4's wrapper function.
105839         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
105840         rather than just in sh-util/configure.in, so that the
105841         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
105842         same.
105843         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
105844         AC_FUNC_GETLOADAVG where to find getloadavg.c.
105845         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
105846         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
105847         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
105848         Remove code that is now done by the newly-required macros.
105849         Append $(EXEEXT) to DF_PROG.
105850         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
105851         Do not invoke or require the following here,
105852         since prereq.m4 or some gnulib .m4 now does this for us:
105853         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
105854         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
105855         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
105856         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
105857         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
105858         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
105859         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
105860         AC_FUNC_OBSTACK.
105861         Do not replace the following functions, as this is now the job
105862         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
105863         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
105864         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
105865         atexit getpass, strdup, getpagesize.
105866         Replace 'raise'.
105867         Do not check for the following functions, as this is now the job
105868         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
105869         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
105870         setregid.
105871         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
105872         Check for sys/sysctl.h.
105873         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
105874         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
105875         of checking for ssize_t ourselves.
105877         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
105878         Require every macro that gnulib/modules/* suggests for us.
105879         (jm_PREREQ_ADDEXT): New macro.
105880         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
105881         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
105883         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
105884         (gl_PHYSMEM): Use it.
105885         Also check for `table' function.
105886         Check for new headers and functions.
105887         Add check for sys/sysmp.h.
105888         With suggestions from Kaveh Ghazi.
105889         Ignore headers that are present but cannot be compiled.  This
105890         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
105891         C 5.4.
105893 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105895         Document merge from coreutils.
105896         * modules/userspec: Depend on posixver.
105897         * modules/strftime: Depend on tzset.
105899 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105901         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
105902         rather than tab, after '#' in shell-script copyright notices.
105903         Suggested by Bruno Haible.
105905 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105907         * config/srclist-update: Use three spaces, rather than tab, after '#'
105908         in shell-script copyright notices.  Suggested by Bruno Haible.
105909         Remove unnecessary parenthesization in regular expression.
105911 2003-08-15  Jim Meyering  <jim@meyering.net>
105913         Merge from coreutils.
105914         * lib/xgethostname.c: Include <stdlib.h>.
105915         (xghostname): Don't exit for anything other than memory-related
105916         failure; just return NULL.
105917         * lib/userspec.c: Include "posixver.h".
105918         (parse_user_spec): Accept `.' as a separator only
105919         in pre-POSIX-200112 mode.
105920         * lib/strtoimax.c: Use #elif rather than #else #if.
105921         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
105922         Remove function, now that we can rely on a working tzset function.
105923         [!_LIBC]: Ensure that the required autoconf test has been run.
105924         [!defined _NL_CURRENT && HAVE_STRFTIME]:
105925         Use underlying_strftime for %r.
105926         * lib/sha.c: Merge in some clean-up and optimization changes from
105927         glibc.
105928         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
105929         Ensure that it is a multiple of 64.
105930         Rearrange loop exit tests so as to avoid performing an
105931         additional fread after encountering an error or EOF.
105932         * lib/realloc.c: Update copyright date.
105934 2003-08-15  Jim Meyering  <jim@meyering.net>
105935         and Paul Eggert  <eggert@twinsun.com>
105937         Merge from coreutils.
105938         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
105939         member but strut utmpx does not.  Needed for AIX 4.3.3.
105940         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
105942 2003-08-15  Jim Meyering  <jim@meyering.net>
105943         and Paul Eggert  <eggert@cs.ucla.edu>
105945         Merges from coreutils, etc.
105946         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
105947         Require gl_FUNC_TZSET_CLOBBER.
105948         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
105949         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
105950         members.
105952 2003-08-14  Paul Eggert  <eggert@twinsun.com>
105954         Help the merge from coreutils.
105955         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
105956         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
105957         * m4/tzset.m4: Use it too.
105959 2003-08-14  Paul Eggert  <eggert@twinsun.com>
105961         * modules/tzset: New file.
105963 2003-08-14  Jim Meyering  <jim@meyering.net>
105965         Merges from coreutils.
105966         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
105967         variable names, rather than @FNMATCH_H@.
105968         * modules/alloca: Likewise for $(ALLOCA_H).
105970         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
105971         the three copies of the literal target, `fnmatch.h'.
105972         * modules/alloca (alloca.h): Likewise.
105974 2003-08-14  Jim Meyering  <jim@meyering.net>
105976         Merge from coreutils.
105977         * m4/tzset.m4: New file.
105978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
105979         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
105980         otherwise, AIX 5.1 systems would end up using the latter.
105981         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
105982         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
105983         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
105984         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
105986 2003-08-14  Jim Meyering  <jim@meyering.net>
105988         Merge from coreutils.
105989         * lib/obstack.h: Whitespace changes.
105990         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
105991         and xcalloc return values.
105992         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
105993         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
105994         hang on OSF/1 5.1 for DIR on both local and remote file systems.
105995         Reported by (and fix confirmed by) Nelson H. F. Beebe.
105996         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
105997         error from mntctl.
105998         Use mntctl's return value to drive the entry-processing loop, since
105999         we can't rely on the value of the vmt_length member in the last
106000         entry.  On some systems doing so could result in exhausting
106001         virtual memory.  Based in part on a patch from Mike Jetzer.
106003 2003-08-14  Jim Meyering  <jim@meyering.net>
106004         and Paul Eggert  <eggert@twinsun.com>
106006         Merges from coreutils, plus other fixes.
106007         * lib/physmem.c: Merge in portability changes from gcc/libiberty
106008         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
106009         for credits and details.  Thanks to Kaveh Ghazi for helping
106010         to keep these files in sync.
106011         (ARRAY_SIZE): Define it.
106012         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
106013         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
106014         (memcasecmp): Don't assume size_t fits in unsigned int.
106015         Remove casts and duplicate code.
106016         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
106017         (memcpy): Remove definition.
106018         Merge in some clean-up and optimization changes from glibc.
106019         [BLOCKSIZE]: Move definition to top of file.
106020         Ensure that it is a multiple of 64.
106021         Rearrange loop exit tests so as to avoid performing an
106022         additional fread after encountering an error or EOF.
106023         * lib/md5.h (md5_uintptr): Define.
106024         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
106025         return to the initial working directory.  Preserve errno
106026         for caller.
106027         * lib/idcache.c: Include "xalloc.h".
106028         (xmalloc, xrealloc): Remove decls.
106029         (getuser): Remove casts no longer required in C89.
106030         * lib/human.c: Include stdio.h, for sprintf.
106031         * lib/group-member.c: Include "xalloc.h".
106032         (xmalloc, xrealloc): Remove decls.
106033         (get_group_info): Remove casts no longer required in C89.
106034         * lib/getusershell.c (readname): Remove casts no longer required in
106035         C89.
106036         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
106037         * lib/getline.c: Whitespace fix, from coreutils.
106039 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106041         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
106042         Check for isascii.
106044         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
106045         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
106046         Undo previous (whitespace-only) change.
106048 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106050         * lib/exclude.c: Include <ctype.h>
106051         (IN_CTYPE_DOMAIN): New macro.
106052         (is_space): New fn.
106053         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
106054         and empty lines.
106056         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
106057         Undo previous (whitespace-only) change.
106059 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106061         * config/srclist-update: Change update back to the old behavior,
106062         leaving whitespace alone.  Use one 'sed' command rather than a
106063         pipeline.
106064         (fixlicense): Now a variable, not a function.
106065         (remove_trailing_blanks): Remove.
106066         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
106067         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
106068         Undo previous (whitespace-only) change.
106070 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106072         Merge from coreutils.
106073         * modules/euidaccess: Add lib_SOURCES, include for new
106074         file euidaccess.h
106076 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106078         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
106079         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
106080         Normalize leading white space and remove trailing white space.
106082         Merge from coreutils
106083         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
106085         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
106086         0.12.1.  These files are now being upgraded automatically by
106087         ../config/srclist-update.
106089 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106091         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
106092         Normalize leading white space and remove trailing white space.
106093         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
106094         notice, as per ../config/srclist-update.
106096         Merge from coreutils.
106097         * lib/euidaccess.h: New file.
106098         * lib/euidaccess.c: Include it.
106099         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
106100         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
106101         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
106103 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106105         * config/srclist-update: Add copyright notice.
106106         (remove_id_lines, remove_trailing_blanks): New constants.
106107         (fixfile): Use them to normalize spacing a bit in copied files.
106108         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
106109         Normalize leading white space and remove trailing white space.
106111         * config/texinfo.tex: Sync with texinfo.
106113         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
106114         strtoul.c from libc, to merge coreutils whitespace changes.
106116         * config/srclist.txt: Get the following m4 files from gettext:
106117         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
106118         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
106119         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
106120         wint_t.m4.
106122 2003-08-12  Karl Berry  <karl@gnu.org>
106124         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
106125         been made.
106127 2003-08-11  Paul Eggert  <eggert@twinsun.com>
106129         * modules/gnu-source, m4/gnu-source.m4:
106130         Remove; we're assuming Autoconf 2.54 or later now.
106131         Suggested by Bruno Haible.
106132         * MODULES.html.sh (func_all_modules): Remove gnu-source.
106134 2003-08-11  Bruno Haible  <bruno@clisp.org>
106136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
106138 2003-08-11  Bruno Haible  <bruno@clisp.org>
106140         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
106141         (vasnprintf): Use it instead of wcslen.
106143 2003-08-11  Bruno Haible  <bruno@clisp.org>
106145         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
106146         value to ensure that _Bool promotes to int. Use #define for _Bool when
106147         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
106149 2003-08-10  Karl Berry  <karl@gnu.org>
106151         * lib/regex.h: update from libc (whitespace fix).
106153 2003-08-09  Paul Eggert  <eggert@twinsun.com>
106155         Merge some files from coreutils.  These changes were
106156         originally made by Jim Meyering.
106157         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
106158         many older Unixes require this.
106159         * lib/alloca.c (alloca): Remove cast to argument of free;
106160         no longer needed in C89.
106161         * lib/alloca_.h, regex.h: Fix white space to match
106162         what GNU indent does.
106164 2003-08-09  Paul Eggert  <eggert@twinsun.com>
106166         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
106167         apparently Emacs's Unicode mode got confused before my 2003-08-05
106168         checkin.
106170 2003-08-08  Paul Eggert  <eggert@twinsun.com>
106172         * m4/extensions.m4: New file.
106173         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
106174         Require gl_USE_SYSTEM_EXTENSIONS.
106175         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
106176         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
106178 2003-08-08  Paul Eggert  <eggert@twinsun.com>
106180         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
106181         * modules/extensions, modules/gnu-source: New files.
106182         * modules/timespec, modules/unlocked-io: Depend on extensions.
106184 2003-08-07  Paul Eggert  <eggert@twinsun.com>
106186         * modules/restrict: New file.
106187         * MODULES.html.sh (func_all_modules): Add restrict.
106188         * modules/regex: Depend on restrict.
106190 2003-08-07  Paul Eggert  <eggert@twinsun.com>
106192         * m4/restrict.m4: New file.
106193         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
106195 2003-08-07  Bruno Haible  <bruno@clisp.org>
106197         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
106198         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
106200 2003-08-07  Bruno Haible  <bruno@clisp.org>
106202         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
106203         makes the module 'getndelim2' compatible with the module 'getline'.
106205 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106207         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
106208         byte with "\201" to avoid glitches when editing that source file
106209         with multi-gnome-terminal.
106211 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106213         * lib/bumpalloc.h: Remove.
106215 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106217         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
106218         * modules/bumpalloc: Remove.
106220 2003-08-04  Paul Eggert  <eggert@twinsun.com>
106222         * lib/getloadavg.c: Change copyright notice and spacing to conform to
106223         GNU coding style.
106225         Merge from coreutils.
106226         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
106227         1. From glibc.
106228         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
106229         from Karl Berry, implemented by Jim Meyering.
106230         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
106231         from Dmitry V. Levin.
106232         Remove anachronistic cast of xrealloc.
106233         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
106234         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
106235         type. Otherwise, it wouldn't compile with at least /bin/cc on
106236         ymp-cray-unicos9.0.2.X.
106237         Combine two mostly-identical uses of alloca into one.
106238         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
106240 2003-08-04  Dave Love  <d.love@dl.ac.uk>
106242         [From Emacs.]
106244         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
106245         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
106246         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
106247         obsolete NLIST_NAME_UNION.
106248         [__GNU__]: Undef BSD and FSCALE.
106249         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
106251 2003-08-03  Paul Eggert  <eggert@twinsun.com>
106253         * lib/stdbool_.h (_Bool): Make it signed char, instead of
106254         an enum type, so that it's guaranteed to promote to int.  See:
106255         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
106257 2003-08-03  Karl Berry  <karl@gnu.org>
106259         * config/depcomp: update from automake.
106261 2003-07-31  Paul Eggert  <eggert@twinsun.com>
106263         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
106264         (strerror): Don't assume that a printable int fits in 14 bytes.
106266 2003-07-31  Bruno Haible  <bruno@clisp.org>
106268         * modules/getpass-gnu: New file.
106269         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
106271 2003-07-31  Bruno Haible  <bruno@clisp.org>
106273         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
106275 2003-07-24  Karl Berry  <karl@gnu.org>
106277         * config/missing: update from automake.
106279 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
106280             Bruno Haible  <bruno@clisp.org>
106282         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
106283         * lib/getline.c (getline, getdelim): Likewise.
106284         Remove _GNU_SOURCE define; now it's defined in config.h through
106285         m4/getline.m4.
106287 2003-07-23  Karl Berry  <karl@gnu.org>
106289         * config/config.sub: update from prep.
106291 2003-07-22  Paul Eggert  <eggert@twinsun.com>
106293         * modules/xalloc (Depends-on): Add exitfail.
106294         * modules/xmemcoll: Likewise.
106296 2003-07-22  Paul Eggert  <eggert@twinsun.com>
106298         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
106299         over-parenthesization in macros.
106301         Sync with coreutils.
106303         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
106304         required by C99.
106306         Use `exit_failure' for xalloc and xmemcoll instead of their own
106307         private exit-failure variables.
106308         * lib/xalloc.h (xalloc_exit_failure): Remove.
106309         * lib/xmalloc.c: Likewise.  Include exitfail.h.
106310         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
106311         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
106312         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
106313         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
106315 2003-07-20  Jim Meyering  <jim@meyering.net>
106317         * modules/closeout (Depends-on): Add exitfail.
106318         Suggestion from Bruno Haible.
106320 2003-07-19  Karl Berry  <karl@gnu.org>
106322         * config/config.sub: update from prep.
106324 2003-07-18  Paul Eggert  <eggert@twinsun.com>
106326         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
106327         Remove.
106328         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
106329         to test that it can stand by itself.  Include "exitfail.h".
106330         Clients should set exit_failure instead.
106331         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
106333 2003-07-18  Bruno Haible  <bruno@clisp.org>
106335         * modules/getndelim2: New file.
106336         * modules/getline: Share files with module getndelim2.
106337         * modules/getnline: Depend on getndelim2 instead of sharing files with
106338         it. Add getnline.c to lib_SOURCES.
106339         * MODULES.html.sh (func_all_modules): Add getndelim2.
106341 2003-07-18  Bruno Haible  <bruno@clisp.org>
106343         * m4/getndelim2.m4: New file.
106344         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
106345         invoke gl_PREREQ_GETNDELIM2.
106346         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
106347         gl_PREREQ_GETNDELIM2.
106348         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
106349         gl_GETNDELIM2.
106351 2003-07-18  Bruno Haible  <bruno@clisp.org>
106353         * lib/getndelim2.h: New file.
106354         * lib/getndelim2.c: Make into a module of its own. Include config.h,
106355         getndelim2.h.
106356         (getndelim2): Make non-static. Change return type to ssize_t.
106357         * lib/getline.h: Change argument names.
106358         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
106359         * lib/getnline.c: Include getndelim2.h.
106361 2003-07-18  Andreas Schwab  <schwab@suse.de>
106363         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
106365 2003-07-17  Karl Berry  <karl@gnu.org>
106367         * config/config.sub: update from prep.
106369 2003-07-17  Bruno Haible  <bruno@clisp.org>
106371         * modules/getnline: New file.
106372         * modules/getline: Add lib/getndelim2.c to source file list.
106373         * MODULES.html.sh (func_all_modules): Add getnline.
106375 2003-07-17  Bruno Haible  <bruno@clisp.org>
106377         * m4/getnline.m4: New file.
106379 2003-07-17  Bruno Haible  <bruno@clisp.org>
106381         * m4/Makefile.am.in: Remove file.
106382         * m4/Makefile.am: Remove file.
106383         * m4/Makefile.in: Remove file.
106385 2003-07-17  Bruno Haible  <bruno@clisp.org>
106387         * lib/getnline.h: New file.
106388         * lib/getnline.c: New file.
106389         * lib/getndelim2.c: New file, extracted from getline.c.
106390         (getndelim2): Renamed from getdelim2, with added nmax argument.
106391         * lib/getline.c: Include getndelim2.c.
106392         (getdelim2): Moved out to getndelim2.c.
106393         (getline, getdelim): Update.
106395 2003-07-17  Bruno Haible  <bruno@clisp.org>
106397         * lib/Makefile.am: Remove file.
106398         * lib/Makefile.in: Remove file.
106400 2003-07-17  Bruno Haible  <bruno@clisp.org>
106402         * configure.in: Remove file.
106403         * Makefile.in: Remove file.
106405 2003-07-17  Bruno Haible  <bruno@clisp.org>
106407         * MODULES.html.sh: Put the </BODY> right before </HTML>.
106409 2003-07-16  Karl Berry  <karl@gnu.org>
106411         * config/srclist-update: was running fixlicense twice, which caused
106412                 texinfo.tex to be nullified for some reason.  Simplify,
106413                 $gplsrc is no longer needed as far as I can see?
106415 2003-07-16  Jim Meyering  <jim@meyering.net>
106417         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
106419 2003-07-15  Paul Eggert  <eggert@twinsun.com>
106421         * config/srclist.txt: Get the following files from gettext-runtime/intl
106422         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
106423         ref-del.sin.  From Bruno Haible.
106424         * config/srclist-update (fixfile): Change grep pattern again, since the
106425         previous fix didn't work (there was another trailing $).  Use
106426         '[$]' to escape the $s.
106428 2003-07-15  Karl Berry  <karl@gnu.org>
106430         * lib/vasnprintf.c: update from gettext.
106432 2003-07-15  Karl Berry  <karl@gnu.org>
106434         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
106435         gets expanded when surrounded by '$'.
106437 2003-07-15  Jim Meyering  <jim@meyering.net>
106439         * modules/save-cwd: Don't depend on error.  From Derek Price.
106441 2003-07-15  Jim Meyering  <jim@meyering.net>
106443         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
106445 2003-07-14  Simon Josefsson  <jas@extundo.com>
106447         * modules/mempcpy: New file.
106448         * MODULES.html.sh (func_all_modules): Add mempcpy.
106450 2003-07-14  Simon Josefsson  <jas@extundo.com>
106452         * m4/mempcpy.m4: New file.
106454 2003-07-14  Simon Josefsson  <jas@extundo.com>
106456         * lib/mempcpy.h: New file.
106457         * lib/mempcpy.c: New file.
106459 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106461         * modules/getdate, modules/posixtm: Depend on mktime.
106463 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106465         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
106466         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
106467         unicodeio.c, unicodeio.h, unlocked-io.h:
106468         Switch from LGPL to GPL.
106470 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106472         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
106473         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
106474         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
106475         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
106476         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
106477         updated automatically by ../config/srclist-update.  This changes
106478         their license from LPGL to GPL.
106480 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106482         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
106483         assumed to refer to the root of the most recent stable gettext version.
106484         * config/srclistvars.sh: Add defaults for eggert.
106485         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
106486         Match "This program" as well as "The program".  This is needed
106487         for gettext.
106489 2003-07-14  Jim Meyering  <jim@meyering.net>
106491         Don't emit diagnostics.  Let callers do that.
106492         * lib/save-cwd.c: Don't include "error.h".
106493         (save_cwd): Don't call error.  Ensure that errno is valid
106494         when returning nonzero.
106496         * lib/save-cwd.h (restore_cwd): Update prototype.
106497         * lib/save-cwd.c (restore_cwd): Remove two parameters.
106498         Simplify.  Don't call error upon failure.  Let callers do that.
106499         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
106500         when auditing is enabled.  But don't bother updating the #if.
106502 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
106504         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
106505         it breaks C++ compilation.
106506         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
106508 2003-07-10  Simon Josefsson  <jas@extundo.com>
106510         * modules/strchrnul (Makefile.am): Add strchrnul.h.
106512 2003-07-10  Jim Meyering  <jim@meyering.net>
106514         * m4/clock_time.m4: Remove trailing blank.
106515         * m4/intmax_t.m4: Likewise.
106517 2003-07-10  Jim Meyering  <jim@meyering.net>
106519         * lib/vasnprintf.c: Remove trailing blanks.
106520         Make cpp indentation consistent.
106522 2003-07-09  Paul Eggert  <eggert@twinsun.com>
106524         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
106525         posixver.c, strftime.c, strnlen.c, strverscmp.c:
106526         Switch from LGPL to GPL.
106528 2003-07-09  Paul Eggert  <eggert@twinsun.com>
106530         * config/srclist.txt: Sort sublists.  Add
106531         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
106532         that differ from gnulib for one reason or another; we'd like this list
106533         to be smaller but for now let's document what we have.
106535 2003-07-08  Paul Eggert  <eggert@twinsun.com>
106537         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
106538         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
106539         and sweeter "eval x=$x".
106540         * config/srclist.txt: Get lib/argp* from glibc.
106542 2003-07-07  Paul Eggert  <eggert@twinsun.com>
106544         * lib/mktime.c: Fix some boundary cases and remove need for floating
106545         point.
106547         Issue a compile-time diagnostic if time_t is floating point, or if
106548         two's complement arithmetic is not in effect, or if arithmetic
106549         right shift does not propagate the sign.  These assumptions were
106550         all in the original code but they weren't checked.
106552         (TIME_T_MIDPOINT, verify): New macros.
106553         (__isleap): Remove; it has integer overflow problems.
106554         (leapyear): New function, without those problems.
106555         (ydhms_tm_diff): Remove; splitting into two parts.
106556         (ydhms_diff): New function, containing the arithmetic part of
106557         the old ydhms_tm_diff function.  Issue a compile-time
106558         diagnostic if we are not using C99 integer division.
106559         Avoid casts when possible.
106560         (guess_time_tm): New function, containing the checking part of
106561         the old ydhms_tm_diff function.  Return the new value, rather than
106562         the difference between it and the old.  Accept a new argument T
106563         so that *T specifies the old value.  Check for overflow in the result.
106565         (__mktime_internal): Use a time_t offset, not a long int offset.
106566         This undoes the 2003-06-04 change, which is no longer needed now
106567         that we have better overflow checking.
106568         (localtime_offset): Likewise.
106570         (__mktime_internal): Avoid harmful overflow on hosts where time_t
106571         and long are 64-bit but int is only 32-bit.
106572         (ydhms_diff): Use long int to store year1 and yday1.
106573         Issue a compile-time diagnostic if long int is not wide enough.
106575         (__mktime_internal): Use long int to store adjusted year and yday.
106576         Use plain C rather than preprocessor commands, if that doesn't
106577         affect efficiency.
106578         Check for overflow (and try to repair) after each probe
106579         rather than checking only at the very end.  This avoids some bugs
106580         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
106581         does not equal GMT offset at maximum time).
106582         Use integer to check for overflow rather than floating point; this
106583         is more portable to non-IEEE hosts, and is a tad faster.
106584         When we detect that we are oscillating between two values,
106585         don't check whether tm_isdst has the requested value, since
106586         we already know the answer.  When tm_isdst has the wrong value,
106587         use a different heuristic to find the right one, based on the
106588         extreme values actually observed in practice in tz2003a,
106589         rather than the (overly optimistic) "previous 3 calendar quarters".
106591         (not_equal_tm, print_tm, check_result): Use "const T" rather than
106592         "T const" to accommodate glibc style.
106593         (check_result): Use less-confusing report format.  "long" -> "long int.
106594         (main): Likewise.
106595         Don't loop if the iteration overflows time_t.
106596         Allow a negative step in the iteration.
106598 2003-07-06  Karl Berry  <karl@gnu.org>
106600         * config/depcomp: update from automake.
106601         * config/config.sub: update from prep.
106603 2003-07-03  Karl Berry  <karl@gnu.org>
106605         * config/config.guess: update from prep.
106607 2003-07-01  Paul Eggert  <eggert@twinsun.com>
106609         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
106610         xreadlink.c now includes it unconditionally.
106612 2003-07-01  Paul Eggert  <eggert@twinsun.com>
106614         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
106615         having it depend on HAVE_SYS_TYPES_H.
106617 2003-07-01  Bruno Haible  <bruno@clisp.org>
106619         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
106620         <sys/types.h> should be sufficient.
106621         Reported by Paul Eggert.
106623 2003-06-26  Karl Berry  <karl@gnu.org>
106625         * config/depcomp: update from automake.
106627 2003-06-26  Bruno Haible  <bruno@clisp.org>
106629         * modules/human: Depend on module stdbool.
106631 2003-06-25  Bruno Haible  <bruno@clisp.org>
106633         * modules/readlink: New file.
106634         * modules/xreadlink: Depend on it.
106635         * MODULES.html.sh (func_all_modules): Add readlink.
106637 2003-06-25  Bruno Haible  <bruno@clisp.org>
106639         * m4/readlink.m4: New file.
106641 2003-06-25  Bruno Haible  <bruno@clisp.org>
106643         * lib/readlink.c: New file.
106645 2003-06-22  Karl Berry  <karl@gnu.org>
106647         * config/srclist.txt: update mkinstalldirs from automake.
106648         * config/mkinstalldirs: update.
106650 2003-06-22  Bruno Haible  <bruno@clisp.org>
106652         Portability to mingw32.
106653         * m4/ssize_t.m4: New file, from GNU gettext.
106654         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
106655         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
106657 2003-06-22  Bruno Haible  <bruno@clisp.org>
106659         * modules/safe-read: Add m4/ssize_t.m4.
106660         * modules/xreadlink: Add m4/ssize_t.m4.
106662 2003-06-20  Bruno Haible  <bruno@clisp.org>
106664         Assume C89, so PARAMS isn't needed.
106665         * lib/unicodeio.h (PARAMS): Remove.
106666         * lib/unicodeio.c: Don't use PARAMS.
106668 2003-06-18  Karl Berry  <karl@gnu.org>
106670         * config/config.{guess,sub}: update from prep.
106672 2003-06-18  Jim Meyering  <jim@meyering.net>
106674         Merge changes from coreutils.
106675         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
106676         Remove explicit declarations of xmalloc and realloc.
106677         Include xalloc.h.
106678         (read_utmp): Remove anachronistic cast of xmalloc.
106680 2003-06-17  Paul Eggert  <eggert@twinsun.com>
106682         Assume C89, so PARAMS isn't needed.
106683         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
106684         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
106685         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
106686         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
106687         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
106688         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
106689         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
106690         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
106691         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
106692         lib/xstrtod.h, lib/xstrtol.h: Likewise.
106693         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
106694         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
106695         no longer needed. Anyway, config.h should always be included before any
106696         other file.
106698 2003-06-11  Simon Josefsson  <jas@extundo.com>
106700         * modules/sysexits: New file.
106701         * MODULES.html.sh (func_all_modules): Add sysexits.
106703 2003-06-11  Simon Josefsson  <jas@extundo.com>
106705         * lib/sysexit_.h: New file.
106707 2003-06-11  Derek Price  <derek@ximbiot.com>
106709         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
106710         necessary.
106712 2003-06-11  Bruno Haible  <bruno@clisp.org>
106714         * m4/sysexits.m4: New file.
106716 2003-06-10  Simon Josefsson  <jas@extundo.com>
106718         * lib/argp.h: New file, from glibc.
106719         * lib/argp-ba.c: New file, from glibc.
106720         * lib/argp-eexst.c: New file, from glibc.
106721         * lib/argp-fmtstream.c: New file, from glibc.
106722         * lib/argp-fmtstream.h: New file, from glibc.
106723         * lib/argp-fs-xinl.c: New file, from glibc.
106724         * lib/argp-help.c: New file, from glibc.
106725         * lib/argp-namefrob.h: New file, from glibc.
106726         * lib/argp-parse.c: New file, from glibc.
106727         * lib/argp-pv.c: New file, from glibc.
106728         * lib/argp-pvh.c: New file, from glibc.
106729         * lib/argp-xinl.c: New file, from glibc.
106731 2003-06-10  Simon Josefsson  <jas@extundo.com>
106733         * modules/strchrnul: New file.
106735 2003-06-10  Simon Josefsson  <jas@extundo.com>
106737         * modules/argp: New file.
106739 2003-06-10  Simon Josefsson  <jas@extundo.com>
106741         * m4/strchrnul.m4: New file.
106743 2003-06-10  Simon Josefsson  <jas@extundo.com>
106745         * lib/strchrnul.h: New file.
106746         * lib/strchrnul.c: New file.
106748 2003-06-10  Bruno Haible  <bruno@clisp.org>
106750         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
106752 2003-06-07  Karl Berry  <karl@gnu.org>
106754         * config/config.{guess,sub}: update from prep.
106756 2003-06-07  Jim Meyering  <jim@meyering.net>
106758         * modules/strtod: Use $(...) notation, not @...@ for
106759         AC_REPLACE'd variables.
106760         * modules/localcharset: Likewise.
106762 2003-06-07  Jim Meyering  <jim@meyering.net>
106764         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
106765         in place of my name in the copyright comment.
106766         Remove definition and uses of __P.
106768         From coreutils.
106769         * lib/stat.c: Don't declare xmalloc explicitly.
106770         Instead, include "xalloc.h".
106771         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
106772         xrealloc, and xcalloc return values.
106773         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
106774         Improve comment.
106775         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
106777 2003-06-07  Bruno Haible  <bruno@clisp.org>
106779         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
106780         avoid AC_CONFIG_LINKS.
106781         * modules/fnmatch (Makefile.am): Use explicit creation rule for
106782         fnmatch.h, to avoid AC_CONFIG_LINKS.
106783         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
106785 2003-06-07  Bruno Haible  <bruno@clisp.org>
106787         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
106788         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
106789         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106790         directory.
106791         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
106792         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106793         directory.
106795 2003-06-06  Jim Meyering  <jim@meyering.net>
106797         Merge from coreutils.
106798         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
106799         Consolidate declarations and initializations of *_base* locals.
106801         Merge from coreutils.
106802         This avoids a core dump on systems without GNU putenv,
106803         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
106804         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
106805         (unsetenv): New static function, from GNU libc.
106806         (rpl_putenv): Use it.
106808         * lib/modechange.c: Remove trailing blanks.
106810         Merge from coreutils.
106811         * lib/fsusage.c: Remove declaration of statfs.
106812         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
106814         * lib/posixtm.c: Include <stdbool.h> unconditionally.
106816 2003-06-06  Jim Meyering  <jim@meyering.net>
106818         * lib/stdbool_.h: Renamed from stdbool.h.in.
106820 2003-06-06  Jim Meyering  <jim@meyering.net>
106821             Bruno Haible  <bruno@clisp.org>
106823         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
106824         Adjust Makefile.am snippet not to redirect directly to target.
106825         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
106827 2003-06-05  Paul Eggert  <eggert@twinsun.com>
106829         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
106830         mismatch, look in future quarters as well as past.  This fixes a
106831         bug when processing fall-backwards gaps immediately after a long
106832         period of daylight-saving time.
106834         * lib/mktime.c: Assume freestanding C89 or better.
106835         (HAVE_LIMITS_H): Remove.  Assume it's 1.
106836         (__P): Remove; not used.
106837         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
106838         (mktime, not_equal_tm, print_tm, check_result,
106839         main): Use prototypes.  Use const * where appropriate.
106840         (main): Fix typo in testing code that uncovered by above changes.
106841         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
106843 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106845         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
106846         locale.h, localeconv.  This merges changes from coreutils.
106848         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
106849         It can be removed after the next Autoconf is released.
106850         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
106851         needed.
106853 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106855         * lib/mktime.c: Fix Debian bug 177940
106856         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
106857         (localtime_offset): Now long int, not time_t, because we want it
106858         to be guaranteed to be signed.  All uses changed.
106859         (__mktime_internal): If overflow would occur when adding offset,
106860         don't add it.
106862         Merge 'human' changes from coreutils.  Rewrite to support
106863         locale-specific notations like thousands separators.
106864         * lib/human.c: Simplify authorship notice.
106865         Include human.h immediately after config.h.
106866         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
106867         <limits.h>: Do not include, since human.h does.
106868         (SIZE_MAX, UINTMAX_MAX): New macros.
106869         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
106870         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
106871         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
106872         (power_letter): Renamed from suffixes.
106873         (generate_suffix_backwards): Remove.
106874         (adjust_value): Now takes int style (because of human.h changes)
106875         and long double value (for greater precision on some platforms).
106876         (group_number): New function.
106877         (human_readable): Use it.  Use integer options, not enum.
106878         Put the options before the sizes in the arg list.
106879         Support all the new options.
106880         The old human_readable function has been removed;
106881         use inttostr.h instead.
106882         (human_readable, default_block_size, humblock):
106883         Use uintmax_t, not int, for block sizes.
106884         (human_readable_inexact, block_size_types): Remove.
106885         (block_size_opts): New constant.
106886         (human_options): Renamed from human_block_size, with new signature
106887         that allows block sizes up to UINTMAX_MAX.  All callers changed.
106888         * lib/human.h: Add copyright and authorship notice.
106889         Include <limits.h> and <stdbool.h> unconditionally.
106890         (PARAMS): Remove.  All uses removed.
106891         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
106892         (enum human_inexact_style): Remove tag; now a nameless enum.
106893         (human_floor, human_ceiling, human_round_to_even): Now have
106894         values 2, 0, 1 rather than -1, 1, 0.
106895         (human_group_digits, human_suppress_point_zero, human_autoscale,
106896         human_base_1024, human_SI, human_B): New constants.
106897         (human_readable_inexact, human_block_size): Remove.
106898         (human_readable): Size args are now uintmax_t, not int.
106899         (human_options): New decl.
106901         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
106902         unnecessary now that we assume C89 or better.  This change
106903         imported from coreutils.
106905         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
106906         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
106907         in the 2003-05-30 sync from glibc.
106909         .h files should stand alone, but we shouldn't include <sys/types.h>
106910         if we can get away with just <stddef.h>.
106912         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
106913         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
106914         rather than <sys/types.h>, as we merely need size_t.
106915         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
106916         to get size_t.
106917         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
106918         Include <stdio.h>, to get FILE.
106919         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
106920         memcasecmp.h has included <stddef.h> and all we need is size_t.
106921         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
106922         our interface, instead of including <sys/types.h>
106924 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106926         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
106927         now, as glibc mktime is buggy on non-glibc systems.
106929 2003-06-03  Karl Berry  <karl@gnu.org>
106931         * config/config.sub: update from prep.
106933 2003-06-02  Paul Eggert  <eggert@twinsun.com>
106935         [from coreutils]
106936         Fix some minor time-related bugs with POSIX time arguments.
106937         Some valid time stamps were being rejected (notably -1, and
106938         time stamps before 1900 on 64-bit hosts).  And some invalid
106939         time stamps were being accepted, e.g. September 31.
106941         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
106942         that we can return (time_t) -1 successfully.
106943         * lib/posixtm.c: Likewise.
106944         [HAVE_STDBOOL_H]: Include <stdbool.h>.
106945         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
106946         (t): Remove static var.
106947         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
106948         of static var.  All uses changed.
106949         (year): Do not reject years before 1900; they can occur with
106950         64-bit time_t.
106951         (posix_time_parse): Do not check for out-of-range components;
106952         that is now the caller's responsibility, since our checks were
106953         only approximations.
106954         (posixtime): Use mktime to check for out-of-range components,
106955         since it knows them exactly.
106956         If mktime returns (time_t) -1, check whether an error actually occurred
106957         by invoking localtime on -1.
106958         (main) [TEST_POSIXTIME]: Check for input data errors, and report
106959         posixtime failures better.
106960         Improve the test data (in comments only).
106962 2003-06-02  Karl Berry  <karl@gnu.org>
106964         * config/mkinstalldirs (version): new variable.
106965         (--version): new option.
106966         (usage): improve message.
106968 2003-05-30  Karl Berry  <karl@gnu.org>
106970         * lib/mktime.c: update from libc.
106972 2003-05-30  Bruno Haible  <bruno@clisp.org>
106974         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
106975         * config/config.rpath: Upgrade to gettext-0.12.1.
106977 2003-05-30  Bruno Haible  <bruno@clisp.org>
106979         * m4/gettext.m4: Upgrade to gettext-0.12.1.
106980         * m4/nls.m4: New file, from gettext-0.12.1.
106981         * m4/po.m4: New file, from gettext-0.12.1.
106982         * m4/progtest.m4: Upgrade to gettext-0.12.1.
106984 2003-05-30  Bruno Haible  <bruno@clisp.org>
106986         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
106987         * lib/localcharset.h: Likewise.
106988         * lib/localcharset.c: Likewise.
106990 2003-05-29  Karl Berry  <karl@gnu.org>
106992         * config/config.rpath: update from gettext.
106994 2003-05-28  Paul Eggert  <eggert@twinsun.com>
106996         Assume the headers required for C89 freestanding compilers.
106997         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
106998         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
106999         * m4/human.m4 (gl_HUMAN): Likewise.
107000         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
107001         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
107002         * m4/userspec.m4 (gl_USERSPEC): Likewise.
107003         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
107004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107005         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
107007 2003-05-28  Paul Eggert  <eggert@twinsun.com>
107009         Assume the headers required for C89 freestanding compilers.
107010         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
107011         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
107012         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
107013         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
107014         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
107015         define, since <limits.h> is guaranteed to do that.
107016         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
107017         * lib/exclude.c: Include <stdbool.h> unconditionally.
107018         * lib/tempname.c: Include <stddef.h> unconditionally.
107019         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
107020         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
107021         <stddef.h> does that.
107022         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
107023         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
107024         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
107025         needed.
107026         * lib/xstrtol.c: Likewise.
107027         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
107028         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
107030         * lib/addext.c (addext): Use assignment rather than cast, to avoid
107031         warnings on some platforms.
107033         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
107034         arbitrarily.
107036 2003-05-26  Jim Meyering  <jim@meyering.net>
107038         Merge in a change from coreutils:
107039         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
107040         that is guaranteed to be `no'.  Use `no_such_member' to indicate
107041         that condition, rather than `-1' which is slightly misleading.
107042         Change the name of the cache variable to have the gl_ prefix.
107043         Prompted by a patch from Richard Dawe for DJGPP.
107045 2003-05-24  Karl Berry  <karl@gnu.org>
107047         * config/config.guess: update from prep.
107049 2003-05-22  Karl Berry  <karl@gnu.org>
107051         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
107053 2003-05-20  Karl Berry  <karl@gnu.org>
107055         * config/config.guess: update from prep.
107057 2003-05-18  Karl Berry  <karl@gnu.org>
107059         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
107060         might actually be set by the user.
107062         * config/depcomp, install-sh, mdate-sh: update from automake.
107064 2003-05-17  Bruno Haible  <bruno@clisp.org>
107066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
107067         invalid expansion for AC_EGREP_CPP.
107068         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
107069         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
107070         Suggested by Akim Demaille <akim@epita.fr> in
107071         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
107073 2003-05-12  Jim Meyering  <jim@meyering.net>
107075         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
107076         the space-padded-by-default conversion specifiers, %e, %k, %l.
107078 2003-05-12  Bruno Haible  <bruno@clisp.org>
107080         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
107081         the string is longer than 4 KB.
107083 2003-05-11  Karl Berry  <karl@gnu.org>
107085         * config/config.{guess,sub}: update from prep.
107087 2003-05-09  Bruno Haible  <bruno@clisp.org>
107089         * modules/error: Add m4/strerror_r.m4 to file list.
107091 2003-05-03  Bruno Haible  <bruno@clisp.org>
107093         Upgrade to Unicode-4.0.
107094         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
107095         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
107096         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
107097         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
107098         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
107099         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
107100         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
107101         Change width of U+E0100..U+E01EF from 1 to 0.
107103 2003-04-25  Jim Meyering  <jim@meyering.net>
107105         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
107106         of type size_t, not int.
107108 2003-04-25  Bruno Haible  <bruno@clisp.org>
107110         * lib/copy-file.c: Include <stddef.h>, for size_t.
107112 2003-04-21  Paul Eggert  <eggert@twinsun.com>
107114         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
107115         code which expansion is under static control.  Patch imported from
107116         Akim Demaille's patch to Bison; see
107117         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
107119 2003-04-14  Bruno Haible  <bruno@clisp.org>
107121         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
107123 2003-04-11  Jim Meyering  <jim@meyering.net>
107125         Merge changes from Coreutils.
107127         2003-03-22  Jim Meyering  <jim@meyering.net>
107129         * lib/strftime.c (widen): Cast alloca return value to proper type.
107131         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
107133         From GNU libc.
107134         * lib/strftime.c (my_strftime): Handle very large width
107135         specifications for numeric values correctly.  Improve checks for
107136         overflow.
107138         2003-01-19  Jim Meyering  <jim@meyering.net>
107140         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
107141         definitions.
107142         (nl_get_alt_digit) [! defined my_strftime]: Define.
107143         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
107144         _nl_get_alt_digit and _nl_get_walt_digit.
107146         * lib/strftime.c (my_strftime): Merge in locale-related changes from
107147         libc. These changes have no effect outside of _LIBC.
107149 2003-04-10  Bruno Haible  <bruno@clisp.org>
107151         * modules/findprog: New file.
107152         * MODULES.html.sh (func_all_modules): Add it.
107154 2003-04-10  Bruno Haible  <bruno@clisp.org>
107156         * m4/findprog.m4: New file.
107157         * m4/eaccess.m4: New file.
107159 2003-04-10  Bruno Haible  <bruno@clisp.org>
107161         * lib/findprog.h: New file, from GNU gettext.
107162         * lib/findprog.c: New file, from GNU gettext.
107164 2003-04-05  Jim Meyering  <jim@meyering.net>
107166         Merge changes from Coreutils.
107168         * lib/exclude.h (PARAMS): Remove definition and uses.
107169         * lib/exclude.c: Remove uses of `PARAMS'.
107171         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
107172         Add test-cases for DOS filenames. Declare program_name.
107173         (main): Set up program_name.  Patch by Rich Dawe.
107175         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
107176         error from mntctl.
107177         Use mntctl's return value to drive the entry-processing loop, since
107178         we can't rely on the value of the vmt_length member in the last
107179         entry.  On some systems doing so could result in exhausting
107180         virtual memory.  Based in part on a patch from Mike Jetzer.
107182 2003-04-04  Bruno Haible  <bruno@clisp.org>
107184         * modules/linebreak: New file.
107185         * MODULES.html.sh (func_all_modules): Add it.
107187 2003-04-04  Bruno Haible  <bruno@clisp.org>
107189         * m4/linebreak.m4: New file.
107191 2003-04-04  Bruno Haible  <bruno@clisp.org>
107193         * lib/linebreak.h: New file, from GNU gettext.
107194         * lib/linebreak.c: New file, from GNU gettext with slight
107195         modifications.
107196         * lib/lbrkprop.h: New file, from GNU gettext.
107198 2003-04-03  Bruno Haible  <bruno@clisp.org>
107200         * modules/utf8-ucs4: New file.
107201         * modules/utf16-ucs4: New file.
107202         * modules/ucs4-utf8: New file.
107203         * modules/ucs4-utf16: New file.
107204         * MODULES.html.sh (func_all_modules): Add them.
107206 2003-04-03  Bruno Haible  <bruno@clisp.org>
107208         * m4/utf-ucs4.m4: New file.
107209         * m4/ucs4-utf.m4: New file.
107211 2003-04-03  Bruno Haible  <bruno@clisp.org>
107213         * lib/utf8-ucs4.h: New file, from GNU gettext.
107214         * lib/utf16-ucs4.h: New file, from GNU gettext.
107215         * lib/ucs4-utf8.h: New file, from GNU gettext.
107216         * lib/ucs4-utf16.h: New file, from GNU gettext.
107218 2003-04-02  Bruno Haible  <bruno@clisp.org>
107220         * modules/binary-io: New file.
107221         * MODULES.html.sh (func_all_modules): Add it.
107223 2003-04-02  Bruno Haible  <bruno@clisp.org>
107225         * lib/binary-io.h: New file, from GNU gettext.
107227 2003-04-01  Bruno Haible  <bruno@clisp.org>
107229         * modules/pathname: New file.
107230         * MODULES.html.sh (func_all_modules): Add it.
107232 2003-04-01  Bruno Haible  <bruno@clisp.org>
107234         * lib/pathname.h: New file, from GNU gettext.
107235         * lib/concatpath.c: New file, from GNU gettext.
107237 2003-03-30  Bruno Haible  <bruno@clisp.org>
107239         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
107241 2003-03-30  Bruno Haible  <bruno@clisp.org>
107243         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
107244         function chown() doesn't exist.
107246 2003-03-28  Bruno Haible  <bruno@clisp.org>
107248         * modules/copy-file: New file.
107249         * MODULES.html.sh (func_all_modules): Add it.
107251 2003-03-28  Bruno Haible  <bruno@clisp.org>
107253         * m4/copy-file.m4: New file.
107255 2003-03-28  Bruno Haible  <bruno@clisp.org>
107257         * lib/copy-file.h: New file, from GNU gettext.
107258         * lib/copy-file.c: New file, from GNU gettext.
107260 2003-03-18  Jim Meyering  <jim@meyering.net>
107262         * lib/quote.c (quote_n): Fix typo in comment.
107264 2003-03-18  Bruno Haible  <bruno@clisp.org>
107266         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
107267         checking.
107268         * m4/onceonly_2_57.m4: Likewise.
107270 2003-03-17  Bruno Haible  <bruno@clisp.org>
107272         * m4/onceonly.m4: Require autoconf 2.54 or newer.
107273         (m4_quote): Remove macro.
107274         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
107276 2003-03-14  Jim Meyering  <jim@meyering.net>
107278         Merge changes from Coreutils.
107279         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
107280         to be const, in order to avoid warnings.
107281         (obstack_room): Likewise.
107282         (obstack_empty_p): Likewise.
107284 2003-03-14  Bruno Haible  <bruno@clisp.org>
107286         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
107287         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
107289 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107291         Merge changes from Bison.
107292         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
107293         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
107294         when compiling Bison 1.875's `bitset bset = obstack_alloc
107295         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
107296         * lib/hash.c: Include <stdbool.h> unconditionally.
107298 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107300         * m4/onceonly.m4 (m4_quote): New macro.
107301         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
107302         Quote AC_FOREACH variable-expansions properly.
107304 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107306         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
107308 2003-03-09  Paul Eggert  <eggert@twinsun.com>
107310         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
107311         Reported by Bruce Becker; see:
107312         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
107314 2003-03-03  Paul Eggert  <eggert@twinsun.com>
107315             Bruno Haible  <bruno@clisp.org>
107317         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
107318         Reported by John Hughes, see
107319         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
107321 2003-02-20  Bruno Haible  <bruno@clisp.org>
107323         * MODULES.html.sh (func_all_modules): Add poll.
107325 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107327         * modules/poll: New file.
107329 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107331         * lib/poll_.h: New file.
107332         * lib/poll.c: New file.
107334 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107336         * m4/poll.m4: New file.
107338 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107340         * modules/mathl: New file.
107342 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107344         * lib/mathl.h: New file.
107345         * lib/acosl.c: New file.
107346         * lib/asinl.c: New file.
107347         * lib/atanl.c: New file.
107348         * lib/ceill.c: New file.
107349         * lib/cosl.c: New file.
107350         * lib/expl.c: New file.
107351         * lib/floorl.c: New file.
107352         * lib/frexpl.c: New file.
107353         * lib/ldexpl.c: New file.
107354         * lib/logl.c: New file.
107355         * lib/sincosl.c: New file.
107356         * lib/sinl.c: New file.
107357         * lib/sqrtl.c: New file.
107358         * lib/tanl.c: New file.
107359         * lib/trigl.c: New file.
107360         * lib/trigl.h: New file.
107362 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107364         * m4/mathl.m4: New file.
107366 2003-02-18  Bruno Haible  <bruno@clisp.org>
107368         * MODULES.html.sh (func_all_modules): Add mathl.
107370 2003-02-17  Bruno Haible  <bruno@clisp.org>
107372         * modules/mkdtemp: New module.
107373         * MODULES.html.sh (func_all_modules): Add it.
107375 2003-02-17  Bruno Haible  <bruno@clisp.org>
107377         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
107379 2003-02-17  Bruno Haible  <bruno@clisp.org>
107381         * lib/mkdtemp.h: New file, from GNU gettext.
107382         * lib/mkdtemp.c: New file, from GNU gettext.
107384 2003-02-02  Jim Meyering  <jim@meyering.net>
107386         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
107387         e.g. glibc-2.2.93.
107389 2003-01-31  Bruno Haible  <bruno@clisp.org>
107391         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
107392         'rpl_rename'.
107393         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
107394         'rpl_strnlen'.
107395         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
107396         'rpl_strtod'.
107397         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
107398         'rpl_utime'.
107400 2003-01-31  Bruno Haible  <bruno@clisp.org>
107402         * lib/rename.c: #undef rename before defining rpl_rename.
107403         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
107405 2003-01-30  Bruno Haible  <bruno@clisp.org>
107407         * modules/vasnprintf, modules/vasprintf: New modules.
107408         * MODULES.html.sh (func_all_modules): Add them.
107410 2003-01-30  Bruno Haible  <bruno@clisp.org>
107412         * m4/signed.m4: New file, from GNU gettext.
107413         * m4/longdouble.m4: New file, from GNU gettext.
107414         * m4/wchar_t.m4: New file, from GNU gettext.
107415         * m4/wint_t.m4: New file, from GNU gettext.
107416         * m4/vasnprintf.m4: New file.
107417         * m4/vasprintf.m4: New file.
107419 2003-01-30  Bruno Haible  <bruno@clisp.org>
107421         * lib/printf-args.h: New file, from GNU gettext.
107422         * lib/printf-args.c: New file, from GNU gettext.
107423         * lib/printf-parse.h: New file, from GNU gettext.
107424         * lib/printf-parse.c: New file, from GNU gettext.
107425         * lib/vasnprintf.h: New file, from GNU gettext.
107426         * lib/vasnprintf.c: New file, from GNU gettext.
107427         * lib/asnprintf.c: New file, from GNU gettext.
107428         * lib/vasprintf.h: New file, from GNU gettext with modifications.
107429         * lib/vasprintf.c: New file, from GNU gettext.
107430         * lib/asprintf.c: New file, from GNU gettext.
107432 2003-01-29  Bruno Haible  <bruno@clisp.org>
107434         * modules/stpncpy: New module.
107435         * MODULES.html.sh (func_all_modules): Add it.
107437 2003-01-29  Bruno Haible  <bruno@clisp.org>
107439         * m4/stpncpy.m4: New file.
107441 2003-01-29  Bruno Haible  <bruno@clisp.org>
107443         * lib/stpncpy.h: New file, from GNU gettext with modifications.
107444         * lib/stpncpy.c: New file, from GNU gettext with modifications.
107446 2003-01-28  Bruno Haible  <bruno@clisp.org>
107448         * modules/c-ctype: New module.
107449         * MODULES.html.sh (func_all_modules): Add it.
107451 2003-01-28  Bruno Haible  <bruno@clisp.org>
107453         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
107454         Paul Eggert.
107455         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
107456         Paul Eggert.
107458 2003-01-27  Bruno Haible  <bruno@clisp.org>
107460         * modules/xsetenv: New module.
107461         * MODULES.html.sh (func_all_modules): Add it.
107463 2003-01-27  Bruno Haible  <bruno@clisp.org>
107465         * lib/xsetenv.h: New file, from GNU gettext.
107466         * lib/xsetenv.c: New file, from GNU gettext.
107468 2003-01-23  Jim Meyering  <jim@meyering.net>
107470         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
107471         from working on systems without dirfd (at least Irix and OSF1/Tru64).
107473 2003-01-23  Bruno Haible  <bruno@clisp.org>
107475         * modules/minmax: New module.
107476         * MODULES.html.sh (func_all_modules): Add it.
107478 2003-01-23  Bruno Haible  <bruno@clisp.org>
107480         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
107481         Eggert.
107483 2003-01-22  Bruno Haible  <bruno@clisp.org>
107485         * modules/exit: New module.
107486         * MODULES.html.sh (func_all_modules): Add it.
107488 2003-01-22  Bruno Haible  <bruno@clisp.org>
107490         * lib/exit.h: New file, from GNU gettext.
107492 2003-01-19  Bruno Haible  <bruno@clisp.org>
107494         * gnulib-tool: Recognize option --extract-maintainer.
107495         (func_get_maintainer): New function.
107496         * modules/*: Add Maintainer entry.
107498 2003-01-16  Jim Meyering  <jim@meyering.net>
107500         * m4/regex.m4: The `regex' struct is both input and output.
107501         Initialize it before each use.  Patch by Tim Waugh.
107503 2003-01-16  Bruno Haible  <bruno@clisp.org>
107505         * MODULES.html.sh: Add a table of contents. Add the module name as
107506         leftmost column. Add hyperlinks.
107508 2003-01-15  Bruno Haible  <bruno@clisp.org>
107510         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
107512 2003-01-15  Bruno Haible  <bruno@clisp.org>
107514         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
107515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
107516         suffix.
107518 2003-01-15  Bruno Haible  <bruno@clisp.org>
107520         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
107522 2003-01-15  Bruno Haible  <bruno@clisp.org>
107524         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
107525         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
107527 2003-01-14  Jim Meyering  <jim@meyering.net>
107529         * lib/same.c (same_name): Tweak a comment.
107531 2003-01-14  Bruno Haible  <bruno@clisp.org>
107533         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
107534         when a string comparison is sufficient.
107536 2003-01-14  Bruno Haible  <bruno@clisp.org>
107538         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
107539         'unsigned int'.
107541 2003-01-14  Bruno Haible  <bruno@clisp.org>
107543         * lib/hash-pjw.c: Add comment about low quality of this function.
107545 2003-01-13  Bruno Haible  <bruno@clisp.org>
107547         * modules/stpcpy: Distribute lib/stpcpy.h.
107548         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
107550 2003-01-13  Bruno Haible  <bruno@clisp.org>
107552         * modules/*: Add a description.
107553         * modules/strpbrk: Fix Makefile.am snippet.
107554         * modules/strtoimax: Fix dependencies.
107555         * modules/strtoumax: Likewise.
107557 2003-01-13  Bruno Haible  <bruno@clisp.org>
107559         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
107560         * modules/alloca (Makefile.am): All object files depend on alloca.h.
107561         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
107563 2003-01-13  Bruno Haible  <bruno@clisp.org>
107565         * gnulib-tool (func_create_testdir): Store config/* files in the main
107566         directory.
107567         * config.rpath: Move to ...
107568         * config/config.rpath: ... here.
107569         * modules/gettext: Contains config/config.rpath, not config.rpath.
107570         * modules/iconv: Likewise.
107572 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107574         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107575         to avoid collisions with libcurses and libreadline.
107577         * m4/getstr.m4: Remove.
107578         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
107580 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107582         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107583         to avoid collisions with libcurses and libreadline.
107585         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
107586         * lib/getstr.h, getstr.c: Remove.
107587         * lib/getline.c: Include "getline.h", to check interface.
107588         Move body of old getstr.c here: this defines MIN_CHUNK and
107589         declares getdelim2, which is renamed from getstr.
107590         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
107592         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
107593         All uses changed.
107594         * lib/linebuffer.h: Likewise.
107595         (readline): Remove backward-compatibility macro.
107597 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107599         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107600         to avoid collisions with libcurses and libreadline.
107601         * getstr: Remove.
107602         * MODULES.html.sh: Remove getstr.
107603         * modules/getline: Depend on unlocked-io, not getstr.
107605 2003-01-12  Jim Meyering  <jim@meyering.net>
107607         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
107609 2003-01-10  Bruno Haible  <bruno@clisp.org>
107611         * modules/alloca: Change Makefile.am requirements. Simplify Include
107612         requirements. Add lib/alloca_.h to file list.
107614 2003-01-10  Bruno Haible  <bruno@clisp.org>
107616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
107618 2003-01-10  Bruno Haible  <bruno@clisp.org>
107620         * lib/alloca_.h: New file.
107621         * lib/getdate.y: Unconditionally include alloca.h.
107622         * lib/makepath.c: Likewise.
107623         * lib/setenv.c: Likewise.
107624         * lib/userspec.c: Likewise.
107626 2003-01-09  Karl Berry  <karl@gnu.org>
107628         * MODULES.html.sh: include `dirname $0` in PATH, to find
107629         gnulib-tool.
107631 2003-01-09  Bruno Haible  <bruno@clisp.org>
107633         * modules/stdbool: Change configure.ac, Makefile.am requirements.
107634         Simplify Include requirements. Add lib/stdbool.h.in to file list.
107636 2003-01-09  Bruno Haible  <bruno@clisp.org>
107638         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
107640 2003-01-09  Bruno Haible  <bruno@clisp.org>
107642         * lib/stdbool.h.in: New file.
107644 2003-01-09  Bruno Haible  <bruno@clisp.org>
107646         * gnulib-tool (func_all_modules): Ignore files ending in ~.
107647         * MODULES.html.sh: Likewise.
107649 2003-01-08  Jim Meyering  <jim@meyering.net>
107651         * lib/full-write.c: Undefine and define-away `const' after inclusion
107652         of errno.h, not before.  Suggestion from Bruno Haible.
107654 2003-01-08  Bruno Haible  <bruno@clisp.org>
107656         * modules/full-read: Depend on full-write.
107658 2003-01-08  Bruno Haible  <bruno@clisp.org>
107660         * lib/safe-read.c: Include specification header first, to ensure its
107661         selfcontainedness.
107662         * lib/full-write.c: Likewise.
107664 2003-01-07  Jim Meyering  <jim@meyering.net>
107666         * lib/full-write.c: Rework so that it may serve to define full_read,
107667         too.
107668         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
107670 2003-01-07  Bruno Haible  <bruno@clisp.org>
107672         * lib/strtoimax.c: Include <stdint.h> as an alternative to
107673         <inttypes.h>.
107674         * lib/xstrtol.h: Likewise.
107675         * lib/xstrtoimax.c: Likewise.
107676         * lib/xstrtoumax.c: Likewise.
107677         * lib/human.h: Likewise.
107679         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
107680         on systems that have <inttypes.h> but not <stdint.h>.
107682 2003-01-07  Bruno Haible  <bruno@clisp.org>
107684         * MODULES.html.sh: Add copyright notice.
107685         (missed_files): Omit CVS directory entries.
107686         (func_module): Make it work with sed-3.02.
107687         * MODULES.txt: Remove file.
107689 2003-01-06  Jim Meyering  <jim@meyering.net>
107691         * lib/version-etc.c: Update year in translatable copyright string.
107693 2003-01-03  Karl Berry  <karl@gnu.org>
107695         * config/config.{guess,sub}: update from prep.
107697 2003-01-02  Karl Berry  <karl@gnu.org>
107699         * doc/COPYING.DOC: belatedly updated to 1.2.
107701 2003-01-01  Karl Berry  <karl@gnu.org>
107703         * gnulib-tool (func_verify_module): report module name $module in
107704         error message, not $1.
107705         * gnulib-tool (create-testdir): don't complain if destdir couldn't
107706         be created, only if it doesn't exist.
107707         * gnulib-tool (last_checkin_date): don't expand the $Date here.
107709 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107711         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
107713 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107715         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
107716         memcmp if strcoll doesn't work.
107718 2002-12-31  Bruno Haible  <bruno@clisp.org>
107720         * lib/utime.c (utime_null): No need to call ftruncate if the file was
107721         nonempty.
107723 2002-12-31  Bruno Haible  <bruno@clisp.org>
107725         * lib/memcoll.c (STRCOLL): New macro.
107726         (memcoll): Use it.
107728 2002-12-31  Bruno Haible  <bruno@clisp.org>
107730         * lib/localcharset.h: New file.
107731         * lib/localcharset.c: Include it.
107732         * lib/unicodeio.c: Likewise.
107734 2002-12-31  Bruno Haible  <bruno@clisp.org>
107736         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
107737         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
107739 2002-12-31  Bruno Haible  <bruno@clisp.org>
107741         * lib/getline.h: Include <stddef.h>, for size_t.
107743         * lib/unicodeio.h: Include <stddef.h>, for size_t.
107744         * lib/unicodeio.c: Don't include <stddef.h>.
107746 2002-12-31  Bruno Haible  <bruno@clisp.org>
107748         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
107749         HAVE_TM_ZONE.
107751 2002-12-24  Karl Berry  <karl@gnu.org>
107753         * config/config.guess: update from prep.
107755 2002-12-24  Bruno Haible  <bruno@clisp.org>
107757         General infrasructure.
107758         * m4/README: Rewritten.
107759         * m4/onceonly.m4: New file.
107760         * m4/onceonly_2_57.m4: New file.
107762         Module atexit.
107763         * m4/atexit.m4: New file.
107765         Module strtod.
107766         * m4/strtod.m4: New file.
107768         Module strtol.
107769         * m4/strtol.m4: New file.
107771         Module strtoul.
107772         * m4/strtoul.m4: New file.
107774         Module memchr.
107775         * m4/memchr.m4: New file.
107777         Module memcmp.
107778         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
107779         (jm_FUNC_MEMCMP): Invoke it.
107781         Module memcpy.
107782         * m4/memcpy.m4: New file.
107784         Module memmove.
107785         * m4/memmove.m4: New file.
107787         Module memset.
107788         * m4/memset.m4: New file.
107790         Module strcspn.
107791         * m4/strcspn.m4: New file.
107793         Module strpbrk.
107794         * m4/strpbrk.m4: New file.
107796         Module strstr.
107797         * m4/strstr.m4: New file.
107799         Module strerror.
107800         * m4/strerror.m4: New file.
107802         Module mktime.
107803         * m4/mktime.m4: Renamed from jm-mktime.m4.
107804         (gl_PREREQ_MKTIME): New macro.
107805         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
107807         Module malloc.
107808         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
107809         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
107810         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
107812         Module realloc.
107813         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
107814         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
107815         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
107817         Module strftime.
107818         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
107819         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
107820         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
107821         gl_TM_GMTOFF.
107822         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
107824         Module xalloc.
107825         * m4/xalloc.m4: New file.
107827         Module alloca.
107828         * m4/alloca.m4: New file.
107830         Module putenv.
107831         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
107832         (jm_FUNC_PUTENV): Invoke it.
107834         Module setenv.
107835         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
107836         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
107837         when invoked twice.
107838         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
107839         gt_FUNC_SETENV.
107841         Module memrchr.
107842         * m4/memrchr.m4: New file.
107844         Module stpcpy.
107845         * m4/stpcpy.m4: New file.
107847         Module strcase.
107848         * m4/strcase.m4: New file.
107850         Module strdup.
107851         * m4/strdup.m4: New file.
107853         Module strnlen.
107854         * m4/strnlen.m4: New file.
107856         Module strndup.
107857         * m4/strndup.m4: New file.
107859         Module xstrtod.
107860         * m4/xstrtod.m4: New file.
107862         Module xstrtol.
107863         * m4/xstrtol.m4: New file.
107865         Module getdate.
107866         * m4/getdate.m4: New file.
107868         Module unlocked-io.
107869         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
107870         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
107871         * m4/jm-glibc-io.m4n: Remove file.
107873         Module long-options.
107874         * m4/long-options.m4: New file.
107876         Module md5.
107877         * m4/md5.m4: New file.
107879         Module sha.
107880         * m4/sha.m4: New file.
107882         Module getstr.
107883         * m4/getstr.m4: New file.
107885         Module getline.
107886         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
107887         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
107888         <sys/types.h>, for size_t. Use the function name gnu_getline, not
107889         simply getline. Infoke gl_PREREQ_GETLINE.
107891         Module obstack.
107892         * m4/obstack.m4: New file.
107894         Module hash.
107895         * m4/hash.m4: New file.
107897         Module readtokens.
107898         * m4/readtokens.m4: New file.
107900         Module strverscmp.
107901         * m4/strverscmp.m4: New file.
107903         Module stdbool.
107904         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
107905         OSF/1.
107907         Module strtoll.
107908         * m4/strtoll.m4: New file.
107910         Module strtoull.
107911         * m4/strtoull.m4: New file.
107913         Module strtoimax.
107914         * m4/strtoimax.m4: New file.
107916         Module strtoumax.
107917         * m4/strtoumax.m4: New file.
107919         Module xstrtoimax.
107920         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
107921         jm_AC_PREREQ_XSTRTOIMAX.
107922         Moved the strtol prerequisites to strtol.m4.
107923         Moved the strtoll prerequisites to strtoll.m4.
107924         Moved the strtoimax prerequisites to strtoimax.m4.
107926         Module xstrtoumax.
107927         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
107928         jm_AC_PREREQ_XSTRTOUMAX.
107929         Moved the strtoul prerequisites to strtoul.m4.
107930         Moved the strtoull prerequisites to strtoull.m4.
107931         Moved the strtoumax prerequisites to strtoumax.m4.
107933         Module chown.
107934         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
107935         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
107937         Module dup2.
107938         * m4/dup2.m4: New file.
107940         Module ftruncate.
107941         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
107942         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
107944         Module getgroups.
107945         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
107946         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
107948         Module gettimeofday.
107949         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
107950         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
107951         gl_PREREQ_GETTIMEOFDAY.
107953         Module mkdir.
107954         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
107955         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
107957         Module mkstemp.
107958         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
107959         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
107960         jm_AC_TYPE_UINTMAX_T.
107961         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
107963         Module stat.
107964         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
107965         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
107967         Module lstat.
107968         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
107969         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
107971         Module timespec.
107972         * m4/timespec.m4 (gl_TIMESPEC): New macro.
107973         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
107974         * m4/st_mtim.m4: Indentation.
107976         Module nanosleep.
107977         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
107978         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
107979         gl_PREREQ_NANOSLEEP.
107981         Module regex.
107982         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
107983         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
107984         (gl_REGEX): New macro.
107986         Module rename.
107987         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
107988         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
107990         Module rmdir.
107991         * m4/rmdir.m4: New file.
107993         Module utime.
107994         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
107995         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
107996         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
107998         Module dirname.
107999         * m4/dirname.m4: New file.
108001         Module getopt.
108002         * m4/getopt.m4: New file.
108004         Module unistd-safer.
108005         * m4/unistd-safer.m4: New file.
108007         Module fnmatch.
108008         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
108009         declaration.
108010         (gl_PREREQ_FNMATCH_EXTRA): New macro.
108011         (gl_FUNC_FNMATCH_POSIX): New macro.
108012         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
108013         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
108014         simply fnmatch.
108016         Module exclude.
108017         * m4/exclude.m4: New file.
108019         Module human.
108020         * m4/human.m4: New file.
108022         Module acl.
108023         * m4/acl.m4: Nop.
108025         Module backupfile.
108026         * m4/backupfile.m4: New file.
108027         * m4/d-ino.m4: Indentation.
108029         Module fsusage.
108030         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
108031         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
108032         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
108034         Module dirfd.
108035         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
108036         requirements.
108038         Module euidaccess.
108039         * m4/euidaccess.m4: New file.
108041         Module file-type.
108042         * m4/file-type.m4: New file.
108044         Module fileblocks.
108045         * m4/fileblocks.m4: New file.
108047         Module filemode.
108048         * m4/filemode.m4: New file.
108050         Module isdir.
108051         * m4/isdir.m4: New file.
108053         Module lchown.
108054         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
108055         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
108057         Module makepath.
108058         * m4/makepath.m4: New file.
108060         Module modechange.
108061         * m4/modechange.m4: New file.
108063         Module mountlist.
108064         * m4/mountlist.m4: New file.
108065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
108066         Indentation.
108068         Module path-concat.
108069         * m4/path-concat.m4: New file.
108071         Module pathmax.
108072         * m4/pathmax.m4: New file.
108074         Module same.
108075         * m4/same.m4: New file.
108077         Module save-cwd.
108078         * m4/save-cwd.m4: New file.
108080         Module savedir.
108081         * m4/savedir.m4: New file.
108083         Module xgetcwd.
108084         * m4/xgetcwd.m4: New file.
108085         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
108087         Module xreadlink.
108088         * m4/xreadlink.m4: New file.
108090         Module safe-read.
108091         * m4/safe-read.m4: New file.
108093         Module safe-write.
108094         * m4/safe-write.m4: New file.
108096         Module closeout.
108097         * m4/closeout.m4: New file.
108099         Module stdio-safer.
108100         * m4/stdio-safer.m4: New file.
108102         Module getpass.
108103         * m4/getpass.m4: New file.
108105         Module getugroups.
108106         * m4/getugroups.m4: New file.
108108         Module group-member.
108109         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
108110         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
108112         Module idcache.
108113         * m4/idcache.m4: New file.
108115         Module userspec.
108116         * m4/userspec.m4: New file.
108118         Module gettime.
108119         * m4/clock_time.m4: New file.
108120         * m4/gettime.m4: New file.
108122         Module settime.
108123         * m4/settime.m4: New file.
108125         Module posixtm.
108126         * m4/posixtm.m4: New file.
108128         Module gethostname.
108129         * m4/gethostname.m4: New file.
108131         Module canon-host.
108132         * m4/canon-host.m4: New file.
108134         Module gettext.
108135         * m4/codeset.m4: New file, from gettext-0.11.5.
108136         * m4/gettext.m4: New file, from gettext-0.11.5.
108137         * m4/glibc21.m4: New file, from gettext-0.11.5.
108138         * m4/iconv.m4: New file, from gettext-0.11.5.
108139         * m4/intdiv0.m4: New file, from gettext-0.11.5.
108140         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
108141         * m4/inttypes.m4: New file, from gettext-0.11.5.
108142         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
108143         * m4/isc-posix.m4: New file, from gettext-0.11.5.
108144         * m4/lcmessage.m4: New file, from gettext-0.11.5.
108145         * m4/lib-ld.m4: New file, from gettext-0.11.5.
108146         * m4/lib-link.m4: New file, from gettext-0.11.5.
108147         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
108148         * m4/progtest.m4: New file, from gettext-0.11.5.
108149         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
108150         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
108151         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
108153         Module localcharset.
108154         * m4/localcharset.m4: New file.
108156         Module hard-locale.
108157         * m4/hard-locale.m4: New file.
108159         Module mbswidth.
108160         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
108161         onceonly macros.
108162         * m4/mbrtowc.m4: Add comment.
108164         Module memcasecmp.
108165         * m4/memcasecmp.m4: New file.
108167         Module memcoll.
108168         * m4/memcoll.m4: New file.
108170         Module unicodeio.
108171         * m4/unicodeio.m4: New file.
108173         Module rpmatch.
108174         * m4/rpmatch.m4: New file.
108176         Module yesno.
108177         * m4/yesno.m4: New file.
108179         Module exitfail.
108180         * m4/exitfail.m4: New file.
108182         Module c-stack.
108183         * m4/c-stack.m4 (gl_C_STACK): New macro.
108184         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
108186         Module error.
108187         * m4/error.m4 (gl_ERROR): New macro.
108188         (jm_PREREQ_ERROR): Use onceonly macros.
108190         Module fatal.
108191         * m4/fatal.m4: New file.
108193         Module getloadavg.
108194         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
108195         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
108197         Module getpagesize.
108198         * m4/getpagesize.m4: New file.
108200         Module getusershell.
108201         * m4/getusershell.m4: New file.
108203         Module physmem.
108204         * m4/physmem.m4: New file.
108206         Module posixver.
108207         * m4/posixver.m4: New file.
108209         Module quotearg.
108210         * m4/quotearg.m4: New file.
108212         Module quote.
108213         * m4/quote.m4: New file.
108215         Module readutmp.
108216         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
108218         Module sig2str.
108219         * m4/sig2str.m4: New file.
108221         Other.
108222         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
108223         ulonglong.m4.
108224         * m4/intmax_t.m4: New file.
108225         * m4/d-type.m4: Indentation.
108226         * m4/jm-macros.m4: Update.
108227         * m4/prereq.m4 (jm_PREREQ): Update.
108228         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
108229         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
108230         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
108231         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
108232         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
108233         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
108234         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
108235         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
108236         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
108237         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
108238         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
108239         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
108240         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
108241         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
108242         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
108243         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
108244         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
108245         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
108246         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
108248 2002-12-24  Bruno Haible  <bruno@clisp.org>
108250         * MODULES.txt: Update according to m4/ changes.
108252         Module gettext.
108253         * config.rpath: New file, from gettext-0.11.5.
108255         * modules/*: New module descriptions.
108256         * gnulib-tool: New file.
108257         * MODULES.html.sh: New file.
108259 2002-12-21  Karl Berry  <karl@gnu.org>
108261         * doc/fdl.texi: update to version 1.2.
108263 2002-12-19  Karl Berry  <karl@gnu.org>
108265         * config/config.guess: update from prep.
108267 2002-12-18  Bruno Haible  <bruno@clisp.org>
108269         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
108270         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
108272 2002-12-17  Bruno Haible  <bruno@clisp.org>
108274         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
108275         stdlib.h, string.h.
108277 2002-12-17  Bruno Haible  <bruno@clisp.org>
108279         * lib/canon-host.c (strdup): Remove unused declaration.
108281         * lib/fsusage.c: Include full_read.h.
108282         (get_fs_usage): Use full_read instead of safe_read.
108284         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
108286 2002-12-12  Karl Berry  <karl@gnu.org>
108288         * config/config.guess: update from prep.
108290 2002-12-11  Bruno Haible  <bruno@clisp.org>
108292         * m4/setenv.m4: New file, from gettext-0.11.5.
108294 2002-12-11  Bruno Haible  <bruno@clisp.org>
108296         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
108297         not unsetenv().
108298         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
108299         modifications:
108301         2002-12-11  Bruno Haible  <bruno@clisp.org>
108303                 * setenv.c (alloca): Fall back to malloc.
108304                 (freea): New macro.
108305                 (setenv): Use freea() to free memory allocated with alloca().
108307         2002-11-13  Bruno Haible  <bruno@clisp.org>
108309                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
108310                 function declarations.
108311                 * unsetenv.c (unsetenv): Likewise.
108313         2002-03-04  Bruno Haible  <bruno@clisp.org>
108315                 Portability to AIX 4.3.3.
108316                 * unsetenv.c: New file, extracted from setenv.c.
108317                 * setenv.c: Move the unsetenv() function to unsetenv.c.
108319         2001-12-20  Bruno Haible  <bruno@clisp.org>
108321                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
108322                 use malloc instead. For SunOS 4.
108324         2001-12-11  Bruno Haible  <bruno@clisp.org>
108326                 * setenv.c: Declare alloca.
108327                 (compar_fn_t): New typedef.
108328                 (KNOWN_VALUE, STORE_VALUE): Use it.
108330         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
108331         setenv.h.
108333 2002-12-10  Paul Eggert  <eggert@twinsun.com>
108335         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
108336         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
108337         Choose values that are less likely to collide with system fnmatch
108338         options.
108339         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
108340         defined (e.g., a pure POSIX system).
108341         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
108342         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
108344 2002-12-06  Paul Eggert  <eggert@twinsun.com>
108346         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
108347         a pain in practice to deal with generated m4 files.  This change
108348         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
108350         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
108351         and jm-glibc-io.m4, as they are no longer a special case.
108352         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
108353         kludge and the auto-generation stuff.  Check only whether the
108354         functions are declared, not whether they exist, since older hosts
108355         that don't declare the functions can't use the optimization anyway.
108357 2002-12-06  Jim Meyering  <jim@meyering.net>
108359         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
108361         Merge in changes from libc's misc/error.c, in preparation
108362         for the merge of gnulib's changes back into libc.
108364         * lib/error.c (_): Define only if not already defined.
108365         Move definition to follow all #include directives.
108366         Include unlocked-io.h only if !_LIBC.
108367         [_LIBC]: Include <libio/libioP.h>.
108368         [USE_IN_LIBIO]: Include <libio/iolibio.h>
108369         (fflush): Tweak definition to use INTUSE.
108370         (putc): Define.
108372 2002-12-05  Paul Eggert  <eggert@twinsun.com>
108374         * lib/alloca.c [defined emacs]: Include "lisp.h".
108375         (xalloc_die) [defined emacs]: New macro.
108376         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
108377         [! defined emacs]: Include <xalloc.h>.
108378         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
108379         (pointer): Typedef to POINTER_TYPE *.
108380         (malloc): Remove decl; we now always use xmalloc.
108381         (alloca): Use old-style definition, since Emacs needs this.
108382         Check for arithmetic overflow when computing combined size.
108384 2002-12-04  Paul Eggert  <eggert@twinsun.com>
108386         Do not generate unlocked-io.h automatically, since it's easier to
108387         maintain it by hand.
108389         * lib/unlocked-io.h: New file, from GNU diffutils,
108390         but with proper copyright notice and attribution.
108391         * lib/gen-uio: Remove.
108392         * lib/Makefile.am: Add copyright notice.
108393         (libfetish_a_SOURCES): Add unlocked-io.h.
108394         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
108395         (DISTCLEANFILES, io_functions): Remove macros.
108396         (EXTRA_DIST): Remove gen_uio.
108397         (unlocked-io.h): Remove rule.
108399 2002-12-04  Jim Meyering  <jim@meyering.net>
108401         Reflect the fact that stat.c and lstat.c are no longer generated.
108402         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
108403         (DISTCLEANFILES): Likewise.
108404         (EXTRA_DIST): Likewise.
108405         (all_local): Don't depend on stat.c or lstat.c.
108406         (stat.c, lstat.c): Remove rules.
108407         (EXTRA_DIST): Remove xstat.in.
108409         * lib/xstat.in: Remove file.  Contents moved into stat.c.
108410         * lib/stat.c: New file.  Contents mostly from xstat.in.
108411         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
108412         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
108414         * lib/safe-read.c: Rework so that it may serve to define safe_write,
108415         too.
108416         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
108418 2002-12-03  Jim Meyering  <jim@meyering.net>
108420         * lib/safe-read.c, safe-write.c: Change variable names and comments,
108421         but not semantics, to minimize the differences between these two files.
108422         (safe_read): Change comment to mention SAFE_READ_ERROR.
108424         * lib/safe-read.c (IS_EINTR): Define.
108425         (safe_read): Use IS_EINTR in place of in-function cpp directives.
108427 2002-12-02  Jim Meyering  <jim@meyering.net>
108429         * lib/safe-read.c (EINTR): Define.
108430         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
108431         (INT_MAX): Provide fallback.
108432         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
108434         * lib/safe-read.h (SAFE_READ_ERROR): Define.
108436 2002-12-02  Bruno Haible  <bruno@clisp.org>
108438         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
108439         Define, taken from safe-read.c.
108440         (INT_MAX): Provide fallback.
108441         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
108442         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
108444         * lib/safe-read.c (EINTR): Remove definition.
108445         (safe_read): Don't use EINTR if it is absent.
108447 2002-12-01  Jim Meyering  <jim@meyering.net>
108449         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
108450         zero.
108451         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
108453 2002-11-27  Paul Eggert  <eggert@twinsun.com>
108455         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
108456         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
108457         with `if (! (value < limit)) abort ();', for readability.
108459 2002-11-26  Karl Berry  <karl@gnu.org>
108461         * lib/strdup.c: copy from libc again, with jim's ok.
108462         * lib/.cppi-disable: re-add strdup.c
108464 2002-11-25  Karl Berry  <karl@gnu.org>
108466         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
108467         instead of "strtol.c".
108469 2002-11-25  Karl Berry  <karl@gnu.org>
108471         * config/install-sh: update from automake for variable quoting, $0 in
108472         error msgs, etc.
108474         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
108475         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
108476         entry.
108478 2002-11-25  Jim Meyering  <jim@meyering.net>
108480         * lib/mktime.c: Sync from libc, now that it has the latest fix.
108482 2002-11-24  Karl Berry  <karl@gnu.org>
108484         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
108485         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
108487 2002-11-24  Jim Meyering  <jim@meyering.net>
108489         Update from coreutils:
108491         * lib/mktime.c: Merge in changes from libc.
108493         Avoid a link-time failure on some Linux systems.
108494         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
108495         (otherwise).
108496         (__mon_yday): Declare with the STATIC attribute.
108497         (__mktime_internal): Likewise.
108498         Based on a report from Greg Schafer.
108500 2002-11-23  Jim Meyering  <jim@meyering.net>
108502         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
108503         Use `unsigned', not `int', as type of index.
108505         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
108507         * lib/fsusage.c: Remove unneeded parentheses around operands of
108508         `defined'.
108510 2002-11-22  Paul Eggert  <eggert@twinsun.com>
108512         * lib/quotearg.h: Allow multiple inclusion by surrounding with
108513         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
108514         so that we can be included first.
108515         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
108516         * lib/quotearg.c: Include quotearg.h immediately after config.h.
108517         No need to include stddef.h or sys/types.h any more.
108518         Surround local include files with "", not "<>".
108519         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
108520         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
108521         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
108522         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
108523         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
108524         (ISPRINT): Remove; no longer needed now that we assume C89.
108526         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
108527         Preserve errno.
108529         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
108530         quotearg_char): Use SIZE_MAX rather than
108531         (size_t) -1 when we are talking about "infinity".
108533         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
108535 2002-11-22  Paul Eggert  <eggert@twinsun.com>
108537         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
108538         hint that one should use `if (! x) abort ();' rather than `assert
108539         (x);', and anyway it's one less thing to worry about configuring.
108540         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
108541         hash_rehash, hash_insert): Use abort rather than assert.
108543 2002-11-22  Bruno Haible  <bruno@clisp.org>
108545         * lib/safe-read.h: Assume C89. Add comments.
108546         (safe_read): Change return type to size_t.
108547         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
108548         byte counts > SSIZE_MAX correctly.
108549         * lib/safe-write.h: New file.
108550         * lib/safe-write.c: New file.
108551         * lib/full-read.h: New file.
108552         * lib/full-read.c: New file.
108553         * lib/full-write.h: Assume C89. Add comments.
108554         * lib/full-write.c: Include safe-write.h.
108555         (full_write): Rewritten to use safe_write.
108556         Suggested by Jim Meyering and Paul Eggert.
108558 2002-11-21  Jim Meyering  <jim@meyering.net>
108560         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
108562         Merge in changes from the coreutils.
108564         2002-09-25  Paul Eggert  <eggert@twinsun.com>
108565         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
108566         <stdint.h>.
108567         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
108568         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
108569         int.  Work more efficiently if X is the same width as uintmax_t.
108570         Do not compare X to -1, to avoid bogus compiler warning.
108571         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
108572         Don't assume that f_frsize and f_bsize are the same type.
108574         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
108575         warning on FreeBSD.
108577         * lib/makepath.c (make_path): Restore umask *before* creating the final
108578         component.
108579         (make_path): Minor reformatting.
108581         * lib/xmalloc.c: Adjust to work with new autoconf macros,
108582         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
108583         HAVE_MALLOC/HAVE_REALLOC.
108585         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
108586         dummy ones.  At least on GNU/Linux systems, `auto' means something
108587         else.
108588         From Michael Stone.
108590 2002-11-21  Bruno Haible  <bruno@clisp.org>
108592         Remove case insensitive option matching.
108593         * lib/argmatch.h (argcasematch): Remove declaration.
108594         (ARGCASEMATCH): Remove macro.
108595         (__xargmatch_internal): Remove case_sensitive argument.
108596         (XARGMATCH): Update.
108597         (XARGCASEMATCH): Remove macro.
108598         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
108599         case_sensitive argument.
108600         (argcasematch): Remove function.
108601         (__xargmatch_internal): Remove case_sensitive argument.
108602         (main): Use XARGMATCH instead of XARGCASEMATCH.
108604         * lib/xmalloc.c: Change compile-time error message. Add comment about
108605         required autoconf version.
108607 2002-11-20  Paul Eggert  <eggert@twinsun.com>
108609         Merge argmatch cleanups from Bison.  Assume C89.
108611         * lib/argmatch.c: Include config.h here, not in argmatch.h.
108612         Include stdlib.h, for EXIT_FAILURE.
108613         Always include <string.h>, since we assume C89.
108614         (EXIT_FAILURE): Remove pre-C89 bug workaround.
108615         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
108616         Include <stddef.h> instead, since it's all we need for size_t.
108617         (PARAMS): Remove.  All uses removed.
108618         (ARRAY_CARDINALITY): Do not bother to #undef.
108619         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
108620         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
108621         Remove unnecessary parentheses.
108622         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
108623         Insert necessary parentheses.
108624         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
108625         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
108627 2002-11-19  Bruno Haible  <bruno@clisp.org>
108629         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
108630         * lib/mbswidth.h: Include <stddef.h>, for size_t.
108632         * lib/mbswidth.h (PARAMS): Remove macro.
108633         (mbswidth, mbsnwidth): Use ANSI C function declarations.
108634         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
108636         * lib/gcd.h (PARAMS): Remove macro.
108637         (gcd): Use ANSI C function declarations.
108638         * lib/gcd.c (gcd): Likewise.
108640 2002-11-15  Bruno Haible  <bruno@clisp.org>
108642         * lib/strcspn.c: Include <stddef.h>.
108643         (strcspn): Use ANSI C function declaration. Change return type to
108644         size_t. Use NULL.
108645         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
108646         (strpbrk): Use NULL.
108647         * lib/strpbrk.h (PARAMS): Remove macro.
108648         (strpbrk): Use ANSI C function declaration.
108649         * lib/strstr.c: Don't include <sys/types.h>.
108650         * lib/strstr.h (PARAMS): Remove macro.
108651         (strstr): Use ANSI C function declarations.
108653 2002-11-14  Karl Berry  <karl@gnu.org>
108655         * config/mkinstalldirs: `do' on separate line, instead of
108656         `for var; do'.
108658 2002-11-06  Bruno Haible  <bruno@clisp.org>
108660         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
108661         * lib/gcd.c (gcd): Likewise.
108663 2002-11-05  Bruno Haible  <bruno@clisp.org>
108665         * lib/gcd.h: New file, from gettext-0.11.5.
108666         * lib/gcd.c: New file, from gettext-0.11.5.
108668 2002-11-05  Bruno Haible  <bruno@clisp.org>
108670         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108671         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108672         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108673         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108675         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
108676         <libintl.h>.
108677         * lib/makepath.c: Include gettext.h instead of <locale.h> and
108678         <libintl.h>.
108680         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
108681         * lib/human.c: Include gettext.h instead of <libintl.h>.
108682         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
108683         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
108684         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
108685         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
108686         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
108687         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
108688         (textdomain): Remove definition.
108689         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
108691         * lib/long-options.c: Remove include of <libintl.h> and definition of
108692         _.
108693         * lib/same.c: Remove include of <libintl.h> and definition of _.
108695 2002-11-04  Owen Taylor  <otaylor@redhat.com>
108697         * lib/config.charset: A few additions for Solaris.
108699 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108701         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
108702         * lib/localcharset.c (locale_charset): Declare as extern "C".
108704 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108706         * lib/config.charset: msdos in uk_UA uses CP1125.
108708 2002-11-04  Bruno Haible  <bruno@clisp.org>
108710         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
108711         * lib/strcase.h: New file, from GNU gettext-0.11.5.
108712         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
108713         * lib/strstr.h: New file, from GNU gettext-0.11.5.
108714         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
108716 2002-11-04  Bruno Haible  <bruno@clisp.org>
108718         * lib/localcharset.c (locale_charset): Don't return an empty string.
108720 2002-11-04  Bruno Haible  <bruno@clisp.org>
108722         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
108723         aliases.
108725 2002-11-04  Bruno Haible  <bruno@clisp.org>
108727         * lib/config.charset: Update for newest glibc. Add canonical names
108728         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
108730 2002-11-04  Bruno Haible  <bruno@clisp.org>
108732         * lib/config.charset: Add support for NetBSD.
108734 2002-11-04  Bruno Haible  <bruno@clisp.org>
108736         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
108738 2002-11-01  Bruno Haible  <bruno@clisp.org>
108740         * configure.in: Add AC_CONFIG_AUX_DIR call.
108741         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
108742         test/Makefile.
108743         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
108745 2002-09-28  Karl Berry  <karl@gnu.org>
108747         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
108748         installed automake until the next release, since changes have been
108749         made.
108751 2002-09-25  Karl Berry  <karl@gnu.org>
108753         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
108754         * lib/getopt*: copy from libc/posix.
108755         * lib/gettext.h: copy from gettext.
108756         * lib/.cppi-disable: add strdup.c, gettext.h.
108758 2002-09-25  Karl Berry  <karl@gnu.org>
108760         * config/srclist.txt: enable gettext.h check.
108761         * config/config.{guess,sub}: update from prep.
108762         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
108763                 from automake 1.6.3.
108764         See srclist*.
108766 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
108768         * regex.c (PATFETCH): Remove the translating fetch.
108769         (PATFETCH_RAW): Rename to PATFETCH.
108770         (set_image_of_range): New fun.
108771         (SET_RANGE_TABLE_WORK_AREA): Use it.
108772         (regex_compile): Don't translate the pattern chars so eagerly.
108773         Only do it when inserting an `exactn' bytecode or when handling
108774         a char-range.
108775         (mutually_exclusive_p): Avoid empty statement.
108777 2002-07-06  Jim Meyering  <meyering@lucent.com>
108779         * m4/README: Don't mention Makefile.am.in.
108780         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
108782 2002-07-01  Jim Meyering  <meyering@lucent.com>
108784         * lib/c-stack.c: Include sys/time.h.
108785         From Volker Borchert.
108787 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108789         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
108791 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108793         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
108794         New macro.  Use it uniformly instead of
108795         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
108796         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
108797         reported by Vin Shelton.
108799 2002-06-22  Paul Eggert  <eggert@twinsun.com>
108801         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
108802         Do not assume SA_SIGINFO behavior.
108803         Bug reported by Jim Meyering on NetBSD 1.5.2.
108805 2002-06-22  Jim Meyering  <meyering@lucent.com>
108807         * m4/c-stack.m4: New file, from diffutils-2.8.2.
108808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
108810         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
108811         now that configure.ac uses AC_GNU_SOURCE.
108812         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
108813         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
108815         Update to latest tools.  Suggestions from Paul Eggert.
108816         * m4/stdbool.m4: New file, from diffutils-2.8.2.
108817         * m4/gnu-source.m4: Update from diffutils-2.8.2.
108818         * m4/fnmatch.m4: Likewise.
108819         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
108820         to AC_HEADER_STDBOOL
108822 2002-06-22  Jim Meyering  <meyering@lucent.com>
108824         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
108825         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
108827 2002-06-22  Jim Meyering  <meyering@lucent.com>
108829         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
108831         * lib/exitfail.c, exitfail.h: Likewise.
108832         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
108834         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
108835         of fnmatch.h.
108836         (EXTRA_DIST): Add fnmatch_loop.c.
108837         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
108839         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
108840         * lib/fnmatch.c: Update from diffutils-2.8.2.
108841         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
108842         * lib/fnmatch.h: Remove file.
108844 2002-06-21  Jim Meyering  <meyering@lucent.com>
108846         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
108847         * m4/mbrtowc.m4: Likewise.
108849         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
108850         * m4/mbswidth.m4: Reflect name change:
108851         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
108852         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
108854         * m4/lib-link.m4: Update from gettext-0.11.2.
108855         * m4/gettext.m4: Likewise.
108857         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
108858         From Alfred M. Szmidt.
108860 2002-06-18  Paul Eggert  <eggert@twinsun.com>
108862         * lib/file-type.h: Report an error if neither S_ISREG nor
108863         S_IFREG is defined, instead of using a test specific to glibc
108864         2.2.  This should be safe, since POSIX requires S_ISREG and
108865         Unix Version 7 had S_IFREG.  We don't need to check for
108866         <sys/types.h> since we don't use any symbols that it defines.
108868 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
108870         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
108871         $@-t, so that each temporary file name is unique and valid in the first
108872         8 characters, for operation under DOS.
108874 2002-06-15  Paul Eggert  <eggert@twinsun.com>
108876         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
108878 2002-06-15  Jim Meyering  <meyering@lucent.com>
108880         Work even with DJGPP 2.03, which lacks support for symlinks.
108881         From Richard Dawe.
108882         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
108883         is defined.
108884         * lib/lchown.c (S_ISLNK): Likewise.
108886 2002-06-15  Jim Meyering  <meyering@lucent.com>
108888         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
108889         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
108890         have been included before this file.
108892 2002-06-14  Jim Meyering  <meyering@lucent.com>
108894         * lib/file-type.h: Use the version from diffutils-2.8.2.
108895         * lib/file-type.c: Likewise.
108897 2002-06-07  Jim Meyering  <meyering@lucent.com>
108899         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
108900         They're needed at least for NetBSD 1.5.2.
108901         ($statxfs_includes): Include those same headers.
108902         ($statxfs_includes): Include sys/vfs.h if available.
108903         ($statxfs_includes): Likewise for sys/statvfs.h.
108904         Check for the following members in both structs statfs and statvfs:
108905         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
108907 2002-06-01  Jim Meyering  <meyering@lucent.com>
108909         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
108910         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
108912 2002-05-28  Jim Meyering  <meyering@lucent.com>
108914         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
108915         Reported by Volker Borchert.
108917 2002-05-27  Jim Meyering  <meyering@lucent.com>
108919         Fix a problem seen only on nonconforming systems whereby ls.c's
108920         use of localtime, and then of gettimeofday would cause trouble:
108921         the localtime call used to initialize rpl_gettimeofday's save
108922         mechanism would clobber ls's current local time information so
108923         that in any long listing the first file would always be listed
108924         with date 1970-01-01.  Analysis by Volker Borchert.
108926         * lib/gettimeofday.c (localtime): Undefine.
108927         (rpl_localtime): New function.
108929 2002-05-27  Jim Meyering  <meyering@lucent.com>
108931         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
108932         localtime.
108934         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
108935         use the replacement function; it wouldn't resolve at link time.
108936         Reported by Volker Borchert.
108938 2002-05-22  Jim Meyering  <meyering@lucent.com>
108940         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
108941         file-type.h.
108942         * lib/file-type.h: New file.
108943         * lib/file-type.c (file_type): New file/function.  Extracted from
108944         diffutils.
108946 2002-04-30  Jim Meyering  <meyering@lucent.com>
108948         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
108950 2002-04-29  Paul Eggert  <eggert@twinsun.com>
108952         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
108954 2002-04-29  Paul Eggert  <eggert@twinsun.com>
108956         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
108957         Do not check for alloca.h (no longer used) or stdbool.h (was never
108958         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
108960 2002-04-29  Paul Eggert  <eggert@twinsun.com>
108962         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
108964 2002-04-29  Jim Meyering  <meyering@lucent.com>
108966         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
108967         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
108968         Use AC_FUNC_STRNLEN here instead.
108970         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
108971         With autoconf-2.53a, it's part of AC_PROG_CC.
108973 2002-04-28  Paul Eggert  <eggert@twinsun.com>
108975         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
108976         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
108978 2002-04-28  Paul Eggert  <eggert@twinsun.com>
108980         * lib/sig2str.h, lib/sig2str.c: New files.
108981         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
108983 2002-04-28  Paul Eggert  <eggert@twinsun.com>
108985         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
108986         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
108987         of 127, since 64 is the largest conceivable number for ancient
108988         nonstandard hosts.
108989         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
108991 2002-04-28  Jim Meyering  <meyering@lucent.com>
108993         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
108995 2002-04-24  Jim Meyering  <meyering@lucent.com>
108997         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
108998         (jm_PREREQ): Use it.
109000         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
109001         mach/mach.h fcntl.h.
109002         Check for this function: setlocale.
109004 2002-04-24  Jim Meyering  <meyering@lucent.com>
109006         * lib/gettext.h: New file, from Gettext.
109007         * lib/Makefile.am (INCLUDES): Remove -I../intl.
109008         (libfetish_a_SOURCES): Add gettext.h.
109010 2002-04-16  Jim Meyering  <meyering@lucent.com>
109012         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
109013         ut_pid, ut_id, ut_exit.
109015 2002-04-16  Jim Meyering  <meyering@lucent.com>
109017         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
109018         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
109019         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
109021 2002-04-12  Jim Meyering  <meyering@lucent.com>
109023         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
109024         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
109025         existence of the getmntinfo function.  Needed for Darwin 5.3.
109027         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
109028         This is necessary at least on Darwin 5.3.
109030         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
109031         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
109032         strnlen.o in the library, and that makes some versions of ranlib
109033         object.
109035 2002-04-12  Jim Meyering  <meyering@lucent.com>
109037         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
109039 2002-04-09  Jim Meyering  <meyering@lucent.com>
109041         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
109042         to be more precise.  Rather than saying we're checking whether the
109043         function `works', say what we're testing.
109044         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
109045         Reported by Bruno Haible.
109047 2002-03-10  Jim Meyering  <meyering@lucent.com>
109049         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
109050         Suggestion from Santiago Vila.
109052 2002-03-08  Jim Meyering  <meyering@lucent.com>
109054         * lib/rename.c: Mention that this wrapper is needed also on
109055         mips-dec-ultrix4.4 systems.
109057 2002-03-02  Jim Meyering  <meyering@lucent.com>
109059         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
109060         not HAVE_CLOCK_SETTIME.
109062 2002-02-27  Paul Eggert  <eggert@twinsun.com>
109064         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
109065         Check for clock_settime.
109067 2002-02-27  Paul Eggert  <eggert@twinsun.com>
109069         * lib/nanosleep.h: Rename to....
109070         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
109072         * lib/gettime.c: New file.
109073         * lib/settime.c: New file.
109074         * lib/stime.c: Remove.
109076         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
109077         timespec.h.  Remove nanosleep.h.
109079 2002-02-25  Paul Eggert  <eggert@twinsun.com>
109081         * m4/acl.m4: New file.
109082         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
109083         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
109085 2002-02-25  Paul Eggert  <eggert@twinsun.com>
109087         * lib/acl.c, lib/acl.h: New files.
109088         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
109090 2002-02-24  Jim Meyering  <meyering@lucent.com>
109092         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
109093         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
109094         cause trouble.  Reported by Nelson Beebe.
109096 2002-02-23  Paul Eggert  <eggert@twinsun.com>
109098         * lib/path-concat.c (xpath_concat): Reorder code to pacify
109099         compilers that don't know that xalloc_die never returns.
109101 2002-02-20  Jim Meyering  <meyering@lucent.com>
109103         * lib/getdate.c: Regenerate using bison-1.33.
109105 2002-02-17  Jim Meyering  <meyering@lucent.com>
109107         * config/config.guess (main): Don't use `head -1'; it's no longer
109108         portable. Use `sed 1q' instead.
109110 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
109112         * m4/codeset.m4: Upgrade to gettext-0.11.
109113         * m4/gettext.m4: Upgrade to gettext-0.11.
109114         * m4/glibc21.m4: Upgrade to gettext-0.11.
109115         * m4/iconv.m4: Upgrade to gettext-0.11.
109116         * m4/isc-posix.m4: Upgrade to gettext-0.11.
109117         * m4/lcmessage.m4: Upgrade to gettext-0.11.
109118         * m4/lib-ld.m4: New file, from gettext-0.11.
109119         * m4/lib-link.m4: New file, from gettext-0.11.
109120         * m4/lib-prefix.m4: New file, from gettext-0.11.
109121         * m4/progtest.m4: Upgrade to gettext-0.11.
109123 2002-02-15  Paul Eggert  <eggert@twinsun.com>
109125         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
109126         (jm_PREREQ): Use it.
109128 2002-02-15  Paul Eggert  <eggert@twinsun.com>
109130         * lib/posixver.c, lib/posixver.h: New files.
109131         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
109133 2002-02-02  Paul Eggert  <eggert@twinsun.com>
109134             Bruno Haible  <bruno@clisp.org>
109136         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
109137         (fwrite_success_callback): New declaration.
109138         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
109139         print_unicode_char. Call failure callback instead of error.
109140         (fwrite_success_callback): New function.
109141         (exit_failure_callback): New function.
109142         (fallback_failure_callback): New function.
109143         (print_unicode_char): Call unicode_to_mb.
109145 2002-01-26  Jim Meyering  <meyering@lucent.com>
109147         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
109148         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
109150 2002-01-26  Jim Meyering  <meyering@lucent.com>
109152         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
109154 2002-01-22  Paul Eggert  <eggert@twinsun.com>
109156         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
109158 2002-01-22  Jim Meyering  <meyering@lucent.com>
109160         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
109161         Otherwise, some versions of automake would omit the rule that makes
109162         Makefile from Makefile.in.
109164 2002-01-21  Paul Eggert  <eggert@twinsun.com>
109166         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
109167         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
109168         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
109169         (memcoll): Set errno to zero if there is no error.
109171         * lib/quotearg.c (quotearg_buffer_restyled):
109172         Fix bug with quoting buffers containing NUL when backslashing escapes.
109173         This bug was exposed by the other changes in this patch.
109174         (quotearg_n_options): New arg ARGSIZE.
109175         All callers changed.
109176         (quoting_options_from_style): New function.
109177         (quotearg_n_style): Use it.
109178         (quotearg_n_style_mem): New function.
109180         * lib/quotearg.h (quotearg_n_style_mem): New function.
109182 2002-01-19  Jim Meyering  <meyering@lucent.com>
109184         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
109185         Remove useless quotes: DF_PROG="df".
109186         * m4/strnlen.m4: New file.
109188 2002-01-16  Paul Eggert  <eggert@twinsun.com>
109190         * lib/backupfile.c (ISDIGIT): Comment fix.
109191         * lib/getdate.y (ISDIGIT): Likewise.
109192         * lib/posixtm.c (ISDIGIT, year): Likewise.
109193         * lib/strverscmp.c (ISDIGIT): Likewise.
109194         * lib/userspec.c (ISDIGIT): Likewise.
109196 2002-01-16  Jim Meyering  <meyering@lucent.com>
109198         * lib/getdate.y: Add three semicolons, each just before a closing
109199         brace. Bison (as of version 1.31) no longer papers over that mistake.
109201 2002-01-05  Jim Meyering  <meyering@lucent.com>
109203         * lib/version-etc.c (version_etc_copyright): Update copyright year.
109205 2001-12-19  Paul Eggert  <eggert@twinsun.com>
109207         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
109208         not silently exit merely because the output buffer happens to
109209         have nothing pending.
109211 2001-12-18  Paul Eggert  <eggert@twinsun.com>
109213         See the big note in ../ChangeLog.
109214         * lib/human.c (suffixes): Prefer K to k for 1024.
109215         (generate_suffix_backwards): New function.
109216         (human_readable_inexact): Use it.
109217         * lib/xstrtol.c (__xstrtol): If there is no number but there
109218         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
109219         Accept 'K' as well as 'k'.
109221 2001-12-15  Jim Meyering  <meyering@lucent.com>
109223         * lib/regex.h (__restrict_arr): Update from libc.
109225         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
109226         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
109227         (STREQ): Define.
109229 2001-12-14  Jim Meyering  <meyering@lucent.com>
109231         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
109232         Suggestion from Bruno Haible.
109234 2001-12-10  Jim Meyering  <meyering@lucent.com>
109236         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
109237         xrealloc, Instead, include "xalloc.h".
109238         (initbuffer): Don't cast xmalloc return value to char*.
109239         (readline): Reword comment.
109240         Don't cast xrealloc return value to char*
109241         Return NULL, not 0.
109243 2001-12-09  Jim Meyering  <meyering@lucent.com>
109245         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
109246         about `signed and unsigned type in conditional expression'.
109247         * lib/posixtm.c (posix_time_parse): Likewise.
109249         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
109251         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
109252         to avoid a pedantic warning.
109254         * lib/getstr.c: Don't include assert.h.
109255         (getstr): Remove warning-evoking assertions.
109256         Return -1 if offset parameter is out of bounds.
109257         Change the type of a local from int to size_t.
109259         * lib/strftime.c (my_strftime_localtime_r): Include this function
109260         definition in the `#if ! HAVE_TM_GMTOFF' block.
109262         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
109263         Include xalloc.h instead.
109265 2001-12-02  Jim Meyering  <meyering@lucent.com>
109267         * lib/tempname.c: Don't declare getenv, thus reverting the change of
109268         2001-11-18.  It's no longer necessary, now that stdlib.h is always
109269         included.
109271         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
109272         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
109274 2001-11-30  Akim Demaille  <akim@epita.fr>
109276         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
109277         before being defined.
109279 2001-11-27  Paul Eggert  <eggert@twinsun.com>
109281         * lib/quotearg.h (quotearg_n, quotearg_n_style):
109282         First arg is int, not unsigned.
109283         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
109284         (SIZE_MAX, UINT_MAX): New macros.
109285         (quotearg_n_options): Abort if N is negative.
109286         Avoid overflow check on hosts where size_t is 64 bits and int
109287         is 32 bits, as overflow is impossible there.
109288         Fix off-by-one typo that caused unnecessary reallocation.
109290 2001-11-27  Jim Meyering  <meyering@lucent.com>
109292         * lib/tempname.c: Merge with version from libc.
109293         * lib/regex.c: Likewise.
109295         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
109296         systems for which STDC_HEADERS is 0, it was not included, resulting in
109297         a warning about an integer-to-pointer conversion problem with getenv.
109298         Reported by Volker Borchert.
109300 2001-11-26  Jim Meyering  <meyering@lucent.com>
109302         * lib/gtod.h: Remove file.
109303         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
109304         * lib/gettimeofday.c: Don't include gtod.h.
109305         (GTOD_init): Remove function.
109306         (rpl_gettimeofday): Do its job here instead, rather than aborting.
109307         Suggestion from Volker Borchert.
109309 2001-11-23  Jim Meyering  <meyering@lucent.com>
109311         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
109312         it.
109313         * lib/hash.c (struct hash_table): Define it here instead.
109315 2001-11-22  Jim Meyering  <meyering@lucent.com>
109317         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
109319 2001-11-20  Jim Meyering  <meyering@lucent.com>
109321         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
109322         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
109324 2001-11-19  Jim Meyering  <meyering@lucent.com>
109326         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
109327         directory.  Use "conftestXXXXXX" as the template.
109328         Suggestion from Paul Eggert.
109330         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
109331         immediately, so the test doesn't mistakenly hit the max-open-files
109332         limit.
109334 2001-11-18  Paul Eggert  <eggert@twinsun.com>
109336         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
109337         (TEMPORARIES): New macro.
109338         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
109339         removes an artificial limitation (e.g. HP-UX 10.20, where
109340         TMP_MAX is 17576).
109342 2001-11-18  Jim Meyering  <meyering@lucent.com>
109344         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
109346 2001-11-18  Jim Meyering  <meyering@lucent.com>
109348         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
109349         on SunOS 4.
109351         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
109352         files will be created before anything else.
109354 2001-11-17  Paul Eggert  <eggert@twinsun.com>
109356         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
109357         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
109359 2001-11-17  Jim Meyering  <meyering@lucent.com>
109361         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
109362         Prompted by a report from Bob Proulx.
109364         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
109365         Instead, require UTILS_FUNC_MKSTEMP.
109367 2001-11-17  Jim Meyering  <meyering@lucent.com>
109369         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
109370         Now, that's done as part of AC_FUNC_STRTOD.
109372 2001-11-17  Jim Meyering  <meyering@lucent.com>
109374         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
109375         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
109376         rather than group writable.  Patch by Juan F. Codagnone.
109378         * lib/readtokens.c: Remove explicit declarations of xmalloc and
109379         xrealloc, Instead, include "xalloc.h".
109381         * lib/mountlist.c: Include unlocked-io.h after all system headers.
109382         Remove explicit declarations of xmalloc, xrealloc,
109383         and xstrdup.  Instead, include "xalloc.h".
109385         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
109386         unlocked-io.h.
109387         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
109388         Likewise.
109389         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
109391         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
109392         Reported by Padraig Brady.
109394         * lib/mkstemp.c: #undef mkstemp.
109395         Include config.h.
109396         (rpl_mkstemp): Rename from mkstemp.
109397         Protoize.
109399 2001-11-16  Jim Meyering  <meyering@lucent.com>
109401         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
109402         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
109403         determine the amount of total physical memory, use pstat_getstatic.
109404         HPUX-11 doesn't define _SC_PHYS_PAGES.
109405         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
109406         If sysconf couldn't be used to determine the amount of available
109407         physical memory, use both pstat_getstatic and pstat_getdynamic.
109408         Based on a patch from Bob Proulx.
109410 2001-11-10  Jim Meyering  <meyering@lucent.com>
109412         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
109413         (jm_PREREQ): Use it.
109415 2001-11-09  Jim Meyering  <meyering@lucent.com>
109417         * m4/jm-macros.m4: Require autoconf-2.52f.
109418         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
109419         Use these AC_-prefixed names, not the AM_-prefixed ones.
109421         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
109423 2001-11-05  Jim Meyering  <meyering@lucent.com>
109425         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
109427 2001-11-04  Jim Meyering  <meyering@lucent.com>
109429         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
109430         $DEFS.
109432 2001-11-03  Jim Meyering  <meyering@lucent.com>
109434         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
109435         of AC_DEFUN.
109437         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
109438         know the name of the variable in the macro definition.
109440 2001-11-03  Jim Meyering  <meyering@lucent.com>
109442         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
109443         in argmatch_to_argument call.
109445         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
109446         argument.
109448         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
109449         e.g., a fault due to an attempt to free a NULL pointer.
109451 2001-11-01  Jim Meyering  <meyering@lucent.com>
109453         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
109454         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
109456 2001-11-01  Jim Meyering  <meyering@lucent.com>
109458         * lib/dirfd.c, lib/dirfd.h: New files.
109459         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
109461         * lib/hash.c (hash_print) [TESTING]: Clean up.
109463 2001-10-22  Paul Eggert  <eggert@twinsun.com>
109465         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
109466         to avoid a warning if -Wall.
109468 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
109470         * README: New file
109471         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
109472         (per RMS's instructions, this is now the canonical source)
109473         * lgpl/, gpl/: New directories.
109475 2001-10-21  Paul Eggert  <eggert@twinsun.com>
109477         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
109479 2001-10-21  Jim Meyering  <meyering@lucent.com>
109481         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
109482         this code would end up calling gettext even in packages built
109483         with --disable-nls.
109484         * lib/getopt.c (_): Likewise.
109485         * lib/regex.c (_): Likewise.
109487 2001-10-20  Paul Eggert  <eggert@twinsun.com>
109489         * m4/error.m4 (jm_PREREQ_ERROR):
109490         Do not invoke AC_CHECK_FUNCS with strerror_r, as
109491         AC_FUNC_STRERROR_R does that.
109492         Check for strerror declaration.
109494         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
109495         are supposed to have them these days.
109496         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
109497         Merge changes from latest Autoconf CVS.
109498         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
109499         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
109500         POSIX decided to standardize on the int flavor of strerror_r.
109502 2001-10-20  Paul Eggert  <eggert@twinsun.com>
109504         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
109505         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
109506         Use strerror_r that is only a macro, even if it is not a function.
109507         (strerror): Check for HAVE_DECL_STRERROR before declaring.
109508         (private_strerror): Use prototypes, not old-style function definition.
109509         (print_errno_message): New function.
109510         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
109511         char*-flavored one.
109512         (error_tail, error, error_at_line): Use it.
109514 2001-10-11  Jim Meyering  <meyering@lucent.com>
109516         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
109517         and quote_n (1, ... to avoid clobbering a buffer.
109519 2001-10-05  Jim Meyering  <meyering@lucent.com>
109521         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
109522         hash-pjw.h.
109523         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
109524         * lib/hash-pjw.h: New file.
109526 2001-09-30  Jim Meyering  <meyering@lucent.com>
109528         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
109529         `struct fsstat' has the `f_fstypename' member.
109530         Use that to define FS_TYPE, which is now used to make
109531         the getfsstat link test tighter.
109533 2001-09-30  Jim Meyering  <meyering@lucent.com>
109535         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
109536         Include <sys/ucred.h>, for Apple Darwin.
109537         Include sys/mount.h and sys/fs_types.h only if available.
109538         (FS_TYPE): Define.
109539         (read_filesystem_list): Use FS_TYPE.
109541 2001-09-29  Paul Eggert  <eggert@twinsun.com>
109543         * lib/exclude.c (excluded_filename): 0 -> false, since it's
109544         a boolean context.
109546 2001-09-29  Jim Meyering  <meyering@lucent.com>
109548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
109549         [one-argument getmntent function]): Include stdio.h before mntent.h.
109550         SunOS 4.1.x needs it for the declaration of `FILE'.
109551         Patch by Volker Borchert.
109553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
109554         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
109555         sys/fs_types.h, and make the link-test for getfsstat guard #include
109556         directives with appropriate #if HAVE_*_H tests so that we can
109557         detect getfsstat on Apple Darwin1.3.7 systems.
109558         Reported by Nelson Beebe.
109559         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
109561 2001-09-28  Paul Eggert  <eggert@twinsun.com>
109563         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
109564         #defines strtoimax.  Also treat the other strto* functions
109565         like strtoimax.
109567         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
109568         Check for strtoul and strtoumax,
109569         as those declarations are made even in the signed case.
109570         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
109571         Likewise, for strtol and strtoimax.
109573 2001-09-28  Paul Eggert  <eggert@twinsun.com>
109575         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
109576         #defines strtoimax.  Also treat the other strto* functions
109577         like strtoimax.
109579         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
109580         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
109581         (strtoimax, strtoumax): Do not declare if already defined as a macro.
109583 2001-09-26  Jim Meyering  <meyering@lucent.com>
109585         Most macros in unlocked-io.h had the wrong number of arguments.
109586         * lib/gen-uio: New script.
109587         (USE_UNLOCKED_IO): Define to 1 if not already defined.
109588         * lib/unlocked-io.hin: Remove file.
109589         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
109590         rather than trying to embed it here.
109591         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
109592         Reported by Padraig Brady.
109594 2001-09-25  Volker Borchert  <bt@teknon.de>
109596         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
109597         `result'.
109599 2001-09-24  Jim Meyering  <meyering@lucent.com>
109601         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
109603 2001-09-23  Jim Meyering  <meyering@lucent.com>
109605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
109606         instead of the mere test for existence of mntent.h.  The latter
109607         would get a false-positive on AIX 3.4 systems.
109608         In the outer getmntent if-block, don't die if neither of the getmntent
109609         tests succeeds.  Instead, just fall through and continue with the
109610         remaining tests.
109612 2001-09-23  Jim Meyering  <meyering@lucent.com>
109614         * lib/mountlist.c: Remove useless parentheses in #if directives.
109615         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
109616         the deprecated MOUNTED symbol is no longer defined in mntent.h.
109618 2001-09-22  Jim Meyering  <meyering@lucent.com>
109620         * m4/gettext.m4: New file.  From gettext.
109621         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
109622         * m4/progtest.m4: Likewise
109623         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
109624         * m4/glibc21.m4: Likewise.
109626         * m4/libintl.m4: Remove.  No longer used.
109628 2001-09-22  Jim Meyering  <meyering@lucent.com>
109630         * lib/localcharset.c: Update from latest gettext.
109631         * lib/config.charset: Likewise.
109633 2001-09-20  Jim Meyering  <meyering@lucent.com>
109635         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
109636         strtoimax.
109637         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
109638         strtoumax.
109640 2001-09-20  Jim Meyering  <meyering@lucent.com>
109642         * lib/xstrtol.c (strtoimax): Guard declaration with
109643         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
109644         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
109645         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
109646         (strtoumax): Likewise, for completeness (it wasn't necessary).
109648 2001-09-17  Paul Eggert  <eggert@twinsun.com>
109650         * lib/strtoimax.c (HAVE_LONG_LONG):
109651         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
109652         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
109653         to work around bug in IBM C compiler.
109655 2001-09-17  Jim Meyering  <meyering@lucent.com>
109657         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
109658         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
109659         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
109660         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
109661         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
109662         whenever the right hand side need not be expanded by the shell.
109664 2001-09-16  Paul Eggert  <eggert@twinsun.com>
109666         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
109667         library.  It's not correct, as some older glibcs are buggy.
109668         fnmatch wasn't fixed until glibc 2.2.
109670         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
109671         special shell magic here.
109673 2001-09-16  Jim Meyering  <meyering@lucent.com>
109675         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
109676         * m4/jm-macros.m4: Require it.
109678 2001-09-16  Jim Meyering  <meyering@lucent.com>
109680         * lib/mkdir.c: New file.
109682 2001-09-15  Jim Meyering  <meyering@lucent.com>
109684         * m4/jm-macros.m4: Check for help2man.
109686 2001-09-11  Jim Meyering  <meyering@lucent.com>
109688         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
109689         The body, by Paul Eggert, was moved here from configure.in.
109690         * m4/jm-macros.m4: Require UTILS_HOST_OS.
109692 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109694         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
109695         (jm_PREREQ): Use it.
109697 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109699         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
109700         Use ssize_t, not int, to store result of readlink.
109701         Check for ssize_t overflow as well as size_t overflow,
109702         as POSIX says the result of readlink is implementation-defined
109703         when ssize_t overflows.
109704         Remove unnecessary cast to char*.
109705         Use free+malloc instead of realloc, as the storage doesn't need
109706         to be preserved and it's clearer and can be more efficient that way.
109707         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
109708         * lib/xreadlink.h (xreadlink): Update prototype.
109710 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109712         * lib/xgetcwd.c: Revert some of the previous change; intead,
109713         fix the HAVE_GETCWD_NULL code to behave more like the
109714         !HAVE_GETCWD_NULL code used to.
109716         Include "xalloc.h".
109717         (xgetcwd): Do not return NULL when memory is exhausted; instead,
109718         invoke xalloc_die.
109720 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109722         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
109723         sys/param.h, as pathmax.h includes them.
109725 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109727         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
109728         (jm_PREREQ_XGETCWD): New macro.
109730         * m4/getcwd.m4: New file.
109732 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109734         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
109735         like the HAVE_GETCWD_NULL code.
109736         Include pathmax.h if not HAVE_GETCWD.
109737         Do not include xalloc.h.
109738         (INITIAL_BUFFER_SIZE): New symbol.
109739         Do not use xmalloc / xrealloc, since the caller is responsible for
109740         handling errors.  Preserve errno around `free' during failure.
109741         Do not overrun buffer when using getwd.
109743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109745         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
109746         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
109747         getcwd (NULL, 0).
109749 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109751         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
109752         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
109753         spotted by Jim Meyering.
109755 2001-09-03  Jim Meyering  <meyering@lucent.com>
109757         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
109758         failure.
109760 2001-09-02  Jim Meyering  <meyering@lucent.com>
109762         * lib/error.c: Update from GNU libc.
109764 2001-09-01  Jim Meyering  <meyering@lucent.com>
109766         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
109767         Used by df.
109769 2001-09-01  Jim Meyering  <meyering@lucent.com>
109771         * lib/xreadlink.c: New file.
109772         * lib/xreadlink.h: New file.
109773         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
109774         xreadlink.h.
109776         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
109777         doesn't conflict with sparc Solaris 7's definition in
109778         /usr/include/sys/int_types.h.
109780         * lib/exclude.c: Use `""', not `<>' to #include non-system header
109781         files.
109782         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
109783         and strncasecmp as r-values.  Unixware didn't have declarations.
109785 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109787         * lib/xstrtol.h: Add copyright notice.
109788         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
109789         LONGINT_INVALID_SUFFIX_CHAR.
109791 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109793         * lib/xstrtol.c (strtoimax): New decl.
109795 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109797         * lib/xgetcwd.c: Don't include pathmax.h.
109798         Include stdlib.h and unistd.h if available.
109799         Include xalloc.h.
109800         (xmalloc, xstrdup, free): Remove decls.
109801         (xgetcwd): Don't assume sizes fit in unsigned.
109802         Check for overflow when computing sizes.
109803         Simplify reallocation code.
109805 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109807         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
109808         a directory's st_size can have an arbitrary value, so the old
109809         usage could waste an arbitrary amount of memory.  All uses
109810         changed.
109811         * lib/savedir.h: Update prototype.
109813 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109815         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
109817         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
109818         old strtoimax.c.
109820         Also, make the following further changes to make this file's
109821         configuration more similar to that of strtol.c:
109822         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
109823         (strtoumax, uintmax_t, strtoull, strtol): Remove.
109824         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
109825         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
109826         changed to signed values.
109828         And make the following changes as well:
109829         Fix copyright notice, as 1999 was missing.
109830         (verify): New macro.
109831         (strtoimax): Check sizes at compile-time, not run-time.
109832         Prefer strtol to strtoll if both work.
109833         (main): Remove; it was not that useful and was a pain to maintain.
109835         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
109837 2001-08-31  Jim Meyering  <meyering@lucent.com>
109839         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
109840         Use an initial, malloc'd, buffer of length 128 rather than
109841         a statically allocated one of length 1024.
109843 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109845         Simplify code, partly by assuming autoconf 2.52 semantics.
109847         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
109849         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
109850         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
109851         All uses removed.
109852         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
109853         Move AC_REQUIRE to next-to-top level, to avoid confusion.
109854         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
109855         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
109856         jm_AC_HEADER_INTTYPES_H.
109857         * m4/jm-macros.m4 (jm_MACROS): Likewise.
109859         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
109861         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
109862         Quote first arg of AC_DEFUN.
109863         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
109864         since they are needed to parse the include file even if we need
109865         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
109866         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
109867         but with opposite signedness.
109869 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109871         Merge 'exclude' changes from tar 1.13.22.
109872         This fixes one or two unlikely storage allocation overflow bugs,
109873         but doesn't change user-visible behavior otherwise.
109875 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109877         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
109878         (jm_PREREQ_EXCLUDE): New macro.
109880 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109882         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
109883         tm to be declared.
109885 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109887         * lib/hash.c: Remove '2001' from copyright notice.
109889 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109891         * lib/full-write.h: New file.
109892         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
109893         * lib/full-write.c: Correct credits, as cccp.c no longer
109894         exists and anyway it was so heavily changed from the old cccp
109895         code as to be unrecognizable.  Include full-write.h.
109896         (full_write): Return size_t, with short writes meaning failure.
109897         All callers changed.  This fixes a bug with large buffers
109898         on 64-bit hosts.
109899         * lib/utime.c: Include full-write.h.
109901 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109903         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
109904         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
109905         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
109906         Include if available.
109907         (<xalloc.h>): Include
109908         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
109909         (verify): New macro.  Use it to verify that EXCLUDE macros do not
109910         collide with FNM macros.
109911         (struct patopts): New struct.
109912         (struct exclude): Use it, as exclude patterns now come with options.
109913         (new_exclude): Support above changes.
109914         (new_exclude, add_exclude_file):
109915         Initial size must now be a power of two to simplify overflow checking.
109916         (free_exclude, fnmatch_no_wildcards): New function.
109917         (excluded_filename): No longer requires options arg, as the options
109918         are determined by add_exclude.  Now returns bool, not int.
109919         (excluded_filename, add_exclude):
109920         Add support for the fancy new exclusion options.
109921         (add_exclude, add_exclude_file): Now takes int options arg.
109922         Check for arithmetic overflow when computing sizes.
109923         (add_exclude_file): xrealloc might modify errno, so don't
109924         realloc until after errno might be used.
109926         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
109927         New macros.
109928         (free_exclude): New decl.
109929         (add_exclude, add_exclude_file): Now takes int options arg.
109930         (excluded_filename): No longer requires options arg, as the options
109931         are determined by add_exclude.  Now returns bool, not int.
109933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109935         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
109937 2001-08-27  Jim Meyering  <meyering@lucent.com>
109939         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
109941         * lib/version-etc.c (N_): Remove definition.
109942         Revert most of last change.
109943         Instead, simply don't mark the `Copyright...' string for translation.
109944         Based on advice from Paul Eggert.
109946         * lib/strtoxmax.c: Tweak comment.
109948 2001-08-26  Jim Meyering  <meyering@lucent.com>
109950         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
109952         * m4/xstrtoimax.m4: New file.
109953         * m4/xstrtoumax.m4: Add comments explaining why we
109954         AC_REPLACE_FUNCS(strtol).
109956 2001-08-26  Jim Meyering  <meyering@lucent.com>
109958         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
109959         of copyright with `%s' so translators don't get an untranslated
109960         message in 2002.
109961         (COPYRIGHT_YEAR): Define.
109962         (version_etc): Use fprintf rather than fputs.
109963         Suggestion from Ulrich Drepper.
109965         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
109967         * lib/strtoll.c: New file, from GNU libc.
109968         * lib/xstrtoimax.c: New file.
109970         * lib/xstrtol.h: Add xstrtoimax.
109971         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
109972         * lib/strtoimax.c: New file.  Likewise, but first define
109973         STRTOUXMAX_SIGNED.
109975         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
109976         ...
109977         * lib/strtoxmax.c: ... then renamed to this.
109979 2001-08-18  Paul Eggert  <eggert@twinsun.com>
109981         * m4/inttypes.m4: Add AC_PREREQ(2.13).
109982         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
109983         (jm_AC_TYPE_INTMAX_T): New macro.
109984         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
109986         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
109988         * m4/longlong.m4: Renamed from ulonglong.m4.
109989         * m4/inttypes.m4: Renamed from inttypes_h.m4.
109990         * m4/uintmax_t.m4: Removed.
109992 2001-08-13  Paul Eggert  <eggert@twinsun.com>
109994         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
109995         Port to Solaris 8, where 'sed' requires a space after the 'r'
109996         command, and where sh dislikes "$/".  Clean up the spacing a bit.
109997         Redirect output to $tmp just once.
109999 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
110001         * lib/addext.c (<errno.h>): Include.
110002         (errno): Declare if not defined.
110003         (addext): Work correctly when pathconf returns -1 and leaves
110004         errno alone because there is no limit.  Also, work even if
110005         pathconf returns a value greater than SIZE_MAX.
110007 2001-08-12  Jim Meyering  <meyering@lucent.com>
110009         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
110010         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
110011         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
110012         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
110013         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
110014         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
110015         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
110016         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
110017         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
110018         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
110019         utime.m4, utimes.m4, xstrtoumax.m4:
110020         Quote the first argument in each use of AC_DEFUN.
110022 2001-08-12  Jim Meyering  <meyering@lucent.com>
110024         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
110025         Simply `return getcwd (NULL, 0);'.
110026         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
110027         Use 1300 as initial value for length, not PATH_MAX.
110029         * lib/pathmax.h: Clean up cpp syntax.
110031 2001-08-12  Jim Meyering  <meyering@lucent.com>
110033         * lib/gettimeofday.c: New file.
110034         * lib/gtod.h: New file.
110035         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
110037 2001-08-05  Jim Meyering  <meyering@lucent.com>
110039         * m4/jm-macros.m4: Require autoconf-2.52.
110041 2001-08-04  Jim Meyering  <meyering@lucent.com>
110043         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
110044         stmt, to get in sync with glibc.
110046 2001-08-03  Paul Eggert  <eggert@twinsun.com>
110048         The following changes are from gettext 0.10.39 as maintained by
110049         Bruno Haible.
110051         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
110052         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
110053         with inverted sense.  All uses changed.
110055         * lib/mbswidth.c: Don't include <limits.h>.
110056         Include <stdlib.h> and <string.h> unconditionally.
110057         (iswcntrl, mbsinit, ISCNTRL): New macros.
110058         (mbsnwidth): Use K&R style function declarations.
110059         Don't bother checking for MB_LEN_MAX == 1, since the compiler
110060         can optimize it when MB_CUR_MAX == 1.
110061         The width of control characters is zero, not 1.
110063 2001-08-03  Paul Eggert  <eggert@twinsun.com>
110065         The following changes are from gettext 0.10.39 as maintained by
110066         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
110068         * m4/codeset.m4: Upgrade to serial AM1.
110069         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
110070         all uses changed.  Quote first arg of AC_DEFUN.
110071         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
110073         * m4/iconv.m4: Upgrade to serial AM2.
110074         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
110075         Add --with-libconv-prefix.
110076         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
110077         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
110078         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
110079         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
110080         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
110082         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
110083         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
110084         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
110085         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
110086         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
110087         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
110088         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
110089         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
110090         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
110092         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
110093         string.h any more.
110095         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
110096         not the default value.
110098         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
110099         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
110100         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
110101         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
110102         Also check for iswcntrl, used for wcwidth fallback.
110103         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
110104         to Autoconf 2.13.
110106 2001-08-03  Jim Meyering  <meyering@lucent.com>
110108         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
110109         as it was in the original.  Reported by Paul Eggert.
110111 2001-07-16  Jim Meyering  <meyering@lucent.com>
110113         * m4/gettimeofday.m4: New file.
110114         Prompted by a report from Bernhard Baehr.
110116 2001-07-15  Jim Meyering  <meyering@lucent.com>
110118         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
110119         stuff. Now it's in ../Makefile.cfg.
110121 2001-07-15  Jim Meyering  <meyering@lucent.com>
110123         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
110124         (BUILT_SOURCES): Add unlocked-io.h.
110125         (io_functions): Define.
110126         (unlocked-io.h): New rule.
110127         (DISTCLEANFILES): Add unlocked-io.h.
110128         (all-local): Depend on unlocked-io.h, to ensure it is created.
110130         * lib/unlocked-io.hin: New file
110132         * lib/regex.c: Update from glibc.
110134 2001-07-05  Jim Meyering  <meyering@lucent.com>
110136         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
110137         recommendation.
110138         (libfetish_a_SOURCES): Put all .h files here instead.
110139         Remove a thus-exposed (better checks in automake) duplicate and
110140         two unnecessary .h files.
110142 2001-07-04  Jim Meyering  <meyering@lucent.com>
110144         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
110145         that generates jm-glibc-io.m4 so that it doesn't trigger any make
110146         distcheck failure.
110148 2001-07-02  Jim Meyering  <meyering@lucent.com>
110150         The following changes were prompted by suggestions from Bruno Haible.
110152         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
110153         is now generated.
110154         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
110155         definition of EXTRA_DIST.
110156         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
110157         ensure that the generated file is created/updated whenever the list
110158         of $(unlocked_functions) is changed.
110159         (jm-glibc-io.m4): New rule.
110160         (unlocked-io.h): New rule -- currently unused.
110162 2001-06-24  Jim Meyering  <meyering@lucent.com>
110164         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
110165         unmatched right bracket, rather than kludging it with an extra,
110166         falsely-matching quote in a comment.  Patch by Akim Demaille.
110168 2001-06-11  Jim Meyering  <meyering@lucent.com>
110170         * lib/regex.c: Update from GNU libc.
110172 2001-05-27  Jim Meyering  <meyering@lucent.com>
110174         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
110175         Check for ut_type in struct utmp.
110177 2001-05-27  Jim Meyering  <meyering@lucent.com>
110179         * lib/readutmp.h (UT_TYPE): Define.
110181 2001-05-24  Jim Meyering  <meyering@lucent.com>
110183         * lib/argmatch.c: Include "quote.h".
110184         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
110185         quote function.  Reported by Göran Uddeborg.
110187 2001-05-22  Jim Meyering  <meyering@lucent.com>
110189         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
110190         now that we use the package-supplied version unconditionally.
110191         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
110193 2001-05-21  Jim Meyering  <meyering@lucent.com>
110195         * m4/regex.m4: Change a couple backticks to single quotes to avoid
110196         shell syntax errors.
110198 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
110200         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
110202 2001-05-20  Paul Eggert  <eggert@twinsun.com>
110204         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
110205         Don't bother to check library strftime, since
110206         we'll be using our own my_strftime function anyway.
110207         Define my_strftime instead of strftime.
110209 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
110211         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
110212         which is not yet declared.
110214 2001-05-15  Jim Meyering  <meyering@lucent.com>
110216         * m4/regex.m4: Use proper quoting so brackets appear in the test
110217         program.
110218         Reported by, and with help from, Bruno Haible.
110220 2001-05-13  Jim Meyering  <meyering@lucent.com>
110222         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
110223         undefined.
110225 2001-05-11  Paul Eggert  <eggert@twinsun.com>
110227         dirname code cleanup.  base_name now behaves more compatibly
110228         with POSIX basename when given file names that have trailing
110229         slashes, and similarly for dir_name.  Add new primitives
110230         base_len and dir_len.  Put the directory-name-related decls
110231         into dirname.h.
110233         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
110234         * lib/backupfile.c (base_name): Likewise.
110235         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
110236         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
110237         * lib/makepath.c (strip_trailing_slashes): Likewise.
110238         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
110239         ISSLASH): Likewise.
110240         * lib/rename.c (strip_trailing_slashes): Likewise.
110241         * lib/same.c (base_name): Likewise.
110242         * lib/stripslash.c (ISSLASH): Likewise.
110244         * lib/addext.c: Include <dirname.h> after size_t is defined.
110245         * lib/backupfile.c: Likewise.
110247         * lib/addext.c (addext): Use base_len to trim redundant
110248         trailing slashes instead of doing it ourselves.
110249         But do not trim the last slash if it is not redundant.
110251         * lib/backupfile.c (find_backup_file_name,
110252         max_backup_version): Use base_len instead of rolling it ourselves.
110253         Handle the case of "" and (on DOS) "C:" correctly.
110255         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
110256         needed. Include <string.h>, <dirname.h>.
110257         (base_name): Allow file names ending in slashes, other than names
110258         that are all slashes.  In this case, return the basename followed
110259         by the slashes.  This is more general, and can be used in places
110260         where the original base_name purposely had an assertion failure.
110261         (base_len): New function.
110263         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
110264         Do not include <assert.h>; no longer needed.
110265         Include xalloc.h.
110266         (memrchr): Remove decl.
110267         (dir_name_r): Remove.
110268         (dir_len): Renamed from dirlen.  All callers changed.
110269         Rewrite in terms of base_name, for simplicity and consistency.
110270         (dir_name): Never return NULL.  All callers changed.
110271         Do not include <stdlib.h> in test program; no longer needed.
110272         return 0; is fine for test program.
110274         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
110275         New macros.
110276         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
110278         * lib/path-concat.c (path_concat): Use base_len to compute
110279         base length, not strlen; this means we cannot rely on memcpy
110280         to null-terminate.
110282         * lib/same.c (STREQ): Remove.
110283         (same_name): Handle the case where the basename ends in trailing '/'.
110285         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
110286         a slash was stripped.  Do not strip the last slash after a
110287         file system prefix.
110289 2001-05-11  Paul Eggert  <eggert@twinsun.com>
110291         * lib/Makefile.am (libfetish_a_SOURCES):
110292         Add strftime.c, since we now compile it on all hosts.
110294         * lib/strftime.c (my_strftime):
110295         Define to nstrftime if emacs, but only if my_strftime is not defined.
110296         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
110297         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
110298         Add one more extra argument: a nanoseconds value.
110299         All uses changed.
110300         (ns): New macro.
110301         (my_strftime function): Add %N format.
110302         (emacs_strftimeu): Renamed from emacs_strftime,
110303         with extra ut argument.
110305 2001-05-09  Paul Eggert  <eggert@twinsun.com>
110307         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
110309 2001-04-21  Jim Meyering  <meyering@lucent.com>
110311         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
110312         doesn't interfere.
110314 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
110316         * m4/ftruncate.m4: Check for chsize.
110317         Link with ftruncate.o unconditionally if ftruncate is missing.
110318         This was required when cross-compiling to i586-mingw32msvc.
110320 2001-04-08  Jim Meyering  <meyering@lucent.com>
110322         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
110323         recomputed; that's necessary when the offset spans a DST transition.
110324         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
110326 2001-04-02  Jim Meyering  <meyering@lucent.com>
110328         * lib/regex.h, regex.c: Update from GNU libc.
110330 2001-03-24  Jim Meyering  <meyering@lucent.com>
110332         * m4/jm-macros.m4: Require autoconf-2.49d.
110334 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
110336         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
110338 2001-03-19  Paul Eggert  <eggert@twinsun.com>
110340         * lib/version-etc.c (version_etc_copyright): Update to 2001.
110342 2001-03-17  Jim Meyering  <meyering@lucent.com>
110344         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
110345         now that the version in autoconf is equivalent.
110346         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
110348         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
110349         Suggestion from Akim Demaille.
110351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
110352         (jm_PREREQ_TEMPNAME): New function.
110354 2001-03-16  Paul Eggert  <eggert@twinsun.com>
110356         * lib/tempname.c (uint64_t): Define to uintmax_t if
110357         not defined, and if UINT64_MAX is not defined.
110358         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
110359         Reported by John David Anglin.
110361 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
110363         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
110364         resolve alias if codeset is empty.
110365         * lib/config.charset (BeOS): Use wildcard syntax.
110367 2001-03-13  Jim Meyering  <meyering@lucent.com>
110369         * lib/path-concat.c (path_concat)
110370         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
110371         concatenating e.g., `C:' and `foo'.
110372         From Bruno Haible.
110374 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
110376         * lib/localcharset.c (locale_charset): Don't use
110377         setlocale(LC_CTYPE,NULL). Don't return NULL.
110378         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
110380 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
110382         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
110383         support for DOS/DJGPP.
110385 2001-03-01  Paul Eggert  <eggert@twinsun.com>
110387         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
110388         lacks mkstemp.  Compile our own tempname.c if we compile our own
110389         mkstemp.c, as mkstemp relies on tempname.
110391 2001-03-01  Jim Meyering  <meyering@lucent.com>
110393         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
110394         AH_VERBATIM really does output its argument verbatim.
110396 2001-02-28  Paul Eggert  <eggert@twinsun.com>
110398         * lib/Makefile.am (libfetish_a_SOURCES):
110399         Add dup-safer.c, fopen-safer.c.
110400         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
110402         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
110403         * lib/unistd-safer.h: New files.
110405 2001-02-25  Paul Eggert  <eggert@twinsun.com>
110407         The mkstemp replacement is taken from glibc 2.2.2, with some
110408         portability fixes for use outside glibc, as follows:
110410         * lib/tempname.c (struct_stat64): New macro.
110411         (direxists, __gen_tempname): Use it.
110412         This avoids a portability problem with Solaris 8.
110414         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
110415         (<stddef.h>, <stdint.h>, <string.h>):
110416         Include only if STDC_HEADERS || _LIBC.
110417         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
110418         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
110419         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
110420         (__set_errno): Define this macro if <errno.h> doesn't.
110421         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
110422         Define these macros if <stdio.h> doesn't.
110423         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
110424         Define these macros if <sys/stat.h>
110425         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
110426         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
110427         __xstat64): Define if not _LIBC.
110428         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
110429         (__gen_tempname): Invoke gettimeofday only if
110430         HAVE_GETTIMEOFDAY || _LIBC;
110431         otherwise, fall back on plain "time".
110432         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
110434         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
110436         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
110438 2001-02-18  Paul Eggert  <eggert@twinsun.com>
110440         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
110442 2001-02-17  Paul Eggert  <eggert@twinsun.com>
110444         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
110445         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
110446         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
110447         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
110449 2001-02-17  Paul Eggert  <eggert@twinsun.com>
110451         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
110452         Remove workaround macros for hosts that have mbrtowc but not
110453         mbstate_t, as we now insist on proper declarations for both
110454         before using mbrtowc.
110456 2001-02-17  Jim Meyering  <meyering@lucent.com>
110458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
110459         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
110460         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
110461         UnixWare 7.1.1.
110463         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
110464         rather than AC_CACHE_VAL.
110466 2001-02-17  Jim Meyering  <meyering@lucent.com>
110468         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
110469         around included file name.
110471         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
110473         * lib/strftime.c: Update from GNU libc (the only changes were to
110474         comments).
110476 2001-02-17  Jim Meyering  <meyering@lucent.com>
110478         * lib/regex.c: Update from libc.
110480 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
110482         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
110483         clash.
110485 2001-02-16  Paul Eggert  <eggert@twinsun.com>
110487         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
110488         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
110489         Reported by Mark Hounschell via Paul Eggert.
110491 2001-02-07  Jim Meyering  <meyering@lucent.com>
110493         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
110495 2001-02-05  Jim Meyering  <meyering@lucent.com>
110497         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
110498         it includes the patch required for `large file' support with at least
110499         HP-UX's 10.20 /bin/cc.
110501 2001-02-03  Jim Meyering  <meyering@lucent.com>
110503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
110504         AS_IF, now that it works once again (mysteriously).
110505         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
110507 2001-01-30  Jim Meyering  <meyering@lucent.com>
110509         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
110510         * m4/chown.m4: Rename conftestchown to conftest.chown.
110511         * m4/rename.m4: s/conftestdir/conftest.d1/ and
110512         s/conftestdir2/conftest.d2/.
110513         * m4/utimes.m4: s/conftestdata/conftest.data/
110514         Inspired by Pavel Roskin's change in autoconf.
110516 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
110518         * lib/config.charset: Update for FreeBSD 4.2.
110520 2001-01-27  Jim Meyering  <meyering@lucent.com>
110522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
110523         a use of AS_IF.
110524         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
110526 2001-01-26  Jim Meyering  <meyering@lucent.com>
110528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
110529         quotearg.c includes it.
110531 2001-01-26  Jim Meyering  <meyering@lucent.com>
110533         * lib/quotearg.c: Include stddef.h.
110534         * lib/quote.c: Include stddef.h.
110535         Reported by Axel Kittenberger.
110537         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
110538         line in double quotes so that it evokes a better diagnostic.
110539         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
110540         Reported by Axel Kittenberger.
110542 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
110544         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
110545         as if it was a `charset'.
110547 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
110549         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
110550         has const.
110552 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
110554         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
110555         to avoid a warning.  Add back 'const' to inptr.
110557 2001-01-20  Jim Meyering  <meyering@lucent.com>
110559         Be sure that headers are checked before used in code compiled
110560         for the type checks.
110561         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
110562         In place of that, invoke jm_CHECK_ALL_TYPES.
110563         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
110564         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
110565         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
110566         The check for ssize_t was mistakenly run before the test for unistd.h.
110568         The configure-time check for stdbool.h was missing.
110569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
110570         (jm_PREREQ_HASH): New function.
110572 2001-01-17  Jim Meyering  <meyering@lucent.com>
110574         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
110575         for autoconf-2.49c.
110576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
110578 2001-01-16  Jim Meyering  <meyering@lucent.com>
110580         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
110581         From Bruno Haible.
110583 2001-01-14  Jim Meyering  <meyering@lucent.com>
110585         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
110586         foo and bar.  Create conftestdir/ in the script, not in the C code.
110587         Remove directories in the script, not in the C code.
110588         Remove conftestdir{,2} before trying to create the directory.
110589         Make the entire configure script fail if the mkdir fails.
110591 2001-01-14  Jim Meyering  <meyering@lucent.com>
110593         * lib/rename.c: New file.  From Volker Borchert.
110594         Include stdlib.h, string.h or strings.h, and xalloc.h.
110595         Use strip_trailing_slashes rather than open-coding it.
110597 2001-01-03  Paul Eggert  <eggert@twinsun.com>
110599         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
110601 2001-01-03  Jim Meyering  <meyering@lucent.com>
110603         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
110604         of local `inptr' to avoid warning with some system declarations of
110605         iconv.
110607 2001-01-02  Volker Borchert  <bt@teknon.de>
110609         * m4/rename.m4: New file.
110610         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
110612 2001-01-01  Jim Meyering  <meyering@lucent.com>
110614         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
110615         even on systems with utmpx.h.  It's necessary for the declaration of
110616         utmp's ut_user member.  Reported by Andreas Jaeger.
110618         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
110619         available. They are required for the declarations of getgrgid and
110620         getpwuid resp.
110621         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
110622         Reported by Andreas Jaeger.
110624 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
110626         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
110627         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
110628         so `make install' also works in VPATH builds.
110630 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
110632         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
110633         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
110634         can be used in subdirectories.
110636 2000-12-29  Paul Eggert  <eggert@twinsun.com>
110638         * lib/modechange.c: Do not assume that mode_t uses the
110639         traditional octal encoding.  E.g. "chmod 1 FOO" should set
110640         the other-execute bit of FOO even if S_IXOTH != 1.
110642         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
110643         WOTH, XOTH, ALLM): New macros.
110644         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
110645          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
110646         Use them.
110647         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
110648         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
110649         (mode_compile):
110650         No need to use uintmax_t; unsigned long is long enough.
110651         Don't bother to get suffix since we don't use it.
110653 2000-12-26  Jim Meyering  <meyering@lucent.com>
110655         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
110656         better with autoheader.
110658 2000-12-24  Jim Meyering  <meyering@lucent.com>
110660         * lib/hash.c (is_prime): Return explicit boolean values.
110661         (hash_get_first): Return NULL to appease Irix5.6's 89.
110662         Reported by Nelson Beebe.
110664 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
110666         * lib/localcharset.c (locale_charset): Add support for Win32.
110668 2000-12-18  Paul Eggert  <eggert@twinsun.com>
110670         * lib/physmem.h, lib/physmem.c: New files.
110672         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
110673         (noinst_HEADERS): Add physmem.h.
110675         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
110676         't' for compatibility with Solaris 8 sort.
110678 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
110680         * lib/config.charset: Add support for BeOS.
110682 2000-12-17  Jim Meyering  <meyering@lucent.com>
110684         * m4/dos.m4 (jm_AC_DOS): New file and macro.
110685         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
110687 2000-12-16  Jim Meyering  <meyering@lucent.com>
110689         This bug had a serious impact on chown: `chown N:M FILE' (for integer
110690         N and M) would have treated it like `chown N:N FILE'.
110692         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
110694 2000-12-16  Jim Meyering  <meyering@lucent.com>
110696         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
110697         SHELLS_FILE to a file name that's useful on djgpp systems.
110698         Include stdlib.h.
110699         (ADDITIONAL_DEFAULT_SHELLS): Define.
110700         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
110701         Based mostly on a patch from Prashant TR.
110703 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
110705         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
110706         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
110707         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
110709 2000-12-08  Andreas Schwab  <schwab@suse.de>
110711         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
110712         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
110714 2000-12-07  Jim Meyering  <meyering@lucent.com>
110716         * lib/stripslash.c (ISSLASH): Define.
110717         (strip_trailing_slashes): Use ISSLASH rather than comparing against
110718         `/'.
110719         From Prashant TR.
110721         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
110722         (dir_name_r): Declare this function as static.
110723         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
110724         manifest itself on a name containing a mix of slashes and
110725         backslashes.
110726         Make this function work with names starting with a DOS-style
110727         drive letter and colon prefix.
110728         (dir_name): Append `.' if necessary.
110729         Based mostly on patches from Prashant TR and Eli Zaretskii.
110731         * lib/dirname.h (dir_name_r): Remove prototype.
110733 2000-12-06  Paul Eggert  <eggert@twinsun.com>
110735         * m4/off_t-format.m4: Remove this file.
110736         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
110738 2000-12-06  Jim Meyering  <meyering@lucent.com>
110740         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
110741         replacement strtoull, we may well need the replacement strtoul, too.
110742         Check for declarations of strtoul and strtoull.
110743         Check for strtol.  Mainly as a cue to cause automake to include
110744         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
110745         Check for limits.h -- strtol.c needs it.
110747 2000-12-05  Jim Meyering  <meyering@lucent.com>
110749         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
110751 2000-12-04  Jim Meyering  <meyering@lucent.com>
110753         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
110754         Also include memory.h, stdlib.h, unistd.h if appropriate.
110755         Reported by Andreas Jaeger (conflicting declaration of malloc).
110757 2000-12-02  Jim Meyering  <meyering@lucent.com>
110759         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
110760         * m4/jm-macros.m4 (jm_MACROS): require it.
110762 2000-12-02  Jim Meyering  <meyering@lucent.com>
110764         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
110766 2000-12-01  Paul Eggert  <eggert@twinsun.com>
110768         * lib/memrchr.c: Include <config.h> before any system include file.
110770 2000-11-30  Jim Meyering  <meyering@lucent.com>
110772         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
110774 2000-11-30  Jim Meyering  <meyering@lucent.com>
110776         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
110778 2000-11-29  Paul Eggert  <eggert@twinsun.com>
110780         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
110782 2000-11-26  Jim Meyering  <meyering@lucent.com>
110784         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
110786 2000-11-22  Paul Eggert  <eggert@twinsun.com>
110788         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
110789         size of (size_t) -1; it's not portable.
110791 2000-11-17  Jim Meyering  <meyering@lucent.com>
110793         * lib/strstr.c: Update from GNU libc.
110795 2000-11-17  Akim Demaille  <akim@epita.fr>
110797         * lib/obstack.h: Formatting changes.
110798         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
110799         prevent type checking.
110800         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
110801         cast the value to (void *): assigning a `foo *' to a `void *'
110802         variable is valid.
110803         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
110805 2000-11-16  Jim Meyering  <meyering@lucent.com>
110807         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
110809 2000-11-11  Jim Meyering  <meyering@lucent.com>
110811         * lib/error.c: Add a couple #includes, merging from GNU libc version.
110813 2000-11-10  Jim Meyering  <meyering@lucent.com>
110815         * lib/obstack.h: Update from GNU libc.
110816         * lib/obstack.c: Likewise.
110818 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
110820         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
110822 2000-11-06  Paul Eggert  <eggert@twinsun.com>
110824         * lib/getusershell.c (setusershell): Use rewind rather than
110825         fseek/fseeko, to avoid configuration hassles with fseeko.
110826         Don't bother opening SHELLS_FILE if shellstream is NULL;
110827         it's not necessary.
110829 2000-11-05  Jim Meyering  <meyering@lucent.com>
110831         * lib/makepath.h (make_dir): Declare.
110832         * lib/makepath.c (make_dir): Remove `static' attribute.
110833         Tweak a comment.
110835 2000-11-04  Jim Meyering  <meyering@lucent.com>
110837         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
110839 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
110841         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
110842         last one in a bucket, advance to the next bucket.
110844 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
110846         * lib/fnmatch.c: Do not comment out all the code if we are using
110847         the GNU C library, because in some cases we are replacing buggy
110848         code in the GNU C library itself.
110850 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
110852         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
110853         (regex_compile): Catch bogus \(\1\).
110855 2000-10-30  Paul Eggert  <eggert@twinsun.com>
110857         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
110858         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
110859         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
110861 2000-10-30  Paul Eggert  <eggert@twinsun.com>
110863         * lib/error.h, getline.h, modechange.h:
110864         Remove "2000" from Copyright line, as the file hasn't been
110865         changed this year other than in the copyright notice.
110867         * lib/xalloc.h: Add "2000" to Copyright line, as this file
110868         was changed this year.
110870 2000-10-29  Jim Meyering  <meyering@lucent.com>
110872         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
110873         renaming.
110874         * m4/ls-mntd-fs.m4: Likewise
110876 2000-10-29  Jim Meyering  <meyering@lucent.com>
110878         * lib/xstat.in: Fix grammar in comment.
110880 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
110882         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
110883         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
110884         doesn't define __restrict_arr.
110886 2000-10-28  Jim Meyering  <meyering@lucent.com>
110888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
110889         (jm_PREREQ_MEMCHR): New function.
110891 2000-10-28  Jim Meyering  <meyering@lucent.com>
110893         * lib/memchr.c: Update from libc.
110894         Adjust for portability:
110895         [HAVE_STDLIB_H]: Include stdlib.h.
110896         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
110897         Undef __memchr, too.
110898         [!weak_alias]: Define __memchr to memchr.
110900         * lib/regex.c: Update from libc.
110901         * lib/regex.h: Likewise.
110902         * lib/getopt1.c: Likewise.
110903         * lib/memcmp.c: Likewise.
110905         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
110906         Avoid using fseek, when possible -- it's broken by design.
110907         Patch by Ulrich Drepper.
110909 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
110911         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
110912         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
110913         Giving in to popular pressure to shut up the compiler with casts.
110915 2000-10-26  Jim Meyering  <meyering@lucent.com>
110917         * lib/strftime.c: Update from libc.
110919 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
110921         * regex.c: More `unsigned char' -> `re_char' changes.
110922         Also change several `int' into `re_wchar_t'.
110923         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
110924         (PUSH_FAILURE_POINTER): Don't cast any more.
110925         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
110926         We want GCC to complain, since this piece of code makes
110927         re_match non-reentrant, which *should* be fixed.
110928         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
110929         (EXTEND_BUFFER): Use RETALLOC.
110930         (SET_LIST_BIT): Don't cast.
110931         (re_wchar_t): New type.
110932         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
110933         that those two functions will always properly return.
110934         (IMMEDIATE_QUIT_CHECK): Cast to void.
110935         (analyse_first): Use recursion rather than an explicit stack.
110936         (re_compile_fastmap): Can't fail anymore.
110937         (re_search_2): Don't check re_compile_fastmap for failure.
110938         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
110939         Now also sets the new value (passed in a new argument).
110940         (re_match_2_internal): Use it.
110941         Also, use a new var `reg' of type size_t when looping through regs
110942         rather than reuse the inappropriate `mcnt'.
110944 2000-10-25  Jim Meyering  <meyering@lucent.com>
110946         * lib/obstack.c: Update from libc.
110948 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
110950         * regex.c (regex_compile): Change the way of handling a range from
110951         a char less than 256 to a char not less than 256.
110953 2000-10-24  Andrew Innes  <andrewi@gnu.org>
110955         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
110956         NT-Emacs only.
110957         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
110958         so that re_search functions only quit when callers expect them to.
110960 2000-10-23  Jim Meyering  <meyering@lucent.com>
110962         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
110963         wrong.  That set_locale call must not have any side effects.
110964         From Paul Eggert.
110966 2000-10-22  Jim Meyering  <meyering@lucent.com>
110968         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
110969         [CYCLIC]: Remove now-unused definition.
110971         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
110972         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
110973         Suggestion from Ulrich Drepper.
110975 2000-10-21  Jim Meyering  <meyering@lucent.com>
110977         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
110978         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
110979         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
110981 2000-10-21  Jim Meyering  <meyering@lucent.com>
110983         * lib/dirname.c (memrchr): Declare if necessary.
110984         (dir_name): Remove the restriction that there be no
110985         trailing slashes.  Now, this code skips past them, effectively
110986         ignoring them.
110987         [TEST_DIRNAME] (main): New unit tests.
110989         * lib/memrchr.c: New file from GNU libc.
110990         Undef __memrchr, too.
110991         [!weak_alias]: Define __memrchr to memrchr.
110992         Guard weak_alias use with `#ifdef weak_alias'.
110994 2000-10-21  Jim Meyering  <meyering@lucent.com>
110996         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
110997         (dir_name): Use dir_name_r.
110998         * lib/dirname.h (dir_name_r): Declare it.
111000 2000-10-17  Jim Meyering  <meyering@lucent.com>
111002         * lib/quote.h (PARAMS): Define and use.
111003         Reported by Akim Demaille.
111005         * lib/getopt.c: Update from libc.
111007 2000-10-16  Jim Meyering  <meyering@lucent.com>
111009         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
111010         setlocale.
111011         From Jan Fedak.
111013 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
111015         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
111017 2000-09-25  Jim Meyering  <meyering@lucent.com>
111019         * lib/md5.h (rol): Define (from GnuPG).
111021         * lib/sha.c: Give credit (GnuPG) where due.
111022         (M): Use rol rather than open-coding it.
111023         Add a FIXME comment.
111025 2000-09-21  Jim Meyering  <meyering@lucent.com>
111027         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
111028         Reported by Michael Stone.
111030 2000-09-20  Jim Meyering  <meyering@lucent.com>
111032         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
111033         (noinst_HEADERS): Add sha.h.
111034         Based on code from Scott G. Miller and from GnuPG.
111036 2000-09-18  Jim Meyering  <meyering@lucent.com>
111038         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
111039         LIBS. Otherwise, everyone ends up linking with -lelf for some
111040         configurations.
111041         Reported by Mike Stone.
111043 2000-09-15  Jim Meyering  <meyering@lucent.com>
111045         * lib/regex.c: Update from libc.
111047 2000-09-10  Jim Meyering  <meyering@lucent.com>
111049         * lib/getopt.c (_getopt_internal): Update from glibc.
111051 2000-09-09  Jim Meyering  <meyering@lucent.com>
111053         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
111054         think it should be used as a general replacement for isascii.
111055         * lib/fnmatch.c: Likewise.
111056         * lib/mbswidth.c: Likewise
111057         * lib/regex.c: Likewise.
111059         Don't use atoi.
111060         * lib/userspec.c: Include sys/param.h and limits.h.
111061         Include xstrtol.h.
111062         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
111063         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
111064         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
111065         UID, GID.  Check range.
111067 2000-09-06  Jim Meyering  <meyering@lucent.com>
111069         * lib/getopt.c (_getopt_internal): Update from glibc.
111071 2000-08-30  Jim Meyering  <meyering@lucent.com>
111073         * lib/strftime.c: Merge in changes from GNU libc.
111075 2000-08-26  Jim Meyering  <meyering@lucent.com>
111077         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
111078         * m4/fpending.m4: New file.
111080 2000-08-26  Jim Meyering  <meyering@lucent.com>
111082         * lib/closeout.c: Include "__fpending.h".
111083         (close_stdout_status): Return right away if there's nothing to flush.
111085         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
111086         * lib/__fpending.c: New file.
111087         * lib/__fpending.h: New file.
111089 2000-08-20  Jim Meyering  <meyering@lucent.com>
111091         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
111092         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
111093         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
111095 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
111097         Improve fileutils installation on systems where running
111098         programs (like install) can't be unlinked.
111099         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
111100         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
111102 2000-08-07  Paul Eggert  <eggert@twinsun.com>
111104         Standardize on "memory exhausted" instead of "Memory exhausted"
111105         or "virtual memory exhausted".
111106         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
111107         "virtual memory exhausted".
111108         * lib/same.c (same_name): Invoke xalloc_die instead of printing
111109         our own message.
111110         * lib/userspec.c (parse_user_spec): Likewise.
111111         * lib/bumpalloc.h: comment fix
111112         * lib/same.c, userspec.c: Include xalloc.h.
111114         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
111115         not char *const and pointing to a constant array.
111116         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
111117         (xrealloc): Comment fix.
111119         * lib/userspec.c (parse_user_spec):
111120         Don't translate a message until just before returning,
111121         to avoid unnecessary translation.
111123 2000-08-07  Jim Meyering  <meyering@lucent.com>
111125         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
111126         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
111127         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
111128         getgroups.c, gethostname.c, getopt.h, group-member.c,
111129         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
111130         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
111131         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
111132         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
111133         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
111134         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
111135         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
111136         yesno.c: Back out Copyright date changes for each file with no change
111137         this year.  This eases coordination with other programs using the same
111138         source code modules.  From Paul Eggert.
111140 2000-08-06  Paul Eggert  <eggert@twinsun.com>
111142         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
111143         not char, for compatibility with glibc 2.1.3 strftime.c.
111145 2000-08-03  Greg McGary  <greg@mcgary.org>
111147         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
111148         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
111149         (EXTEND_BUFFER): Use them.
111151 2000-08-01  Jim Meyering  <meyering@lucent.com>
111153         * lib/dirname.c (ISSLASH): Define.
111154         (BACKSLASH_IS_PATH_SEPARATOR): Define.
111155         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
111156         both `\' and `/' may be use as path separators.
111157         Based on a patch from Prashant TR.
111159 2000-07-31  Paul Eggert  <eggert@twinsun.com>
111161         * lib/quotearg.c (quotearg_n_options): Don't make the initial
111162         slot vector a constant, since it might get modified.
111164 2000-07-31  Jim Meyering  <meyering@lucent.com>
111166         * lib/xmalloc.c: Use `virtual memory exhausted', not
111167         `Memory exhausted'.
111168         * lib/obstack.c (print_and_abort): Likewise.
111170 2000-07-30  Paul Eggert  <eggert@twinsun.com>
111172         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
111173         buffer, so that the caller can always quote one small
111174         component of a "memory exhausted" message in slot 0.
111175         From a suggestion by Jim Meyering.
111177 2000-07-30  Jim Meyering  <meyering@lucent.com>
111179         * lib/makepath.c (make_path): Quote the other instance, too.
111181         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
111182         (STATIC_BUF_SIZE): Define.
111183         (quotearg_n_options): Use only statically allocated storage when
111184         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
111185         than STATIC_BUF_SIZE.
111187 2000-07-29  Jim Meyering  <meyering@lucent.com>
111189         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
111190         * lib/dirname.c (dir_name): Likewise.
111192         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
111193         `/'.
111195         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
111196         (dir_name): Assert that there are no trailing slashes.
111198 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
111200         * lib/mbswidth.h (mbswidth): Add a flags argument.
111201         (mbswidth): New declaration.
111202         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
111203         * lib/mbswidth.c (mbswidth): Add a flags argument.
111204         (mbsnwidth): New function.
111206 2000-07-24  Jim Meyering  <meyering@lucent.com>
111208         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
111210 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111212         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
111214 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111216         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
111217         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
111218         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
111219         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
111220         invoke multibyte primitives.
111222 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111224         * lib/quotearg.c:
111225         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
111226         so that mbstate_t is always defined.
111228         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
111229         be 1 in at least one GCC installation, and this configuration
111230         error is likely to be common.  Ignoring MB_LEN_MAX hurts
111231         performance on hosts that have mbrtowc but have only unibyte
111232         locales, but I assume these hosts are rare.
111234 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111236         * lib/mbswidth.c (_XOPEN_SOURCE):
111237         Don't define; this causes problems on Solaris 7.
111238         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
111240 2000-07-23  Jim Meyering  <meyering@lucent.com>
111242         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
111243         too: getgrgid, getpwuid, getuid.
111245 2000-07-23  Jim Meyering  <meyering@lucent.com>
111247         * lib/basename.c (base_name): Add an assertion.
111249 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
111251         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
111252         shadow its mbsinit function.
111254 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
111256         * lib/mbswidth.h: New file.
111257         * lib/mbswidth.c: New file.
111258         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
111259         (noinst_HEADERS): Add mbswidth.h.
111261 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
111263         * lib/config.charset: Add support for FreeBSD. Improve support for
111264         HP-UX and IRIX 6.
111266 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
111268         * m4/mbswidth.m4: New file.
111269         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
111271 2000-07-15  Jim Meyering  <meyering@lucent.com>
111273         * lib/makepath.c: Include quote.h.
111274         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
111275         corresponding argument in a `quote (...)' call.
111276         Give better diagnostics.
111278         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
111279         (noinst_HEADERS): Add quote.h.
111281         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
111282         from tar's src/misc.c.
111283         * lib/quote.h: New file.  Prototypes for same.
111285 2000-07-14  Paul Eggert  <eggert@twinsun.com>
111287         From a suggestion by Bruno Haible.
111288         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
111289         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
111290         to decide whether to define the BeOS workaround macro;
111291         this adjusts to the change to AC_MBSTATE_T.
111293 2000-07-14  Jim Meyering  <meyering@lucent.com>
111295         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
111296         jm_AC_TYPE_UINTMAX_T.
111298 2000-07-13  Paul Eggert  <eggert@twinsun.com>
111300         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
111302         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
111303         quotearg_buffer_restyled): Add support for
111304         clocale_quoting_style.  Undo previous change to
111305         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
111306         and "{RIGHT QUOTATION MARK}" msgids.
111308 2000-07-10  Paul Eggert  <eggert@twinsun.com>
111310         From a suggestion by Bruno Haible.
111311         * m4/mbstate_t.m4 (AC_MBSTATE_T):
111312         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
111313         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
111314         and mbstate_t, to a single-part test that simply defines mbstate_t.
111315         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
111316         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
111318 2000-07-10  Jim Meyering  <meyering@lucent.com>
111320         * m4/strerror_r.m4: Mirror the correction made in autoconf.
111322         * m4/gnu-source.m4: Output to confdefs.h directly.
111323         Suggestion from Akim Demaille.
111325 2000-07-09  Paul Eggert  <eggert@twinsun.com>
111327         The old behavior of quoting `like this' doesn't look good with
111328         newer, ISO-style fonts.  See:
111329         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
111331         Instead, quote "like this" by default.  Let the translator
111332         tailor the locale-specific quoting behavior by providing
111333         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
111335         * lib/quotearg.c (N_): New macro.
111336         (gettext_default): New function.
111337         (quotearg_buffer_restyled): Use
111338         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
111339         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
111341 2000-07-09  Jim Meyering  <meyering@lucent.com>
111343         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
111344         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
111346         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
111347         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
111349 2000-07-09  Jim Meyering  <meyering@lucent.com>
111351         * lib/Most files: Update copyright dates to include 2000.
111353 2000-07-08  Jim Meyering  <meyering@lucent.com>
111355         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
111356         if not defined.
111357         (xgethostname): Remove now-unnecessary #ifdef.
111358         Move declaration of `err' into loop where it's used.
111360 2000-07-05  Paul Eggert  <eggert@twinsun.com>
111361         and Bruno Haible  <haible@clisp.cons.org>
111363         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
111364         only if the test for an object-type mbstate_t fails.  This
111365         prevents us from mistakenly reporting that mbstate_t is a
111366         system object type after we "#define mbstate_t int" to work
111367         around its lack.
111369 2000-07-05  Paul Eggert  <eggert@twinsun.com>
111370         and Bruno Haible  <haible@clisp.cons.org>
111372         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
111374 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111376         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
111377         to strerror_r.
111378         Include <ctype.h> for use of isalpha.
111380 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111382         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
111383         by allocating a larger buffer. Test the gethostname return value for
111384         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
111385         returns an error and ENAMETOOLONG isn't defined.
111387 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111389         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
111390         dimension.
111392 2000-07-04  Jim Meyering  <meyering@lucent.com>
111394         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
111395         of the deprecated AC_CHECKING.
111397 2000-07-04  Jim Meyering  <meyering@lucent.com>
111399         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
111400         Reported by Bruno Haible.
111402 2000-07-04  Jim Meyering  <meyering@lucent.com>
111404         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
111405         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
111406         lacks mbrtowc.
111408 2000-07-03  Paul Eggert  <eggert@twinsun.com>
111410         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
111411         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
111413 2000-07-03  Paul Eggert  <eggert@twinsun.com>
111414         and Bruno Haible  <haible@clisp.cons.org>
111416         * lib/quotearg.c (mbrtowc):
111417         Assign to *pwc, and return 1 only if result is nonzero.
111418         (iswprint): Use ISPRINT when substituting our own mbrtowc.
111420 2000-07-03  Jim Meyering  <meyering@lucent.com>
111422         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
111424 2000-07-03  Jim Meyering  <meyering@lucent.com>
111426         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
111427         This is necessary to get a definition of e.g., UTMP_FILE on
111428         HP-UX 10.20.
111429         From Bob Proulx.
111431 2000-07-02  Jim Meyering  <meyering@lucent.com>
111433         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
111435         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
111436         AC_LIBOBJ(function_name).
111437         * m4/chown.m4: Likewise.
111438         * m4/fnmatch.m4: Likewise.
111439         * m4/ftruncate.m4: Likewise.
111440         * m4/getgroups.m4: Likewise.
111441         * m4/getline.m4: Likewise.
111442         * m4/group-member.m4: Likewise.
111443         * m4/jm-macros.m4: Likewise.
111444         * m4/lstat.m4: Likewise.
111445         * m4/malloc.m4: Likewise.
111446         * m4/memcmp.m4: Likewise.
111447         * m4/nanosleep.m4: Likewise.
111448         * m4/putenv.m4: Likewise.
111449         * m4/realloc.m4: Likewise.
111450         * m4/regex.m4: Likewise.
111451         * m4/stat.m4: Likewise.
111452         * m4/strftime.m4: Likewise.
111454 2000-07-02  Jim Meyering  <meyering@lucent.com>
111456         * lib/quotearg.c (mbstate_t): Don't define here.
111458 2000-07-02  Jim Meyering  <meyering@lucent.com>
111460         * lib/nanosleep.c (SIGCONT): Define if not already defined.
111462 2000-07-01  Jim Meyering  <meyering@lucent.com>
111464         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
111466 2000-07-01  Jim Meyering  <meyering@lucent.com>
111468         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
111469         problem.
111471 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
111473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
111474         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
111476 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
111478         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
111479         per change in ../m4/ls-mntd-fs.m4.
111480         (read_filesystem_list): Ignore symbolic links.
111482 2000-06-29  Jim Meyering  <meyering@lucent.com>
111484         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
111485         for declaration of strcmp.
111487         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
111489         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
111490         Avoid warning by casting result to `char *' to remove `const'.
111492 2000-06-28  Jim Meyering  <meyering@lucent.com>
111494         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
111495         included by quotearg.c, for which we perform this test.  From
111496         Bruno Haible.
111498 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
111500         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
111501         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
111502         <utmpx.h> exists, put readutmp.o into LIBOBJS.
111504 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
111506         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
111508 2000-06-26  Paul Eggert  <eggert@twinsun.com>
111510         savedir now sets errno on failure and invokes xmalloc to get memory.
111511         Fix a couple of other minor bugs while we're at it.
111513         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
111514         (NAMLEN): Remove macro.
111515         (malloc, realloc): Remove decls.
111516         (stpcpy): Likewise.
111517         ("xalloc.h"): Include.
111518         (NAME_SIZE_DEFAULT): New macro.
111519         (savedir): Use xmalloc / xrealloc to allocate memory.
111520         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
111521         Skip "" directory entries.
111522         Use strlen to calculate directory entry length, since the old method
111523         is rarely used these days and isn't worth supporting.
111524         Don't use a pointer after freeing it.
111525         Check for integer overflow when calculating allocation size.
111526         Use memcpy to copy entries, instead of stpcpy.
111527         Set errno properly when returning NULL.
111528         Check for readdir error.
111530 2000-06-26  Jim Meyering  <meyering@lucent.com>
111532         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
111534 2000-06-25  Jim Meyering  <meyering@lucent.com>
111536         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
111537         Linux header bug when _XOPEN_SOURCE is defined to 500.
111539 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
111541         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
111542         deficiency.
111544 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
111546         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
111547         Include xalloc.h.
111548         Don't include <stdlib.h>.  Don't declare malloc, realloc.
111550 2000-06-24  Jim Meyering  <meyering@lucent.com>
111552         * m4/strerror_r.m4: Revive this file -- to try out an experimental
111553         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
111554         for which strerror does return char*, but which lacks a conveniently
111555         accessible declaration of the function.  If the compile-test says
111556         strerror_r doesn't work, then resort to a `run'-test that works on
111557         BeOS and segfaults on DEC Unix.
111559 2000-06-24  Jim Meyering  <meyering@lucent.com>
111561         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
111563 2000-06-23  Paul Eggert  <eggert@twinsun.com>
111565         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
111566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
111568 2000-06-23  Paul Eggert  <eggert@twinsun.com>
111570         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
111571         (mbrtowc, mbstate_t): Define substitutes if
111572         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
111573         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
111574         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
111576 2000-06-23  Jim Meyering  <meyering@lucent.com>
111578         * m4/afs.m4: Add missing AC_MSG_RESULT.
111579         Reported by Bruno Haible.
111581         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
111582         Suggestion from Bruno Haible.
111584 2000-06-23  Jim Meyering  <meyering@lucent.com>
111586         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
111588 2000-06-21  Jim Meyering  <meyering@lucent.com>
111590         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
111592 2000-06-21  Jim Meyering  <meyering@lucent.com>
111594         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
111595         (noinst_HEADERS): Add getstr.h.
111597         * lib/getline.c (getstr): Move into a separate file.
111598         * lib/getstr.c (getstr): New file, extracted from getline.c, with
111599         the following changes: new parameter, delim2; both delim[12]
111600         parameters have type `int', not `char'.  The latter would lose
111601         with 8-bit delimiters.
111602         * lib/getstr.h: New file.
111604 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111606         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
111607         than 1024, return a memory chunk of least possible size, instead
111608         of size PATH_MAX + 2. In the loop, increment the size proportionally.
111609         Use free/xmalloc instead of xrealloc to avoid copying for very long
111610         paths.
111612 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111614         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
111615         the empty string.
111617 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111619         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
111620         address, not strdup.  Include <stdlib.h> and don't declare free().
111622 2000-06-19  Jim Meyering  <meyering@lucent.com>
111624         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
111626 2000-06-18  Jim Meyering  <meyering@lucent.com>
111628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
111630         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
111631         `checking whether...' message to be consistent with that of the
111632         lstat test.
111634 2000-06-18  Jim Meyering  <meyering@lucent.com>
111636         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
111637         Besides, these days every porting target provides a mkdir function.
111639         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
111640         needed. (this snippet comes from src/system.h).
111642 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
111644         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
111646 2000-06-15  Paul Eggert  <eggert@twinsun.com>
111648         * lib/human.c (adjust_value): New function.
111649         (human_readable_inexact): Apply rounding style even when
111650         printing approximate values.
111652 2000-06-14  Paul Eggert  <eggert@twinsun.com>
111654         * lib/human.c (human_readable_inexact): Allow an input block
111655         size that is not a multiple of the output block size, and vice versa.
111656         Reported by Piergiorgio Sartor.
111658 2000-06-14  Paul Eggert  <eggert@twinsun.com>
111660         * lib/getdate.y (get_date): Apply relative times after time
111661         zone indicator, not before.  Reported by Todd A. Jacobs.
111663 2000-06-13  Jim Meyering  <meyering@lucent.com>
111665         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
111667         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
111669 2000-06-12  Paul Eggert  <eggert@twinsun.com>
111671         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
111673 2000-06-12  Jim Meyering  <meyering@lucent.com>
111675         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
111676         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
111677         optional argument.
111678         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
111679         the optional argument, `lib'.
111681 2000-06-08  Jim Meyering  <meyering@lucent.com>
111683         * m4/largefile.m4: Remove file (now that it's part of autoconf).
111685 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111687         Rewrite largefile configuration so that we don't need to run
111688         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
111689         AC_CANONICAL_HOST in configure.in -- jmm]
111691         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
111692         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
111693         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
111694         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
111695         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
111696         All uses changed.
111697         Instead of inspecting the output of getconf, try to compile the
111698         test program without and with the macro definition.
111699         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
111700         for getconf.  Instead, check for the needed flags by compiling
111701         test programs.
111703 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111705         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
111707 2000-06-04  Jim Meyering  <meyering@lucent.com>
111709         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
111710         SunOS 4.1.4 for which gid_t is an unsigned type.
111712 2000-06-03  Jim Meyering  <meyering@lucent.com>
111714         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
111715         now that autoconf requires that.
111717         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
111718         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
111719         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
111721 2000-06-03  Jim Meyering  <meyering@lucent.com>
111723         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
111725 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111727         * m4/glibc21.m4: New file.
111728         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
111730 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111732         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
111733         newer, don't install charset.alias.
111734         * lib/config.charset: Change the Linux/glibc rules so they become empty
111735         on glibc-2.1 or newer.
111737 2000-06-02  Jim Meyering  <meyering@lucent.com>
111739         * lib/mountlist.c: Back out last change.  Instead, do this...
111740         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
111741         me_dummy member using the same `ignore'-testing code.
111742         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
111743         fs_type strings.
111744         From Mark D. Roth.
111746 2000-05-29  Jim Meyering  <meyering@lucent.com>
111748         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
111749         mounts with the `ignore' attribute.  Based on a patch from
111750         Mark D. Roth.
111752 2000-05-28  Jim Meyering  <meyering@lucent.com>
111754         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
111755         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111756         * m4/stat.m4: Likewise.
111757         * m4/lstat.m4: Likewise.
111758         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
111760         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
111761         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
111763 2000-05-26  Jim Meyering  <meyering@lucent.com>
111765         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
111767 2000-05-24  Jim Meyering  <meyering@lucent.com>
111769         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
111770         autoconf requires that.
111771         * m4/lib-check.m4: Likewise.
111772         * m4/jm-macros.m4: Likewise.
111773         * m4/strftime.m4: Likewise.
111775         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
111776         AC_CHECK_DECLS, now that autoconf requires that.
111778 2000-05-22  Jim Meyering  <meyering@lucent.com>
111780         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111781         * m4/lstat.m4: Likewise.
111783 2000-05-22  Jim Meyering  <meyering@lucent.com>
111785         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
111787 2000-05-20  Jim Meyering  <meyering@lucent.com>
111789         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
111790         (jm_PREREQ): Use it.
111792 2000-05-18  Jim Meyering  <meyering@lucent.com>
111794         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
111795         back, too, since it may have been modified by allocate_entry.
111796         (hash_delete): Rewrite to use neither the assignment operator
111797         nor the comma operator in an if-expression.
111799 2000-05-15  Paul Eggert  <eggert@twinsun.com>
111801         * lib/closeout.c:
111802         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
111803         Remove; no longer needed.
111804         "quotearg.h": Add include.
111805         (file_name): Do not bother to explicitly initialize to NULL; it's less
111806         efficient on some hosts.
111807         (close_stdout_status): Remove test as to whether stdout was already
111808         closed; it breaks for the case "echo x | sort >&-".
111809         Quote file name colons.
111810         Do not assume that _("write error") lacks format strings.
111812 2000-05-15  Jim Meyering  <meyering@lucent.com>
111814         * lib/version-etc.c (version_etc_copyright): Update the copyright
111815         string used in all --version output.
111817 2000-05-14  Jim Meyering  <meyering@lucent.com>
111819         * lib/closeout.c (close_stdout_set_file_name): New function.
111820         (close_stdout_status): Use new file-scoped global.
111821         Return right away if fstat says the stdout file descriptor is invalid.
111822         * lib/closeout.h (close_stdout_set_file_name): Declare.
111824 2000-05-10  Jim Meyering  <meyering@lucent.com>
111826         * lib/closeout.c [default_exit_status]: New file-scoped variable.
111827         (close_stdout_set_status): New function.
111828         * lib/closeout.h (close_stdout_set_status): Declare.
111830 2000-05-09  Jim Meyering  <meyering@lucent.com>
111832         * m4/gettext.m4: Rename this...
111833         * m4/libintl.m4: ...to this.
111835 2000-05-08  Jim Meyering  <meyering@lucent.com>
111837         * lib/long-options.c: Don't include closeout.h.
111838         (parse_long_options): Don't call close_stdout for --version.
111840 2000-05-06  Paul Eggert  <eggert@twinsun.com>
111842         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
111843         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
111844         2.1.3 bug.  This avoids a clash when files like regex.c define
111845         _GNU_SOURCE.
111847 2000-05-06  Jim Meyering  <meyering@lucent.com>
111849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
111850         (AC_REPLACE_FUNCS): Add strnlen.
111852         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
111853         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
111855         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
111856         AC_SEARCH_LIBS call for nanosleep.
111857         (LIB_NANOSLEEP): Set and AC_SUBST.
111859 2000-05-06  Jim Meyering  <meyering@lucent.com>
111861         * lib/strnlen.c: Undefine __strnlen and strnlen.
111862         [!weak_alias]: Define __strnlen to strnlen.
111864         * lib/atexit.c: New file, from libiberty.
111866 2000-05-06  Jim Meyering  <meyering@lucent.com>
111868         * lib/closeout.c (close_stdout_status): Also check for errors on the
111869         stderr stream.
111871 2000-05-05  Jim Meyering  <meyering@lucent.com>
111873         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
111874         AC_SEARCH_LIBS call for clock_gettime.
111875         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
111877         * m4/search-libs.m4: Update from autoconf.
111879         su doesn't work on Solaris 2.6.
111880         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
111881         <shadow.h>.  Reported by Dragos Harabor.
111883 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
111885         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
111886         memcpy instead of xmalloc, xrealloc, path_concat.
111887         (locale_charset): Treat empty environment variables as absent.
111888         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
111890 2000-05-04  Jim Meyering  <meyering@lucent.com>
111892         * lib/getopt.c: Update from glibc.
111893         * lib/obstack.c: Likewise.
111894         * lib/obstack.h: Likewise.
111895         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
111896         file
111898         * lib/regex.h: Likewise.
111899         * lib/strndup.c: Likewise.
111900         * lib/strnlen.c: New file, from glibc.
111902 2000-05-03  Jim Meyering  <meyering@lucent.com>
111904         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
111906 2000-05-02  Paul Eggert  <eggert@twinsun.com>
111908         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
111909         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
111910         compile-time test, rather than inspecting host and OS, to
111911         decide whether to define _LARGEFILE_SOURCE.
111913 2000-05-01  Jim Meyering  <meyering@lucent.com>
111915         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
111917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
111918         Based on a patch from Bruno Haible.
111920 2000-05-01  Jim Meyering  <meyering@lucent.com>
111922         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
111924 2000-04-29  Jim Meyering  <meyering@lucent.com>
111926         * lib/path-concat.c: Declare strdup only if it's not defined.
111927         * lib/canon-host.c: Likewise.
111929 2000-04-28  Jim Meyering  <meyering@lucent.com>
111931         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
111932         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
111933         is included first, then limits.h is included by locale.h by libintl.h.
111934         From John David Anglin.
111936 2000-04-25  Jim Meyering  <meyering@lucent.com>
111938         * lib/makepath.c (S_IRWXUGO): Define.
111939         (make_path): Always perform explicit chmod if MODE specifies any
111940         of the `special' permission bits.  Prompted by a bug report against
111941         install from Mate Wierdl and Joost van Baal.
111943 2000-04-18  Jim Meyering  <meyering@lucent.com>
111945         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
111946         (jm_PREREQ): Use it.
111948 2000-04-18  Jim Meyering  <meyering@lucent.com>
111950         * lib/README: New file.
111952         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
111953         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
111955 2000-04-17  Jim Meyering  <meyering@lucent.com>
111957         Get it right :-)
111958         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
111959         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
111960         Suggestion from Akim Demaille.
111962 2000-04-17  Jim Meyering  <meyering@lucent.com>
111964         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
111965         the definition of it to rpl_strftime also defined-away the system's
111966         declaration.
111968 2000-04-15  Jim Meyering  <meyering@lucent.com>
111970         Use `C' to denote so-called `contiguous' files, the same way
111971         that tar does.
111972         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
111973         (ftypelet): Use S_ISCTG.
111974         From Michael Deutschmann.
111976 2000-04-14  Jim Meyering  <meyering@lucent.com>
111978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
111979         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
111980         clobbered.
111982 2000-04-14  Jim Meyering  <meyering@lucent.com>
111984         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
111986 2000-04-13  Jim Meyering  <meyering@lucent.com>
111988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
111989         AH_VERBATIM to insert required #ifndef into config.h.in.
111990         Suggestion from Akim Demaille.
111992 2000-04-12  Jim Meyering  <meyering@lucent.com>
111994         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
111995         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
111996         Christian Krackowizer.
111998         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
111999         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
112000         (AC_SYS_LARGEFILE): Require.
112001         (AM_C_PROTOTYPES): Require.
112003 2000-04-08  Jim Meyering  <meyering@lucent.com>
112005         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
112006         names don't conflict.  Reported by Eli Zaretskii.
112008 2000-04-07  Jim Meyering  <meyering@lucent.com>
112010         * lib/putenv.c: Move inclusion of errno.h so it follows that of
112011         sys/types.h, to work around system header problems on AIX 3.2.5.
112012         From Bruno Haible.
112014 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
112016         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
112017         bug.  Deal with the different error behavior of Irix iconv.
112019 2000-04-05  Paul Eggert  <eggert@twinsun.com>
112021         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
112022         IRIX if the installer said otherwise.
112024 2000-04-05  Jim Meyering  <meyering@lucent.com>
112026         Portability tweaks required for ultrix4.3.
112027         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
112028         (jm_CHECK_DECLS): Add getutent to the list of functions.
112029         (_jm_DECL_HEADERS): Add utmpx.h.
112030         From John David Anglin.
112032         * m4/strftime.m4: Back out the 2000-04-02 change.
112033         Instead of that change, simply undefine putenv in the test program.
112035 2000-04-05  Jim Meyering  <meyering@lucent.com>
112037         Portability tweaks required for ultrix4.3.
112038         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
112039         getutent.
112040         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
112041         * lib/canon-host.c: Declare strdup.
112042         * lib/path-concat.c: Likewise.
112043         From John David Anglin.
112045 2000-04-04  Jim Meyering  <meyering@lucent.com>
112047         Be more DOS 8.3-friendly.
112048         * lib/ref-add.sin: Renamed from ref-add.sed.in.
112049         * lib/ref-del.sin: Renamed from ref-del.sed.in.
112050         * lib/Makefile.am: Reflect renaming.
112051         Reported by Eli Zaretskii.
112053         Use a temporary file name that won't clash with `charset.alias'
112054         in the DOS 8.3 name space.
112055         * lib/Makefile.am (charset_tmp): Define.
112056         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
112057         (uninstall-local): Likewise.
112058         Reported by Eli Zaretskii.
112060 2000-04-03  Jim Meyering  <meyering@lucent.com>
112062         * m4/gettext.m4: Fix typo in comment.
112064         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
112065         textutils/configure.in).  Suggestion from Paul Eggert.
112066         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
112068 2000-04-02  Paul Eggert  <eggert@twinsun.com>
112070         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
112071         variable in the shell rather than using putenv, which isn't
112072         portable.  This avoids the configure-time inter-test dependency
112073         on the potentially-renamed putenv function.
112075 2000-03-30  Paul Eggert  <eggert@twinsun.com>
112077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
112078         before checking struct stat.st_blksize, so that
112079         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
112081 2000-03-29  Paul Eggert  <eggert@twinsun.com>
112083         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
112084         since strftime.c uses HAVE_STRFTIME to decide whether to use
112085         the underlying strftime.
112087 2000-03-29  Paul Eggert  <eggert@twinsun.com>
112089         * lib/time/strftime.c (my_strftime): Make sure we call the system
112090         strftime, not ourselves, when invoking the underlying strftime.
112092 2000-03-24  Jim Meyering  <meyering@lucent.com>
112094         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
112095         (charset_alias): Define.
112096         (install-exec-local): Factor out common code.
112097         (uninstall-local): Split lines longer than 80.
112098         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
112099         (SUFFIXES): Define.
112100         (.sed.in.sed): New rule.  Don't redirect directly to $@.
112101         (CLEANFILES): Add ref-add.sed and ref-del.sed.
112103 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
112105         * lib/config.charset: Output a line containing "Packages using this
112106         file".
112107         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
112108         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
112109         ref-del.sed): New rules.
112111 2000-03-17  Jim Meyering  <meyering@lucent.com>
112113         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
112114         Otherwise, include <strings.h>
112116 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
112118         * lib/unicodeio.c (utf8_wctomb): New function.
112119         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
112120         format instead of in UCS-4 with platform dependent endianness.
112122 2000-03-10  Jim Meyering  <meyering@lucent.com>
112124         * m4/lib-check.m4: Look for getspnam in -lgen, too.
112125         From Marco Franzen.
112127 2000-03-07  Paul Eggert  <eggert@twinsun.com>
112129         * lib/savedir.c (savedir): Work even if directory size is
112130         negative; this can happen with some screwy NFS configurations.
112132 2000-03-06  Jim Meyering  <meyering@lucent.com>
112134         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
112135         if it's NULL (because we ran out of memory).  From Bruno Haible.
112137 2000-03-05  Jim Meyering  <meyering@lucent.com>
112139         * lib/localcharset.c ("path-concat.h"): Include.
112140         (get_charset_aliases): Use path_concat instead of ANSI string
112141         concatenation.
112143         * lib/unicodeio.h (PARAMS): Define.
112144         Use it to guard prototype.
112146 2000-03-04  Jim Meyering  <meyering@lucent.com>
112148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
112149         for lib/localcharset.c.
112151 2000-03-04  Jim Meyering  <meyering@lucent.com>
112153         * lib/Makefile.am (install-exec-local): Create $(libdir) before
112154         installing into it.
112155         (uninstall-local): Uncomment this rule so `make distcheck' works
112156         once again.
112158         * lib/unicodeio.c (<errno.h>): Include it.
112159         (errno): Declare if not defined.
112161         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
112163         * lib/config.charset: New version, incorporating remarks from a linux
112164         i18n mailing list.  From Bruno Haible.
112166 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
112168         * m4/codeset.m4: New file.
112169         * m4/iconv.m4: New file.
112170         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
112172 2000-03-03  Jim Meyering  <meyering@lucent.com>
112174         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
112176 2000-03-02  Jim Meyering  <meyering@lucent.com>
112178         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
112179         the messages come out on separate lines.
112181         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
112182         rather than jm_CHECK_DECLARATIONS.
112183         * m4/decl.m4: Remove now-unused file.
112185         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
112186         geteuid.
112188 2000-03-02  Jim Meyering  <meyering@lucent.com>
112190         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
112192 2000-03-01  Jim Meyering  <meyering@lucent.com>
112194         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
112195         * lib/unicodeio.c: Likewise.
112197 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
112199         * lib/config.charset: New file.
112200         * lib/localcharset.c: New file.
112201         * lib/unicodeio.h, lib/unicodeio.c: New files.
112202         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
112203         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
112204         (noinst_HEADERS): Add unicodeio.h.
112205         (all-local, install-exec-local, charset.alias): New targets.
112207 2000-02-28  Paul Eggert  <eggert@twinsun.com>
112209         * lib/quotearg.c (ALERT_CHAR): New macro.
112210         (quotearg_buffer_restyled): Use it.
112212 2000-02-27  Jim Meyering  <meyering@lucent.com>
112214         * m4/check-decl.m4: Add getenv to the list.
112216 2000-02-27  Jim Meyering  <meyering@lucent.com>
112218         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
112219         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
112221         * lib/backupfile.c: Guard inclusion of stdlib.h with
112222         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
112223         Declare malloc if needed.
112225         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
112226         `#ifndef HAVE_DECL..'
112227         now that autoconf always defines the HAVE_DECL_ symbols.
112228         * lib/human.c: Likewise.
112229         * lib/same.c: Likewise.
112230         * lib/strtoumax.c: Likewise.
112232         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
112233         declaration check was not run.
112234         * lib/hash.c: Likewise.
112235         * lib/human.c: Likewise.
112236         * lib/same.c: Likewise.
112237         * lib/strtoumax.c: Likewise.
112239         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
112240         `.', then first look up the entire `.'-containing string as a login
112241         name.
112243 2000-02-23  Jim Meyering  <meyering@lucent.com>
112245         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
112246         in place of my hack.
112248 2000-02-18  Paul Eggert  <eggert@twinsun.com>
112250         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
112251         (textint): New typedef.
112252         (parser_control): Member year changed from int to textint.
112253         All uses changed.
112254         (YYSTYPE): Removed; replaced by %union with int and textint members.
112255         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
112256         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
112257         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
112258         (tSNUMBER, tUNUMBER): Now of type <textintval>.
112259         (date, number, to_year): Use width of number in digits, not its value,
112260         to determine whether it's a 2-digit year, or a 2-digit time.
112261         (yylex): Store number of digits of numeric tokens.
112262         Reported by John Kendall.
112264         (parser_control): Changed from struct parser_control to typedef (for
112265         consistency).  All uses changed.
112267         (tID): Removed; not used.
112268         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
112270 2000-02-14  Paul Eggert  <eggert@twinsun.com>
112272         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
112273         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
112275 2000-02-12  Jim Meyering  <meyering@lucent.com>
112277         * lib/userspec.c (ISDIGIT): Define it.
112278         (isdigit): Remove definition.
112279         (is_number): Use ISDIGIT, not isdigit.
112280         <libintl.h>: Include.
112281         (_ and N_): Define.
112282         (parse_user_spec): Mark translatable strings.
112284 2000-02-10  Jim Meyering  <meyering@lucent.com>
112286         With these changes, nanosleep.[ch] are finally enough like the other
112287         lib/* replacement files to compile on a few more losing systems.
112289         * lib/nanosleep.h: Don't include config.h.
112290         Remove prototype from declaration of nanosleep.
112291         (PARAMS): Remove now-unneeded definition.
112292         * lib/nanosleep.c: #undef nanosleep.
112293         (rpl_nanosleep): Rename from nanosleep.
112295 2000-02-10  Jim Meyering  <meyering@lucent.com>
112297         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
112298         gnu_nanosleep to rpl_nanosleep.
112300 2000-02-09  Jim Meyering  <meyering@lucent.com>
112302         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
112303         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
112305 2000-02-08  Akim Demaille  <akim@epita.fr>
112307         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
112308         `[' and `]' and remove uses of `changequote'.
112309         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
112310         (AC_SYS_LARGEFILE): Likewise.
112311         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
112312         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
112313         of changequote.
112314         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
112315         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
112316         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
112317         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
112319 2000-02-05  Jim Meyering  <meyering@lucent.com>
112321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
112322         Remove explicit use of AC_HEADER_TIME.  It is required by
112323         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
112324         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
112325         in autoconf whereby the expansion of the latter ended up preceding
112326         the expansion of its prerequisite, AC_HEADER_TIME.
112327         Reported by Volker Borchert.
112329 2000-02-03  Jim Meyering  <meyering@lucent.com>
112331         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
112333 2000-02-03  Jim Meyering  <meyering@lucent.com>
112335         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
112336         rather than with `#if HAVE_UTMPNAME'.
112338 2000-02-02  Jim Meyering  <meyering@lucent.com>
112340         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
112341         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
112342         Reported by Eli Zaretskii.
112344 2000-02-01  Jim Meyering  <meyering@lucent.com>
112346         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
112348 2000-01-31  Jim Meyering  <meyering@lucent.com>
112350         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
112351         functions.  Add the time.h and sys/time.h headers along with the
112352         AC_REQUIRE'ment of AC_HEADER_TIME.
112354 2000-01-31  Jim Meyering  <meyering@lucent.com>
112356         * lib/nanosleep.h (nanosleep): Guard declaration with
112357         `#if ! HAVE_DECL_NANOSLEEP'.
112358         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
112359         the declaration in that vendor's sys/timers.h.
112360         Reported by Christian Krackowizer.
112362         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
112363         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
112364         (ISPRINT): Likewise.
112365         Reported by Tom Tromey.
112367 2000-01-30  Jim Meyering  <meyering@lucent.com>
112369         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
112371         * m4/prereq.m4 (utmp_includes): Define.
112372         Check for ut_user and ut_name members in both struct utmpx
112373         and struct utmp.
112375 2000-01-30  Jim Meyering  <meyering@lucent.com>
112377         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
112378         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
112379         header files where only utmpx.ut_user is declared.
112381         * lib/readutmp.h (UT_USER): Define.
112383 2000-01-29  Jim Meyering  <meyering@lucent.com>
112385         * m4/lib-check.m4: New file containing library-related checks from
112386         fileutils and sh-utils (textutils had none).
112388 2000-01-28  Jim Meyering  <meyering@lucent.com>
112390         * m4/perl.m4: Change format of warning message to look more like that
112391         from the missing script.  Suggestion from François Pinard.
112393 2000-01-25  Jim Meyering  <meyering@lucent.com>
112395         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
112396         well as time.h in the compile check.
112397         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
112398         Fix typo in cross-compiling case: s/yes/no/.
112400 2000-01-23  Jim Meyering  <meyering@lucent.com>
112402         * m4/jm-macros.m4: Move df-related tests here from
112403         fileutils/configure.in
112405         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
112406         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
112408         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
112409         s/space/ac_fsusage_space/.
112410         (jm_FILE_SYSTEM_USAGE): Take two parameters.
112412         * m4/ftruncate.m4: New file (derived from part of
112413         fileutils/configure.in).
112414         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
112415         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
112417         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
112418         AC_SUBST these here, rather than just in sh-util/configure.in, so
112419         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
112420         all the same.
112421         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
112422         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
112423         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
112424         (AC_SUBST(POW_LIBM)): Likewise.
112425         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
112427 2000-01-23  Jim Meyering  <meyering@lucent.com>
112429         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
112430         obstack.c.
112432 2000-01-22  Jim Meyering  <meyering@lucent.com>
112434         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
112436         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
112438         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
112439         configure.in
112440         (AC_CHECK_HEADERS): Likewise for sh-utils.
112441         (AC_CHECK_HEADERS): Likewise for textutils.
112442         Merge the three lists of headers.
112444         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
112445         from fileutils' configure.in.
112447         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
112448         code. Moved tests into their own function (_jm_DECL_HEADERS) in
112449         check-decl.m4.
112451         * m4/check-decl.m4: Use #if rather than #ifdef.
112452         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
112453         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
112454         (_jm_DECL_HEADERS): Define new function.
112455         (jm_CHECK_DECLARATIONS): Require it.
112457 2000-01-22  Jim Meyering  <meyering@lucent.com>
112459         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
112460         [! HAVE_DECL_STRTOULL]: Declare strtoull.
112461         Required for some AIX systems.  Reported by Christian Krackowizer.
112462         [TESTING] (main): New function.
112464         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
112465         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
112466         letters.
112468         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
112469         iswprint.
112471         * lib/strverscmp.c (ISDIGIT): Define.
112472         (strverscmp): Use ISDIGIT, not isdigit.
112474 2000-01-19  Jim Meyering  <meyering@lucent.com>
112476         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
112477         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
112478         defines `struct timespec' in <sys/time.h>
112480         * m4/c-bs-a.m4: Remove uses of changequote altogether.
112481         Thanks to Akim for explaining.
112483 2000-01-17  Paul Eggert  <eggert@twinsun.com>
112485         * lib/nanosleep.c (nanosleep):
112486         Don't use SA_INTERRUPT to decide whether to call sigaction, as
112487         POSIX.1 doesn't require SA_INTERRUPT and some systems
112488         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
112489         it's been part of POSIX.1 since day 1 (in 1988).
112491 2000-01-17  Jim Meyering  <meyering@lucent.com>
112493         * lib/interlock: Remove unused file.  Reported by François Pinard.
112495 2000-01-16  Paul Eggert  <eggert@twinsun.com>
112497         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
112498         alert, backslash, formfeed, and vertical tab unnecessarily in
112499         shell quoting style.
112501 2000-01-16  Jim Meyering  <meyering@lucent.com>
112503         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
112504         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
112505         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
112506         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
112508 2000-01-16  Jim Meyering  <meyering@lucent.com>
112510         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
112511         because the latter didn't work.
112513 2000-01-15  Jim Meyering  <meyering@lucent.com>
112515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
112516         (AC_REPLACE_FUNCS): Add memcpy and memset.
112517         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
112518         Add strpbrk.
112519         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
112521 2000-01-12  Jim Meyering  <meyering@lucent.com>
112523         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
112524         (jm_PREREQ): Use it.
112525         (jm_PREREQ_READUTMP): New macro.
112526         (jm_PREREQ): Use it.
112528 2000-01-11  Paul Eggert  <eggert@twinsun.com>
112530         Quote multibyte characters correctly.
112531         * m4/c-bs-a.m4: New file.
112532         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
112533         (jm_PREREQ): Use it.
112535 2000-01-11  Paul Eggert  <eggert@twinsun.com>
112537         * m4/uintmax_t.m4: Port to autoconf 2.13.
112539 2000-01-08  Jim Meyering  <meyering@ascend.com>
112541         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
112542         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
112544 2000-01-04  Jim Meyering  <meyering@ascend.com>
112546         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
112547         jm_STRUCT_DIRENT_D_TYPE.
112548         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
112549         jm_STRUCT_DIRENT_D_INO.
112550         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
112551         jm_STRUCT_UTIMBUF.
112552         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
112553         renamings.
112554         * m4/utime.m4: Likewise.
112556         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
112557         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
112559 2000-01-03  Paul Eggert  <eggert@twinsun.com>
112561         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
112562         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
112564 2000-01-02  Jim Meyering  <meyering@ascend.com>
112566         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
112567         remember if this is necessary.
112569 1999-12-26  Jim Meyering  <meyering@ascend.com>
112571         * m4/jm-macros.m4: Use it here.
112572         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
112574 1999-12-23  Jim Meyering  <meyering@ascend.com>
112576         * m4/jm-macros.m4: Check for clock_gettime (moved from
112577         fileutils/configure.in)
112578         Check for gettimeofday.
112580 1999-12-20  Jim Meyering  <meyering@ascend.com>
112582         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
112583         autoconf-2.14a-1999-12-20.
112585 1999-12-19  Jim Meyering  <meyering@ascend.com>
112587         * m4/lstat-slash.m4: New file.
112588         * m4/jm-macros.m4: Use the new macro:
112589         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
112591 1999-12-07  Jim Meyering  <meyering@ascend.com>
112593         * m4/perl.m4: Require that File::Compare be available, too.
112594         Too many systems seem to lack it.
112596         * m4/strftime.m4: Add checks for most of the cpp macros tested in
112597         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
112599 1999-11-18  Paul Eggert  <eggert@twinsun.com>
112601         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
112602         problem with the QNX 4.25 shell, which doesn't propagate exit
112603         status of failed commands inside shell assignments.
112605 1999-11-17  Jim Meyering  <meyering@ascend.com>
112607         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
112609 1999-11-07  Jim Meyering  <meyering@ascend.com>
112611         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
112613 1999-11-06  Jim Meyering  <meyering@ascend.com>
112615         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
112616         * m4/jm-macros.m4 (jm_MACROS): Use it here.
112618 1999-11-05  Jim Meyering  <meyering@ascend.com>
112620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
112621         configure.in of textutils, fileutils, and sh-utils into this one
112622         (shared between those packages) file.
112623         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
112624         AC_STRUCT_ST_BLKSIZE.
112626 1999-11-03  Jim Meyering  <meyering@ascend.com>
112628         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
112629         of AC_CHECK_TYPE checks includes unistd.h.
112630         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
112631         Suggestion from Akim Demaille.
112633 1999-10-30  Jim Meyering  <meyering@ascend.com>
112635         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
112636         m4-quoted string.
112637         * m4/ls-mntd-fs.m4: Likewise.
112638         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
112639         * m4/jm-winsz1.m4: Likewise.
112641         * m4/const.m4: Remove file, since the fix made it into the experimental
112642         version of autoconf.
112643         * m4/mktime.m4: Likewise.
112645         * m4/check-type.m4: Remove file, now that the latest version of
112646         AC_CHECK_TYPE takes a third arg to specify additional #includes.
112648         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
112649         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
112650         AC_CHECK_TYPE.
112652 1999-10-04  Jim Meyering  <meyering@ascend.com>
112654         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
112656 1999-09-22  Paul Eggert  <eggert@twinsun.com>
112658         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
112659         2.95.1 bug with HP-UX 10.20.
112661 1999-09-17  Jim Meyering  <meyering@ascend.com>
112663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
112664         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
112665         due to missing strdup (against sh-utils-2.0).
112667 1999-08-29  Jim Meyering  <meyering@ascend.com>
112669         * m4/jm-macros.m4: Require jm_BISON.
112670         * m4/bison.m4: New file.
112672 1999-08-17  Paul Eggert  <eggert@twinsun.com>
112674         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
112675         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
112677 1999-08-05  Jim Meyering  <meyering@ascend.com>
112679         * m4/getline.m4: Rename test file from conftestdata to conftest.data
112680         to avoid conflicts with `conftest' on 8+3 filesystems.
112681         Suggestion from Eli Zaretskii.
112683 1999-08-04  Jim Meyering  <meyering@ascend.com>
112685         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
112686         fileutils and sh-utils (textutils's getline test was inadequate).
112687         (AM_FUNC_GETLINE): Run this test.
112688         (AC_CHECK_FUNCS): Check for getdelim.
112689         Reported by Bob Proulx.
112691 1999-08-02  Jim Meyering  <meyering@ascend.com>
112693         * m4/jm-macros.m4: Add a comment.
112695 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112697         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
112698         <inttypes.h> defines strtoumax as a macro (and not as a
112699         function).
112701 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112703         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
112704         that we can shift, multiply and divide unsigned long long
112705         values; Ultrix cc can't do it.
112707 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112709         * m4/mktime.m4: New file, which is a preview of what should appear
112710         in the next public autoconf release.
112712 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112714         * m4/lfs.m4: Remove this file.
112715         * m4/largefile.m4: New file.  It contains the old contents of
112716         lfs.m4, except that all names with prefix AC_LFS have been
112717         changed to use the prefix AC_SYS_LARGEFILE instead, to be
112718         compatible with future autoconf versions.  Also, some minor m4
112719         quoting problems have been fixed.
112721 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112723         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
112724         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
112725         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
112726         and simplify the shell code.
112728 1999-08-01  Jim Meyering  <meyering@ascend.com>
112730         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
112731         m4.
112733 1999-07-20  Jim Meyering  <meyering@ascend.com>
112735         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
112737 1999-07-15  Jim Meyering  <meyering@ascend.com>
112739         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
112741 1999-05-22  Jim Meyering  <meyering@ascend.com>
112743         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
112745 1999-05-20  Jim Meyering  <meyering@ascend.com>
112747         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
112748         Add a colon after each `then' in case $4 is empty.
112750 1999-05-16  Jim Meyering  <meyering@ascend.com>
112752         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
112754 1999-05-10  Jim Meyering  <meyering@ascend.com>
112756         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
112758         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
112759         AC_FUNC_MKTIME.
112761 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
112763         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
112765 1999-05-04  Paul Eggert  <eggert@twinsun.com>
112767         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
112768         not CPPFLAGS, so that linking works correctly in IRIX.
112770 1999-04-30  Paul Eggert  <eggert@twinsun.com>
112772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
112774 1999-04-20  Paul Eggert  <eggert@twinsun.com>
112776         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
112777         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
112778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
112779         jm_AC_TYPE_UNSIGNED_LONG_LONG.
112780         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
112782         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
112784 1999-04-20  Jim Meyering  <meyering@ascend.com>
112786         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
112787         AC_REPLACE xstroull if necessary.  From Paul Eggert.
112788         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
112790 1999-04-18  Jim Meyering  <meyering@ascend.com>
112792         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
112793         * m4/jm-macros.m4: Use it.
112795 1999-04-06  Jim Meyering  <meyering@ascend.com>
112797         * m4/strftime.m4: Remove test for %f.
112799 1999-03-29  Jim Meyering  <meyering@ascend.com>
112801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
112802         superset of the AC_TYPE_* checks in the textutils, fileutils,
112803         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
112804         AC_TYPE_PID_T.
112806 1999-03-28  Jim Meyering  <meyering@ascend.com>
112808         * m4/jm-macros.m4: Define GNU_PACKAGE here.
112809         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
112810         replaced e.g., in the *.sh files of the sh-utils.
112812 1999-03-20  Jim Meyering  <meyering@ascend.com>
112814         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
112815         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
112816         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
112818 1999-03-19  Jim Meyering  <meyering@ascend.com>
112820         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
112822 1999-03-12  Jim Meyering  <meyering@ascend.com>
112824         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
112826 1999-03-07  Jim Meyering  <meyering@ascend.com>
112828         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
112829         declared.
112831 1999-02-17  Jim Meyering  <meyering@ascend.com>
112833         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
112834         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
112836 1999-02-07  Jim Meyering  <meyering@ascend.com>
112838         * m4/group-member.m4: New file -- extracted from sh-utils'
112839         configure.in.
112841         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
112842         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
112844 1999-02-06  Jim Meyering  <meyering@ascend.com>
112846         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
112847         * m4/fnmatch.m4: Likewise.
112848         * m4/getgroups.m4: Likewise.
112849         * m4/lstat.m4: Likewise.
112850         * m4/malloc.m4: Likewise.
112851         * m4/putenv.m4: Likewise.
112852         * m4/realloc.m4: Likewise.
112853         * m4/regex.m4: Likewise.
112854         * m4/stat.m4: Likewise.
112855         * m4/strftime.m4: Likewise.
112856         Suggestion from Alain Magloire.
112858         * m4/chown.m4: Use `.$ac_objext', not `.o'.
112859         * m4/fnmatch.m4: Likewise.
112860         * m4/getgroups.m4: Likewise.
112861         * m4/getline.m4: Likewise.
112862         * m4/lstat.m4: Likewise.
112863         * m4/malloc.m4: Likewise.
112864         * m4/memcmp.m4: Likewise.
112865         * m4/putenv.m4: Likewise.
112866         * m4/realloc.m4: Likewise.
112867         * m4/regex.m4: Likewise.
112868         * m4/stat.m4: Likewise.
112869         * m4/strftime.m4: Likewise.
112870         Suggestion from Alain Magloire.
112872         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
112873         an argument.
112875         * m4/regex.m4: Add a run-time Test for proper operation of
112876         re_compile_pattern.
112878 1999-01-31  Jim Meyering  <meyering@ascend.com>
112880         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
112882 1999-01-30  Jim Meyering  <meyering@ascend.com>
112884         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
112886         * m4/jm-mktime.m4: Make this a wrapper around the official
112887         AM_FUNC_MKTIME rather than my private copy, now that the official one
112888         is up to date.
112889         * m4/mktime.m4: Remove file.
112891         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
112892         * m4/uptime.m4: Likewise.
112893         * m4/uintmax_t.m4: Likewise.
112895 1999-01-28  Jim Meyering  <meyering@ascend.com>
112897         * m4/jm-macros.m4: Use jm_AFS.
112898         * m4/afs.m4: New file (from fileutils' configure.in).
112900         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
112901         * m4/chown.m4: Likewise.
112902         * m4/d-ino.m4: Likewise.
112903         * m4/d-type.m4: Likewise.
112904         * m4/fnmatch.m4: Likewise.
112905         * m4/getgroups.m4: Likewise.
112906         * m4/gettext.m4: Likewise.
112907         * m4/jm-mktime.m4: Likewise.
112908         * m4/jm-winsz2.m4: Likewise.
112909         * m4/lcmessage.m4: Likewise.
112910         * m4/ls-mntd-fs.m4: Likewise.
112911         * m4/malloc.m4: Likewise.
112912         * m4/memcmp.m4: Likewise.
112913         * m4/putenv.m4: Likewise.
112914         * m4/realloc.m4: Likewise.
112915         * m4/st_mtim.m4: Likewise.
112916         * m4/strftime.m4: Likewise.
112918 1999-01-16  Jim Meyering  <meyering@ascend.com>
112920         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
112921         (ARGMATCH_DIE_DECL): Define.
112923 1999-01-12  Jim Meyering  <meyering@ascend.com>
112925         * m4/Makefile.am.in: Rewrite to avoid using fmt.
112926         Reported by Lars Hecking.
112928 1999-01-10  Jim Meyering  <meyering@ascend.com>
112930         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
112931         gross kludge.
112932         * m4/inttypes_h.m4: Likewise.
112933         * m4/lstat.m4: Likewise.
112934         * m4/malloc.m4: Likewise.
112935         * m4/readdir.m4: Likewise.
112936         * m4/realloc.m4: Likewise.
112937         * m4/st_dm_mode.m4: Likewise.
112938         * m4/stat.m4: Likewise.
112939         * m4/utimbuf.m4: Likewise.
112940         * m4/utimes.m4: Likewise.
112942         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
112943         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
112944         comments in config.h.in are meaningful.
112946         * m4/jm-macros.m4: Require autoconf-2.13 here.
112948         * m4/regex.m4: By default, don't use the included regex.c on systems
112949         with glibc 2.  Suggestion from Uli Drepper.
112951 1999-01-02  Jim Meyering  <meyering@ascend.com>
112953         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
112955 1998-12-18  Jim Meyering  <meyering@ascend.com>
112957         * m4/Makefile.am.in (Makefile.am): Simplify rule.
112958         Based on a suggestion from Lars Hecking.
112960 1998-11-16  Paul Eggert  <eggert@twinsun.com>
112962         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
112964 1998-11-16  Jim Meyering  <meyering@ascend.com>
112966         * m4/lfs.m4: Double-quote the `uname...` expression.
112968 1998-11-14  Jim Meyering  <meyering@ascend.com>
112970         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
112971         * m4/stat.m4: Likewise.
112973 1998-11-03  Jim Meyering  <meyering@ascend.com>
112975         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
112976         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
112978 1998-10-18  Jim Meyering  <meyering@ascend.com>
112980         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
112982 1998-10-17  Jim Meyering  <meyering@ascend.com>
112984         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
112985         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
112986         calls for those previously hard-coded headers.  Instead, take a new
112987         parameter.
112988         (jm_CHECK_DECLARATIONS): Reflect interface change.
112989         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
112990         (jm_CHECK_DECL_LOCALTIME_R): New macro.
112992         * m4/mktime.m4: Test for spring-forward gap before long-running test.
112994 1998-10-14  Jim Meyering  <meyering@ascend.com>
112996         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
112997         instead of "TZ=America/Vancouver".  From Paul Eggert.
112999 1998-10-11  Jim Meyering  <meyering@ascend.com>
113001         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
113002         This adds a test for a recently added compatibility fix for mktime.c.
113003         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
113005 1998-09-27  Jim Meyering  <meyering@ascend.com>
113007         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
113009         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
113010         ../configure.in, including a change from Gordon Matzigkeit to allow
113011         cross-compiling for the Hurd.
113013         * m4/glibc.m4: New file/macro to test for the GNU C Library
113014         versions 1 and 2.  From Gordon Matzigkeit.
113015         Indent.
113017 1998-09-21  Jim Meyering  <meyering@ascend.com>
113019         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
113021 1998-08-18  Paul Eggert  <eggert@twinsun.com>
113023         Port nanosecond-resolution times to UnixWare 2.1.2 and
113024         pedantic Solaris 2.6.
113026         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
113027         AC_STRUCT_ST_MTIM.
113028         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
113029         Generate name of ns member, instead of just 1 or undef.
113030         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
113032 1998-08-15  Jim Meyering  <meyering@ascend.com>
113034         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
113035         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
113036         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
113037         instead of jm_TYPE_SSIZE_T.
113039 1998-08-12  Jim Meyering  <meyering@ascend.com>
113041         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
113043 1998-08-02  Jim Meyering  <meyering@ascend.com>
113045         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
113046         in acconfig.h manually.
113048 1998-07-31  Paul Eggert  <eggert@twinsun.com>
113050         * m4/st_mtim.m4: New file.
113052 1998-07-28  Jim Meyering  <meyering@ascend.com>
113054         * m4/utimes.m4: Undef stat.
113056 1998-07-25  Jim Meyering  <meyering@ascend.com>
113058         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
113059         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
113061 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
113063         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
113064         uid and gid actually remain unchanged.
113066 1998-07-07  Jim Meyering  <meyering@ascend.com>
113068         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
113070 1998-07-04  Jim Meyering  <meyering@ascend.com>
113072         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
113073         to prove that this macro can be used in packages without regex.c.
113075 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
113077         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
113078         is to be used.
113080 1998-07-03  Jim Meyering  <meyering@ascend.com>
113082         * m4/gettext.m4: Add -lintl if it's found to be necessary.
113084         * m4/gettext.m4: New file -- from gettext-0.10.35.
113085         * m4/lcmessage.m4: Likewise.
113086         * m4/progtest.m4: Likewise.
113088         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
113089         * m4/jm-macros.m4: Require the new macro.
113091 1998-06-29  Jim Meyering  <meyering@ascend.com>
113093         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
113094         for the definition of NGROUPS (used in a system header included
113095         by sys/mount.h).
113097 1998-06-28  Jim Meyering  <meyering@ascend.com>
113099         * m4/ls-mntd-fs.m4: New file.
113100         * m4/fstypename.m4: New file.
113102         * m4/jm-macros.m4: Require the new macro.
113103         * m4/jm-glibc-io.m4: New file.
113105 1998-05-19  Jim Meyering  <meyering@ascend.com>
113107         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
113108         * m4/lchown.m4: New file.
113110         * m4/Makefile.am.in: New file.
113111         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
113113 1998-05-14  Jim Meyering  <meyering@ascend.com>
113115         * m4/Makefile.am (EXTRA_DIST): Add them.
113116         * m4/jm-macros.m4: New file.
113117         * m4/utimbuf.m4: New file.
113119 1998-05-12  Jim Meyering  <meyering@ascend.com>
113121         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
113123 1998-05-11  Jim Meyering  <meyering@ascend.com>
113125         * m4/isc-posix.m4: New file.
113127 1998-05-10  Jim Meyering  <meyering@ascend.com>
113129         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
113131 1998-05-09  Jim Meyering  <meyering@ascend.com>
113133         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
113134         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
113135         with automake.
113137         * m4/ssize_t.m4: New file.
113138         * m4/mktime.m4: Remove file -- the new automake has this now.
113140 1998-04-26  Jim Meyering  <meyering@ascend.com>
113142         * m4/assert.m4: New file.
113143         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
113145 1998-04-05  Jim Meyering  <meyering@ascend.com>
113147         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
113148         (jm_PREREQ): Use it here.
113150 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
113152         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
113153         in acconfig.h.
113155 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
113157         * m4/prereq.m4: New file.
113158         * m4/error.m4: New file.
113159         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
113161 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
113163         * m4/getline.m4: Don't set am_cv_func_working_getline before the
113164         cache-check for the same variable -- that defeated the purpose of
113165         the test; the test program was never run.  This was a problem only
113166         on systems with losing getline functions -- HP-UX 10.20 is one.
113167         Reported by Bjorn Helgaas.
113169 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
113171         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
113173 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
113175         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
113177         * m4/const.m4: New file.  Use an initializer in this declaration
113178         typedef int charset[2]; const charset x;
113179         Reported by Bob Glickstein.
113181 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
113183         * m4/chown.m4: Fix reversed types on -1 args to chown.
113184         From Kaveh Ghazi.
113186 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
113188         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
113189         Add lseek and memchr.
113191         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
113192         T.E.Dickey <dickey@clark.net> said that some older preprocessors
113193         have a 20-character limit on names.
113195 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
113197         * m4/inttypes_h.m4: New file.
113198         * m4/uintmax_t.m4: New file.
113199         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
113202         -----
113204         Local Variables:
113205         coding: utf-8
113206         End:
113208         Copyright (C) 1997-2017 Free Software Foundation, Inc.
113210         Copying and distribution of this file, with or without
113211         modification, are permitted provided the copyright notice
113212         and this notice are preserved.